rank-gift.wxml 2.38 KB
<view class="page">
  <view class="app__bgc bgc"></view>
  <view class="app__bg bg"></view>
  <view class="app__content main">
    <view class="top-space"></view>
    <view class="content">
      <view class="gift">
        <view wx:for="{{dataList}}" wx:key="{{index}}" class="border gift-item">
          <view class="prize">
            <image wx:if="{{item.prizeType == 'packet'}}" class="image" mode="aspectFit" src="../../image/icon/icon-gift-red-package.png" />
            <image wx:else class="image" mode="aspectFit" src="../../image/icon/icon-gift-integral.png" />
          </view>
          <view class="cont">
            <view class="t1">{{item.prizeName}}</view>
            <view class="t1 t2">{{item.activityName}}</view>
            <view class="t1 t3">推广积分第一名</view>
          </view>
          <view bindtap="onReceiveHandler" wx:if="{{item.acceptType == 0}}" data-data="{{item}}" data-index="{{index}}" class="btn">领取</view>
          <view wx:if="{{item.acceptType == 1}}" class="btn">已领取</view>
        </view>
        <!-- <view class="border gift-item">
          <view class="prize">
            <image class="image" mode="aspectFit" src="../../image/icon/icon-gift-red-package.png" />
          </view>
          <view class="cont">
            <view class="t1">88元微信红包 1 个</view>
            <view class="t1 t2">190701-190714</view>
            <view class="t1 t3">推广积分排行第一名</view>
          </view>
          <view class="btn">领取</view>
        </view>
        <view class="border gift-item">
          <view class="prize">
            <image class="image" mode="aspectFit" src="../../image/icon/icon-gift-integral.png" />
          </view>
          <view class="cont">
            <view class="t1">88元微信红包 1 个</view>
            <view class="t1 t2">190701-190714</view>
            <view class="t1 t3">推广积分排行第一名</view>
          </view>
          <view class="btn disable">已领取</view>
        </view> -->
      </view>
    </view>
    <empty-tips inner-text="还没活动奖励哦~" wx:if="{{dataList.length <= 0}}"></empty-tips>
  </view>
</view>
<van-popup show="{{ authorizeVisible }}">
  <authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>
<van-popup show="{{ giftRankTipsCompVisible }}">
  <gift-rank-tips-comp bind:evtcomp="evtcomp" item="{{item}}"></gift-rank-tips-comp>
</van-popup>