order-result.wxml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 >
  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="innerGroup">
  22. <view class="goods-card" wx:if="{{ item.typeName }}">{{item.typeName}}</view>
  23. <view wx:if="{{ item.giftStatus === 'GIFTED' }}" class="innerFree">已<text>赠{{ item.giftLongTime }}</text></view>
  24. </view>
  25. <view class="goods-num">x{{item.goodsNum}}</view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="order-time">
  31. <view class="order-item">
  32. <view class="title">订单编号</view>
  33. <view class="value">
  34. {{ goodsInfo.orderNo }}
  35. <view class="copy" bind:tap="onCopy" data-orderno="{{goodsInfo.orderNo}}">复制</view>
  36. </view>
  37. </view>
  38. <view class="order-item">
  39. <view class="title">下单时间</view>
  40. <view class="value">{{ goodsInfo.createTime }}</view>
  41. </view>
  42. </view>
  43. <view class="order-content" wx:if="{{ (goodsInfo.wechatStatus == 'PAID' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
  44. <!-- <view class="qrcode-title" >{{ goodsInfo.wechatStatus == 'WAIT_USE' ? '请扫码激活' : '激活码已使用' }}</view> -->
  45. <view class="qrcode-text" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}"><text>扫描二维码</text>或<text>点击激活按钮</text>使用<block wx:if="{{ goodsInfo.giftStatus === 'WAIT_GIFT' }}">
  46. ,<text class="free">当天激活</text><text class="free blod">赠{{ goodsInfo.giftLongTime }}</text>
  47. </block>
  48. </view>
  49. <view class="qrcode-text used" wx:else><view>下载<text>「音乐数字课堂」</text>APP,畅享音乐之旅</view><view class="downloadApp" bind:tap="onDownloadApp">下载APP</view>
  50. </view>
  51. <view class="qrcode-line"></view>
  52. <view class="qrcode-section">
  53. <view class="qrcode-block">
  54. <view class="left-text">{{goodsInfo.wechatStatus == 'WAIT_USE' ? '待使用' : '已使用'}}</view>
  55. <view class="qrCodeSection">
  56. <view class="qrcode-wrap {{goodsInfo.wechatStatus == 'WAIT_USE' ? '' : 'used'}}">
  57. <image src="{{canvasImg}}" mode="scaleToFill" class='my_draw_canvas' style="opacity: {{ goodsInfo.wechatStatus == 'PAID' ? 0.5 : 1 }};" show-menu-by-longpress="true"></image>
  58. <view class="loader" wx:if="{{!canvasImg}}"></view>
  59. </view>
  60. <view class="qrcode-btn--section" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">
  61. <button class="download" disabled="{{ !canvasImg ? true : false }}" bind:tap="onDownload">下载二维码</button>
  62. <button class="submit" disabled="{{ !canvasImg ? true : false }}" bind:tap="onActivation" data-code="{{ goodsInfo.code }}">立即激活</button>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="download-task" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">
  68. <image mode="widthFix" src="https://oss.dayaedu.com/ktyq/1733725573779.png"></image>
  69. </view>
  70. </view>
  71. <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' || goodsInfo.wechatStatus == 'REFUNDING' }}">
  72. <view class="order-item">
  73. <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
  74. <view class="value">{{ goodsInfo.refundTime || '' }}</view>
  75. </view>
  76. <view class="order-item">
  77. <view class="title">退款金额</view>
  78. <view class="value">¥{{ goodsInfo.refundAmount }}</view>
  79. </view>
  80. <view class="order-item" wx:if="{{goodsInfo.wechatStatus != 'REFUNDING'}}">
  81. <view class="title">退款路径</view>
  82. <view class="value">{{ goodsInfo.refundStyleStr }}</view>
  83. </view>
  84. </view>
  85. <view class="scroll-brank"></view>
  86. </scroll-view>
  87. <canvas class='my_draw_canvas only_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas>
  88. <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
  89. <block wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">
  90. <button type="primary" class="refoundWaiteUse" bind:tap="useRefound">申请退款</button>
  91. <button type="primary" bind:tap="onSubmit">再次购买</button>
  92. </block>
  93. <block wx:else>
  94. <button type="primary" bind:tap="cancelRefound" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}" disabled="{{cancelRefoundStatus}}">取消退款</button>
  95. <button type="primary" wx:else bind:tap="onSubmit">再次购买</button>
  96. </block>
  97. </view>
  98. <!-- 客服 -->
  99. <service wx:if="{{serviceShow}}"></service>
  100. <!-- 退费 -->
  101. <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound>
  102. </view>