<template>
  <div class="toastbox" @click="close" v-if="show">
    <div class="toastdetal">
      <div class="toastcontent">
        <img :src="ActivityEnd"/>
          <span class="toastdesc">当前活动已结束！</span>
      </div>
    </div>
  </div>
</template>

<script>
import ActivityEnd from "../images/activityend.png";
export default {
  name: "commontoast",
  data() {
    return {
      ActivityEnd,
      show: true
    };
  },
  methods: {
    close() {
      this.show = false;
    },
  }
};
</script>

<style lang="scss" scoped>
.toastbox {
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 5;
  width: 100%;
  height: 100%;
  // display: none;
  flex: 1;
  background: rgba(0, 0, 0, 0.5);

  .toastdetal {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    .toastcontent {
      width: 70%;
      height: 1.69rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: fixed;
      border-radius: 0.04rem;
      background: rgba(255, 255, 255, 1);
      box-shadow: 0px 2px 4px 0px rgba(194, 194, 194, 0.5);

      img{
        width: 0.7rem;
        height: 0.6rem;
        margin-bottom: 0.12rem;
      }
        .toastdesc {
          font-size: 0.16rem;
          font-family: PingFangSC-Regular;
          font-weight: 400;
          color: rgba(0, 0, 0, 1);
          line-height: 0.22rem;
          word-wrap: break-word;
          word-break: normal;
        }
    }
  }
}
</style>

