index.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224
  1. <template>
  2. <view :data-theme="theme">
  3. <view class='order-details'>
  4. <!-- 给header上与data上加on为退款订单-->
  5. <view class='header bg_color on'>
  6. <view class='picTxt acea-row row-middle'>
  7. <view class='data on'>
  8. <view class="acea-row row-middle mb20">
  9. <view class='state line-heightOne'>
  10. <view class='state line-heightOne'>
  11. <span v-if="refundInfo.refundStatus==0">用户提交退款申请,请您及时处理哦~</span>
  12. <span v-if="refundInfo.refundStatus==4">您已同意此退款申请,等待用户退货中~</span>
  13. <span v-if="refundInfo.refundStatus==5">用户已经填写退货信息,请您耐心等待~</span>
  14. <span v-if="refundInfo.refundStatus==2">退款金额原支付路径返回中!</span>
  15. <span v-if="refundInfo.refundStatus==3">退款金额已返还用户账户!</span>
  16. <span v-if="refundInfo.refundStatus==6">用户已经撤销此退款申请!</span>
  17. <span v-if="refundInfo.refundStatus==1">{{refundInfo.refundReason}}</span>
  18. </view>
  19. </view>
  20. <view v-show="refundInfo.refundStatus===3"><text class="font-color refundPrice">{{refundInfo.refundPrice}}元</text></view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <!-- 商品详情 -->
  26. <view class="borderPad margin-100">
  27. <view class="borRadius14 wrapper">
  28. <orderGoods :isShowBtn="false" :refundInfo="refundInfo" :cartInfo="[refundInfo]" :jump="true" :orderData="refundInfo">
  29. </orderGoods>
  30. <view class="borderPad">
  31. <view class="return_info">
  32. <view class='item acea-row row-between line-heightOne'>
  33. <view>退款件数:</view>
  34. <view class='conter'>{{refundInfo.applyRefundNum}}</view>
  35. </view>
  36. <view class='item acea-row row-between line-heightOne'>
  37. <view>退款金额:</view>
  38. <view class='conter'>¥{{refundInfo.refundPrice}}</view>
  39. </view>
  40. <view class='item acea-row row-between line-heightOne'>
  41. <view>退款方式:</view>
  42. <view class='conter'>原路返回</view>
  43. </view>
  44. <view class='item acea-row row-between line-heightOne'>
  45. <view>退款原因:</view>
  46. <view v-if="refundInfo.promoterType==='user'" class='conter'>{{refundInfo.refundReasonWap}}</view>
  47. <view v-else class='conter'>商家直接退款</view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <!-- 商家店铺地址 -->
  54. <view v-if="refundInfo.returnGoodsType ===2 && merAddress && refundInfo.refundStatus>0" class="borderPad">
  55. <view class="borRadius14 wrapper return_info_pad">
  56. <view class='item acea-row row-between mb30'>
  57. <view>商家退回地址:</view>
  58. <view class='conter acea-row row-middle row-right'>
  59. <!-- #ifndef H5 -->
  60. <text class='copy line-heightOne' @tap="copy(merAddress.name+','+merAddress.phone+','+merAddress.addressDetail)">复制</text>
  61. <!-- #endif -->
  62. <!-- #ifdef H5 -->
  63. <text class='copy copy-data line-heightOne' :data-clipboard-text="merAddress.name+','+merAddress.phone+','+merAddress.addressDetail">复制</text>
  64. <!-- #endif -->
  65. </view>
  66. </view>
  67. <view class="text-2828 f-s-26 mb20">
  68. <text class="text-2828">{{merAddress.name}}</text>
  69. <text>{{merAddress.phone}}</text>
  70. </view>
  71. <view class="text-666 f-s-26 addressDetail">{{merAddress.addressDetail}}</view>
  72. </view>
  73. </view>
  74. <!-- 商家退回地址 -->
  75. <view v-if="refundInfo.returnGoodsType ===1 && refundInfo.refundStatus>0 &&refundInfo.receiver&&refundInfo.receiverPhone&&refundInfo.receiverAddressDetail"
  76. class="borderPad">
  77. <view class="borRadius14 wrapper return_info_pad">
  78. <view class='item acea-row row-between mb30'>
  79. <view>商家退回地址:</view>
  80. <view class='conter acea-row row-middle row-right'>
  81. <!-- #ifndef H5 -->
  82. <text class='copy line-heightOne' @tap="copy(refundInfo.receiver+','+refundInfo.receiverPhone+','+refundInfo.receiverAddressDetail)">复制</text>
  83. <!-- #endif -->
  84. <!-- #ifdef H5 -->
  85. <text class='copy copy-data line-heightOne' :data-clipboard-text="refundInfo.receiver+','+refundInfo.receiverPhone+','+refundInfo.receiverAddressDetail">复制</text>
  86. <!-- #endif -->
  87. </view>
  88. </view>
  89. <view class="text-2828 f-s-26 mb20">
  90. <text class="text-2828">{{refundInfo.receiver}}</text>
  91. <text>{{refundInfo.receiverPhone}}</text>
  92. </view>
  93. <view class="text-666 f-s-26 addressDetail">{{refundInfo.receiverAddressDetail}}</view>
  94. </view>
  95. </view>
  96. <!-- 退款订单详情 "-->
  97. <view class="borderPad">
  98. <view class='wrapper borRadius14 return_info_pad'>
  99. <view class='item acea-row row-between '>
  100. <view>订单单号:</view>
  101. <view class='conter acea-row row-middle row-right'><text class="text-overflow">{{refundInfo.orderNo}}</text>
  102. <!-- #ifndef H5 -->
  103. <text class='copy line-heightOne' @tap='copy(refundInfo.orderNo)'>复制</text>
  104. <!-- #endif -->
  105. <!-- #ifdef H5 -->
  106. <text class='copy copy-data line-heightOne' :data-clipboard-text="refundInfo.orderNo">复制</text>
  107. <!-- #endif -->
  108. </view>
  109. </view>
  110. <view class='item acea-row row-between'>
  111. <view>售后单号:</view>
  112. <view class='conter acea-row row-middle row-right'><text class="text-overflow">{{refundInfo.refundOrderNo}}</text>
  113. <!-- #ifndef H5 -->
  114. <text class='copy line-heightOne' @tap='copy(refundInfo.refundOrderNo)'>复制</text>
  115. <!-- #endif -->
  116. <!-- #ifdef H5 -->
  117. <text class='copy copy-data line-heightOne' :data-clipboard-text="refundInfo.refundOrderNo">复制</text>
  118. <!-- #endif -->
  119. </view>
  120. </view>
  121. <view class='item acea-row row-between'>
  122. <view>申请时间:</view>
  123. <view class='conter'>{{(refundInfo.createTime || 0)}}</view>
  124. </view>
  125. <view class='item acea-row row-between'>
  126. <view>售后类型:</view>
  127. <view class='conter'>{{refundInfo.afterSalesType===1?'仅退款':'退货退款'}}</view>
  128. </view>
  129. <view class='item acea-row row-between'>
  130. <view>退回方式:</view>
  131. <view class='conter'>
  132. {{refundInfo.returnGoodsType===1?'快递退回':refundInfo.returnGoodsType===2?'到店退货':'不退货'}}</view>
  133. </view>
  134. <view class='item acea-row row-between' v-if="refundInfo.refundReasonWapExplain">
  135. <view>备注说明:</view>
  136. <view class='conter-refund text-left'>{{refundInfo.refundReasonWapExplain}}</view>
  137. </view>
  138. <view class='item acea-row row-between' v-if="refundInfo.refundReasonWapImg">
  139. <view>退款凭证:</view>
  140. <view class='conter-refund text-left'>
  141. <image class="wapImg" :src="item" v-for="item in refundInfo.refundReasonWapImg.split(',')" :key='item.id'></image>
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. <!-- 用户到店退回信息 -->
  147. <view v-if="refundInfo.returnGoodsType ===2 && refundInfo.refundStatus>0 && refundInfo.telephone" class="borderPad">
  148. <view class="borRadius14 wrapper return_info_pad">
  149. <view class='item acea-row row-between'>
  150. <view>联系电话:</view>
  151. <view class='conter'>{{refundInfo.telephone}}</view>
  152. </view>
  153. </view>
  154. </view>
  155. <!-- 用户发货信息 -->
  156. <view v-if="refundInfo.returnGoodsType ===1 && refundInfo.refundStatus>0 && refundInfo.expressName && refundInfo.trackingNumber"
  157. class="borderPad">
  158. <view class="borRadius14 wrapper return_info_pad">
  159. <view class='item acea-row row-between mb30'>
  160. <view>物流公司:</view>
  161. <view class='conter'>{{refundInfo.expressName}}</view>
  162. </view>
  163. <view class='item acea-row row-between mb30'>
  164. <view>物流单号:</view>
  165. <view class='conter acea-row row-middle row-right'>
  166. <text class="text-overflow">{{refundInfo.trackingNumber}}</text>
  167. <!-- #ifndef H5 -->
  168. <text class='copy line-heightOne' @tap='copy(refundInfo.trackingNumber)'>复制</text>
  169. <!-- #endif -->
  170. <!-- #ifdef H5 -->
  171. <text class='copy copy-data line-heightOne' :data-clipboard-text="refundInfo.trackingNumber">复制</text>
  172. <!-- #endif -->
  173. </view>
  174. </view>
  175. <view class='item acea-row row-between'>
  176. <view>联系电话:</view>
  177. <view class='conter'>{{refundInfo.telephone}}</view>
  178. </view>
  179. </view>
  180. </view>
  181. <!-- 操作按钮 "-->
  182. <view class="borderPad">
  183. <view class='wrapper borRadius14 return_info_pad btn-box acea-row' style="justify-content: flex-end;">
  184. <view></view>
  185. <view class="footer acea-row row-right row-middle">
  186. <view class="btn btn-999 acea-row row-center line-heightOne" @click="modify(refundInfo, 7)">退款单备注</view>
  187. <view class="btn on" v-if="(refundInfo.returnGoodsType==0||refundInfo.returnGoodsType==2)&&refundInfo.refundStatus==0" @click="modify(refundInfo,'2',1,0)">
  188. 退款审核
  189. </view>
  190. <view class="btn on" v-if="refundInfo.returnGoodsType==1&&refundInfo.refundStatus==0" @click="modify(refundInfo,'2',0,1)">
  191. 退款审核
  192. </view>
  193. <view class="btn on" v-if="refundInfo.refundStatus==5" @click="modify(refundInfo, 2, 1,2)">确认收货</view>
  194. </view>
  195. <PriceChange :change="change" :orderInfo="orderInfo" :isRefund="isRefund"
  196. v-on:statusChange="statusChange($event)" v-on:closechange="changeclose($event)" v-on:savePrice="savePrice"
  197. :status="status"></PriceChange>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. </template>
  203. <script>
  204. // +----------------------------------------------------------------------
  205. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  206. // +----------------------------------------------------------------------
  207. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
  208. // +----------------------------------------------------------------------
  209. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  210. // +----------------------------------------------------------------------
  211. // | Author: CRMEB Team <admin@crmeb.com>
  212. // +----------------------------------------------------------------------
  213. import PriceChange from "../components/PriceChange/index.vue";
  214. import {
  215. orderRefundInfoApi
  216. } from '@/api/order.js';
  217. import {
  218. refundReceiving,
  219. refundReceivingReject,
  220. secondHandRefundInfoApi,
  221. refundOrderAudit
  222. } from '@/api/secondHand.js';
  223. import {
  224. onRevokeRefund
  225. } from '@/libs/order';
  226. import orderGoods from "../components/orderGoods";
  227. import {
  228. getMerAddressApi
  229. } from '@/api/merchant.js'
  230. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  231. import {
  232. toLogin
  233. } from '@/libs/login.js';
  234. import {
  235. mapGetters
  236. } from "vuex";
  237. // #ifdef MP
  238. import uQRCode from '@/js_sdk/Sansnn-uQRCode/uqrcode.js'
  239. // #endif
  240. import {
  241. setThemeColor
  242. } from '@/utils/setTheme.js'
  243. const app = getApp();
  244. export default {
  245. components: {
  246. PriceChange,
  247. orderGoods
  248. },
  249. data() {
  250. return {
  251. rejectText: '',
  252. orderType: '',
  253. orderTypeId: null,
  254. rejectOrder: '',
  255. merAddress: null, //店铺地址
  256. refundOrderNo: '',
  257. refundInfo: {}, //退款单详情
  258. theme: app.globalData.theme,
  259. orderInfo:{},
  260. openErp: false,
  261. change:false,
  262. status: "",
  263. apiModalType:'',
  264. isRefund: 0, //1是仅退款;0是同意退货退款
  265. chatConfig: {
  266. consumer_hotline: '',
  267. telephone_service_switch: 'false'
  268. }, //客服配置
  269. };
  270. },
  271. computed: mapGetters(['isLogin', 'chatUrl', 'userInfo']),
  272. onLoad: function(options) {
  273. options.type == undefined || options.type == null ? this.type = 'normal' : this.type = options.type;
  274. if (!options.refundOrderNo) return this.$util.Tips({
  275. title: '缺少参数'
  276. }, {
  277. tab: 3,
  278. url: 1
  279. });
  280. this.$set(this, 'refundOrderNo', options.refundOrderNo);
  281. this.$set(this, 'orderType', options.orderType);
  282. this.$set(this, 'orderTypeId', options.orderTypeId);
  283. this.bgColor = setThemeColor();
  284. this.$set(this, 'chatConfig', this.$Cache.getItem('chatConfig'));
  285. },
  286. onShow() {
  287. if (this.isLogin) {
  288. this.orderRefundInfo();
  289. } else {
  290. toLogin();
  291. }
  292. },
  293. onHide: function() {
  294. this.isClose = true;
  295. },
  296. // 滚动监听
  297. onPageScroll(e) {
  298. // 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
  299. uni.$emit('scroll');
  300. },
  301. onReady: function() {
  302. // #ifdef H5
  303. this.$nextTick(function() {
  304. const clipboard = new ClipboardJS(".copy-data");
  305. clipboard.on("success", () => {
  306. this.$util.Tips({
  307. title: '复制成功'
  308. });
  309. });
  310. });
  311. // #endif
  312. },
  313. methods: {
  314. //0-仅退款 1-退货退款 2-确认收货
  315. modify: function(item, status, type,apiType) {
  316. this.apiModalType=apiType
  317. if (this.openErp && status != 1) return
  318. this.change = true;
  319. this.status = status.toString();
  320. this.orderInfo = item;
  321. if (status == 2) {
  322. this.isRefund = type
  323. }
  324. },
  325. changeclose: function(msg) {
  326. this.change = msg;
  327. },
  328. async savePrice(opt) {
  329. let that = this,
  330. data = {};
  331. data.refundOrderNo = that.orderInfo.refundOrderNo;
  332. if (that.apiModalType == 0) {
  333. if(opt.type==2&&!opt.refuse_reason){
  334. return this.$util.Tips({
  335. title: '请输入拒绝理由'
  336. })
  337. }
  338. let requestObj = {
  339. refundOrderNo:that.orderInfo.refundOrderNo,
  340. auditType:opt.type==1?'success':'refuse',
  341. reason:opt.refuse_reason?opt.refuse_reason:''
  342. }
  343. refundOrderAudit(requestObj).then(res=>{
  344. if(res.code==200){
  345. this.$util.Tips({
  346. title: '审核成功'
  347. })
  348. this.init();
  349. this.change = false
  350. }else{
  351. this.$util.Tips({
  352. title:res.message
  353. })
  354. }
  355. })
  356. } else if (that.apiModalType == 1) {
  357. //退货退款审核
  358. if(opt.type==2&&!opt.refuse_reason){
  359. return this.$util.Tips({
  360. title: '请输入拒绝理由'
  361. })
  362. }
  363. if(opt.type==1&&!opt.merAddressId){
  364. return this.$util.Tips({
  365. title: '请选择退货地址'
  366. })
  367. }
  368. //退货退款拒绝
  369. if(opt.type==2){
  370. let requestObj = {
  371. refundOrderNo:that.orderInfo.refundOrderNo,
  372. auditType:opt.type==1?'success':'refuse',
  373. reason:opt.refuse_reason?opt.refuse_reason:''
  374. }
  375. refundOrderAudit(requestObj).then(res=>{
  376. if(res.code==200){
  377. this.$util.Tips({
  378. title: '操作成功'
  379. })
  380. this.init();
  381. this.change = false
  382. }else{
  383. this.$util.Tips({
  384. title:res.message
  385. })
  386. }
  387. })
  388. }
  389. //退货退款同意
  390. if(opt.type==1){
  391. let requestObj = {
  392. refundOrderNo:that.orderInfo.refundOrderNo,
  393. auditType:opt.type==1?'success':'refuse',
  394. merAddressId:opt.merAddressId
  395. }
  396. refundOrderAudit(requestObj).then(res=>{
  397. if(res.code==200){
  398. this.$util.Tips({
  399. title: '操作成功'
  400. })
  401. this.init();
  402. this.change = false
  403. }else{
  404. this.$util.Tips({
  405. title:res.message
  406. })
  407. }
  408. })
  409. }
  410. }else if(that.apiModalType == 2){
  411. //确认收货
  412. if(opt.type==2&&!opt.refuse_reason){
  413. return this.$util.Tips({
  414. title: '请输入拒绝理由'
  415. })
  416. }
  417. if(opt.type==1){
  418. // 同意
  419. refundReceiving(that.orderInfo.refundOrderNo).then(res=>{
  420. if(res.code==200){
  421. this.$util.Tips({
  422. title: '操作成功'
  423. })
  424. this.init();
  425. this.change = false
  426. }else{
  427. this.$util.Tips({
  428. title:res.message
  429. })
  430. }
  431. })
  432. }
  433. if(opt.type==2){
  434. let requestObj = {
  435. refundOrderNo:that.orderInfo.refundOrderNo,
  436. reason:opt.refuse_reason?opt.refuse_reason:''
  437. }
  438. // 拒绝
  439. refundReceivingReject(requestObj).then(res=>{
  440. if(res.code==200){
  441. this.$util.Tips({
  442. title: '操作成功'
  443. })
  444. this.init();
  445. this.change = false
  446. }else{
  447. this.$util.Tips({
  448. title:res.message
  449. })
  450. }
  451. })
  452. }
  453. }else{
  454. data.remark=opt.remark
  455. if (!data.remark) {
  456. return this.$util.Tips({
  457. title: '请输入备注'
  458. })
  459. }
  460. refundOrderMark(data).then(res=>{
  461. if(res.code==200){
  462. this.$util.Tips({
  463. title: '备注成功'
  464. })
  465. this.getIndex();
  466. this.change = false
  467. }else{
  468. this.$util.Tips({
  469. title:res.message
  470. })
  471. }
  472. })
  473. }
  474. },
  475. //审核保存
  476. handleInputConfirm() {
  477. let that = this;
  478. if (!this.rejectText) return this.$util.Tips({
  479. title: '请输入审核不通过原因!'
  480. });
  481. uni.showLoading({
  482. title: '正在处理中'
  483. });
  484. let params = {
  485. refundOrderNo: this.rejectOrder,
  486. auditType: 'refuse',
  487. reason: this.rejectText
  488. }
  489. returningSecondHandAuditApi(params).then(res => {
  490. uni.hideLoading();
  491. return that.$util.Tips({
  492. title: '处理成功',
  493. icon: 'success'
  494. }, function() {
  495. that.orderRefundInfo();
  496. });
  497. }).catch(err => {
  498. return that.$util.Tips({
  499. title: err
  500. });
  501. });
  502. // 关闭窗口后,恢复默认内容
  503. this.$refs.rejectDialog.close()
  504. },
  505. //审核取消
  506. handleInputClose() {
  507. this.$refs.rejectDialog.close()
  508. },
  509. // 审核
  510. handleRevokeAudit(orderNo, type) {
  511. this.rejectOrder = orderNo;
  512. if (type) {
  513. uni.showLoading({
  514. title: '正在处理中'
  515. });
  516. returningSecondHandAuditApi({refundOrderNo: this.rejectOrder, auditType: 'success'}).then(res => {
  517. uni.hideLoading();
  518. return that.$util.Tips({
  519. title: '处理成功',
  520. icon: 'success'
  521. }, function() {
  522. that.orderRefundInfo();
  523. });
  524. }).catch(err => {
  525. return that.$util.Tips({
  526. title: err
  527. });
  528. });
  529. } else {
  530. this.$refs.rejectDialog.open();
  531. }
  532. },
  533. //店铺地址
  534. getMerAddress() {
  535. getMerAddressApi(this.refundInfo.merId).then(res => {
  536. this.$set(this, 'merAddress', res.data);
  537. }).catch(err => {
  538. return this.$util.Tips({
  539. title: err
  540. });
  541. })
  542. },
  543. //撤销售后
  544. handleRevokeRefund(refundOrderNo) {
  545. let that = this;
  546. onRevokeRefund(refundOrderNo, this.orderType).then(() => {
  547. this.orderRefundInfo()
  548. });
  549. },
  550. //退回商品
  551. handleReturningRefund(item) {
  552. this.$Cache.set('productInfo', item)
  553. let url =
  554. `/pages/goods/returns_and_refunds/index?refundOrderNo=${item.refundOrderNo}&returnGoodsType=${item.returnGoodsType}`;
  555. this.orderType == 'secondHand' ? url = url + '&orderType=secondHand' : ''
  556. uni.navigateTo({
  557. url: url
  558. })
  559. },
  560. kefuClick() {
  561. if (this.chatConfig.telephone_service_switch === 'true') {
  562. uni.makePhoneCall({
  563. phoneNumber: this.chatConfig.consumer_hotline //仅为示例
  564. });
  565. } else {
  566. // #ifdef APP-PLUS
  567. uni.navigateTo({
  568. url: '/pages/users/web_page/index?webUel=' + this.chatUrl + '&title=客服'
  569. })
  570. // #endif
  571. // #ifndef APP-PLUS
  572. location.href = this.chatUrl;
  573. // #endif
  574. }
  575. },
  576. /**
  577. * 拨打电话
  578. */
  579. makePhone: function(e) {
  580. uni.makePhoneCall({
  581. phoneNumber: e
  582. })
  583. },
  584. /**
  585. * 获取退款订单详细信息
  586. *
  587. */
  588. orderRefundInfo() {
  589. let that = this;
  590. uni.showLoading({
  591. title: "正在加载中"
  592. });
  593. let api = that.orderType == 'secondHand' ? secondHandRefundInfoApi : orderRefundInfoApi;
  594. api(that.refundOrderNo).then(res => {
  595. uni.hideLoading();
  596. let data = res.data;
  597. that.$set(that, 'refundInfo', data);
  598. //returnGoodsType 退货类型:0-不退货 1-快递退回,2-到店退货
  599. if (that.refundInfo.returnGoodsType === 2) that.getMerAddress();
  600. }).catch(err => {
  601. that.$util.Tips({
  602. title: err
  603. }, {
  604. tab: 4,
  605. url: '/pages/user/index'
  606. });
  607. });
  608. },
  609. init(){
  610. uni.navigateBack()
  611. },
  612. /**
  613. *
  614. * 剪切订单号
  615. */
  616. // #ifndef H5
  617. copy: function(orderNo) {
  618. let that = this;
  619. uni.setClipboardData({
  620. data: orderNo
  621. });
  622. },
  623. // #endif
  624. /**
  625. * 打电话
  626. */
  627. goTel: function() {
  628. uni.makePhoneCall({
  629. phoneNumber: this.refundInfo.deliveryId
  630. })
  631. }
  632. }
  633. }
  634. </script>
  635. <style scoped lang="scss">
  636. .addressDetail {
  637. line-height: 36rpx;
  638. }
  639. .btn-box {
  640. display: flex;
  641. padding-top: 20rpx;
  642. line-height: 60rpx;
  643. .btn-line {
  644. @include main_color(theme);
  645. @include coupons_border_color(theme);
  646. }
  647. .btn-bg {
  648. color: #fff;
  649. }
  650. .btn-999 {
  651. border: 1px solid #999999;
  652. color: #666666;
  653. }
  654. .btn {
  655. width: 176rpx;
  656. height: 60rpx;
  657. line-height: 56rpx;
  658. margin-left: 18rpx;
  659. text-align: center;
  660. border-radius: 30rpx;
  661. font-size: 28rpx;
  662. }
  663. .on {
  664. border-color: #2A7EFB !important;
  665. background: #2A7EFB !important;
  666. color: #fff !important;
  667. }
  668. }
  669. .margin-100 {
  670. margin: -86rpx auto 0 auto;
  671. }
  672. .return_info_pad {
  673. padding: 30rpx 24rpx;
  674. }
  675. .return_info {
  676. border-top: 1px solid #EEEEEE;
  677. background-color: #fff;
  678. padding: 32rpx 0;
  679. }
  680. .refundPrice {
  681. font-size: 35rpx;
  682. font-weight: bold;
  683. }
  684. .qs-btn {
  685. width: auto;
  686. height: 60rpx;
  687. text-align: center;
  688. line-height: 60rpx;
  689. border-radius: 50rpx;
  690. color: #fff;
  691. font-size: 27rpx;
  692. padding: 0 3%;
  693. color: #aaa;
  694. border: 1px solid #ddd;
  695. margin-right: 20rpx;
  696. }
  697. .text-overflow {
  698. width: 392rpx;
  699. overflow: hidden;
  700. text-overflow: ellipsis;
  701. white-space: nowrap;
  702. }
  703. .shuoming {
  704. width: 32rpx;
  705. height: 32rpx;
  706. }
  707. .mp-header {
  708. width: 100%;
  709. @include main_bg_color(theme);
  710. }
  711. .goodCall {
  712. @include main_color(theme);
  713. text-align: center;
  714. width: 100%;
  715. height: 86rpx;
  716. padding: 0 30rpx;
  717. border-bottom: 1rpx solid #eee;
  718. font-size: 30rpx;
  719. line-height: 86rpx;
  720. background: #fff;
  721. .icon-kefu {
  722. font-size: 36rpx;
  723. margin-right: 15rpx;
  724. }
  725. /* #ifdef MP */
  726. button {
  727. display: flex;
  728. align-items: center;
  729. justify-content: center;
  730. height: 86rpx;
  731. font-size: 30rpx;
  732. @include main_color(theme);
  733. }
  734. /* #endif */
  735. }
  736. .justify-between {
  737. justify-content: space-between;
  738. }
  739. .align-center {
  740. align-items: center;
  741. }
  742. .order-details {
  743. padding-bottom: 30rpx;
  744. .header {
  745. height: 250rpx;
  746. padding: 0 24rpx;
  747. }
  748. }
  749. .bg_color {
  750. @include main_bg_color(theme);
  751. }
  752. .order-details .header.on {
  753. // /background-color: #666 !important;
  754. }
  755. .order-details .header .pictrue {
  756. width: 110rpx;
  757. height: 110rpx;
  758. }
  759. .order-details .header .pictrue image {
  760. width: 100%;
  761. height: 100%;
  762. }
  763. .order-details .header .data {
  764. color: rgba(255, 255, 255, 0.8);
  765. font-size: 24rpx;
  766. margin-left: 27rpx;
  767. }
  768. .order-details .header .data.on {
  769. margin-left: 0;
  770. padding-top: 34rpx;
  771. }
  772. .order-details .header .data .state {
  773. font-size: 30rpx;
  774. font-weight: bold;
  775. color: #fff;
  776. }
  777. .order-details .header .data .time {
  778. margin-left: 20rpx;
  779. }
  780. .picTxt {
  781. padding-left: 10rpx;
  782. }
  783. .order-details .nav {
  784. background-color: #fff;
  785. font-size: 26rpx;
  786. color: #282828;
  787. padding: 27rpx 0;
  788. width: 100%;
  789. border-radius: 14rpx;
  790. margin: -100rpx auto 0 auto;
  791. }
  792. .order-details .nav .navCon {
  793. padding: 0 40rpx;
  794. }
  795. .order-details .nav .on {
  796. @include main_color(theme);
  797. }
  798. .font_color {
  799. @include main_color(theme);
  800. }
  801. .order-details .nav .progress {
  802. padding: 0 65rpx;
  803. margin-top: 10rpx;
  804. }
  805. .order-details .nav .progress .line {
  806. width: 100rpx;
  807. height: 2rpx;
  808. background-color: #939390;
  809. }
  810. .order-details .nav .progress .iconfont {
  811. font-size: 25rpx;
  812. color: #939390;
  813. margin-top: -2rpx;
  814. }
  815. .order-details .address {
  816. font-size: 26rpx;
  817. color: #868686;
  818. background-color: #fff;
  819. padding: 30rpx 0;
  820. .phone {
  821. margin-left: 20rpx;
  822. }
  823. }
  824. .order-details .address .name {
  825. font-size: 30rpx;
  826. color: #333;
  827. margin-bottom: 15rpx;
  828. }
  829. .order-details .line {
  830. width: 100%;
  831. height: 3rpx;
  832. }
  833. .order-details .line image {
  834. width: 100%;
  835. height: 100%;
  836. display: block;
  837. }
  838. .order-details .wrapper {
  839. background-color: #fff;
  840. margin-top: 12rpx;
  841. }
  842. .order-details .wrapper .item {
  843. font-size: 28rpx;
  844. color: #282828;
  845. }
  846. .order-details .wrapper .item~.item {
  847. margin-top: 34rpx;
  848. }
  849. .order-details .wrapper .item .conter {
  850. color: #282828;
  851. text-align: right;
  852. overflow: hidden;
  853. text-overflow: ellipsis;
  854. white-space: nowrap;
  855. }
  856. .mark_show {
  857. color: #868686;
  858. width: 470rpx;
  859. text-align: right;
  860. }
  861. .order-details .wrapper .item .conter .copy {
  862. font-size: 20rpx;
  863. color: #666;
  864. border-radius: 20rpx;
  865. border: 1rpx solid #999;
  866. padding: 8rpx 18rpx;
  867. margin-left: 10rpx;
  868. }
  869. .order-details .wrapper .actualPay {
  870. border-top: 1rpx solid #eee;
  871. margin-top: 30rpx;
  872. padding-top: 30rpx;
  873. }
  874. .order-details .wrapper .actualPay .money {
  875. font-weight: bold;
  876. font-size: 30rpx;
  877. @include price_color(theme);
  878. }
  879. .order-details .footer {
  880. width: 100%;
  881. height: 100rpx;
  882. position: fixed;
  883. bottom: 0;
  884. left: 0;
  885. background-color: #fff;
  886. padding-right: 30rpx;
  887. box-sizing: border-box;
  888. }
  889. .order-details .footer .bnt {
  890. width: 158rpx;
  891. height: 54rpx;
  892. text-align: center;
  893. line-height: 54rpx;
  894. border-radius: 50rpx;
  895. color: #fff;
  896. font-size: 27rpx;
  897. }
  898. .order-details .footer .bnt.cancel {
  899. color: #aaa;
  900. border: 1rpx solid #ddd;
  901. }
  902. .order-details .footer .bnt~.bnt {
  903. margin-left: 18rpx;
  904. }
  905. .order-details .writeOff {
  906. background-color: #fff;
  907. margin-top: 15rpx;
  908. padding-bottom: 50rpx;
  909. }
  910. .order-details .writeOff .title {
  911. font-size: 30rpx;
  912. color: #282828;
  913. height: 87rpx;
  914. border-bottom: 1px solid #f0f0f0;
  915. padding: 0 24rpx;
  916. line-height: 87rpx;
  917. }
  918. .order-details .writeOff .grayBg {
  919. background-color: #f2f5f7;
  920. width: 590rpx;
  921. height: 384rpx;
  922. border-radius: 20rpx 20rpx 0 0;
  923. margin: 50rpx auto 0 auto;
  924. padding-top: 55rpx;
  925. }
  926. .order-details .writeOff .grayBg .pictrue {
  927. width: 290rpx;
  928. height: 290rpx;
  929. margin: 0 auto;
  930. }
  931. .order-details .writeOff .grayBg .pictrue image {
  932. width: 100%;
  933. height: 100%;
  934. display: block;
  935. }
  936. .order-details .writeOff .gear {
  937. width: 590rpx;
  938. height: 30rpx;
  939. margin: 0 auto;
  940. }
  941. .order-details .writeOff .gear image {
  942. width: 100%;
  943. height: 100%;
  944. display: block;
  945. }
  946. .order-details .writeOff .num {
  947. background-color: #f0c34c;
  948. width: 590rpx;
  949. height: 84rpx;
  950. color: #282828;
  951. font-size: 48rpx;
  952. margin: 0 auto;
  953. border-radius: 0 0 20rpx 20rpx;
  954. text-align: center;
  955. padding-top: 4rpx;
  956. }
  957. .order-details .writeOff .rules {
  958. margin: 46rpx 30rpx 0 30rpx;
  959. border-top: 1px solid #f0f0f0;
  960. padding-top: 10rpx;
  961. }
  962. .order-details .writeOff .rules .item {
  963. margin-top: 20rpx;
  964. }
  965. .order-details .writeOff .rules .item .rulesTitle {
  966. font-size: 28rpx;
  967. color: #282828;
  968. }
  969. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  970. font-size: 30rpx;
  971. color: #333;
  972. margin-right: 8rpx;
  973. margin-top: 5rpx;
  974. }
  975. .order-details .writeOff .rules .item .info {
  976. font-size: 28rpx;
  977. color: #999;
  978. margin-top: 7rpx;
  979. }
  980. .order-details .writeOff .rules .item .info .time {
  981. margin-left: 20rpx;
  982. }
  983. .order-details .map {
  984. font-size: 30rpx;
  985. color: #282828;
  986. margin-top: 15rpx;
  987. background-color: #fff;
  988. padding: 0 24rpx;
  989. .title {
  990. line-height: 86rpx;
  991. border-bottom: 1px solid #f0f0f0;
  992. }
  993. }
  994. .order-details .map .place {
  995. font-size: 26rpx;
  996. width: 176rpx;
  997. height: 50rpx;
  998. border-radius: 25rpx;
  999. line-height: 50rpx;
  1000. text-align: center;
  1001. }
  1002. .order-details .map .place .iconfont {
  1003. font-size: 27rpx;
  1004. height: 27rpx;
  1005. line-height: 27rpx;
  1006. margin: 2rpx 3rpx 0 0;
  1007. }
  1008. .order-details .address .name .iconfont {
  1009. font-size: 34rpx;
  1010. margin-left: 10rpx;
  1011. }
  1012. .refund {
  1013. padding: 0 !important;
  1014. margin-top: 15rpx;
  1015. background-color: #fff;
  1016. .title {
  1017. display: flex;
  1018. align-items: center;
  1019. font-size: 30rpx;
  1020. color: #333;
  1021. height: 86rpx;
  1022. border-bottom: 1px solid #f5f5f5;
  1023. font-weight: 400;
  1024. padding: 0 24rpx;
  1025. image {
  1026. width: 32rpx;
  1027. height: 32rpx;
  1028. margin-right: 10rpx;
  1029. }
  1030. }
  1031. .con {
  1032. font-size: 26rpx;
  1033. color: #666666;
  1034. padding: 30rpx 24rpx;
  1035. }
  1036. }
  1037. .pictrue {
  1038. width: 130rpx;
  1039. height: 130rpx;
  1040. border-radius: 14rpx;
  1041. overflow: hidden;
  1042. image {
  1043. width: 100%;
  1044. height: 100%;
  1045. }
  1046. }
  1047. .text {
  1048. width: 490rpx;
  1049. // position: relative;
  1050. .name {
  1051. font-size: 28rpx;
  1052. color: #282828;
  1053. }
  1054. .attr {
  1055. font-size: 16rpx;
  1056. color: #868686;
  1057. margin-top: 7rpx
  1058. }
  1059. }
  1060. .wrapper-head {
  1061. background-color: #fff;
  1062. margin-top: 12rpx;
  1063. padding: 30rpx 24rpx;
  1064. }
  1065. .wrapper-info {
  1066. background-color: #fff;
  1067. margin: -100rpx auto 0 auto;
  1068. padding: 15px 12px;
  1069. .name {
  1070. width: 414rpx;
  1071. color: #333;
  1072. }
  1073. .num {
  1074. color: #999;
  1075. }
  1076. .attr {
  1077. color: #999;
  1078. font-size: 20rpx;
  1079. margin: 7rpx 0 16rpx 0;
  1080. }
  1081. .price {
  1082. font-size: 26rpx;
  1083. color: #E93323;
  1084. }
  1085. }
  1086. .borRadius-top {
  1087. border-radius: 14rpx 14rpx 0px 0px;
  1088. }
  1089. .borRadius-bottom {
  1090. border-radius: 0px 0px 14rpx 14rpx;
  1091. }
  1092. .conter-refund {
  1093. width: 76%;
  1094. text-align: right;
  1095. color: #868686;
  1096. .wapImg {
  1097. width: 106rpx;
  1098. height: 106rpx;
  1099. border-radius: 10rpx;
  1100. margin-right: 10rpx;
  1101. }
  1102. }
  1103. .bg-tk-color {
  1104. background-color: $bg-color-primary;
  1105. color: #fff;
  1106. border: none;
  1107. }
  1108. .tui-modal-custom {
  1109. width: 600rpx;
  1110. position: relative;
  1111. box-sizing: border-box;
  1112. padding: 40rpx;
  1113. border-radius: 16px;
  1114. background-color: #fff;
  1115. z-index: 9999;
  1116. .h-342 {
  1117. min-height: 268rpx;
  1118. max-height: 268rpx;
  1119. ;
  1120. overflow-y: scroll;
  1121. }
  1122. }
  1123. </style>