order-result.wxml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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>
  19. <view class="goods-type">
  20. <view class="goods-price">
  21. <text class="stuff">¥</text>
  22. <text class="priceZ">{{ item.integerPart }}</text>
  23. <text class="priceF">.{{ item.decimalPart }}</text>
  24. </view>
  25. <view class="origin-price">|日常价 ¥ {{item.originalPrice}}</view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="goodsInfos">
  30. <view class="qrcode-line"></view>
  31. <view class="goodsInfo-item">
  32. <text class="title">合计</text>
  33. <view class="goods-price">
  34. <text class="stuff">¥</text>
  35. <text class="priceZ">{{ goodsInfo.integerPart }}</text>
  36. <text class="priceF">.{{ goodsInfo.decimalPart }}</text>
  37. </view>
  38. </view>
  39. <view class="goodsInfo-item" wx:if="{{ goodsInfo.originalPrice > goodsInfo.paymentCashAmount }}">
  40. <text class="title">已省</text>
  41. <view class="calc-price">¥{{ goodsInfo.allDiscountPrice }}</view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="select-section select-address" wx:if="{{ goodsInfo.addresses.id }}" wx:key="receiveAddress">
  46. <view class="address-info">
  47. <view class="address-text">
  48. {{ goodsInfo.addresses.addressDetail }}
  49. </view>
  50. <view class="address-user">
  51. <text>{{ goodsInfo.addresses.name }}</text>
  52. <text>{{ goodsInfo.addresses.phoneNumber }}</text>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="select-section select-buy-user" wx:if="{{ goodsInfo.beneficiary.id }}" wx:key="userBeneficiaryId">
  57. <view class="title">
  58. <view class="name">购买人信息</view>
  59. </view>
  60. <view class="user-list">
  61. <view class="user-item">
  62. <view class="left-label">学生姓名</view>
  63. <view class="right-value">{{ goodsInfo.beneficiary.name }}</view>
  64. </view>
  65. <view class="user-item">
  66. <view class="left-label">联系方式</view>
  67. <view class="right-value">{{ goodsInfo.beneficiary.phoneNumber }}</view>
  68. </view>
  69. <view class="user-item">
  70. <view class="left-label">学校信息</view>
  71. <view class="right-value">{{ goodsInfo.beneficiary.schoolInfo }}</view>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="order-time">
  76. <view class="order-item">
  77. <view class="title">订单编号</view>
  78. <view class="value">
  79. {{ goodsInfo.orderNo }}
  80. <view class="copy" bind:tap="onCopy" data-orderno="{{goodsInfo.orderNo}}">复制</view>
  81. </view>
  82. </view>
  83. <view class="order-item">
  84. <view class="title">下单时间</view>
  85. <view class="value">{{ goodsInfo.createTime }}</view>
  86. </view>
  87. </view>
  88. <!-- <view class="order-content" wx:if="{{ (goodsInfo.wechatStatus == 'PAID' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
  89. <view class="qrcode-text" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}"><text>扫描二维码</text>或<text>点击激活按钮</text>使用<block wx:if="{{ goodsInfo.giftStatus === 'WAIT_GIFT' }}">
  90. ,<text class="free">当天激活</text><text class="free blod">赠{{ goodsInfo.giftLongTime }}</text>
  91. </block>
  92. </view>
  93. <view class="qrcode-text used" wx:else>
  94. <view>下载<text>「音乐数字课堂」</text>APP,畅享音乐之旅</view>
  95. <view class="downloadApp" bind:tap="onDownloadApp">下载APP</view>
  96. </view>
  97. <view class="qrcode-line"></view>
  98. <view class="qrcode-section">
  99. <view class="qrcode-block">
  100. <view class="left-text">{{goodsInfo.wechatStatus == 'WAIT_USE' ? '待使用' : '已使用'}}</view>
  101. <view class="qrCodeSection">
  102. <view class="qrcode-wrap {{goodsInfo.wechatStatus == 'WAIT_USE' ? '' : 'used'}}">
  103. <image src="{{canvasImg}}" mode="scaleToFill" class='my_draw_canvas' style="opacity: {{ goodsInfo.wechatStatus == 'PAID' ? 0.5 : 1 }};" show-menu-by-longpress="true"></image>
  104. <view class="loader" wx:if="{{!canvasImg}}"></view>
  105. </view>
  106. <view class="qrcode-btn--section" wx:if="{{goodsInfo.wechatStatus == 'WAIT_USE'}}">
  107. <button class="download" disabled="{{ !canvasImg ? true : false }}" bind:tap="onDownload">下载二维码</button>
  108. <button class="submit" disabled="{{ !canvasImg ? true : false }}" bind:tap="onActivation" data-code="{{ goodsInfo.code }}">立即激活</button>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="download-task" wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">
  114. <image mode="widthFix" src="https://oss.dayaedu.com/ktyq/1733725573779.png"></image>
  115. </view>
  116. </view> -->
  117. <!-- <view class="order-time" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDED' || goodsInfo.wechatStatus == 'REFUNDING' }}">
  118. <view class="order-item">
  119. <view class="title">{{ goodsInfo.wechatStatus == 'REFUNDED' ? '退款时间' : '申请退款时间' }}</view>
  120. <view class="value">{{ goodsInfo.refundTime || '' }}</view>
  121. </view>
  122. <view class="order-item">
  123. <view class="title">退款金额</view>
  124. <view class="value">¥{{ goodsInfo.refundAmount }}</view>
  125. </view>
  126. <view class="order-item" wx:if="{{goodsInfo.wechatStatus != 'REFUNDING'}}">
  127. <view class="title">退款路径</view>
  128. <view class="value">{{ goodsInfo.refundStyleStr }}</view>
  129. </view>
  130. </view> -->
  131. <view class="scroll-brank"></view>
  132. </scroll-view>
  133. <!-- <canvas class='my_draw_canvas only_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas> -->
  134. <!-- <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
  135. <block wx:if="{{ goodsInfo.wechatStatus == 'WAIT_USE' }}">
  136. <button type="primary" class="refoundWaiteUse" bind:tap="useRefound">申请退款</button>
  137. <button type="primary" bind:tap="onSubmit">再次购买</button>
  138. </block>
  139. <block wx:else>
  140. <button type="primary" bind:tap="cancelRefound" wx:if="{{ goodsInfo.wechatStatus == 'REFUNDING' }}" disabled="{{cancelRefoundStatus}}">取消退款</button>
  141. <button type="primary" wx:else bind:tap="onSubmit">再次购买</button>
  142. </block>
  143. </view> -->
  144. <!-- 客服 -->
  145. <service wx:if="{{serviceShow}}"></service>
  146. <!-- 退费 -->
  147. <!-- <apply-refound refoundStatus="{{ refoundStatus }}" goodsInfo="{{goodsInfo}}" bind:changeRefoundStatus="changeRefoundStatus" bind:onConfirm="onRefoundComfirm"></apply-refound> -->
  148. </view>