order-result.wxml 5.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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' && tabIdx == 5 }}">申请退款</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">
  21. <text class="stuff">¥ </text>
  22. <text class="priceZ">{{ item.integerPart }}</text>
  23. <text class="priceF">.{{ item.decimalPart }}</text>
  24. </view>
  25. <!-- <view class="goods-price">¥ {{ item.originalPrice }}</view> -->
  26. </view>
  27. <view class="goods-type">
  28. <view class="goods-card">{{ item.typeName }}</view>
  29. <view class="goods-num">{{ item.goodsNum }}</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="qrcode-section" wx:if="{{ (goodsInfo.wechatStatus == 'PAID' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
  34. <view class="qrcode-wrap {{goodsInfo.wechatStatus == 'WAIT_USE' ? '' : 'used' }}">
  35. <image class="arrow arrow-left" src="./images/icon-arrow.png"></image>
  36. <image class="arrow arrow-right" src="./images/icon-arrow.png"></image>
  37. <image src="{{canvasImg}}" mode="scaleToFill" class='my_draw_canvas' style="opacity: {{ goodsInfo.wechatStatus == 'PAID' ? 0.4 : 1 }};" show-menu-by-longpress="true"></image>
  38. <view class="loader" wx:if="{{!canvasImg}}"></view>
  39. </view>
  40. <view>
  41. <view class="qrcode-text" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">扫描二维码或点击激活按钮使用</view>
  42. <view class="qrcode-text used" wx:else>二维码已激活</view>
  43. </view>
  44. <view class="qrcode-btn--section" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">
  45. <button class="download" disabled="{{ !canvasImg ? true : false }}" bind:tap="onDownload">下载二维码</button>
  46. <button class="submit" disabled="{{ !canvasImg ? true : false }}" bind:tap="onActivation" data-code="{{ goodsInfo.code }}">立即激活</button>
  47. </view>
  48. </view>
  49. </view>
  50. <canvas class='my_draw_canvas only_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas>
  51. <view class="order-time">
  52. <view class="order-item">
  53. <view class="title">订单编号</view>
  54. <view class="value">{{ goodsInfo.orderNo }}
  55. <view class="copy" bind:tap="onCopy" data-orderno="{{goodsInfo.orderNo}}">复制</view></view>
  56. </view>
  57. <view class="order-item">
  58. <view class="title">创建时间</view>
  59. <view class="value">{{ goodsInfo.createTime }}</view>
  60. </view>
  61. </view>
  62. <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' || goodsInfo.wechatStatus == 'REFUNDING' }}">
  63. <view class="order-item">
  64. <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
  65. <view class="value">{{ goodsInfo.refundTime }}</view>
  66. </view>
  67. <view class="order-item">
  68. <view class="title">退款金额</view>
  69. <view class="value red">{{ goodsInfo.refundAmount }}</view>
  70. </view>
  71. <view class="order-item" wx:if="{{goodsInfo.wechatStatus == 'REFUNDED'}}">
  72. <view class="title">退款路径</view>
  73. <view class="value">{{ goodsInfo.refundStyleStr }}</view>
  74. </view>
  75. </view>
  76. </view>
  77. </scroll-view>
  78. <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
  79. <!-- <button type="primary" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">申请退款</button>
  80. <block wx:else> -->
  81. <button type="primary" bind:tap="cancelRefound" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}" disabled="{{cancelRefoundStatus}}">取消退款</button>
  82. <button type="primary" wx:else bind:tap="onSubmit">再次购买</button>
  83. <!-- </block> -->
  84. </view>
  85. <!-- 客服 -->
  86. <service wx:if="{{serviceShow}}"></service>
  87. <!-- 退费 -->
  88. <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound>
  89. </view>