order-result.wxml 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!--pages/orders/order-detail.wxml-->
  2. <view class="container">
  3. <navigation-bar title="{{ statusList[status].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="goods-content" wx:if="{{ goodsInfo.goods && goodsInfo.goods.length > 0 }}">
  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">¥ <text>{{ item.originalPrice }}</text></view>
  19. </view>
  20. <view class="goods-type">
  21. <view class="goods-card">{{ item.typeName }}</view>
  22. <view class="goods-num">x{{ item.goodsNum }}</view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="order-time">
  28. <view class="order-item">
  29. <view class="title">订单编号</view>
  30. <view class="value">
  31. {{ goodsInfo.orderNo }}
  32. <view class="copy" bind:tap="onCopy" data-orderno="{{goodsInfo.orderNo}}">复制</view>
  33. </view>
  34. </view>
  35. <view class="order-item">
  36. <view class="title">下单时间</view>
  37. <view class="value">{{ goodsInfo.createTime }}</view>
  38. </view>
  39. </view>
  40. <view class="order-content" wx:if="{{ (goodsInfo.wechatStatus == 'PAID' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
  41. <view class="qrcode-title" >{{ goodsInfo.wechatStatus == 'WAIT_USE' ? '请扫码激活' : '激活码已使用' }}</view>
  42. <view class="qrcode-line"></view>
  43. <view class="qrcode-section">
  44. <view class="qrcode-text" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}"><text>扫描二维码</text>或<text>点击激活按钮</text>使用</view>
  45. <view class="qrcode-text used" wx:else>登录<text>「音乐数字课堂」</text>APP,开启AI学练之旅~</view>
  46. <view class="qrcode-block">
  47. <view class="left-text">{{goodsInfo.wechatStatus == 'WAIT_USE' ? '待使用' : '已使用'}}</view>
  48. <view class="qrCodeSection">
  49. <view class="qrcode-wrap {{goodsInfo.wechatStatus == 'WAIT_USE' ? '' : 'used'}}">
  50. <image src="{{canvasImg}}" mode="scaleToFill" class='my_draw_canvas' style="opacity: {{ goodsInfo.wechatStatus == 'PAID' ? 0.5 : 1 }};" show-menu-by-longpress="true"></image>
  51. <view class="loader" wx:if="{{!canvasImg}}"></view>
  52. </view>
  53. <view class="qrcode-btn--section" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">
  54. <button class="download" disabled="{{ !canvasImg ? true : false }}" bind:tap="onDownload">下载二维码</button>
  55. <button class="submit" disabled="{{ !canvasImg ? true : false }}" bind:tap="onActivation" data-code="{{ goodsInfo.code }}">立即激活</button>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' || goodsInfo.wechatStatus == 'REFUNDING' }}">
  62. <view class="order-item">
  63. <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
  64. <view class="value">{{ goodsInfo.refundTime || '' }}</view>
  65. </view>
  66. <view class="order-item">
  67. <view class="title">退款金额</view>
  68. <view class="value">¥{{ goodsInfo.refundAmount }}</view>
  69. </view>
  70. <view class="order-item" wx:if="{{goodsInfo.wechatStatus != 'REFUNDING'}}">
  71. <view class="title">退款路径</view>
  72. <view class="value">{{ goodsInfo.refundStyleStr }}</view>
  73. </view>
  74. </view>
  75. </scroll-view>
  76. <canvas class='my_draw_canvas only_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas>
  77. <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
  78. <button type="primary" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' && tabIdx == 5 }}">申请退款</button>
  79. <block wx:else>
  80. <button type="primary" bind:tap="cancelRefound" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}" disabled="{{cancelRefoundStatus}}">取消退款</button>
  81. <button type="primary" wx:else bind:tap="onSubmit">再次购买</button>
  82. </block>
  83. </view>
  84. <!-- 客服 -->
  85. <service wx:if="{{serviceShow}}"></service>
  86. <!-- 退费 -->
  87. <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound>
  88. </view>