index.wxml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <view class="select-service">
  2. <view class="order-goods-card">
  3. <wr-order-goods-card goods="{{goodsInfo}}" no-top-line thumb-class="order-goods-card-title-class">
  4. <view slot="footer" class="order-goods-card-footer">
  5. <wr-price
  6. price="{{goodsInfo.paidAmountEach}}"
  7. fill
  8. wr-class="order-goods-card-footer-price-class"
  9. symbol-class="order-goods-card-footer-price-symbol"
  10. decimal-class="order-goods-card-footer-price-decimal"
  11. />
  12. <view class="order-goods-card-footer-num">x {{goodsInfo.boughtQuantity}}</view>
  13. </view>
  14. </wr-order-goods-card>
  15. </view>
  16. <view wx:if="{{!serviceRequireType}}" class="service-choice">
  17. <t-cell-group>
  18. <t-cell
  19. title="申请退款(无需退货)"
  20. arrow
  21. description="没收到货,或与商家协商同意不用退货只退款"
  22. bindtap="onApplyOnlyRefund"
  23. >
  24. <t-icon
  25. slot="left-icon"
  26. prefix="wr"
  27. class="t-cell__left__icon"
  28. name="goods_refund"
  29. size="48rpx"
  30. color="#fa4126"
  31. />
  32. </t-cell>
  33. <t-cell
  34. wx:if="{{canApplyReturn}}"
  35. title="退货退款"
  36. description="已收到货,需要退还收到的商品"
  37. arrow
  38. bindtap="onApplyReturnGoods"
  39. >
  40. <t-icon
  41. slot="left-icon"
  42. prefix="wr"
  43. class="t-cell__left__icon"
  44. name="goods_return"
  45. size="48rpx"
  46. color="#fa4126"
  47. />
  48. </t-cell>
  49. <t-cell wx:else class="non-returnable" title="退货退款" description="该商品不支持退货">
  50. <t-icon
  51. slot="left-icon"
  52. prefix="wr"
  53. class="t-cell__left__icon"
  54. name="goods_return"
  55. size="48rpx"
  56. color="#fa4126"
  57. />
  58. </t-cell>
  59. </t-cell-group>
  60. </view>
  61. <!-- 售后表单 -->
  62. <view wx:else class="service-form">
  63. <view class="service-from-group">
  64. <t-cell-group>
  65. <t-cell title="商品收货状态" arrow note="{{serviceFrom.receiptStatus.desc}}" bind:tap="onApplyGoodsStatus" />
  66. <t-cell
  67. bordered="{{false}}"
  68. title="退款原因"
  69. wx:if="{{canApplyReturn}}"
  70. note="{{serviceFrom.applyReason.desc}}"
  71. arrow
  72. bindtap="onApplyReturnGoodsStatus"
  73. />
  74. </t-cell-group>
  75. </view>
  76. <view class="service-from-group">
  77. <t-cell-group>
  78. <t-cell title="退款商品数量">
  79. <t-stepper
  80. slot="note"
  81. theme="filled"
  82. min="1"
  83. max="{{maxApplyNum}}"
  84. value="{{serviceFrom.returnNum}}"
  85. bindchange="onChangeReturnNum"
  86. />
  87. </t-cell>
  88. <t-cell
  89. title="退款金额"
  90. t-class-description="refund-money__description"
  91. description="{{amountTip}}"
  92. bind:tap="onAmountTap"
  93. >
  94. <view class="service-from-group__wrapper" slot="note">
  95. <wr-price
  96. price="{{serviceFrom.amount.current}}"
  97. fill
  98. wr-class="refund-money-price-class"
  99. symbol-class="refund-money-price-symbol"
  100. decimal-class="refund-money-price-decimal"
  101. />
  102. <view class="service-from-group__price">
  103. 修改
  104. <t-icon color="#bbb" name="chevron-right" size="30rpx" slot="left-icon" />
  105. </view>
  106. </view>
  107. </t-cell>
  108. </t-cell-group>
  109. </view>
  110. <view class="service-from-group__textarea">
  111. <text class="textarea--label">退款说明</text>
  112. <t-textarea
  113. style="height: 220rpx"
  114. value="{{serviceFrom.remark}}"
  115. t-class="textarea--content"
  116. maxlength="200"
  117. indicator
  118. placeholder="退款说明(选填)"
  119. bind:change="onRemarkChange"
  120. />
  121. </view>
  122. <view class="service-from-group__grid">
  123. <t-upload
  124. media-type="{{['image','video']}}"
  125. files="{{sessionFrom.rightsImageUrls}}"
  126. bind:remove="handleRemove"
  127. bind:success="handleSuccess"
  128. bind:complete="handleComplete"
  129. bind:select-change="handleSelectChange"
  130. gridConfig="{{uploadGridConfig}}"
  131. max="3"
  132. >
  133. <view slot="add-content" class="upload-addcontent-slot">
  134. <t-icon name="add" size="60rpx" />
  135. <view class="upload-desc">
  136. <text>上传凭证</text>
  137. <text>(最多3张)</text>
  138. </view>
  139. </view>
  140. </t-upload>
  141. </view>
  142. <view class="bottom-bar">
  143. <t-button
  144. t-class="bottom-bar__btn {{validateRes.valid && !uploading ? '' : 'disabled'}}"
  145. bindtap="onSubmit"
  146. loading="{{submitting}}"
  147. >
  148. 提交
  149. </t-button>
  150. </view>
  151. </view>
  152. </view>
  153. <!-- 收货状态选择 -->
  154. <t-popup visible="{{showReceiptStatusDialog}}" placement="bottom" bindclose="onReceiptStatusDialogConfirm">
  155. <view class="dialog--service-status" slot="content">
  156. <view class="options">
  157. <view
  158. wx:for="{{receiptStatusList}}"
  159. wx:key="status"
  160. class="option"
  161. hover-class="option--active"
  162. bindtap="onReceiptStatusDialogConfirm"
  163. data-index="{{index}}"
  164. >
  165. {{item.desc}}
  166. </view>
  167. </view>
  168. <view class="cancel" hover-class="cancel--active" bindtap="onReceiptStatusDialogConfirm">取消</view>
  169. </view>
  170. </t-popup>
  171. <!-- 理由选择 -->
  172. <wr-reason-sheet id="wr-reason-sheet" />
  173. <!-- 金额填写 -->
  174. <t-dialog
  175. id="input-dialog"
  176. visible="{{inputDialogVisible}}"
  177. class="{{serviceFrom.amount.focus ? 'amount-dialog--focus' : ''}}"
  178. >
  179. <view class="input-dialog__title" slot="title">退款金额</view>
  180. <view class="input-dialog__content" slot="content">
  181. <t-input
  182. t-class="input"
  183. t-class-input="input-dialog__input"
  184. t-class-label="input-dialog__label"
  185. placeholder=""
  186. value="{{serviceFrom.amount.temp}}"
  187. type="digit"
  188. focus="{{serviceFrom.amount.focus}}"
  189. bindinput="onAmountInput"
  190. bindfocus="onAmountFocus"
  191. bindblur="onAmountBlur"
  192. label="¥"
  193. ></t-input>
  194. <view class="tips">{{amountTip}}</view>
  195. </view>
  196. </t-dialog>
  197. <t-dialog id="t-dialog" />
  198. <t-toast id="t-toast" />