orderList.wxml 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!-- pages/goods/orderList/orderList.wxml -->
  2. <wxs module="tool" src="../../../app.wxs" />
  3. <view class="tabs-wrap flex-align-center">
  4. <view class="item flex-center {{current == 4 ? 'active' : ''}}" bindtap="onTabsChange" data-id="4">
  5. 全部
  6. </view>
  7. <view class="item flex-center {{current == 1 ? 'active' : ''}}" bindtap="onTabsChange" data-id="1">
  8. 待支付
  9. </view>
  10. <view class="item flex-center {{current == 2 ? 'active' : ''}}" bindtap="onTabsChange" data-id="2">
  11. 待取货
  12. </view>
  13. <view class="item flex-center {{current == 3 ? 'active' : ''}}" bindtap="onTabsChange" data-id="3">
  14. 已完成
  15. </view>
  16. </view>
  17. <view class="tabs">
  18. <view class="tabs-content">
  19. <navigator url="/pages/goods/orderDetail/orderDetail?id={{item.id}}" hover-class="none" wx:for="{{list}}" wx:key="index">
  20. <view class="item tabs-radius current{{current}}">
  21. <view class="item-top flex-align-center ">
  22. <text class="flex1 ellipsis" style="font-size: 36rpx;">{{item.store_name}}</text>
  23. <!-- 状态,-3已退款,-2退款中,-1已取消,0待支付,1已支付,待取货,2已取货 -->
  24. <!-- 状态-1已取消,0待支付,1已支付,3.已结算 -->
  25. <text class="state" style="color: #fa7d22;">{{item.status_text}}</text>
  26. </view>
  27. <view>
  28. <view class="item-content list-info">
  29. <view class="content-left content-project" wx:if="{{(item.good.length+item.plus.length)==1}}">
  30. <image wx:for="{{item.good}}" wx:key="index" class="img content-image" src="{{item.cover_url}}"></image>
  31. <text class="project-name">{{item.good[0].goods_name}}</text>
  32. </view>
  33. <view class="content-left projects-list" wx:else>
  34. <image wx:for="{{item.good}}" wx:key="index" class="img" src="{{item.cover_url}}"></image>
  35. <image wx:for="{{item.plus}}" wx:key="index" class="img" src="{{item.plus_url}}"></image>
  36. </view>
  37. <view class="content-text-box">
  38. 共{{item.sum}}件
  39. </view>
  40. </view>
  41. </view>
  42. <view class="price-all">
  43. <text>¥</text>
  44. <text>{{item.price}}</text>
  45. </view>
  46. <view class="item-btn flex-align-center" wx:if="{{item.status == 0}}">
  47. <view class="btn cancel-btn flex-center" catchtap="onCancelOrder" data-id="{{item.id}}">
  48. 取消订单
  49. </view>
  50. <view class="btn use-btn flex-center" catchtap="onPay" data-id="{{item.id}}" data-money="{{item.price}}">去支付</view>
  51. </view>
  52. <view class="item-btn flex-align-center" wx:if="{{item.status != 0}}">
  53. <text style="font-size: 28rpx;color: #999;">预约费用:</text>
  54. <text style="font-size: 36rpx;margin-right:28rpx;">¥{{item.price}}</text>
  55. </view>
  56. </view>
  57. </navigator>
  58. <view class="no-data" style="display: {{list.length == 0 ? 'block' : 'none'}};">暂无数据~</view>
  59. </view>
  60. </view>
  61. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ payNow }}" bind:close="onClosePay">
  62. <view class="coupon-popup payType">
  63. <view class="top flex-align-center">
  64. <text style="text-align: center;"></text>
  65. <image src="/images/icon_20.png" class="close-img" bindtap="onClosePay" />
  66. </view>
  67. <view class="moneyShow"><text>¥</text>{{ payMoney }}</view>
  68. <view class="select-pay-methon" catchtap="pay_methonw">
  69. <image class="pay-img" src="/images/wx_pay.png"></image>
  70. <view class="pay-title">微信支付</view>
  71. <!-- <view class="pay-money"><text>¥</text>800</view> -->
  72. <image class="select-activity" src="{{pay_methon==1?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  73. </view>
  74. <view class="select-pay-methon" catchtap="pay_methonc" style="margin-bottom: 15rpx;">
  75. <image class="pay-img" src="/images/joli_pay.png"></image>
  76. <view class="pay-title">储值支付</view>
  77. <view class="pay-money"><text>¥</text>{{inserllAmount}}</view>
  78. <image class="select-activity" src="{{pay_methon==2?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  79. </view>
  80. <view class="coupon-popup-btm flex-center">
  81. <view class="coupon-popup-btm-btn flex-center" bindtap="payNow">支付</view>
  82. </view>
  83. </view>
  84. </wux-popup>