index.wxml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <wr-loading-content position="fixed" type="spinner" wx:if="{{pageLoading}}" />
  2. <view class="page-container">
  3. <t-pull-down-refresh id="t-pull-down-refresh" bind:refresh="onPullDownRefresh_" t-class-indicator="t-class-indicator">
  4. <!-- 页面内容 -->
  5. <view class="service-detail safe-bottom">
  6. <!-- 状态及描述 -->
  7. <view class="service-detail__header">
  8. <view class="title">
  9. <t-icon prefix="wr" name="{{service.statusIcon}}" size="30px" />
  10. {{service.statusName}}
  11. </view>
  12. <view class="desc"> {{service.statusDesc}} </view>
  13. </view>
  14. <!-- 退款金额 -->
  15. <view class="service-section__pay pay-result" wx:if="{{service.isRefunded}}">
  16. <t-cell
  17. t-class-title="title"
  18. t-class-note="right"
  19. t-class="t-class-wrapper-first-child"
  20. title="{{service.isRefunded ? '退款金额' : '预计退款金额'}}"
  21. bordered="{{false}}"
  22. >
  23. <wr-price slot="note" price="{{service.refundRequestAmount}}" fill />
  24. </t-cell>
  25. <t-cell
  26. wx:for="{{service.refundMethodList}}"
  27. wx:key="name"
  28. wx:for-index="index"
  29. wx:for-item="item"
  30. t-class-title="t-cell-title"
  31. t-class-note="t-cell-title"
  32. t-class="t-class-wrapper"
  33. title="{{item.name}}"
  34. bordered="{{service.refundMethodList.length - 1 === index ? true : false}}"
  35. >
  36. <wr-price slot="note" price="{{item.amount}}" fill />
  37. </t-cell>
  38. <block wx:if="{{service.isRefunded}}">
  39. <t-cell
  40. title=""
  41. t-class="t-class-wrapper-first-child"
  42. t-class-description="label"
  43. description="说明:微信退款后,可以在微信支付账单查询,实际退款到时间可能受到银行处理时间的影响有一定延时,可以稍后查看"
  44. />
  45. </block>
  46. </view>
  47. <!-- 物流 -->
  48. <view class="service-section logistics" wx:if="{{service.logisticsNo}}">
  49. <view class="service-section__title">
  50. <t-cell
  51. align="top"
  52. title="{{service.logisticsCompanyName + ' ' + service.logisticsNo}}"
  53. bordered="{{false}}"
  54. description="买家已寄出"
  55. arrow
  56. >
  57. <t-icon prefix="wr" color="#333333" name="deliver" size="40rpx" slot="left-icon" />
  58. </t-cell>
  59. <view style="padding: 0 32rpx">
  60. <wr-after-service-button-bar service="{{service}}" />
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 收货地址 -->
  65. <view class="service-section goods-refund-address" wx:if="{{service.receiverName}}">
  66. <t-cell-group>
  67. <t-cell align="top" title="退货地址" bordered="{{false}}">
  68. <t-icon prefix="wr" color="#333333" name="location" size="40rpx" slot="left-icon" />
  69. <view
  70. slot="note"
  71. class="right text-btn goods-refund-address-copy-btn"
  72. hover-class="text-btn--active"
  73. bindtap="onAddressCopy"
  74. >复制
  75. </view>
  76. <view slot="description">
  77. <view> {{service.receiverAddress}} </view>
  78. <view>收货人:{{service.receiverName}}</view>
  79. <view>收货人手机:{{service.receiverName}}</view>
  80. </view>
  81. </t-cell>
  82. </t-cell-group>
  83. </view>
  84. <!-- 商品卡片 -->
  85. <view
  86. class="service-section service-goods-card-wrap"
  87. wx:if="{{service.goodsList && service.goodsList.length > 0}}"
  88. >
  89. <wr-service-goods-card
  90. wx:for="{{service.goodsList}}"
  91. wx:key="id"
  92. wx:for-item="goods"
  93. goods="{{goods}}"
  94. no-top-line
  95. bindtap="onGoodsCardTap"
  96. data-index="{{index}}"
  97. >
  98. <view slot="footer" class="order-goods-card-footer">
  99. <wr-price
  100. price="{{goods.itemRefundAmount}}"
  101. fill
  102. wr-class="order-goods-card-footer-price-class"
  103. symbol-class="order-goods-card-footer-price-symbol"
  104. decimal-class="order-goods-card-footer-price-decimal"
  105. />
  106. <view class="order-goods-card-footer-num">x {{goods.rightsQuantity}}</view>
  107. </view>
  108. </wr-service-goods-card>
  109. </view>
  110. <!-- 退款信息 -->
  111. <view class="service-section__pay">
  112. <t-cell bordered="{{false}}" title="退款信息" t-class="t-refund-wrapper" t-class-title="t-refund-title" />
  113. <t-cell
  114. bordered="{{false}}"
  115. t-class="t-refund-wrapper"
  116. t-class-title="t-refund-info"
  117. t-class-note="t-refund-note"
  118. title="订单编号"
  119. note="{{service.orderNo}}"
  120. />
  121. <t-cell
  122. bordered="{{false}}"
  123. t-class="t-refund-wrapper"
  124. t-class-title="t-refund-info"
  125. t-class-note="t-refund-note"
  126. title="服务单号"
  127. note="{{service.rightsNo}}"
  128. >
  129. <view slot="right-icon" class="text-btn" hover-class="text-btn--active" bindtap="onServiceNoCopy">复制 </view>
  130. </t-cell>
  131. <t-cell
  132. bordered="{{false}}"
  133. t-class="t-refund-wrapper"
  134. t-class-title="t-refund-info"
  135. t-class-note="t-refund-note"
  136. title="退款原因"
  137. note="{{service.rightsReasonDesc}}"
  138. />
  139. <t-cell
  140. bordered="{{false}}"
  141. t-class="t-refund-wrapper"
  142. t-class-title="t-refund-info"
  143. t-class-note="t-refund-note"
  144. title="退款金额"
  145. >
  146. <wr-price slot="note" price="{{service.refundRequestAmount}}" fill />
  147. </t-cell>
  148. <t-cell
  149. bordered="{{false}}"
  150. t-class="t-refund-wrapper"
  151. t-class-title="t-refund-info"
  152. t-class-note="t-refund-note"
  153. title="申请时间"
  154. note="{{service.createTime}}"
  155. />
  156. </view>
  157. <!-- 凭证/说明 -->
  158. <view class="service-section__pay credential_desc" wx:if="{{showProofs}}">
  159. <t-cell
  160. bordered="{{false}}"
  161. title="凭证/说明"
  162. t-class="t-refund-wrapper"
  163. t-class-title="t-refund-info"
  164. description="{{service.applyRemark}}"
  165. />
  166. <t-grid border="{{false}}" column="{{3}}">
  167. <t-grid-item
  168. t-class-image="t-refund-grid-image"
  169. wx:for="{{gallery.proofs}}"
  170. wx:key="index"
  171. image="{{item}}"
  172. bindclick="onProofTap"
  173. data-index="{{index}}"
  174. />
  175. </t-grid>
  176. </view>
  177. <t-swiper
  178. wx:if="{{gallery.show}}"
  179. current="{{gallery.current}}"
  180. img-srcs="{{gallery.proofs}}"
  181. full-screen
  182. circular="{{false}}"
  183. bindtap="onProofTap"
  184. />
  185. </view>
  186. </t-pull-down-refresh>
  187. </view>
  188. <t-toast id="t-toast" />
  189. <!-- 退款说明填写 -->
  190. <t-dialog id="input-dialog" visible="{{inputDialogVisible}}">
  191. <view class="input-dialog__content" slot="content">
  192. <view style="color: #333333; padding-left: 32rpx">物流单号</view>
  193. <t-input class="input" placeholder="请输入物流单号" />
  194. <view class="tips">{{amountTip}}</view>
  195. </view>
  196. </t-dialog>
  197. <t-dialog id="t-dialog" />