order-result.wxml 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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>激活</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="qrcode-wrap {{goodsInfo.wechatStatus == 'WAIT_USE' ? '' : 'used'}}">
  49. <image src="{{canvasImg}}" mode="scaleToFill" class='my_draw_canvas' style="opacity: {{ goodsInfo.wechatStatus == 'PAID' ? 0.5 : 1 }};" show-menu-by-longpress="true"></image>
  50. <view class="loader" wx:if="{{!canvasImg}}"></view>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' || goodsInfo.wechatStatus == 'REFUNDING' }}">
  56. <view class="order-item">
  57. <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
  58. <view class="value">{{ goodsInfo.refundTime || '' }}</view>
  59. </view>
  60. <view class="order-item">
  61. <view class="title">退款金额</view>
  62. <view class="value">¥{{ goodsInfo.refundAmount }}</view>
  63. </view>
  64. <view class="order-item" wx:if="{{goodsInfo.wechatStatus != 'REFUNDING'}}">
  65. <view class="title">退款路径</view>
  66. <view class="value">{{ goodsInfo.refundStyleStr }}</view>
  67. </view>
  68. </view>
  69. </scroll-view>
  70. <canvas class='my_draw_canvas only_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas>
  71. <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
  72. <button type="primary" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' && tabIdx == 5 }}">申请退款</button>
  73. <block wx:else>
  74. <button type="primary" bind:tap="cancelRefound" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}" disabled="{{cancelRefoundStatus}}">取消退款</button>
  75. <button type="primary" wx:else bind:tap="onSubmit">再次购买</button>
  76. </block>
  77. </view>
  78. <!-- 客服 -->
  79. <service wx:if="{{serviceShow}}"></service>
  80. <!-- 退费 -->
  81. <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound>
  82. </view>