<template>
  <div v-if="show">
    <!-- 答题错了 -->
    <div class="activePrizeDiv">
      <div class="activeDiv">
        <img
          @click="closeClick()"
          class="imgClose"
          src="//img10.360buyimg.com/imgzone/jfs/t1/156808/23/26902/366/61aa1148E085ac3e5/c70e502771886ecd.png"
        />
        <div>
          <img
            class="bottom-content"
            src="//img10.360buyimg.com/imgzone/jfs/t1/213803/40/6586/48839/61aa11b0E37d8aaa9/4e8ce44d6642a1f1.png"
          />
          <div class="tiaozhan">挑战失败！</div>
          <div class="yihan">非常遗憾，您答错了哦~</div>
          <div class="win-modal-footer">
            <div class="btn1" @click="closeClick()">再次答题</div>
            <div class="btn2" v-lz-click="'4'" @click="enterstore">进店逛逛</div>
            <!-- <a
              href="javascript:;"
              class="showbtn btn1 f-fl"
              v-lz-click="'2'"
              @click="shareButton"
            ></a>
            <a
              href="javascript:;"
              class="showbtn btn2 f-fl"
              v-lz-click="'4'"
              @click="enterstore"
            ></a> -->
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import store from "../../../store/store";
import { goToShopPage } from "../../../util/tools.js";
import { allShare } from "../../../js/share.js";
export default {
  props: ["isTemplate", "datas", "styleData", "keyData", "templateData"],
  data() {
    return {};
  },
  mounted() {
    console.log(this.dataList);
  },
  computed: {},
  methods: {
    closeClick() {
      this.submit(1);
      // this.$emit("datifenx", true);
    },
    enterstore() {
      console.log("进入商店");
      let shopId = store.state.shopId;
      goToShopPage(shopId);
    }, //邀请好友
    shareButton() {
      // Toast('活动正在惊醒中');
      // this.share = 1
      if (this.dataList.shareStatus == 0) {
        this.submit(3);
      } else {
        this.submit(2);
      }
    },
  },
};
</script>
<style lang="scss" scoped>
.imgClose {
  width: 0.24rem;
  height: 0.24rem;
  display: flex;
  margin-top: 0.34rem;
  margin-left: 5.42rem;
}
.activePrizeDiv {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  top: 0;
  z-index: 1026;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activeDiv {
  width: 6rem;
  height: 6.3rem;
  border-radius: 0.2rem;
  background: #fff;
}

#close {
  height: 0.3rem;
  width: 0.3rem;
  position: absolute;
  right: 0.2rem;
  top: 0.2rem;
  background: url("//img10.360buyimg.com/imgzone/jfs/t1/143521/26/18654/387/5fd9e706E8f1594e3/ae5cc06440559585.png")
    no-repeat;
  background-size: 100% 100%;
}

.bottom-content {
  width: 2.77rem;
  height: 1.83rem;
  margin: 0.1rem auto 0;
  display: flex;
}
.tiaozhan {
  font-size: 0.48rem;
  color: #262626;
  font-weight: bold;
  margin-top: 0.4rem;
  width: 100%;
  text-align: center;
}
.yihan {
  font-size: 0.24rem;
  color: #8c8c8c;
  font-weight: 500;
  margin-top: 0.2rem;
  width: 100%;
  text-align: center;
}
#noBottom-content {
  position: fixed;
  width: 5.26rem;
  height: 5.5rem;
  margin-left: -2.63rem;
  margin-top: -2.75rem;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-image: url(https://img10.360buyimg.com/imgzone/jfs/t15181/192/2657526069/191729/c900760e/5aaf6534Nc6c80cd9.png);
  margin: auto;
  border-radius: 0.2rem;
}
#bottom-content img {
  display: block;
  margin: auto;
}

#bottom-content p {
  /* padding-top: 0.2rem; */
  font-size: 0.36rem;
  color: #f23c3c;
  display: block;
  margin-top: 0.38rem;
  text-align: center;
  /* margin-top: 0.3rem; */
}

#bottom-content button {
  display: block;
  margin: 0 auto;
  margin-top: 1.06rem;
  width: 5rem;
  background-color: #e2231a;
  color: white;
  font-size: 0.28rem;
  border-radius: 0.1rem;
  border: 1px solid #e2231a;
  padding: 0.26rem 0;
}
.win-modal-footer {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  padding: 0 0.5rem;
  .btn1 {
    width: 2.4rem;
    height: 0.9rem;
    background: linear-gradient(90deg, #F2270C 0%, #FF6420 100%);
    border-radius: 0.1rem;
    font-size: 0.3rem;
    font-weight: 500;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .btn2 {
    width: 2.4rem;
    height: 0.9rem;
    background: #FF9900;
    border-radius: 0.1rem;
    font-size: 0.3rem;
    font-weight: 500;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
.showbtn {
  // width: 50%;
  color: #666;
  font-size: 0.3rem;
  text-decoration: none;
}
</style>
