<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="">
      </div>
      <button class="btn" @click="back"></button>
    <!-- <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>

import { AddressPopComService } from "../../../util/comCreate.js";
export default {
  name: "notWinPrize",
  data() {
    return {
      
    };
  },
  created(){
      console.log(this.position)
  },
  methods: {
    back() {
        this.submit()
          sessionStorage.setItem('addressId', this.addressId);
        sessionStorage.setItem('prizeGrantId', this.prizeId);
        var datas = {
          isEditAddress:true,
          isAlLookAddress:true
        }
        AddressPopComService.create(datas,submit => {
          AddressPopComService.close();
        });
    },
  },
};
</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: 7.59rem;
    background-image: url(//img10.360buyimg.com/imgzone/jfs/t1/176394/7/4247/265537/6077a717Ecf6b2947/2a09c49aee9e4d26.png);
    background-size: 100%;
    position: absolute;
     left: calc(50% - 5.19rem / 2);
      top: calc(50% - 7.59rem / 2);
}
.btn {
      width: 3.5rem;
    height: 0.8rem;
    position: absolute;
    top: 9.5rem;
    left: 2rem;
  }

.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>