order-result.wxml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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="goods-title">价格明细</view>
  14. <view class="item-content" wx:for="{{ goodsInfo.goods }}" wx:key="index">
  15. <image class='goods-icon' src="{{item.goodsUrl}}" mode="" />
  16. <view class="goods-desc">
  17. <view class="goodsInfo">
  18. <view class="goods-name">{{ item.goodsName }}</view>
  19. </view>
  20. <view class="goods-type">
  21. <view class="goods-price">
  22. <text class="stuff">¥</text>
  23. <text class="priceZ">{{ item.integerPart }}</text>
  24. <text class="priceF">.{{ item.decimalPart }}</text>
  25. </view>
  26. <view class="origin-price">|日常价<text>¥ {{item.originalPrice}}</text></view>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="goodsInfos">
  31. <view class="qrcode-line"></view>
  32. <view class="goodsInfo-item">
  33. <text class="title">合计</text>
  34. <view class="goods-price">
  35. <text class="stuff">¥</text>
  36. <text class="priceZ">{{ goodsInfo.integerPart }}</text>
  37. <text class="priceF">.{{ goodsInfo.decimalPart }}</text>
  38. </view>
  39. </view>
  40. <view class="goodsInfo-item" wx:if="{{ goodsInfo.originalPrice > goodsInfo.paymentCashAmount }}">
  41. <text class="title">已省</text>
  42. <view class="calc-price">¥{{ goodsInfo.allDiscountPrice }}</view>
  43. </view>
  44. </view>
  45. </view>
  46. <!-- <view class="select-section select-address" wx:if="{{ goodsInfo.addresses.id }}" wx:key="receiveAddress">
  47. <view class="address-info">
  48. <view class="address-text">
  49. {{ goodsInfo.addresses.addressDetail }}
  50. </view>
  51. <view class="address-user">
  52. <text class="username">{{ goodsInfo.addresses.name }}</text>
  53. <text>{{ goodsInfo.addresses.phoneNumber }}</text>
  54. </view>
  55. </view>
  56. </view> -->
  57. <view class="select-section select-buy-user" wx:if="{{ goodsInfo.beneficiary.id }}" wx:key="userBeneficiaryId">
  58. <view class="title">
  59. <view class="name">购买人信息</view>
  60. </view>
  61. <view class="user-list">
  62. <view class="user-item">
  63. <view class="left-label">学生姓名</view>
  64. <view class="right-value">{{ goodsInfo.beneficiary.name }}</view>
  65. </view>
  66. <view class="user-item">
  67. <view class="left-label">联系方式</view>
  68. <view class="right-value">{{ goodsInfo.beneficiary.phoneNumber }}</view>
  69. </view>
  70. <view class="user-item">
  71. <view class="left-label">学校信息</view>
  72. <view class="right-value">{{ goodsInfo.beneficiary.schoolInfo }}</view>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="order-time">
  77. <view class="order-item" wx:if="{{ goodsInfo.userNote }}">
  78. <view class="title">手机号码</view>
  79. <view class="value">{{ goodsInfo.userNote }}</view>
  80. </view>
  81. <view class="order-item">
  82. <view class="title">订单编号</view>
  83. <view class="value">
  84. {{ goodsInfo.orderNo }}
  85. <view class="copy" bind:tap="onCopy" data-orderno="{{goodsInfo.orderNo}}">复制</view>
  86. </view>
  87. </view>
  88. <view class="order-item">
  89. <view class="title">下单时间</view>
  90. <view class="value">{{ goodsInfo.createTime }}</view>
  91. </view>
  92. </view>
  93. <view class="usage-guide">
  94. <view class="usage-guide__header">
  95. <view class="usage-guide__title">使用说明</view>
  96. <view class="usage-guide__subtitle">INSTRUCTIONS FOR USE</view>
  97. </view>
  98. <view class="usage-guide__content {{ isTeacherOrder ? 'teacher' : 'student' }}">
  99. <block wx:if="{{ isTeacherOrder }}">
  100. <view class="usage-guide__steps">
  101. <view class="usage-guide__step">1</view>
  102. <view class="usage-guide__step">2</view>
  103. </view>
  104. <view class="usage-guide__text">
  105. <view>老师端兼容电脑、一体机及希沃白板等设备。</view>
  106. <view class="usage-guide__paragraph">
  107. 购买完成后,建议您使用谷歌浏览器访问
  108. <text class="usage-guide__link">{{ teacherUsageUrl }}</text>
  109. ,通过预留的手机号与默认密码(yyszkt+手机号)进行登录。祝您使用愉快,畅享全新授课体验!
  110. </view>
  111. </view>
  112. <button class="usage-guide__copy-btn" bind:tap="onCopyTeacherLink">
  113. <image src="./images/icon-copy-link.png" mode="aspectFit"></image>
  114. <text>复制链接</text>
  115. </button>
  116. </block>
  117. <block wx:else>
  118. <view class="usage-guide__student-text">
  119. 扫描下方二维码或者在应用市场下载
  120. <text>【音乐数字课堂】</text>
  121. ,开启您全新的音乐之旅!
  122. </view>
  123. <view class="usage-guide__qrcode">
  124. <image class="usage-guide__qrcode__bg" src="./images/border.png" mode="aspectFit"></image>
  125. <image class="usage-guide__qrcode__img" src="./images/student-use-qrcode.png" mode="aspectFit"></image>
  126. </view>
  127. </block>
  128. </view>
  129. </view>
  130. <!-- <view class="order-content" wx:if="{{ (goodsInfo.wechatStatus == 'PAID' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
  131. <view class="qrcode-text" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}"><text>扫描二维码</text>或<text>点击激活按钮</text>使用<block wx:if="{{ goodsInfo.giftStatus === 'WAIT_GIFT' }}">
  132. ,<text class="free">当天激活</text><text class="free blod">赠{{ goodsInfo.giftLongTime }}</text>
  133. </block>
  134. </view>
  135. <view class="qrcode-text used" wx:else>
  136. <view>下载<text>「音乐数字课堂」</text>APP,畅享音乐之旅</view>
  137. <view class="downloadApp" bind:tap="onDownloadApp">下载APP</view>
  138. </view>
  139. <view class="qrcode-line"></view>
  140. <view class="qrcode-section">
  141. <view class="qrcode-block">
  142. <view class="left-text">{{goodsInfo.wechatStatus == 'WAIT_USE' ? '待使用' : '已使用'}}</view>
  143. <view class="qrCodeSection">
  144. <view class="qrcode-wrap {{goodsInfo.wechatStatus == 'WAIT_USE' ? '' : 'used'}}">
  145. <image src="{{canvasImg}}" mode="scaleToFill" class='my_draw_canvas' style="opacity: {{ goodsInfo.wechatStatus == 'PAID' ? 0.5 : 1 }};" show-menu-by-longpress="true"></image>
  146. <view class="loader" wx:if="{{!canvasImg}}"></view>
  147. </view>
  148. <view class="qrcode-btn--section" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">
  149. <button class="download" disabled="{{ !canvasImg ? true : false }}" bind:tap="onDownload">下载二维码</button>
  150. <button class="submit" disabled="{{ !canvasImg ? true : false }}" bind:tap="onActivation" data-code="{{ goodsInfo.code }}">立即激活</button>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. <view class="download-task" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">
  156. <image mode="widthFix" src="https://oss.dayaedu.com/ktyq/1733725573779.png"></image>
  157. </view>
  158. </view> -->
  159. <!-- <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' || goodsInfo.wechatStatus == 'REFUNDING' }}">
  160. <view class="order-item">
  161. <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
  162. <view class="value">{{ goodsInfo.refundTime || '' }}</view>
  163. </view>
  164. <view class="order-item">
  165. <view class="title">退款金额</view>
  166. <view class="value">¥{{ goodsInfo.refundAmount }}</view>
  167. </view>
  168. <view class="order-item" wx:if="{{goodsInfo.wechatStatus != 'REFUNDING'}}">
  169. <view class="title">退款路径</view>
  170. <view class="value">{{ goodsInfo.refundStyleStr }}</view>
  171. </view>
  172. </view> -->
  173. <view class="scroll-brank"></view>
  174. </scroll-view>
  175. <!-- <canvas class='my_draw_canvas only_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas> -->
  176. <!-- <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
  177. <block wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">
  178. <button type="primary" class="refoundWaiteUse" bind:tap="useRefound">申请退款</button>
  179. <button type="primary" bind:tap="onSubmit">再次购买</button>
  180. </block>
  181. <block wx:else>
  182. <button type="primary" bind:tap="cancelRefound" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}" disabled="{{cancelRefoundStatus}}">取消退款</button>
  183. <button type="primary" wx:else bind:tap="onSubmit">再次购买</button>
  184. </block>
  185. </view> -->
  186. <!-- 客服 -->
  187. <service wx:if="{{serviceShow}}"></service>
  188. <!-- 退费 -->
  189. <!-- <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound> -->
  190. </view>