myGroupon.wxml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. <image src="http://nos.netease.com/mailpub/hxm/yanxuan-wap/p/20150730/style/img/icon-normal/noCart-a8fe3f12e5.png" />
  13. <text>尚未参加任何团购</text>
  14. </view>
  15. </view>
  16. <view class="orders">
  17. <navigator url="../grouponDetail/grouponDetail?id={{item.id}}" class="order" open-type="navigate" wx:for="{{orderList}}" wx:key="id">
  18. <view class="h">
  19. <view class="l">订单编号:{{item.orderSn}}</view>
  20. <view class="r">{{item.orderStatusText}}</view>
  21. </view>
  22. <view class="j">
  23. <view class="l">团购立减:¥{{item.rules.discount}}</view>
  24. <view class="r">参与时间:{{item.groupon.addTime}}</view>
  25. </view>
  26. <view class="i">
  27. <view class="l">团购要求:{{item.rules.discountMember}}人</view>
  28. <view class="r">当前参与:{{item.joinerCount}}</view>
  29. </view>
  30. <view class="goods" wx:for="{{item.goodsList}}" wx:key="id" wx:for-item="gitem">
  31. <view class="img">
  32. <image src="{{gitem.picUrl}}"></image>
  33. </view>
  34. <view class="info">
  35. <text class="name">{{gitem.goodsName}}</text>
  36. <text class="number">共{{gitem.number}}件商品</text>
  37. </view>
  38. <view class="status"></view>
  39. </view>
  40. <view class="b">
  41. <view class="l">实付:¥{{item.actualPrice}}</view>
  42. <view class="capsule-tag">
  43. <zan-capsule color="#a78845" leftText="状态" rightText="{{item.joinerCount>=item.rules.discountMember?'已达成':'团购中'}}" />
  44. </view>
  45. <view class="capsule-tag">
  46. <zan-capsule color="#a78845" leftText="发起" rightText="{{item.creator}}" wx:if="{{!item.isCreator}}" />
  47. </view>
  48. </view>
  49. </navigator>
  50. </view>
  51. </view>