<template>
  <div class="prizeTypeThreeDivAllC1">
    <div class="ui-modal-body" :style="styleData.uiModalBody">
      <div>
        <div class="titleDiv" style="padding-top: 1.7rem;"><span></span></div>
        <div class="ui-content-box" style="margin-top: 1.8rem;margin-left: 3rem;">
          <div class="itemDiv" v-for="(item, index) in giftBagData.prizeData" :key="index">
            <div class="prizeItemDiv">
              <span class="beanNumDiv">
                <span v-if="item.prizeType == '1' || item.prizeType == '4'">{{ item.beanNum }}</span>
                <span v-else-if="item.prizeType == '101'">{{ item.priceInfo }}</span>
                <span v-else-if="item.prizeType == '102'">{{ item.priceInfo }}</span>
              </span>
              <span class="unitDiv" v-if="item.prizeType == '102' || item.prizeType == '101'">优惠券</span>
              <span class="unitDiv" v-else>{{ item.prizeTypeName }}</span>

            </div>
          </div>
        </div>
        <div class="btnDiv" @click="btnClick()"></div>
      </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 {
  .giftBagTypeDiv {
    padding-top: 2.7rem;
    color: #ffffff;
    font-size: 0.5rem;
  }
  .titleDiv {
    font-size: 0.3rem;
    color: #fff;
    line-height: 0.5rem;
  }
  .ui-content-box {
    transform: rotate(-26deg);
    .itemDiv {
      font-size: 0.36rem;
      color: #333;
      display: flex;
      justify-content: center;
      &:last-child .prizeItemDiv {
        border-bottom: none !important;
      }
      .prizeItemDiv {
        width: 1.2rem;
        // height: 0.98rem;
        display: inline-block;
        // background: url(//img10.360buyimg.com/imgzone/jfs/t1/3057/24/6088/2510/5ba1f218Ee8de2794/5844e74d4953bbf3.png) no-repeat;
        background-size: 100%;
        padding-top: 0.14rem;
        display: flex;
        align-items: center;
        border-bottom: 0.02rem solid #c10818;
        padding-bottom: 0.1rem;
        .prizeIconDiv {
          width: 0.68rem;
          height: 0.68rem;
          margin-right: 6px;
        }
        .beanNumDiv {
          color: #f91e16;
          font-size: 0.36rem;
          margin: 0 0.1rem;
          font-weight: 700;
          // margin-left: 1.05rem;
        }
        .unitDiv {
          color: #f91e16;
          font-size: 0.2rem;
          font-weight: 700;
        }
      }
    }
  }
  @keyframes scale {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.15);
    }
    100% {
      transform: scale(1);
    }
  }
  .btnDiv {
    width: 4.4rem;
    height: 1rem;
    // margin-top: 1.3rem;
    position: absolute;
    bottom: -0.1rem;
    left: calc(50% - 2.2rem);
    display: inline-block;
    background-color: initial;
    background-image: url(//img10.360buyimg.com/imgzone/jfs/t1/176003/10/38568/14422/65b10260F528e6589/f603067b5594fa5c.png);
    background-repeat: no-repeat;
    background-size: 100%;
    font-size: 0.55rem;
    color: #fff;
    line-height: 1rem;
    text-align: center;
    animation: scale 1.5s ease-in-out infinite;
  }
}
</style>
