orders.wxml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. <block wx:if="{{ item.originalPrice > item.salePrice }}">
  30. <view class="goods-num">优惠前 ¥<text>{{ item.originalPrice }}</text></view>
  31. </block>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="item-footer">
  36. <view class="goodsInfo-count">
  37. <view class="goods-price">
  38. <text class="before">共{{ item.studentPaymentOrderDetails.length }}件 <block wx:if="{{ item.discountPrice > 0 }}">,共减</block></text>
  39. <block wx:if="{{ item.discountPrice > 0 }}">
  40. <text class="stuff red">¥</text>
  41. <text class="priceZ">{{ item.discountPrice }}</text>
  42. </block>
  43. <!-- <text class="priceF">.{{ goodsInfo.decimalPart }}</text> -->
  44. <text class="afterTxt">应付:</text>
  45. <text class="stuff">¥</text>
  46. <text class="afterPrice">{{ item.integerPart }}.{{ item.decimalPart }}</text>
  47. </view>
  48. </view>
  49. <button class="sure" type="primary" wx:if="{{ item.wechatStatus == 'WAIT_PAY' }}" catch:tap="onPay" data-id="{{item.id}}">继续支付</button>
  50. </view>
  51. </view>
  52. </view>
  53. </block>
  54. <block wx:else>
  55. <view class="empty-box">
  56. <image src="https://oss.dayaedu.com/ktyq/1739864764800.png"></image>
  57. <view class="empty-text">暂无订单</view>
  58. </view>
  59. </block>
  60. </scroll-view>
  61. <!-- <view class="bottom-section">
  62. <view class="orders" bind:tap="onOne">
  63. <image src="./images/icon-home.png" />
  64. <text>首页</text>
  65. </view>
  66. <view class="orders active">
  67. <image src="./images/icon-order-active.png" />
  68. <text>订单</text>
  69. </view>
  70. </view> -->
  71. </view>
  72. <!-- 申请退款 -->
  73. <!-- <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound> -->
  74. </view>