<template>
  <div v-if="show">
    <div id="noPrizeDiv">
      <div class="fd-reset-thanksjion">
        <div id="close" @click="closeClick()"></div>
        <div class="fd-title">{{title}}</div>
        <div class="fd-content">{{content}}</div>
        <button class="fd-reset-button" v-lz-click="'4'" @click="enterstore">
          {{ buttoncontent }}
        </button>
      </div>
    </div>
  </div>
</template>
<script>
import store from "../../../store/store";
import { goToShopPage } from "../../../util/tools.js";

export default {
  data() {
    return {
      buttoncontent: "我知道了",
    };
  },
  methods: {
    closeClick() {
      this.submit();
    },
    enterstore() {
      this.submit();
      document.querySelector("body").removeAttribute("style");
      console.log("进入商店");
      let shopId = store.state.shopId;
      goToShopPage(shopId);
    },
  },
};
</script>
<style lang="scss" scoped>
#noPrizeDiv {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  top: 0;
  z-index: 4999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.fd-reset-thanksjion {
  width: 5.88rem;
  height: 4rem;
  position: relative;
  z-index: 2;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  .fd-title {
    font-size: 0.42rem;
    font-weight: 700;
  }
  .fd-content {
    font-size: 0.24rem;
    color: #8c8c8c;
  }
  .fd-reset-button {
    position: absolute;
    display: block;
    bottom: 0.89rem;
    left: 50%;
    width: 4rem;
    margin-left: -2rem;
    height: 0.76rem;
    line-height: 0.76rem;
    background: #000;
    color: #fff;
    font-size: 0.3rem;
    text-align: center;
  }
}

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