orders.wxml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!--pages/orders/orders.wxml-->
  2. <view class="container">
  3. <navigation-bar back="{{ false }}" 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">{{item.goodsName}}</view>
  23. <view class="goods-price">¥<text>{{item.originalPrice}}</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">x1</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="item-footer">
  34. <view class="order-price">
  35. <!-- 共计<text class="price-first">¥ </text><text class="price">{{item.amount}}</text> -->
  36. <view class="desc">共计</view>
  37. <view class="currentPrice">
  38. <text class="stuff">¥</text>
  39. <text class="priceZ">{{ item.integerPart }}</text>
  40. <text class="priceF">.{{ item.decimalPart }}</text>
  41. </view>
  42. <block wx:if="{{ item.discountPrice > 0 }}">
  43. <text class="line"></text>
  44. <text class="discountPrice">优惠 ¥{{ item.discountPrice }}</text>
  45. </block>
  46. </view>
  47. <button class="sure" type="primary" wx:if="{{ item.wechatStatus == 'WAIT_PAY' }}" catch:tap="onPay" data-id="{{item.id}}">继续支付</button>
  48. <button type="primary" wx:else catch:tap="onDetail" data-wechatstatus="{{item.wechatStatus}}" data-id="{{item.id}}" data-orderno="{{item.orderNo}}">查看订单</button>
  49. </view>
  50. </view>
  51. </view>
  52. </block>
  53. <block wx:else>
  54. <view class="empty-box">
  55. <image src="https://oss.dayaedu.com/ktyq/1731839238916.png"></image>
  56. <view class="empty-text">暂无订单</view>
  57. </view>
  58. </block>
  59. </scroll-view>
  60. <view class="well"></view>
  61. </view>
  62. <!-- 申请退款 -->
  63. <!-- <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound> -->
  64. </view>