<template>
  <div class="prizeTypeThreeDivAllC1">
    <div class="ui-modal-body" :style="styleData.uiModalBody">
      <div class="ui-content-box">
        <div class="prizeItemDiv" v-for="(item, index) in giftBagData.prizeData">
          <div class="prizeIconDiv">
            <img v-if="item.prizeType == '1'" src="https://img10.360buyimg.com/imgzone/jfs/t1/215686/35/12596/38974/620b6dacE10f612d4/97a766f8921fe39f.png" />
            <img v-if="item.prizeType == '4'" src="https://img10.360buyimg.com/imgzone/jfs/t1/221283/19/10655/37277/620b6dacEf759d417/0132c2aa75302c3a.png" />
            <img v-if="item.prizeType == '101' || item.prizeType == '102'" src="https://img10.360buyimg.com/imgzone/jfs/t1/87934/29/22879/19787/620b6dadE6e712f6f/5ade96e178f1fbb0.png" />
          </div>
          <div class="beanNumDiv">
            <div class="prizeNames">
              <span>{{ (item.prizeType == '1' || item.prizeType == '4') ? item.beanNum : item.priceInfo+'元' }}</span>
              {{ (item.prizeType == '101' || item.prizeType == '102') ? '优惠券' : item.prizeTypeName }}
            </div>
          </div>
        </div>
      </div>
      <div class="btnDiv" @click="btnClick()"></div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['styleData', 'giftBagData'],
  data() {
    return {};
  },
  created() {
    console.log(this.giftBagData, '3个奖品数据');
  },
  methods: {
    btnClick() {
      this.$emit('btnClickEmit', {});
    }
  }
};
</script>

<style lang="scss" scoped="scoped">
.prizeTypeThreeDivAllC1 {
  .ui-content-box {
       height: 2rem;
    width: 4.5rem;
    position: absolute;
    left: 1.3rem;
    top: 3.5rem;
    display: flex;
    .prizeItemDiv {
      width: 1.47rem;
      height: 1.99rem;
      background: url('//img20.360buyimg.com/imgzone/jfs/t1/233275/19/16784/17166/6646cfdaF1b1698c3/847a25786fb4ce09.png') no-repeat;
      background-size: 100%;
      // margin-bottom: .08rem;
      position: relative;
      padding: 5px;
      &:last-child{
        margin-bottom: 0;
      }
      .prizeIconDiv {
        width: 100%;
        height: calc(100% - 0.5rem);
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        img{
          width: .9rem;
          height: .9rem;
        }
      }
      .beanNumDiv {
        width: 1.21rem;
        height: .37rem;
        display: flex;
        justify-content: center;
        align-items: center;
        // flex-direction: column;
        
        background: url('//img10.360buyimg.com/imgzone/jfs/t1/233545/27/17630/5094/6646d2adFf1d87cc9/4f0c2dccee5c95c3.png') no-repeat;
      background-size: 100%;
        .prizeNames{
          width: 100%;
          height: .7rem;
          display: flex;
          align-items: center;
          justify-content: center;
          color: #fff;
          font-size: .18rem;
        }
        // .prizeLimit{
        //   width: 100%;
        //   height: .24rem;
        //   line-height: .24rem;
        //   font-size: .14rem;
        //   text-align: center;
        //   color: #fff;
        // }
      }
    }
  }
  @keyframes big {
    0%{
      width: 3.06rem;
      height:1.06rem;
      bottom:-.59rem;
    }
    50%{
      width: 4.4rem;
      height:1.3rem;
      bottom:-.64rem;
    }
    100%{

    }
  }
  .btnDiv {
    width: 4.17rem;
    height: .92rem;
    position: absolute;
    left: calc(50% - 4.17rem / 2);
    background: url(//img10.360buyimg.com/imgzone/jfs/t1/240361/11/7760/36927/6646cc75F34617e22/c52f0b73a51a9409.png) no-repeat;
    background-size: 100% 100%;
    bottom: 1.5rem;
  }
}
</style>
