applyRefund.vue 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372
  1. <!-- 申请退款页面 -->
  2. <template>
  3. <view class="content">
  4. <view class="apply_refund_content">
  5. <!-- 有批量选择商品返回的 批量商品 start -->
  6. <view class="batch_apply_list" v-if="batchSelList.length > 1">
  7. <scroll-view scroll-x class="batch_apply_pre" v-for="(item,index) in batchSelList" :key="index" @click="goProductDetail(item.productId,item.goodsId)">
  8. <view class="batch_apply_pre_image">
  9. <image :src="item.productImage" mode="aspectFit"></image>
  10. </view>
  11. <view class="batch_apply_pre_num">*{{item.currNum}}</view>
  12. </scroll-view>
  13. </view>
  14. <!-- 有批量选择商品返回的 批量商品 end -->
  15. <!-- 单个商品 start -->
  16. <view class="refund_goods" v-else @click="goProductDetail(orderProduct.productId,orderProduct.goodsId)">
  17. <view class="refund_goods_image">
  18. <image :src="orderProduct.productImage" mode="aspectFit"></image>
  19. </view>
  20. <view class="refund_goods_des">
  21. <text class="refund_goods_name">{{orderProduct.goodsName}}</text>
  22. <text class="refund_goods_spec" v-if="orderProduct.specValues">{{orderProduct.specValues}}</text>
  23. </view>
  24. </view>
  25. <!-- 单个商品 end -->
  26. <!--进入批量选择商品页面 start -->
  27. <view class="batch_refund" v-if="orderListLen > 1">
  28. <view class="batch_refund_title">{{serviceType == '0' ? '批量退款' : serviceType == '1' ? '批量退货' : serviceType == '2' ? '批量换货' : '批量退款'}}</view>
  29. <view class="batch_refund_opt" @click="goBatchSel">
  30. <!-- 已选择商品 start-->
  31. <text v-if="tosource == 1 && batchSelList.length > 1">{{$L('已选')}}{{refundInfos.number}}{{$L('件商品')}}</text>
  32. <!-- 已选择商品 end-->
  33. <!-- 未选择商品 start-->
  34. <text v-else>{{$L('同订单商品可批量申请')}}</text>
  35. <!-- 未选择商品 end-->
  36. <image :src="imgUrl+'order-detail/to_right.png'" mode=""></image>
  37. </view>
  38. </view>
  39. <!--进入批量选择商品页面 end-->
  40. <view class="refund_reason_des">
  41. <!-- 由待发货详情页面进入 start-->
  42. <block v-if="sourceType == 'orderDetail'">
  43. <view class="refund_reason">
  44. <view class="refund_reason_left">
  45. <text>*</text>
  46. <text>{{$L('退款原因')}}</text>
  47. </view>
  48. <view class="refund_reason_right" @click="reasonModel">
  49. <text>{{reasonContent ? reasonContent : '请选择'}}</text>
  50. <image :src="imgUrl+'order-detail/to_right.png'" mode=""></image>
  51. </view>
  52. </view>
  53. </block>
  54. <!-- 由待发货详情页面进入 end-->
  55. <!-- 由选择服务页面进入 start-->
  56. <block v-if="sourceType == 'selecTService'">
  57. <!-- 仅退款 start -->
  58. <block v-if="serviceType == '0'">
  59. <view class="refund_reason">
  60. <view class="refund_reason_left">
  61. <text>*</text>
  62. <text>{{$L('货物状态')}}</text>
  63. </view>
  64. <view class="refund_reason_right" @click="cargoStatusModel">
  65. <text>{{cargoStatusContent ? cargoStatusContent : '请选择'}}</text>
  66. <image :src="imgUrl+'order-detail/to_right.png'" mode=""></image>
  67. </view>
  68. </view>
  69. <view class="refund_reason">
  70. <view class="refund_reason_left">
  71. <text>*</text>
  72. <text>{{$L('退款原因')}}</text>
  73. </view>
  74. <view class="refund_reason_right" @click="reasonModel">
  75. <text>{{reasonContent ? reasonContent : '请选择'}}</text>
  76. <image :src="imgUrl+'order-detail/to_right.png'" mode=""></image>
  77. </view>
  78. </view>
  79. </block>
  80. <!-- 仅退款 end -->
  81. <!-- 退货退款 start -->
  82. <block v-if="serviceType == '1'">
  83. <view class="refund_reason">
  84. <view class="refund_reason_left">
  85. <text>*</text>
  86. <text>{{$L('退货原因')}}</text>
  87. </view>
  88. <view class="refund_reason_right" @click="reasonModel">
  89. <text>{{reasonContent ? reasonContent : '请选择'}}</text>
  90. <image :src="imgUrl+'order-detail/to_right.png'" mode=""></image>
  91. </view>
  92. </view>
  93. </block>
  94. <!-- 退货退款 end -->
  95. <!-- 换货 start -->
  96. <block v-if="serviceType == '2'">
  97. <view class="refund_reason">
  98. <view class="refund_reason_left">
  99. <text>*</text>
  100. <text>{{$L('换货原因')}}</text>
  101. </view>
  102. <view class="refund_reason_right" @click="reasonModel">
  103. <text>{{reasonContent}}</text>
  104. <image :src="imgUrl+'order-detail/to_right.png'" mode=""></image>
  105. </view>
  106. </view>
  107. </block>
  108. <!-- 换货 end -->
  109. </block>
  110. <!-- 由选择服务页面进入 end-->
  111. </view>
  112. <view class="refund_info">
  113. <!-- 仅退款可以修改退款金额,申请仅退款时,若选择未收货则不可修改退款金额,若选择已收货,则可以修改退款金额,为选择货物状态时,页面展示按照未收货进行展示; -->
  114. <block v-if="serviceType == '0' && cargoStatusCurrent == 1">
  115. <view class="refund_amount refund_amount_edit">
  116. <text class="refund_amout_title">{{$L('退款金额')}}:¥</text>
  117. <view class="refund_amount_price">
  118. <input type="digit" v-model="returnAmount" :placeholder="returnAmount ? returnAmount : '请输入退款金额'" @blur="getReturnAmount" />
  119. </view>
  120. </view>
  121. </block>
  122. <block v-else>
  123. <view class="refund_amount">
  124. <text class="refund_amout_title">{{$L('退款金额')}}:</text>
  125. <view class="refund_amount_price">
  126. <!-- 批量选择之后 -->
  127. <text v-if="tosource == 1">¥{{refundInfos.maxReturnMoney}}</text>
  128. <!-- 单个商品 -->
  129. <text v-else>¥{{refundDetail.maxReturnMoney}}</text>
  130. </view>
  131. </view>
  132. <view class="refund_amount_limit">
  133. {{$L('退款金额不可修改,最多')}}¥{{tosource == 1 ? refundInfos.maxReturnMoney : refundDetail.maxReturnMoney}}
  134. <text v-if="refundInfos.containsFee && tosource == 1">{{$L('(含运费')}}{{refundInfos.returnExpressFee}}{{$L('元)')}}</text>
  135. <text v-if="refundDetail.containsFee && tosource == 0">{{$L('(含运费')}}{{refundDetail.returnExpressFee}}{{$L('元)')}}</text>
  136. <text v-if="!refundDetail.containsFee || !refundDetail.containsFee">{{$L('(不包含运费)')}}</text>
  137. </view>
  138. </block>
  139. <!-- 仅退款可以修改退款金额,退货和换货可以修改申请件数; -->
  140. <block v-if="(batchSelList.length == 1 && tosource == 1) || tosource == 0">
  141. <view class="refund_number1" v-if="serviceType == '1' || serviceType == '2'">
  142. <text class="refund_number1_title">{{$L('申请件数')}}:</text>
  143. <view class="refund_number_edit">
  144. <text @click="editNum('reduce')">-</text>
  145. <input type="number" v-model="applyNum" @blur="editNum('edit',$event)" />
  146. <text @click="editNum('add')">+</text>
  147. </view>
  148. </view>
  149. <view class="refund_number" v-else>
  150. <text>{{$L('申请件数')}}:</text>
  151. <text>{{tosource == 1 ? refundInfos.number : refundDetail.number}}</text>
  152. </view>
  153. </block>
  154. <view class="refund_instructions">
  155. <text>{{serviceType == '2' ? '换货说明:' : '退款说明:'}}</text>
  156. <input type="text" :value="refundInstructions" :placeholder="$L('请输入退款说明(选填)')" @input="refundDes" maxlength="200" />
  157. </view>
  158. </view>
  159. <view class="upload_voucher">
  160. <view class="upload_voucher_title">{{$L('上传凭证')}}</view>
  161. <view class="upload_voucher_con1">
  162. <view class="upload_img" v-if="uploadFiles.length > 0" v-for="(item,index) in uploadFiles" :key="index">
  163. <image :src="item" mode="aspectFit"></image>
  164. <image :src="imgUrl + 'order-detail/guanbi.png'" mode="" @click="delImg(item,index)"></image>
  165. </view>
  166. <view class="upload_voucher_con" @click="uploadVoucher" v-if="uploadFiles.length < 5">
  167. <view class="upload_image">
  168. <image :src="imgUrl+'order-detail/xiangji.png'" mode=""></image>
  169. <text>{{$L('添加图片')}}</text>
  170. <text class="upload_limit">{{uploadFiles.length}}/5</text>
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. </view>
  176. <view class="submit" @click="submit" :style="{top:windowHeight - 84 + 'px'}">
  177. <view class="text">
  178. {{$L('提交')}}
  179. </view>
  180. </view>
  181. <!-- 退款原因弹框 -->
  182. <uni-popup ref="cancelPopup" type="bottom">
  183. <view class="cancel_popup">
  184. <view class="popup_top">
  185. <text>{{serviceType == '1' ? '退货原因' : '退款原因'}}</text>
  186. <image :src="imgUrl+'order-detail/guanbi.png'" mode="" @click="notCancel"></image>
  187. </view>
  188. <scroll-view class="uni-list cancel_list" scroll-y="true">
  189. <radio-group @change="radioChange">
  190. <label class="cancle_pre" v-for="(item,index) in cancelList" :key="index">
  191. <text>{{item.content}}</text>
  192. <radio :value="item.value" :checked="item.value == current" color="#fc1c1c" style="transform:scale(0.8);margin-right:0;" />
  193. </label>
  194. </radio-group>
  195. </scroll-view>
  196. <view class="cancel_popup_btn">
  197. <text class="confrim_btn" @click="confirmRefund()">{{$L('确定')}}</text>
  198. </view>
  199. </view>
  200. </uni-popup>
  201. <!-- 货物状态弹框 -->
  202. <uni-popup ref="cargoStatusPopup" type="bottom">
  203. <view class="cancel_popup">
  204. <view class="popup_top">
  205. <text>{{$L('货物状态')}}</text>
  206. <image :src="imgUrl+'order-detail/guanbi.png'" mode="" @click="notCancel"></image>
  207. </view>
  208. <view class="uni-list cancel_list">
  209. <radio-group @change="radioChangeStatus">
  210. <label class="cancle_pre" v-for="(item,index) in cargoStatuslList" :key="index">
  211. <text>{{item.content}}</text>
  212. <radio :value="item.value" :checked="item.value == cargoStatusCurrent" color="#fc1c1c" style="transform:scale(0.8);margin-right:0;" />
  213. </label>
  214. </radio-group>
  215. </view>
  216. <view class="cancel_popup_btn">
  217. <text class="confrim_btn" @click="confirmCargoStatus()">{{$L('确定')}}</text>
  218. </view>
  219. </view>
  220. </uni-popup>
  221. <uni-popup ref="popup" type="dialog">
  222. <uni-popup-dialog type="input" title ="提示" content="确定退款?" :duration="2000" @confirm="goSubmit('confirm')"></uni-popup-dialog>
  223. </uni-popup>
  224. </view>
  225. </template>
  226. <script>
  227. import {
  228. mapState
  229. } from 'vuex';
  230. import recommendGoods from "@/components/recommend-goods.vue";
  231. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  232. import uniPopupMessage from '@/components/uni-popup/uni-popup-message.vue';
  233. import uniPopupDialog from '@/components/uni-popup/uni-popup-dialog.vue';
  234. import {multifileUpload} from '@/utils/common.js'
  235. let startY = 0,
  236. moveY = 0,
  237. pageAtTop = true;
  238. export default {
  239. components: {
  240. recommendGoods,
  241. uniPopup,
  242. uniPopupMessage,
  243. uniPopupDialog
  244. },
  245. data() {
  246. return {
  247. imgUrl: getApp().globalData.imgUrl,
  248. coverTransform: 'translateY(0px)',
  249. coverTransition: '0s',
  250. moving: false,
  251. orderProductId: '', //订单明细id
  252. orderRefundDet: {}, //拒绝的订单
  253. orderProduct: {}, //拒绝订单的商品
  254. orderRefundOrder: {}, //拒绝订单的详情信息
  255. cancelList: [], //退款原因列表
  256. current: '0', //退款原因当前点击的是第0项
  257. uploadFiles: [], //上传凭证,凭证数组
  258. upLoadFile: [], //给后台传的上传凭证
  259. refundInstructions: '', //退款说明
  260. reasonContent: '', //退款原因的内容
  261. reasonId: -1, //退款原因当前点击的原因id
  262. cargoStatusCurrent: '0', //收货状态当前点击的是第0项
  263. cargoStatusCurId: -1, //货物状态id
  264. cargoStatusContent: '', //货物状态内容
  265. cargoStatuslList: [ //货物状态
  266. {
  267. content: '未收到货',
  268. value: '0',
  269. cargoStatusCurId: 0,
  270. },
  271. {
  272. content: '已收到货',
  273. value: '1',
  274. cargoStatusCurId: 1
  275. }
  276. ],
  277. serviceType: '', //服务类型 0: 仅退款(无需退货) 1 : 退货退款 2:换货
  278. sourceType: '', //页面的来源,上一页为 selecTService由选择服务页面进入 由待发货详情页面进入
  279. applyNum: 1, //申请件数
  280. batchSelList: [], //选中的商品列表
  281. returnAmount: '', //输入的退款金额
  282. refundDetail: {}, //计算后的退货订单信息
  283. refundInfos: {}, //从售后商品选择返回的同一个订单的批量选择计算后的退款金额信息
  284. tosource: '0',
  285. windowHeight: '', //窗口高度
  286. orderListLen: 1, //同订单的订单长度
  287. batchGoods: [], //售后商品选择页面传递的值,默认为空
  288. }
  289. },
  290. async onLoad(option) {
  291. this.orderProductId = option.orderProductId;
  292. this.serviceType = option.serviceType; //服务类型
  293. this.sourceType = option.sourceType; //页面来源
  294. this.initData();
  295. this.getOrderDetail();
  296. this.getCancelList();
  297. uni.getSystemInfo({
  298. success: (res) => {
  299. this.windowHeight = res.windowHeight;
  300. }
  301. });
  302. this.orderListLen = option.orderListLen;
  303. },
  304. onShow() {
  305. let that = this;
  306. let pages = getCurrentPages();
  307. let currPage = pages[pages.length - 1]; //当前页面
  308. let refundInfos = currPage.refundInfos; //下一个页面传过来的值 批量选择后的退款金额信息
  309. let tosource = currPage.tosource || '0';
  310. that.tosource = tosource;
  311. if (refundInfos) {
  312. this.refundInfos = JSON.parse(JSON.stringify(refundInfos))
  313. } else {
  314. this.refundInfos = {};
  315. }
  316. let batchSelList = currPage.batchSelList; //下一个页面传过来的 选中的商品列表
  317. this.batchSelList = batchSelList || [];
  318. this.batchGoods = currPage.batchGoods; //下一个页面穿过来的,商品列表信息
  319. },
  320. // #ifndef MP
  321. onNavigationBarButtonTap(e) {
  322. const index = e.index;
  323. if (index === 0) {
  324. this.navTo('/pages/set/set');
  325. } else if (index === 1) {
  326. // #ifdef APP-PLUS
  327. const pages = getCurrentPages();
  328. const page = pages[pages.length - 1];
  329. const currentWebview = page.$getAppWebview();
  330. currentWebview.hideTitleNViewButtonRedDot({
  331. index
  332. });
  333. // #endif
  334. uni.navigateTo({
  335. url: '/pages/notice/notice'
  336. })
  337. }
  338. },
  339. // #endif
  340. computed: {
  341. ...mapState(['hasLogin', 'userInfo', 'userCenterData'])
  342. },
  343. methods: {
  344. initData() {
  345. },
  346. /**
  347. * 统一跳转接口,拦截未登录路由
  348. * navigator标签现在默认没有转场动画,所以用view
  349. */
  350. navTo(url) {
  351. if (!this.hasLogin) {
  352. url = '/pages/public/login';
  353. }
  354. uni.navigateTo({
  355. url
  356. })
  357. },
  358. /**
  359. * 会员卡下拉和回弹
  360. * 1.关闭bounce避免ios端下拉冲突
  361. * 2.由于touchmove事件的缺陷(以前做小程序就遇到,比如20跳到40,h5反而好很多),下拉的时候会有掉帧的感觉
  362. * transition设置0.1秒延迟,让css来过渡这段空窗期
  363. * 3.回弹效果可修改曲线值来调整效果,推荐一个好用的bezier生成工具 http://cubic-bezier.com/
  364. */
  365. coverTouchstart(e) {
  366. if (pageAtTop === false) {
  367. return;
  368. }
  369. this.coverTransition = 'transform .1s linear';
  370. startY = e.touches[0].clientY;
  371. },
  372. coverTouchmove(e) {
  373. moveY = e.touches[0].clientY;
  374. let moveDistance = moveY - startY;
  375. if (moveDistance < 0) {
  376. this.moving = false;
  377. return;
  378. }
  379. this.moving = true;
  380. if (moveDistance >= 80 && moveDistance < 100) {
  381. moveDistance = 80;
  382. }
  383. if (moveDistance > 0 && moveDistance <= 80) {
  384. this.coverTransform = `translateY(${moveDistance}px)`;
  385. }
  386. },
  387. coverTouchend() {
  388. if (this.moving === false) {
  389. return;
  390. }
  391. this.moving = false;
  392. this.coverTransition = 'transform 0.3s cubic-bezier(.21,1.93,.53,.64)';
  393. this.coverTransform = 'translateY(0px)';
  394. },
  395. //获取售后订单货品详情
  396. getOrderDetail() {
  397. let param = {};
  398. param.url = 'v3/business/front/after/sale/apply/getOrderProductDetail';
  399. param.method = 'GET';
  400. param.data = {};
  401. param.data.orderProductId = this.orderProductId; //订单货品id
  402. this.$request(param).then(res => {
  403. if (res.state == 200) {
  404. let result = res.data;
  405. this.orderProduct = result;
  406. if (this.orderProduct) {
  407. this.getRefundDetail();
  408. }
  409. } else {
  410. this.$api.msg(res.msg);
  411. }
  412. }).catch((e) => {
  413. //异常处理
  414. })
  415. },
  416. //获取计算售后退款信息 计算结果为此次最多可退金额
  417. getRefundDetail() {
  418. let param = {};
  419. param.url = 'v3/business/front/after/sale/apply/countReturnMoney';
  420. param.method = 'GET';
  421. param.data = {};
  422. param.data.orderSn = this.orderProduct.orderSn;
  423. //单个商品
  424. let orderProductInfos = '';
  425. orderProductInfos = this.orderProduct.orderProductId + '-' + this.orderProduct.productNum;
  426. param.data.orderProductInfos = orderProductInfos; //退换的订单货品列表,格式为:id1-num1,id2-num2...num为空时表示此订单货品全部退换
  427. this.$request(param).then(res => {
  428. if (res.state == 200) {
  429. let result = res.data;
  430. this.refundDetail = result;
  431. this.returnAmount = '' + result.maxReturnMoney;
  432. this.applyNum = this.refundDetail.number;
  433. } else {
  434. this.$api.msg(res.msg);
  435. }
  436. }).catch((e) => {
  437. //异常处理
  438. })
  439. },
  440. //打开退款原因弹框
  441. reasonModel() {
  442. if (this.sourceType == 'selecTService' && this.serviceType == '0' && !this.cargoStatusContent) {
  443. uni.showToast({
  444. title: '请选择货物状态',
  445. icon: 'none',
  446. duration: 700
  447. })
  448. } else {
  449. this.$refs.cancelPopup.open();
  450. this.getCancelList();
  451. }
  452. },
  453. //货物状态弹框
  454. cargoStatusModel() {
  455. this.$refs.cargoStatusPopup.open();
  456. },
  457. //获取订单退款原因列表
  458. getCancelList() {
  459. let param = {};
  460. param.url = 'v3/system/front/reason/list';
  461. param.method = 'GET';
  462. param.data = {};
  463. param.data.key = this.userInfo.access_token;
  464. //原因类型:101-违规下架;102-商品审核拒绝;103-入驻审核拒绝;104-会员取消订单;105-仅退款-未收货;106-仅退款-已收货;107-退款退货原因;108-商户取消订单
  465. if (this.sourceType == 'orderDetail') { //待发货
  466. param.data.type = 105;
  467. } else if (this.sourceType == 'selecTService') { //选择服务进入
  468. if (this.serviceType == '0') { //仅退款无需退货
  469. if (this.cargoStatusCurrent == '0') { //未收到货
  470. param.data.type = 105
  471. } else if (this.cargoStatusCurrent == '1') {
  472. param.data.type = 106
  473. } else {
  474. param.data.type = 106
  475. }
  476. } else if (this.serviceType == '1') { //退货退款
  477. param.data.type = 107
  478. } else if (this.serviceType == '2') { //换货
  479. // param.data.type = 换货类型暂无
  480. }
  481. }
  482. this.$request(param).then(res => {
  483. if (res.state == 200) {
  484. this.cancelList = res.data || [];
  485. this.cancelList && this.cancelList.map((item, index) => item.value = '' + index);
  486. this.reasonId = this.reasonId ? this.reasonId : this.cancelList[0].reasonId;
  487. this.cancelList.map((item, index) => {
  488. if (item.reasonId == this.reasonId) {
  489. this.current = item.value = '' + index;
  490. } else {
  491. // if(this.current == '0'){
  492. // }else{}
  493. // this.current = '0';
  494. }
  495. })
  496. } else {
  497. this.$api.msg(res.msg);
  498. }
  499. }).catch((e) => {
  500. //异常处理
  501. })
  502. },
  503. //取消原因单选框切换
  504. radioChange(e) {
  505. for (let i = 0; i < this.cancelList.length; i++) {
  506. if (this.cancelList[i].value === e.target.value) {
  507. this.reasonId = this.cancelList[i].reasonId;
  508. this.reasonContent = this.cancelList[i].content;
  509. this.current = this.reasonId != -1 ? i : 0;
  510. break;
  511. }
  512. }
  513. },
  514. //确定退款原因的选择
  515. confirmRefund() {
  516. this.cancelList.map((item, index) => {
  517. if (this.reasonId == -1) {
  518. this.reasonId = this.cancelList[0].reasonId;
  519. this.reasonContent = this.cancelList[0].content;
  520. this.current = '0';
  521. }
  522. })
  523. this.$refs.cancelPopup.close();
  524. },
  525. //货物状态的单选按钮的切换
  526. radioChangeStatus(e) {
  527. for (let i = 0; i < this.cargoStatuslList.length; i++) {
  528. if (this.cargoStatuslList[i].value === e.target.value) {
  529. this.cargoStatusCurId = this.cargoStatuslList[i].cargoStatusCurId;
  530. this.cargoStatusContent = this.cargoStatuslList[i].content;
  531. this.cargoStatusCurrent = this.cargoStatusCurId != -1 ? i : '0';
  532. break;
  533. }
  534. }
  535. },
  536. //确定货物状态的选择
  537. confirmCargoStatus() {
  538. this.cargoStatuslList.map((item, index) => {
  539. if (this.cargoStatusCurId == -1) {
  540. this.cargoStatusCurId = this.cargoStatuslList[0].cargoStatusCurId;
  541. this.cargoStatusContent = this.cargoStatuslList[0].content;
  542. this.cargoStatusCurrent = '0';
  543. }
  544. })
  545. this.$refs.cargoStatusPopup.close();
  546. },
  547. //关闭退款弹框.货物状态的弹框
  548. notCancel() {
  549. this.$refs.cancelPopup.close();
  550. this.$refs.cargoStatusPopup.close();
  551. },
  552. //上传凭证
  553. uploadVoucher() {
  554. let that = this;
  555. // 从相册选择5张图
  556. uni.chooseImage({
  557. count: 5,
  558. sourceType: ['album'],
  559. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  560. success: function(res) {
  561. setTimeout(() => {
  562. uni.showLoading({
  563. title: '上传中',
  564. mask: true
  565. })
  566. })
  567. if (res.tempFiles[0].size > 20971520) {
  568. uni.showToast({
  569. title: '超出了文件限制20M',
  570. icon: 'none',
  571. duration: 700
  572. })
  573. uni.hideLoading()
  574. } else {
  575. let params = {
  576. url: getApp().globalData.apiUrl + 'v3/oss/common/upload',
  577. name: 'file',
  578. formData: {
  579. 'source': 'afterSale'
  580. }
  581. }
  582. multifileUpload({
  583. fileArray: res.tempFilePaths,
  584. params,
  585. success: function(result) {
  586. that.uploadFiles = that.uploadFiles.concat(result.map((
  587. item) => {
  588. return item.data.url
  589. })); //绝对路径用于前端显示
  590. that.upLoadFile = that.upLoadFile.concat(result.map((item) => {
  591. return item.data.path
  592. })); //相对路径用于给后台传值
  593. uni.hideLoading()
  594. },
  595. fail: function(error) {
  596. uni.hideLoading()
  597. if(error.status===200){
  598. return;
  599. }
  600. uni.showToast({
  601. title: error.msg,
  602. icon: 'none',
  603. duration: 700
  604. })
  605. }
  606. })
  607. that.$forceUpdate()
  608. }
  609. }
  610. });
  611. },
  612. //金额的校验
  613. isNumber(value) {
  614. var regPos = /^\d+(\.\d+)?$/; //非负浮点数
  615. var regPos1 = / ^\d+$/; //正整数
  616. if (regPos.test(value) || regPos1.test(value)) {
  617. return true;
  618. } else {
  619. return false;
  620. }
  621. },
  622. //退款输入的退款金额
  623. getReturnAmount(e) {
  624. let that = this;
  625. let value = Number(e.detail.value);
  626. let maxReturnMoney = Number(that.refundDetail.maxReturnMoney);
  627. let isVal = that.isNumber(value);
  628. if (!isVal) {
  629. uni.showToast({
  630. title: '请输入正确的数字',
  631. icon: 'none',
  632. duration: 700
  633. })
  634. that.returnAmount = ''
  635. } else {
  636. if (value >= maxReturnMoney) {
  637. that.returnAmount = '' + maxReturnMoney.toFixed(2);
  638. } else if (value < 0.01) {
  639. that.returnAmount = '' + 0.01
  640. } else {
  641. that.returnAmount = '' + value.toFixed(2);
  642. }
  643. }
  644. },
  645. //退款说明
  646. refundDes(e) {
  647. let that = this;
  648. that.refundInstructions = e.detail.value;
  649. },
  650. //申请件数的修改
  651. editNum(type, e) {
  652. let that = this;
  653. if (that.serviceType == '1' || that.serviceType == '2') {
  654. if (!e && type == 'add') {
  655. that.applyNum++;
  656. } else if (!e && type == 'reduce') {
  657. if (that.applyNum <= 1) {
  658. that.applyNum = 1;
  659. uni.showToast({
  660. title: '不能低于最低申请件数',
  661. icon: 'none',
  662. duration: 700
  663. })
  664. } else {
  665. that.applyNum--;
  666. }
  667. } else if (e && type == 'edit') {
  668. that.applyNum = e.detail.value;
  669. }
  670. if ((that.applyNum > that.refundDetail.number)) {
  671. uni.showToast({
  672. title: '超过了已购买的最大申请件数',
  673. icon: 'none',
  674. duration: 500
  675. })
  676. that.applyNum = that.refundDetail.number;
  677. }
  678. this.getRefundMoney();
  679. }
  680. },
  681. //根据申请件数获取退款金额
  682. getRefundMoney() {
  683. let param = {};
  684. param.url = 'v3/business/front/after/sale/apply/getReturnMoney';
  685. param.method = 'GET';
  686. param.data = {};
  687. param.data.orderProductId = this.orderProduct.orderProductId;
  688. param.data.applyNum = this.applyNum;
  689. this.$request(param).then(res => {
  690. if (res.state == 200) {
  691. let result = res.data;
  692. this.refundDetail.maxReturnMoney = result;
  693. } else {
  694. this.$api.msg(res.msg);
  695. }
  696. }).catch((e) => {
  697. //异常处理
  698. })
  699. },
  700. //批量选择商品
  701. goBatchSel() {
  702. //申请件数可编辑
  703. let isEdit = 'true';
  704. if (this.serviceType == '1' || this.serviceType == '2') {
  705. isEdit = 'true'
  706. } else {
  707. //申请件数不可编辑
  708. isEdit = 'false'
  709. }
  710. uni.navigateTo({
  711. url: '/pages/order/batchSel?orderSn=' + this.orderProduct.orderSn + '&orderProductId=' + this.orderProduct.orderProductId +
  712. '&isEdit=' + isEdit + '&batchGoods=' + JSON.stringify(this.batchGoods)
  713. })
  714. },
  715. //提交
  716. submit() {
  717. let that = this;
  718. if (that.sourceType == 'orderDetail' && that.reasonContent == '') {
  719. uni.showToast({
  720. title: '请选择退款原因',
  721. duration: 500,
  722. icon: 'none'
  723. })
  724. } else if (that.sourceType == 'selecTService') {
  725. if ((that.serviceType == '0' || that.serviceType == '1') && that.reasonContent == '') {
  726. uni.showToast({
  727. title: '请选择退款原因',
  728. duration: 500,
  729. icon: 'none'
  730. })
  731. } else if (that.serviceType == '2' && that.reasonContent == '') {
  732. uni.showToast({
  733. title: '请选择换货原因',
  734. duration: 500,
  735. icon: 'none'
  736. })
  737. } else if (that.cargoStatusContent == '' && that.serviceType == '0') {
  738. uni.showToast({
  739. title: '请选择货物状态',
  740. duration: 500,
  741. icon: 'none'
  742. })
  743. } else {
  744. that.goSubmit('open');
  745. }
  746. } else {
  747. that.goSubmit('open');
  748. }
  749. },
  750. // 去提交
  751. goSubmit(type) {
  752. switch(type){
  753. case 'open':{
  754. this.$refs.popup.open()
  755. break;
  756. }
  757. case 'confirm':{
  758. let productList = [];
  759. let that = this;
  760. if (that.tosource != 1) { //单个商品 由待发货详情页面进入
  761. let orderProduct = {};
  762. orderProduct.orderProductId = that.orderProduct.orderProductId;
  763. orderProduct.afsNum = that.serviceType == '1' || that.serviceType == '2' ? that.applyNum : that.orderProduct
  764. .productNum;
  765. productList.push(orderProduct);
  766. } else { //批量申请 由批量选择商品页面进入
  767. productList = that.batchSelList && that.batchSelList.map(function(item) {
  768. return {
  769. 'orderProductId': item.orderProductId,
  770. 'afsNum': item.currNum,
  771. }
  772. })
  773. }
  774. let param = {};
  775. param.url = 'v3/business/front/after/sale/apply/submit';
  776. param.method = 'POST';
  777. param.header = {
  778. 'content-type': 'application/json'
  779. };
  780. param.data = {};
  781. param.data.orderSn = that.orderProduct.orderSn;
  782. // serviceType:'', //服务类型 0: 仅退款(无需退货) 1 : 退货退款 2:换货
  783. param.data.afsType = that.sourceType == 'selecTService' && that.serviceType == '0' ? 3 : that.sourceType ==
  784. 'selecTService' && that.serviceType == '1' ? 1 : that.sourceType == 'selecTService' && that.serviceType ==
  785. '2' ? 2 : that.sourceType == 'orderDetail' ? 3 : ''; //申请类型(售后服务单类型,1-退货退款单(需关联处理退款金额),2-换货单,3-仅退款单)
  786. param.data.applyReasonContent = that.reasonContent; //申请售后服务原因,售后服务原因列表选择的内容
  787. param.data.afsDescription = that.refundInstructions; //详细问题描述
  788. param.data.applyImage = that.upLoadFile.join(','); //申请提交图片,多个图片用英文逗号隔开
  789. param.data.productList = productList; //订单货品列表
  790. if (that.sourceType == 'orderDetail') {
  791. param.data.goodsState = 0; //货物状态
  792. } else if (that.sourceType == 'selecTService') {
  793. if (that.serviceType == '0') {
  794. param.data.goodsState = that.cargoStatusCurrent;
  795. } else if (that.serviceType == '1' || that.serviceType == '2') {
  796. param.data.goodsState = 1
  797. }
  798. }
  799. param.data.finalReturnAmount = that.tosource == 1 ? that.refundInfos.maxReturnMoney : that.serviceType == '0' ?
  800. that.returnAmount : that.refundDetail.maxReturnMoney; //退款金额
  801. param.data = JSON.stringify(param.data);
  802. that.$request(param).then(res => {
  803. if (res.state == 200) {
  804. that.$api.msg(res.msg);
  805. let pages = getCurrentPages();
  806. if (that.sourceType == 'orderDetail') {
  807. let beforePage = pages[pages.length - 2]; //上一页
  808. beforePage.$vm.getOrderDetail(); //更新上一页数据 订单详情页面
  809. uni.navigateBack();
  810. } else {
  811. // 返回上两页,并更新上两页数据
  812. let beforePage = pages[pages.length - 3]; //上两页
  813. beforePage.$vm.getOrderDetail(); //更新上两页数据 订单详情页面
  814. uni.navigateBack({
  815. delta: 2
  816. })
  817. }
  818. } else {
  819. that.$api.msg(res.msg);
  820. }
  821. })
  822. break;
  823. }
  824. }
  825. },
  826. //去商品详情页
  827. goProductDetail(productId, goodsId) {
  828. uni.navigateTo({
  829. url: '/pages/product/detail?productId=' + productId + '&goodsId=' + goodsId
  830. })
  831. },
  832. //删除图片
  833. delImg(curItem, curIndex) {
  834. this.uploadFiles.splice(curIndex, 1);
  835. }
  836. }
  837. }
  838. </script>
  839. <style lang='scss'>
  840. page {
  841. background: $bg-color-split;
  842. width: 750rpx;
  843. margin: 0 auto;
  844. }
  845. uni-page-body {
  846. display: flex;
  847. height: 100%;
  848. }
  849. .content {
  850. position: relative;
  851. background: #fff;
  852. margin-top: 20rpx;
  853. width: 100%;
  854. height: 100%;
  855. .apply_refund_content {
  856. box-sizing: border-box;
  857. background: #FFFFFF;
  858. /* height: 100%; */
  859. .refund_goods {
  860. display: flex;
  861. margin-left: 20rpx;
  862. padding: 20rpx 20rpx 20rpx 0;
  863. border-bottom: 1rpx solid #F0F0F0;
  864. .refund_goods_image {
  865. width: 140rpx;
  866. height: 140rpx;
  867. margin-right: 20rpx;
  868. background: #F3F3F3;
  869. border-radius: 14rpx;
  870. image {
  871. width: 140rpx;
  872. height: 140rpx;
  873. border-radius: 14rpx;
  874. }
  875. }
  876. .refund_goods_des {
  877. display: flex;
  878. flex-direction: column;
  879. padding-top: 19rpx;
  880. .refund_goods_name {
  881. width: 530rpx;
  882. font-size: 28rpx;
  883. font-family: PingFang SC;
  884. font-weight: 500;
  885. color: #333333;
  886. line-height: 39rpx;
  887. white-space: nowrap;
  888. text-overflow: ellipsis;
  889. overflow: hidden;
  890. word-break: break-all;
  891. margin-bottom: 17rpx;
  892. }
  893. .refund_goods_spec {
  894. font-size: 26rpx;
  895. font-family: PingFang SC;
  896. font-weight: 400;
  897. color: #949494;
  898. line-height: 30rpx;
  899. }
  900. }
  901. }
  902. .batch_apply_list {
  903. display: flex;
  904. align-items: center;
  905. border-bottom: 1rpx solid #F5F5F5;
  906. .batch_apply_pre {
  907. display: flex;
  908. flex-direction: column;
  909. padding: 0 20rpx;
  910. box-sizing: border-box;
  911. margin-bottom: 30rpx;
  912. margin-top: 20rpx;
  913. width: 180rpx;
  914. border-right: 1rpx solid #F5F5F5;
  915. .batch_apply_pre_image {
  916. width: 140rpx;
  917. height: 140rpx;
  918. background: #F3F3F3;
  919. border-radius: 14rpx;
  920. image {
  921. width: 140rpx;
  922. height: 140rpx;
  923. border-radius: 14rpx;
  924. }
  925. }
  926. .batch_apply_pre_num {
  927. font-size: 26rpx;
  928. font-family: PingFang SC;
  929. font-weight: 400;
  930. color: #343434;
  931. line-height: 39rpx;
  932. margin-top: 20rpx;
  933. text-align: center;
  934. }
  935. }
  936. }
  937. .batch_refund {
  938. display: flex;
  939. align-items: center;
  940. justify-content: space-between;
  941. padding: 0 20rpx;
  942. box-sizing: border-box;
  943. height: 100rpx;
  944. .batch_refund_title {
  945. font-size: 28rpx;
  946. font-family: PingFang SC;
  947. font-weight: 500;
  948. color: #333333;
  949. line-height: 39rpx;
  950. }
  951. .batch_refund_opt {
  952. display: flex;
  953. align-items: center;
  954. text {
  955. font-size: 26rpx;
  956. font-family: PingFang SC;
  957. font-weight: 400;
  958. color: #999999;
  959. line-height: 39rpx;
  960. }
  961. image {
  962. width: 14rpx;
  963. height: 24rpx;
  964. margin-left: 19rpx;
  965. }
  966. }
  967. }
  968. .refund_reason_des {
  969. border-top: 20rpx solid #F5F5F5;
  970. .refund_reason {
  971. display: flex;
  972. height: 100rpx;
  973. margin-left: 20rpx;
  974. padding-right: 20rpx;
  975. justify-content: space-between;
  976. align-items: center;
  977. border-bottom: 1rpx solid #ECECEC;
  978. .refund_reason_left {
  979. display: flex;
  980. align-items: center;
  981. font-size: 28rpx;
  982. font-family: PingFang SC;
  983. font-weight: 500;
  984. line-height: 39rpx;
  985. color: #333333;
  986. text:nth-child(1) {
  987. color: #FF0C17;
  988. margin-right: 5rpx;
  989. }
  990. }
  991. .refund_reason_right {
  992. display: flex;
  993. align-items: center;
  994. text {
  995. font-size: 26rpx;
  996. font-family: PingFang SC;
  997. font-weight: 400;
  998. color: #949494;
  999. line-height: 39rpx;
  1000. }
  1001. image {
  1002. width: 14rpx;
  1003. height: 24rpx;
  1004. margin-left: 19rpx;
  1005. }
  1006. }
  1007. }
  1008. .refund_reason:nth-last-of-type(1) {
  1009. border-bottom: none;
  1010. }
  1011. }
  1012. .refund_info {
  1013. border-top: 20rpx solid #F5F5F5;
  1014. padding: 30rpx 20rpx 0rpx 20rpx;
  1015. box-sizing: border-box;
  1016. .refund_amount {
  1017. display: flex;
  1018. align-items: center;
  1019. .refund_amout_title {
  1020. font-size: 26rpx;
  1021. font-family: PingFang SC;
  1022. font-weight: 500;
  1023. color: #333333;
  1024. line-height: 24rpx;
  1025. }
  1026. .refund_amount_price {
  1027. font-size: 24rpx;
  1028. font-family: PingFang SC;
  1029. font-weight: 500;
  1030. color: #333333;
  1031. line-height: 24rpx;
  1032. display: inline-block;
  1033. text:nth-child(2) {
  1034. font-size: 26rpx;
  1035. }
  1036. input {
  1037. font-size: 26rpx;
  1038. }
  1039. }
  1040. }
  1041. .refund_amount_edit {
  1042. margin-bottom: 20rpx;
  1043. }
  1044. .refund_amount_limit {
  1045. font-size: 24rpx;
  1046. font-family: PingFang SC;
  1047. font-weight: 500;
  1048. color: #BBBBBB;
  1049. line-height: 24rpx;
  1050. margin: 30rpx 0;
  1051. }
  1052. .refund_number {
  1053. display: inline-block;
  1054. font-size: 26rpx;
  1055. font-family: PingFang SC;
  1056. font-weight: 500;
  1057. color: #333333;
  1058. line-height: 24rpx;
  1059. text:nth-child(1) {
  1060. margin-right: 10rpx;
  1061. }
  1062. }
  1063. .refund_number1 {
  1064. display: flex;
  1065. align-items: center;
  1066. .refund_number1_title {
  1067. font-size: 26rpx;
  1068. font-family: PingFang SC;
  1069. font-weight: 500;
  1070. color: #333333;
  1071. line-height: 24rpx;
  1072. }
  1073. .refund_number_edit {
  1074. margin-right: 10rpx;
  1075. display: flex;
  1076. align-items: center;
  1077. text {
  1078. width: 51rpx;
  1079. height: 50rpx;
  1080. font-size: 24rpx;
  1081. font-family: PingFang SC;
  1082. font-weight: 400;
  1083. color: #949494;
  1084. line-height: 50rpx;
  1085. border: 1rpx solid #E7E7E7;
  1086. text-align: center;
  1087. }
  1088. input {
  1089. height: 50rpx;
  1090. width: 78rpx;
  1091. font-size: 24rpx;
  1092. font-family: PingFang SC;
  1093. font-weight: 500;
  1094. color: #2D2D2D;
  1095. line-height: 50rpx;
  1096. text-align: center;
  1097. border-top: 1rpx solid #E7E7E7;
  1098. border-bottom: 1rpx solid #E7E7E7;
  1099. }
  1100. }
  1101. }
  1102. .refund_instructions {
  1103. display: flex;
  1104. align-items: center;
  1105. margin: 30rpx 0;
  1106. text {
  1107. font-size: 26rpx;
  1108. font-family: PingFang SC;
  1109. font-weight: 500;
  1110. color: #333333;
  1111. line-height: 24rpx;
  1112. }
  1113. input {
  1114. font-size: 26rpx;
  1115. font-family: PingFang SC;
  1116. font-weight: 500;
  1117. color: #949494;
  1118. line-height: 24rpx;
  1119. margin-left: 10rpx;
  1120. width: 580rpx;
  1121. }
  1122. }
  1123. }
  1124. }
  1125. .upload_voucher {
  1126. border-top: 20rpx solid #F5F5F5;
  1127. padding: 30rpx 20rpx;
  1128. .upload_voucher_title {
  1129. font-size: 26rpx;
  1130. font-family: PingFang SC;
  1131. font-weight: 500;
  1132. color: #333333;
  1133. margin-bottom: 30rpx;
  1134. }
  1135. .upload_voucher_con1 {
  1136. display: flex;
  1137. flex-wrap: wrap;
  1138. overflow-x: auto;
  1139. overflow-y: hidden;
  1140. white-space: nowrap;
  1141. /* 解决ios手机页面滑动卡顿问题 */
  1142. -webkit-overflow-scrolling: touch;
  1143. .upload_img {
  1144. width: 160rpx;
  1145. height: 170rpx;
  1146. margin: 0 20rpx 20rpx 0;
  1147. position: relative;
  1148. padding-top: 10rpx;
  1149. image:nth-child(1) {
  1150. width: 152rpx;
  1151. height: 152rpx;
  1152. }
  1153. image:nth-child(2) {
  1154. width: 30rpx;
  1155. height: 30rpx;
  1156. position: absolute;
  1157. top: 0rpx;
  1158. right: -15rpx;
  1159. }
  1160. }
  1161. .upload_voucher_con {
  1162. padding-top: 10rpx;
  1163. .upload_image {
  1164. width: 156rpx;
  1165. height: 156rpx;
  1166. border: 2rpx solid #eeeeee;
  1167. display: flex;
  1168. flex-direction: column;
  1169. justify-content: center;
  1170. align-items: center;
  1171. image {
  1172. width: 50rpx;
  1173. height: 40rpx;
  1174. }
  1175. text {
  1176. font-size: 26rpx;
  1177. font-family: PingFang SC;
  1178. font-weight: 400;
  1179. color: #949494;
  1180. margin-top: 17rpx;
  1181. }
  1182. .upload_limit {
  1183. font-size: 20rpx;
  1184. font-family: PingFang SC;
  1185. font-weight: 400;
  1186. color: #949494;
  1187. margin-top: 9rpx;
  1188. }
  1189. }
  1190. }
  1191. }
  1192. }
  1193. .upload_voucher::-webkit-scrollbar {
  1194. display: none
  1195. }
  1196. .submit {
  1197. width: 100%;
  1198. position: absolute;
  1199. z-index: 10;
  1200. background: #FFFFFF;
  1201. display: flex;
  1202. justify-content: center;
  1203. align-items: center;
  1204. height: 168rpx;
  1205. .text {
  1206. width: 668rpx;
  1207. height: 88rpx;
  1208. background: linear-gradient(-90deg, #FC1D1C 0%, #FF7A18 100%);
  1209. border-radius: 44rpx;
  1210. font-size: 36rpx;
  1211. font-family: PingFang SC;
  1212. font-weight: 500;
  1213. color: #FFFFFF;
  1214. line-height: 88rpx;
  1215. text-align: center;
  1216. }
  1217. }
  1218. .cancel_popup {
  1219. width: 100%;
  1220. height: 700rpx;
  1221. background: #FFFFFF;
  1222. border-radius: 15rpx 15rpx 0 0;
  1223. position: fixed;
  1224. width: 100% !important;
  1225. z-index: 20;
  1226. bottom: 0;
  1227. .popup_top {
  1228. height: 100rpx;
  1229. width: 100%;
  1230. display: flex;
  1231. padding: 0 30rpx 0 30rpx;
  1232. align-items: center;
  1233. border-bottom: 1rpx solid #F8F8F8;
  1234. justify-content: space-between;
  1235. text {
  1236. font-size: 32rpx;
  1237. font-family: PingFang SC;
  1238. font-weight: 500;
  1239. color: #343434;
  1240. line-height: 32rpx;
  1241. }
  1242. image {
  1243. width: 30rpx;
  1244. height: 30rpx;
  1245. }
  1246. }
  1247. .cancel_list {
  1248. padding-bottom: 128rpx;
  1249. box-sizing: border-box;
  1250. height: 600rpx;
  1251. .cancle_pre {
  1252. width: 100%;
  1253. padding: 29rpx 40rpx;
  1254. box-sizing: border-box;
  1255. display: flex;
  1256. justify-content: space-between;
  1257. text {
  1258. font-size: 28rpx;
  1259. font-family: PingFang SC;
  1260. font-weight: 500;
  1261. color: #666666;
  1262. line-height: 32rpx;
  1263. }
  1264. }
  1265. }
  1266. .cancel_popup_btn {
  1267. position: fixed;
  1268. bottom: 34rpx;
  1269. z-index: 30;
  1270. display: flex;
  1271. width: 100%;
  1272. justify-content: center;
  1273. .confrim_btn {
  1274. width: 668rpx;
  1275. height: 70rpx;
  1276. background: linear-gradient(-90deg, #FC1E1C 0%, #FF7A18 100%);
  1277. border-radius: 44rpx;
  1278. font-size: 36rpx;
  1279. font-family: PingFang SC;
  1280. font-weight: 500;
  1281. color: #FFFFFF;
  1282. line-height: 70rpx;
  1283. text-align: center;
  1284. }
  1285. }
  1286. }
  1287. }
  1288. </style>