order-result.wxml 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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>
  5. <view class="scroll-container">
  6. <view class="order-status" wx:if="{{statusList[status]}}">
  7. <view class="status">
  8. <image src="{{ statusList[status].logo }}"></image>
  9. <text>{{ statusList[status].title }}</text>
  10. </view>
  11. <view class="tips" wx:if="{{ statusList[status].content }}">{{ statusList[status].content }}</view>
  12. </view>
  13. <view class="order-content">
  14. <view class="item-content" wx:for="{{ goodsInfo.goods }}" wx:key="index">
  15. <image class='goods-icon' src="{{ item.goodsUrl }}" mode="" />
  16. <view class="goods-desc">
  17. <view class="goodsInfo">
  18. <view class="goods-name">{{ item.goodsName }}</view>
  19. <view class="goods-price"><text>¥</text>{{ item.originalPrice }}</view>
  20. </view>
  21. <view class="goods-type">
  22. <view class="goods-card">{{ item.typeName }}</view>
  23. <view class="goods-num">x1</view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="qrcode-section" wx:if="{{ (goodsInfo.wechatStatus == 'PAID' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
  28. <view class="qrcode-wrap">
  29. <!-- <canvas class='my_draw_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas> -->
  30. <image src="{{canvasImg}}" mode="scaleToFill" class='my_draw_canvas' style="opacity: {{ goodsInfo.wechatStatus == 'PAID' ? 0.4 : 1 }};" show-menu-by-longpress="true"></image>
  31. <view class="loader" wx:if="{{!canvasImg}}"></view>
  32. </view>
  33. <view class="qrcode-text" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">扫描二维码或点击激活按钮使用</view>
  34. <view class="qrcode-text used" wx:else>二维码已使用</view>
  35. <view class="qrcode-btn--section" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">
  36. <button class="download" disabled="{{ !canvasImg ? true : false }}" bind:tap="onDownload">下载二维码</button>
  37. <button class="submit" disabled="{{ !canvasImg ? true : false }}" bind:tap="onActivation" data-code="{{ goodsInfo.code }}">立即激活</button>
  38. </view>
  39. </view>
  40. </view>
  41. <canvas class='my_draw_canvas only_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas>
  42. <view class="order-time">
  43. <view class="order-item">
  44. <view class="title">订单号</view>
  45. <view class="value">{{ goodsInfo.orderNo }}
  46. <view class="copy" bind:tap="onCopy" data-orderno="{{goodsInfo.orderNo}}">复制</view></view>
  47. </view>
  48. <view class="order-item">
  49. <view class="title">下单时间</view>
  50. <view class="value">{{ goodsInfo.createTime }}</view>
  51. </view>
  52. </view>
  53. <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' || goodsInfo.wechatStatus == 'REFUNDING' }}">
  54. <view class="order-item">
  55. <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
  56. <view class="value">{{ goodsInfo.refundTime }}</view>
  57. </view>
  58. <view class="order-item">
  59. <view class="title">退款金额</view>
  60. <view class="value red">¥{{ goodsInfo.refundAmount }}</view>
  61. </view>
  62. <view class="order-item" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' }}">
  63. <view class="title">退款路径</view>
  64. <view class="value">{{ goodsInfo.refundStyleStr }}</view>
  65. </view>
  66. </view>
  67. <view class="btn-refound" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' && tabIdx == 5 }}">申请退款</view>
  68. </view>
  69. </scroll-view>
  70. <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
  71. <view class="orders" bind:tap="onService">
  72. <image src="./images/icon-service.png" />
  73. <text>客服</text>
  74. </view>
  75. <!-- <button type="primary" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">申请退款</button>
  76. <block wx:else> -->
  77. <button type="primary" bind:tap="cancelRefound" disabled="{{cancelRefoundStatus}}" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}">取消退款</button>
  78. <button type="primary" wx:else bind:tap="onSubmit">再来一单</button>
  79. <!-- </block> -->
  80. </view>
  81. <service popShow="{{ showService }}" bind:changePop="changePop"></service>
  82. <!-- 退费 -->
  83. <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound>
  84. </view>