order-result.wxml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!--pages/orders/order-detail.wxml-->
  2. <view class="container">
  3. <navigation-bar color="#fff" title="订单详情"></navigation-bar>
  4. <scroll-view class="record-list" type="list" scroll-y bindscrolltolower="loadMore">
  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 class="btn-refound" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">申请退款</view>
  11. </view>
  12. <view class="tips" wx:if="{{ statusList[status].content }}">{{ statusList[status].content }}</view>
  13. </view>
  14. <view class="order-content">
  15. <view class="item-content" wx:for="{{ goodsInfo.goods }}" wx:key="index">
  16. <image class='goods-icon' src="{{ item.goodsUrl }}" mode="" />
  17. <view class="goods-desc">
  18. <view class="goodsInfo">
  19. <view class="goods-name">{{ item.goodsName }}</view>
  20. <view class="goods-price">¥ {{ item.originalPrice }}</view>
  21. </view>
  22. <view class="goods-type">
  23. <view class="goods-card">{{ item.typeName }}</view>
  24. <view class="goods-num">共 {{ item.goodsNum }} 件</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="qrcode-section" wx:if="{{ (goodsInfo.wechatStatus == 'PAID' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
  29. <view class="qrcode-wrap {{goodsInfo.wechatStatus == 'WAIT_USE' ? '' : 'used' }}">
  30. <image class="arrow arrow-left" src="./images/icon-arrow.png"></image>
  31. <image class="arrow arrow-right" src="./images/icon-arrow.png"></image>
  32. <image src="{{canvasImg}}" mode="scaleToFill" class='my_draw_canvas' style="opacity: {{ goodsInfo.wechatStatus == 'PAID' ? 0.4 : 1 }};" show-menu-by-longpress="true"></image>
  33. <view class="loader" wx:if="{{!canvasImg}}"></view>
  34. </view>
  35. <view class="qrcode-text" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">请扫描二维码激活使用</view>
  36. <view class="qrcode-text used" wx:else>二维码已使用</view>
  37. </view>
  38. </view>
  39. <canvas class='my_draw_canvas only_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas>
  40. <view class="order-time">
  41. <view class="order-item">
  42. <view class="title">订单编号</view>
  43. <view class="value">{{ goodsInfo.orderNo }}
  44. <view class="copy" bind:tap="onCopy" data-orderno="{{goodsInfo.orderNo}}">复制</view></view>
  45. </view>
  46. <view class="order-item">
  47. <view class="title">下单时间</view>
  48. <view class="value">{{ goodsInfo.createTime }}</view>
  49. </view>
  50. </view>
  51. <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' || goodsInfo.wechatStatus == 'REFUNDING' }}">
  52. <view class="order-item">
  53. <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
  54. <view class="value">{{ goodsInfo.refundTime }}</view>
  55. </view>
  56. <view class="order-item">
  57. <view class="title">退款金额</view>
  58. <view class="value red">¥{{ goodsInfo.refundAmount }}</view>
  59. </view>
  60. <view class="order-item" wx:if="{{goodsInfo.wechatStatus == 'REFUNDING'}}">
  61. <view class="title">退款路径</view>
  62. <view class="value">{{ goodsInfo.refundStyleStr }}</view>
  63. </view>
  64. </view>
  65. </view>
  66. </scroll-view>
  67. <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
  68. <!-- <button type="primary" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">申请退款</button>
  69. <block wx:else> -->
  70. <button type="primary" bind:tap="cancelRefound" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}">取消退款</button>
  71. <button type="primary" wx:else bind:tap="onSubmit">再次购买</button>
  72. <!-- </block> -->
  73. </view>
  74. <!-- 客服 -->
  75. <service bind:openService="openService"></service>
  76. <!-- 退费 -->
  77. <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound>
  78. </view>