index.wxml 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <view class="content">
  2. <scroll-view scroll-y="true" style="height:calc({{windowHeight}}px - 40rpx)" bindscrolltolower="lower" wx:if="{{prize.length>0}}">
  3. <view class="prize" wx:for="{{prize}}" wx:key="index">
  4. <view class="prize_img">
  5. <image src="{{item.logo}}"></image>
  6. </view>
  7. <view class="prize_info">
  8. <view>{{item.title}}</view>
  9. <view>{{item.mtitle}}</view>
  10. <view>中奖时间:{{item.winTime}}</view>
  11. </view>
  12. <view class="prize_status">
  13. <view class="status {{item.status==2?'color':''}}">{{item.status==2?'已发奖':"待发奖"}}</view>
  14. <view class="active">
  15. <view class="btn1" wx:if="{{item.status==2 && item.needMailAddress && item.expNo && item.expCode}}" bindtap="logistics" data-item="{{item}}">查看物流</view>
  16. <view class="btn2" wx:if="{{item.status==1 && item.needMailAddress==1}}"data-item="{{item}}" bindtap="sub">{{item.fillType==0?'填写地址':'修改地址'}}</view>
  17. </view>
  18. </view>
  19. </view>
  20. </scroll-view>
  21. <view class="no_List" wx:else>
  22. <view class="article">暂无中奖记录,快去抽奖吧~</view>
  23. <view class="btn">
  24. <button type="warn" bindtap="getprize">去抽奖</button>
  25. </view>
  26. </view>
  27. </view>
  28. <sendAddress theam="{{theam}}" show="{{showAddress}}" prizeId="{{prizeId}}" bind:close="closeTip"></sendAddress>