order-result.wxml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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">¥ {{ item.originalPrice }}</view>
  19. </view>
  20. <view class="goods-type">
  21. <view class="goods-card">{{ item.typeName }}</view>
  22. <view class="goods-num">共 {{ 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>登录「音乐数字课堂」APP,开启AI学练之旅~</view>
  46. <view class="qrcode-block">
  47. <view class="left-text">待使用</view>
  48. <view class="qrcode-wrap">
  49. <canvas class='my_draw_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' }}">
  55. <view class="order-item">
  56. <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
  57. <view class="value">{{ goodsInfo.refundTime }}</view>
  58. </view>
  59. <view class="order-item">
  60. <view class="title">退款金额</view>
  61. <view class="value red">¥{{ goodsInfo.refundAmount }}</view>
  62. </view>
  63. <view class="order-item">
  64. <view class="title">退款路径</view>
  65. <view class="value">{{ goodsInfo.refundStyleStr }}</view>
  66. </view>
  67. </view>
  68. </scroll-view>
  69. <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
  70. <button type="primary" bind:tap="useRefound" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">申请退款</button>
  71. <block wx:else>
  72. <button type="primary" bind:tap="cancelRefound" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}">取消退款</button>
  73. <button type="primary" wx:else bind:tap="onSubmit">再次购买</button>
  74. </block>
  75. </view>
  76. <service wx:if="{{serviceShow}}"></service>
  77. <view class="useRefound-pop" wx:if="{{ refoundStatus }}">
  78. <view class="useRefound-mask"></view>
  79. <view class="useRefound-container">
  80. <image bind:tap="onRefoundClose" class="icon-close" src="./images/icon-close.png"></image>
  81. <view class="use-title">选择退款原因</view>
  82. <view class="use-form">
  83. <textarea placeholder="请输入您的退款原因" maxlength="100" bindinput="textareaInput" value="{{ refoundValue }}"></textarea>
  84. <view class="num">{{ refoundValue.length }}/100</view>
  85. </view>
  86. <view class="use-form__input">
  87. <view class="title"><text class="red">*</text>联系方式 <text class="sencd">(必填)</text></view>
  88. <input placeholder="请输入手机号码" type="number" maxlength="11" bindinput="phoneInput" value="{{ refoundPhone }}"></input>
  89. </view>
  90. <view class="btnSection">
  91. <button type="primary" bind:tap="onRefound">申请退款</button>
  92. </view>
  93. </view>
  94. </view>
  95. </view>