orders.wxml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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' || item.wechatStatus == 'WAIT_USE' || item.wechatStatus == 'REFUNDING' ? 'red' : '' }}">{{ 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">
  23. <text class="{{ outerItem.wechatStatus == 'WAIT_PAY' || outerItem.wechatStatus == 'WAIT_USE' ? 'red' : '' }}">{{ outerItem.statusName }}</text>
  24. {{item.goodsName}}
  25. </view>
  26. <view class="goods-price">
  27. <text class="stuff">¥ </text>
  28. <text class="priceZ">{{ item.integerPart }}</text>
  29. <text class="priceF">.{{ item.decimalPart }}</text>
  30. </view>
  31. <!-- <view class="goods-price">¥ {{(item.originalPrice)}}</view> -->
  32. </view>
  33. <view class="goods-type">
  34. <view class="goods-card" wx:if="{{ item.typeName }}">{{item.typeName}}</view>
  35. <view class="goods-num">共 {{ item.goodsNum }} 件</view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="item-footer">
  40. <view class="order-price">
  41. <!-- 订单金额:<text class="price-first">¥ </text><text class="price">{{item.amount}}</text> -->
  42. </view>
  43. <block wx:if="{{ item.wechatStatus == 'REFUNDING' || (item.wechatStatus == 'WAIT_USE' && tabIdx == 5) }}" wx:key="block">
  44. <button wx:if="{{ item.wechatStatus == 'REFUNDING' }}" type="primary" wx:if="{{ item.wechatStatus == 'REFUNDING' }}" catch:tap="onRefounded" data-id="{{item.id}}" disabled="{{ cancelRefoundStatus }}">取消退款</button>
  45. <button wx:else type="primary" catch:tap="onRefounded" data-id="{{item.id}}" disabled="{{ cancelRefoundStatus }}">申请退款</button>
  46. </block>
  47. <block wx:else wx:key="block">
  48. <button class="sure" type="primary" wx:if="{{ item.wechatStatus == 'WAIT_PAY' }}" catch:tap="onPay" data-id="{{item.id}}">继续支付</button>
  49. <button type="primary" wx:else catch:tap="onOne" data-id="{{item.id}}">再次购买</button>
  50. </block>
  51. </view>
  52. </view>
  53. </view>
  54. </block>
  55. <block wx:else>
  56. <view class="empty-box">
  57. <image src="https://oss.dayaedu.com/ktyq/1732697111162.png"></image>
  58. <view class="empty-text">暂无订单</view>
  59. </view>
  60. </block>
  61. </scroll-view>
  62. </view>
  63. <!-- 客服 -->
  64. <service wx:if="{{serviceShow}}"></service>
  65. <!-- 申请退款 -->
  66. <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound>
  67. </view>