myGroupon.wxml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <view class="container">
  2. <view class="orders-switch">
  3. <view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab" data-index='0'>
  4. <view class="txt">发起的团购</view>
  5. </view>
  6. <view class="item {{ showType == 1 ? 'active' : ''}}" bindtap="switchTab" data-index='1'>
  7. <view class="txt">参加的团购</view>
  8. </view>
  9. </view>
  10. <view class="no-order" wx:if="{{orderList.length <= 0}}">
  11. <view class="c">
  12. <text>尚未参加任何团购</text>
  13. </view>
  14. </view>
  15. <view class="orders">
  16. <navigator url="../grouponDetail/grouponDetail?id={{item.id}}" class="order" open-type="navigate" wx:for="{{orderList}}" wx:key="id">
  17. <view class="h">
  18. <van-tag type="primary" wx:if="{{item.groupon.status === 1}}">开团中</van-tag>
  19. <van-tag type="success" wx:if="{{item.groupon.status === 2}}">开团成功</van-tag>
  20. <van-tag type="danger" wx:if="{{item.groupon.status === 3}}">开团失败</van-tag>
  21. <van-tag round type="warning" wx:if="{{!item.isCreator}}">{{item.creator}}发起</van-tag>
  22. </view>
  23. <view class="h">
  24. <view class="l">订单编号:{{item.orderSn}}</view>
  25. <view class="r">{{item.orderStatusText}}</view>
  26. </view>
  27. <view class="j">
  28. <view class="l">团购立减:¥{{item.rules.discount}}</view>
  29. <view class="r">参与时间:{{item.groupon.addTime}}</view>
  30. </view>
  31. <view class="i">
  32. <view class="l">团购要求:{{item.rules.discountMember}}人</view>
  33. <view class="r">当前参团:{{item.joinerCount}}人</view>
  34. </view>
  35. <view class="goods" wx:for="{{item.goodsList}}" wx:key="id" wx:for-item="gitem">
  36. <view class="img">
  37. <image src="{{gitem.picUrl}}"></image>
  38. </view>
  39. <view class="info">
  40. <text class="name">{{gitem.goodsName}}</text>
  41. <text class="number">共{{gitem.number}}件商品</text>
  42. </view>
  43. <view class="status"></view>
  44. </view>
  45. <view class="b">
  46. <view class="l">实付:¥{{item.actualPrice}}</view>
  47. </view>
  48. </navigator>
  49. </view>
  50. </view>