order-result.wxml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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">|日常价 ¥ {{item.originalPrice}}</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>{{ 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">
  78. <view class="title">订单编号</view>
  79. <view class="value">
  80. {{ goodsInfo.orderNo }}
  81. <view class="copy" bind:tap="onCopy" data-orderno="{{goodsInfo.orderNo}}">复制</view>
  82. </view>
  83. </view>
  84. <view class="order-item">
  85. <view class="title">下单时间</view>
  86. <view class="value">{{ goodsInfo.createTime }}</view>
  87. </view>
  88. </view>
  89. <!-- <view class="order-content" wx:if="{{ (goodsInfo.wechatStatus == 'PAID' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
  90. <view class="qrcode-text" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}"><text>扫描二维码</text>或<text>点击激活按钮</text>使用<block wx:if="{{ goodsInfo.giftStatus === 'WAIT_GIFT' }}">
  91. ,<text class="free">当天激活</text><text class="free blod">赠{{ goodsInfo.giftLongTime }}</text>
  92. </block>
  93. </view>
  94. <view class="qrcode-text used" wx:else>
  95. <view>下载<text>「音乐数字课堂」</text>APP,畅享音乐之旅</view>
  96. <view class="downloadApp" bind:tap="onDownloadApp">下载APP</view>
  97. </view>
  98. <view class="qrcode-line"></view>
  99. <view class="qrcode-section">
  100. <view class="qrcode-block">
  101. <view class="left-text">{{goodsInfo.wechatStatus == 'WAIT_USE' ? '待使用' : '已使用'}}</view>
  102. <view class="qrCodeSection">
  103. <view class="qrcode-wrap {{goodsInfo.wechatStatus == 'WAIT_USE' ? '' : 'used'}}">
  104. <image src="{{canvasImg}}" mode="scaleToFill" class='my_draw_canvas' style="opacity: {{ goodsInfo.wechatStatus == 'PAID' ? 0.5 : 1 }};" show-menu-by-longpress="true"></image>
  105. <view class="loader" wx:if="{{!canvasImg}}"></view>
  106. </view>
  107. <view class="qrcode-btn--section" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">
  108. <button class="download" disabled="{{ !canvasImg ? true : false }}" bind:tap="onDownload">下载二维码</button>
  109. <button class="submit" disabled="{{ !canvasImg ? true : false }}" bind:tap="onActivation" data-code="{{ goodsInfo.code }}">立即激活</button>
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. <view class="download-task" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">
  115. <image mode="widthFix" src="https://oss.dayaedu.com/ktyq/1733725573779.png"></image>
  116. </view>
  117. </view> -->
  118. <!-- <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' || goodsInfo.wechatStatus == 'REFUNDING' }}">
  119. <view class="order-item">
  120. <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
  121. <view class="value">{{ goodsInfo.refundTime || '' }}</view>
  122. </view>
  123. <view class="order-item">
  124. <view class="title">退款金额</view>
  125. <view class="value">¥{{ goodsInfo.refundAmount }}</view>
  126. </view>
  127. <view class="order-item" wx:if="{{goodsInfo.wechatStatus != 'REFUNDING'}}">
  128. <view class="title">退款路径</view>
  129. <view class="value">{{ goodsInfo.refundStyleStr }}</view>
  130. </view>
  131. </view> -->
  132. <view class="scroll-brank"></view>
  133. </scroll-view>
  134. <!-- <canvas class='my_draw_canvas only_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas> -->
  135. <!-- <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
  136. <block wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">
  137. <button type="primary" class="refoundWaiteUse" bind:tap="useRefound">申请退款</button>
  138. <button type="primary" bind:tap="onSubmit">再次购买</button>
  139. </block>
  140. <block wx:else>
  141. <button type="primary" bind:tap="cancelRefound" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}" disabled="{{cancelRefoundStatus}}">取消退款</button>
  142. <button type="primary" wx:else bind:tap="onSubmit">再次购买</button>
  143. </block>
  144. </view> -->
  145. <!-- 客服 -->
  146. <service wx:if="{{serviceShow}}"></service>
  147. <!-- 退费 -->
  148. <!-- <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound> -->
  149. </view>