index.wxml 2.0 KB

1234567891011121314151617181920212223242526
  1. <navbar parameter='{{parameter}}'></navbar>
  2. <view class='bargain-record'>
  3. <view class='item' wx:for='{{bargainList}}' wx:key='index'>
  4. <view class='picTxt acea-row row-between-wrapper'>
  5. <view class='pictrue'><image src='{{item.image}}'></image></view>
  6. <view class='text acea-row row-column-around'>
  7. <view class='name line1'>{{item.title}}</view>
  8. <view class='time'>倒计时 <text class='font-color'>{{item.day}}</text> 天 <text class='font-color'>{{item.hour}}</text> 时 <text class='font-color'>{{item.minute}}</text> 分 <text class='font-color'>{{item.second}}</text> 秒</view>
  9. <view class='money font-color'>已砍至<text class='symbol'>¥</text><text class='num'>{{item.residue_price}}</text></view>
  10. </view>
  11. </view>
  12. <view class='bottom acea-row row-between-wrapper'>
  13. <view class='purple' wx:if='{{item.is_del == 0 && item.status == 1}}'>活动进行中</view>
  14. <view class='success' wx:elif='{{item.is_del == 0 && item.status == 3}}'>砍价成功</view>
  15. <view class='end' wx:elif='{{item.is_del == 0 && item.status == 2}}'>活动已结束</view>
  16. <view class='end' wx:else='{{item.is_del == 1}}'>活动已取消</view>
  17. <view class='acea-row row-middle row-right'>
  18. <view class='bnt cancel' data-item="{{item}}" wx:if='{{item.is_del == 0 && item.status == 1}}' bindtap='cancelBargain'>取消活动</view>
  19. <view class='bnt bg-color' data-item="{{item}}" wx:if='{{item.is_del == 0 && item.status == 1 && item.residue_price > item.bargain_price_min}}' bindtap='toBargain'>继续砍价</view>
  20. <view class='bnt bg-color' data-item="{{item}}" wx:elif='{{item.is_del == 0 && item.status == 1 && item.residue_price == item.bargain_price_min}}' bindtap='toBargain'>立即付款</view>
  21. <view class='bnt bg-color' data-item="{{item}}" wx:else='{{item.status == 3}}' bindtap='toBargainList'>重开一个</view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>