orders.wxml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!--pages/orders/orders.wxml-->
  2. <view class="container">
  3. <navigation-bar title="我的订单"></navigation-bar>
  4. <view class="record-content">
  5. <view class="record-tab">
  6. <view wx:for="{{tabList}}" wx:key="id" class="{{item.id == tabIdx ? 'active' : ''}}" catch:tap="switchTab" data-idx="{{item.id}}">
  7. {{item.label}}
  8. </view>
  9. </view>
  10. <scroll-view class="record-list" type="list" scroll-y bindscrolltolower="loadMore">
  11. <block wx:if="{{ recordList.length }}">
  12. <view class="list-item-group">
  13. <view class="list-item" wx:for="{{recordList}}" wx:key="index" data-orderno="{{item.orderNo}}" data-wechatstatus="{{item.wechatStatus}}" bind:tap="onDetail">
  14. <view class="item-top">
  15. <view class="item-mid">订单号:{{ item.orderNo }}</view>
  16. <text class="{{ item.wechatStatus == 'WAIT_PAY' ? 'red' : item.wechatStatus == 'CLOSED' ? 'cancel' : '' }}">{{ item.statusName }}</text>
  17. </view>
  18. <view class="item-content" wx:for="{{item.studentPaymentOrderDetails}}" wx:key="studentIndex">
  19. <image class='goods-icon' src="{{item.goodsUrl}}" mode="" />
  20. <view class="goods-desc">
  21. <view class="goodsInfo">
  22. <view class="goods-name">{{item.goodsName}}</view>
  23. <view class="goods-price">¥<text>{{item.salePrice}}</text></view>
  24. </view>
  25. <view class="goods-type">
  26. <view>
  27. <view class="goods-card" wx:if="{{ item.typeName }}">{{item.typeName}}</view>
  28. </view>
  29. <view class="goods-num">优惠前 ¥{{ item.originalPrice }}</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="item-footer">
  34. <view class="order-price">
  35. <view class="desc">共{{ item.studentPaymentOrderDetails.length }}件,共减</view>
  36. <view class="discountPrice">¥<text>{{ item.discountPrice }}</text></view>
  37. <view class="currentPrice">
  38. <text class="before">应付:</text>
  39. <text class="stuff">¥</text>
  40. <text class="priceZ">{{ item.integerPart }}.{{ item.decimalPart }}</text>
  41. <!-- <text class="priceF"></text> -->
  42. </view>
  43. </view>
  44. <button class="sure" type="primary" wx:if="{{ item.wechatStatus == 'WAIT_PAY' }}" catch:tap="onPay" data-id="{{item.id}}">继续支付</button>
  45. </view>
  46. </view>
  47. </view>
  48. </block>
  49. <block wx:else>
  50. <view class="empty-box">
  51. <image src="https://oss.dayaedu.com/ktyq/1739864764800.png"></image>
  52. <view class="empty-text">暂无订单</view>
  53. </view>
  54. </block>
  55. </scroll-view>
  56. <!-- <view class="bottom-section">
  57. <view class="orders" bind:tap="onOne">
  58. <image src="./images/icon-home.png" />
  59. <text>首页</text>
  60. </view>
  61. <view class="orders active">
  62. <image src="./images/icon-order-active.png" />
  63. <text>订单</text>
  64. </view>
  65. </view> -->
  66. </view>
  67. <!-- 申请退款 -->
  68. <!-- <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound> -->
  69. </view>