<template>
  <div v-if="show" class="basicbackground">
      <div class="pop">
          <div class="cardId">许愿卡编号：{{cardId}}</div>
          <div class="position">中了{{position}}等奖</div>
          <div class="prizeName">奖品为{{prizeName}}</div>
          <div class="prizeName1">已经领取成功</div>
          <img class="showImg" :src="showImg" alt="">
           <button class="btn" @click="back"></button>
      </div>
     
    <!-- <basicbackground :colorTitle="colorTitle" @closeClick="closeClick">
      <div class="floor">
        <img
          src="//img10.360buyimg.com/imgzone/jfs/t1/168843/33/18510/16287/607645b5Ee57aa229/73617b45bead84d3.png"
          class="img"
        />
        <span class="text1">很遗憾您未中奖</span>
        <button class="btn" @click="back">知道了</button>
      </div>
    </basicbackground> -->
  </div>
</template>
<script>
export default {
  name: "notWinPrize",
  data() {
    return {
      
    };
  },
  created(){
      console.log(this.position)
  },
  methods: {
    back() {
         this.submit();
    },
  },
};
</script>
<style scoped lang="scss">
.basicbackground{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 200;
}
.pop{
    width: 5.19rem;
    height: 6.86rem;
    background-image: url(//img10.360buyimg.com/imgzone/jfs/t1/177358/27/89/249866/607e8a2aE3431102a/364ab3f166f59261.png);
    background-size: 100%;
    position: absolute;
     left: calc(50% - 5.19rem / 2);
      top: calc(50% - 6.86rem / 2);
}
.btn {
    
   
    width: 3.84rem;
    height: 1.02rem;
    background-image: url(//img10.360buyimg.com/imgzone/jfs/t1/174096/27/5646/19899/607e8a2aE59a2be98/b3cb54bbe1fedc19.png);
    background-size: 100%;
    position: absolute;
    left: .7rem;
    top: 6.4rem;


  }

.position{
      color: white;
    font-size: .5rem;
    width: 100%;
    text-align: center;
    // margin-top: 1.7rem;
}
.cardId{
     color: white;
    font-size: .3rem;
    width: 100%;
    text-align: center;
        margin-top: 1.3rem;
}
.prizeName{
     color: white;
    font-size: .3rem;
    width: 100%;
    text-align: center;
    margin-top: .3rem;
}
.prizeName1{
     color: white;
    font-size: .3rem;
    width: 100%;
    text-align: center;
    // margin-top: 1.7rem;
}
.showImg{
    width: 2rem;
    height: 2rem;
    position: absolute;
    left: calc(50% - 1rem);
     margin-top: .5rem;
}

// .floor {
//   width: 5.6rem;
//   height: 6rem;
//   background-color: #fff;
//   border-radius: 0.1rem;
//   position: fixed;
//   margin: auto;
//   left: 0;
//   right: 0;
//   top: 3.5rem;
//   .img {
//     width: 1.37rem;
//     height: 1.37rem;
//     display: block;
//     margin: 1rem auto;
//   }
//   .text1 {
//     font-size: 0.35rem;
//     color: #e2231a;
//     display: block;
//     text-align: center;
//     margin-bottom: 0.4rem;
//   }
//   
// }
</style>