award-item.wxml 758 B

1234567891011
  1. <view class="award-item" bindtap='handleClick'>
  2. <image class="award-img" src="{{award.cover_images ? award.cover_images[0] : ''}}" mode="scaleToFill" lazy-load="true" binderror="" bindload=""></image>
  3. <view class="award-bottom">
  4. <text class="award-title">{{award.title}} x {{award.winner_count}}</text>
  5. <text class="award-time">{{award.draw_ts}} 自动开奖</text>
  6. <view class="award-btn {{award.state === '2' ? 'done' : award.state === '0' ? 'done' : award.user_draw_state ? 'joined' : ''}}"
  7. wx:if="{{!custom}}">{{award.state === '2' ? '已结束' : award.state === '0' ? '未开始' : award.user_draw_state ? '已参与' : '点击抽奖'}}</view>
  8. <view class="award-btn"
  9. wx:if="{{custom}}">点击进入</view>
  10. </view>
  11. </view>