index.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221
  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==4" @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. /**
  610. *
  611. * 剪切订单号
  612. */
  613. // #ifndef H5
  614. copy: function(orderNo) {
  615. let that = this;
  616. uni.setClipboardData({
  617. data: orderNo
  618. });
  619. },
  620. // #endif
  621. /**
  622. * 打电话
  623. */
  624. goTel: function() {
  625. uni.makePhoneCall({
  626. phoneNumber: this.refundInfo.deliveryId
  627. })
  628. }
  629. }
  630. }
  631. </script>
  632. <style scoped lang="scss">
  633. .addressDetail {
  634. line-height: 36rpx;
  635. }
  636. .btn-box {
  637. display: flex;
  638. padding-top: 20rpx;
  639. line-height: 60rpx;
  640. .btn-line {
  641. @include main_color(theme);
  642. @include coupons_border_color(theme);
  643. }
  644. .btn-bg {
  645. color: #fff;
  646. }
  647. .btn-999 {
  648. border: 1px solid #999999;
  649. color: #666666;
  650. }
  651. .btn {
  652. width: 176rpx;
  653. height: 60rpx;
  654. line-height: 56rpx;
  655. margin-left: 18rpx;
  656. text-align: center;
  657. border-radius: 30rpx;
  658. font-size: 28rpx;
  659. }
  660. .on {
  661. border-color: #2A7EFB !important;
  662. background: #2A7EFB !important;
  663. color: #fff !important;
  664. }
  665. }
  666. .margin-100 {
  667. margin: -86rpx auto 0 auto;
  668. }
  669. .return_info_pad {
  670. padding: 30rpx 24rpx;
  671. }
  672. .return_info {
  673. border-top: 1px solid #EEEEEE;
  674. background-color: #fff;
  675. padding: 32rpx 0;
  676. }
  677. .refundPrice {
  678. font-size: 35rpx;
  679. font-weight: bold;
  680. }
  681. .qs-btn {
  682. width: auto;
  683. height: 60rpx;
  684. text-align: center;
  685. line-height: 60rpx;
  686. border-radius: 50rpx;
  687. color: #fff;
  688. font-size: 27rpx;
  689. padding: 0 3%;
  690. color: #aaa;
  691. border: 1px solid #ddd;
  692. margin-right: 20rpx;
  693. }
  694. .text-overflow {
  695. width: 392rpx;
  696. overflow: hidden;
  697. text-overflow: ellipsis;
  698. white-space: nowrap;
  699. }
  700. .shuoming {
  701. width: 32rpx;
  702. height: 32rpx;
  703. }
  704. .mp-header {
  705. width: 100%;
  706. @include main_bg_color(theme);
  707. }
  708. .goodCall {
  709. @include main_color(theme);
  710. text-align: center;
  711. width: 100%;
  712. height: 86rpx;
  713. padding: 0 30rpx;
  714. border-bottom: 1rpx solid #eee;
  715. font-size: 30rpx;
  716. line-height: 86rpx;
  717. background: #fff;
  718. .icon-kefu {
  719. font-size: 36rpx;
  720. margin-right: 15rpx;
  721. }
  722. /* #ifdef MP */
  723. button {
  724. display: flex;
  725. align-items: center;
  726. justify-content: center;
  727. height: 86rpx;
  728. font-size: 30rpx;
  729. @include main_color(theme);
  730. }
  731. /* #endif */
  732. }
  733. .justify-between {
  734. justify-content: space-between;
  735. }
  736. .align-center {
  737. align-items: center;
  738. }
  739. .order-details {
  740. padding-bottom: 30rpx;
  741. .header {
  742. height: 250rpx;
  743. padding: 0 24rpx;
  744. }
  745. }
  746. .bg_color {
  747. @include main_bg_color(theme);
  748. }
  749. .order-details .header.on {
  750. // /background-color: #666 !important;
  751. }
  752. .order-details .header .pictrue {
  753. width: 110rpx;
  754. height: 110rpx;
  755. }
  756. .order-details .header .pictrue image {
  757. width: 100%;
  758. height: 100%;
  759. }
  760. .order-details .header .data {
  761. color: rgba(255, 255, 255, 0.8);
  762. font-size: 24rpx;
  763. margin-left: 27rpx;
  764. }
  765. .order-details .header .data.on {
  766. margin-left: 0;
  767. padding-top: 34rpx;
  768. }
  769. .order-details .header .data .state {
  770. font-size: 30rpx;
  771. font-weight: bold;
  772. color: #fff;
  773. }
  774. .order-details .header .data .time {
  775. margin-left: 20rpx;
  776. }
  777. .picTxt {
  778. padding-left: 10rpx;
  779. }
  780. .order-details .nav {
  781. background-color: #fff;
  782. font-size: 26rpx;
  783. color: #282828;
  784. padding: 27rpx 0;
  785. width: 100%;
  786. border-radius: 14rpx;
  787. margin: -100rpx auto 0 auto;
  788. }
  789. .order-details .nav .navCon {
  790. padding: 0 40rpx;
  791. }
  792. .order-details .nav .on {
  793. @include main_color(theme);
  794. }
  795. .font_color {
  796. @include main_color(theme);
  797. }
  798. .order-details .nav .progress {
  799. padding: 0 65rpx;
  800. margin-top: 10rpx;
  801. }
  802. .order-details .nav .progress .line {
  803. width: 100rpx;
  804. height: 2rpx;
  805. background-color: #939390;
  806. }
  807. .order-details .nav .progress .iconfont {
  808. font-size: 25rpx;
  809. color: #939390;
  810. margin-top: -2rpx;
  811. }
  812. .order-details .address {
  813. font-size: 26rpx;
  814. color: #868686;
  815. background-color: #fff;
  816. padding: 30rpx 0;
  817. .phone {
  818. margin-left: 20rpx;
  819. }
  820. }
  821. .order-details .address .name {
  822. font-size: 30rpx;
  823. color: #333;
  824. margin-bottom: 15rpx;
  825. }
  826. .order-details .line {
  827. width: 100%;
  828. height: 3rpx;
  829. }
  830. .order-details .line image {
  831. width: 100%;
  832. height: 100%;
  833. display: block;
  834. }
  835. .order-details .wrapper {
  836. background-color: #fff;
  837. margin-top: 12rpx;
  838. }
  839. .order-details .wrapper .item {
  840. font-size: 28rpx;
  841. color: #282828;
  842. }
  843. .order-details .wrapper .item~.item {
  844. margin-top: 34rpx;
  845. }
  846. .order-details .wrapper .item .conter {
  847. color: #282828;
  848. text-align: right;
  849. overflow: hidden;
  850. text-overflow: ellipsis;
  851. white-space: nowrap;
  852. }
  853. .mark_show {
  854. color: #868686;
  855. width: 470rpx;
  856. text-align: right;
  857. }
  858. .order-details .wrapper .item .conter .copy {
  859. font-size: 20rpx;
  860. color: #666;
  861. border-radius: 20rpx;
  862. border: 1rpx solid #999;
  863. padding: 8rpx 18rpx;
  864. margin-left: 10rpx;
  865. }
  866. .order-details .wrapper .actualPay {
  867. border-top: 1rpx solid #eee;
  868. margin-top: 30rpx;
  869. padding-top: 30rpx;
  870. }
  871. .order-details .wrapper .actualPay .money {
  872. font-weight: bold;
  873. font-size: 30rpx;
  874. @include price_color(theme);
  875. }
  876. .order-details .footer {
  877. width: 100%;
  878. height: 100rpx;
  879. position: fixed;
  880. bottom: 0;
  881. left: 0;
  882. background-color: #fff;
  883. padding-right: 30rpx;
  884. box-sizing: border-box;
  885. }
  886. .order-details .footer .bnt {
  887. width: 158rpx;
  888. height: 54rpx;
  889. text-align: center;
  890. line-height: 54rpx;
  891. border-radius: 50rpx;
  892. color: #fff;
  893. font-size: 27rpx;
  894. }
  895. .order-details .footer .bnt.cancel {
  896. color: #aaa;
  897. border: 1rpx solid #ddd;
  898. }
  899. .order-details .footer .bnt~.bnt {
  900. margin-left: 18rpx;
  901. }
  902. .order-details .writeOff {
  903. background-color: #fff;
  904. margin-top: 15rpx;
  905. padding-bottom: 50rpx;
  906. }
  907. .order-details .writeOff .title {
  908. font-size: 30rpx;
  909. color: #282828;
  910. height: 87rpx;
  911. border-bottom: 1px solid #f0f0f0;
  912. padding: 0 24rpx;
  913. line-height: 87rpx;
  914. }
  915. .order-details .writeOff .grayBg {
  916. background-color: #f2f5f7;
  917. width: 590rpx;
  918. height: 384rpx;
  919. border-radius: 20rpx 20rpx 0 0;
  920. margin: 50rpx auto 0 auto;
  921. padding-top: 55rpx;
  922. }
  923. .order-details .writeOff .grayBg .pictrue {
  924. width: 290rpx;
  925. height: 290rpx;
  926. margin: 0 auto;
  927. }
  928. .order-details .writeOff .grayBg .pictrue image {
  929. width: 100%;
  930. height: 100%;
  931. display: block;
  932. }
  933. .order-details .writeOff .gear {
  934. width: 590rpx;
  935. height: 30rpx;
  936. margin: 0 auto;
  937. }
  938. .order-details .writeOff .gear image {
  939. width: 100%;
  940. height: 100%;
  941. display: block;
  942. }
  943. .order-details .writeOff .num {
  944. background-color: #f0c34c;
  945. width: 590rpx;
  946. height: 84rpx;
  947. color: #282828;
  948. font-size: 48rpx;
  949. margin: 0 auto;
  950. border-radius: 0 0 20rpx 20rpx;
  951. text-align: center;
  952. padding-top: 4rpx;
  953. }
  954. .order-details .writeOff .rules {
  955. margin: 46rpx 30rpx 0 30rpx;
  956. border-top: 1px solid #f0f0f0;
  957. padding-top: 10rpx;
  958. }
  959. .order-details .writeOff .rules .item {
  960. margin-top: 20rpx;
  961. }
  962. .order-details .writeOff .rules .item .rulesTitle {
  963. font-size: 28rpx;
  964. color: #282828;
  965. }
  966. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  967. font-size: 30rpx;
  968. color: #333;
  969. margin-right: 8rpx;
  970. margin-top: 5rpx;
  971. }
  972. .order-details .writeOff .rules .item .info {
  973. font-size: 28rpx;
  974. color: #999;
  975. margin-top: 7rpx;
  976. }
  977. .order-details .writeOff .rules .item .info .time {
  978. margin-left: 20rpx;
  979. }
  980. .order-details .map {
  981. font-size: 30rpx;
  982. color: #282828;
  983. margin-top: 15rpx;
  984. background-color: #fff;
  985. padding: 0 24rpx;
  986. .title {
  987. line-height: 86rpx;
  988. border-bottom: 1px solid #f0f0f0;
  989. }
  990. }
  991. .order-details .map .place {
  992. font-size: 26rpx;
  993. width: 176rpx;
  994. height: 50rpx;
  995. border-radius: 25rpx;
  996. line-height: 50rpx;
  997. text-align: center;
  998. }
  999. .order-details .map .place .iconfont {
  1000. font-size: 27rpx;
  1001. height: 27rpx;
  1002. line-height: 27rpx;
  1003. margin: 2rpx 3rpx 0 0;
  1004. }
  1005. .order-details .address .name .iconfont {
  1006. font-size: 34rpx;
  1007. margin-left: 10rpx;
  1008. }
  1009. .refund {
  1010. padding: 0 !important;
  1011. margin-top: 15rpx;
  1012. background-color: #fff;
  1013. .title {
  1014. display: flex;
  1015. align-items: center;
  1016. font-size: 30rpx;
  1017. color: #333;
  1018. height: 86rpx;
  1019. border-bottom: 1px solid #f5f5f5;
  1020. font-weight: 400;
  1021. padding: 0 24rpx;
  1022. image {
  1023. width: 32rpx;
  1024. height: 32rpx;
  1025. margin-right: 10rpx;
  1026. }
  1027. }
  1028. .con {
  1029. font-size: 26rpx;
  1030. color: #666666;
  1031. padding: 30rpx 24rpx;
  1032. }
  1033. }
  1034. .pictrue {
  1035. width: 130rpx;
  1036. height: 130rpx;
  1037. border-radius: 14rpx;
  1038. overflow: hidden;
  1039. image {
  1040. width: 100%;
  1041. height: 100%;
  1042. }
  1043. }
  1044. .text {
  1045. width: 490rpx;
  1046. // position: relative;
  1047. .name {
  1048. font-size: 28rpx;
  1049. color: #282828;
  1050. }
  1051. .attr {
  1052. font-size: 16rpx;
  1053. color: #868686;
  1054. margin-top: 7rpx
  1055. }
  1056. }
  1057. .wrapper-head {
  1058. background-color: #fff;
  1059. margin-top: 12rpx;
  1060. padding: 30rpx 24rpx;
  1061. }
  1062. .wrapper-info {
  1063. background-color: #fff;
  1064. margin: -100rpx auto 0 auto;
  1065. padding: 15px 12px;
  1066. .name {
  1067. width: 414rpx;
  1068. color: #333;
  1069. }
  1070. .num {
  1071. color: #999;
  1072. }
  1073. .attr {
  1074. color: #999;
  1075. font-size: 20rpx;
  1076. margin: 7rpx 0 16rpx 0;
  1077. }
  1078. .price {
  1079. font-size: 26rpx;
  1080. color: #E93323;
  1081. }
  1082. }
  1083. .borRadius-top {
  1084. border-radius: 14rpx 14rpx 0px 0px;
  1085. }
  1086. .borRadius-bottom {
  1087. border-radius: 0px 0px 14rpx 14rpx;
  1088. }
  1089. .conter-refund {
  1090. width: 76%;
  1091. text-align: right;
  1092. color: #868686;
  1093. .wapImg {
  1094. width: 106rpx;
  1095. height: 106rpx;
  1096. border-radius: 10rpx;
  1097. margin-right: 10rpx;
  1098. }
  1099. }
  1100. .bg-tk-color {
  1101. background-color: $bg-color-primary;
  1102. color: #fff;
  1103. border: none;
  1104. }
  1105. .tui-modal-custom {
  1106. width: 600rpx;
  1107. position: relative;
  1108. box-sizing: border-box;
  1109. padding: 40rpx;
  1110. border-radius: 16px;
  1111. background-color: #fff;
  1112. z-index: 9999;
  1113. .h-342 {
  1114. min-height: 268rpx;
  1115. max-height: 268rpx;
  1116. ;
  1117. overflow-y: scroll;
  1118. }
  1119. }
  1120. </style>