order-result.wxml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!--pages/orders/order-detail.wxml-->
  2. <view class="container">
  3. <navigation-bar title="订单详情"></navigation-bar>
  4. <scroll-view class="record-list" type="list" scroll-y bindscrolltolower="loadMore">
  5. <view class="order-status" wx:if="{{statusList[status]}}">
  6. <view class="status">
  7. <image src="{{ statusList[status].logo }}"></image>
  8. <text>{{ statusList[status].title }}</text>
  9. </view>
  10. <view class="tips" wx:if="{{ statusList[status].content }}">{{ statusList[status].content }}</view>
  11. </view>
  12. <view class="order-content">
  13. <view class="item-content" wx:for="{{ goodsInfo.goods }}" wx:key="index">
  14. <image class='goods-icon' src="{{ item.goodsUrl }}" mode="" />
  15. <view class="goods-desc">
  16. <view class="goodsInfo">
  17. <view class="goods-name">{{ item.goodsName }}</view>
  18. <view class="goods-price">¥ {{ item.originalPrice }}</view>
  19. </view>
  20. <view class="goods-type">
  21. <view class="goods-card">{{ item.typeName }}</view>
  22. <view class="goods-num">x1</view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="qrcode-section" wx:if="{{ (goodsInfo.wechatStatus == 'PAID' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
  27. <view class="qrcode-wrap">
  28. <canvas class='my_draw_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas>
  29. </view>
  30. <view class="qrcode-text" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">请扫描二维码激活使用</view>
  31. <view class="qrcode-text used" wx:else>二维码已使用</view>
  32. </view>
  33. </view>
  34. <view class="order-time">
  35. <view class="order-item">
  36. <view class="title">订单号</view>
  37. <view class="value">{{ goodsInfo.orderNo }}</view>
  38. </view>
  39. <view class="order-item">
  40. <view class="title">下单时间</view>
  41. <view class="value">{{ goodsInfo.createTime }}</view>
  42. </view>
  43. </view>
  44. <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' }}">
  45. <view class="order-item">
  46. <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
  47. <view class="value">{{ goodsInfo.refundTime }}</view>
  48. </view>
  49. <view class="order-item">
  50. <view class="title">退款金额</view>
  51. <view class="value red">¥{{ goodsInfo.refundAmount }}</view>
  52. </view>
  53. <view class="order-item">
  54. <view class="title">退款路径</view>
  55. <view class="value">{{ goodsInfo.refundStyleStr }}</view>
  56. </view>
  57. </view>
  58. </scroll-view>
  59. <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
  60. <view class="orders" bind:tap="onService">
  61. <image src="./images/icon-service.png" />
  62. <text>客服</text>
  63. </view>
  64. <button type="primary" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">申请退款</button>
  65. <block wx:else>
  66. <button type="primary" bind:tap="cancelRefound" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}">取消退款</button>
  67. <button type="primary" wx:else bind:tap="onSubmit">再来一单</button>
  68. </block>
  69. </view>
  70. <service popShow="{{ showService }}" bind:changePop="changePop"></service>
  71. <!-- 退费 -->
  72. <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound>
  73. </view>