| | |
| | | </template> |
| | | |
| | | <script> |
| | | import '@/components/uview-components/uview-ui' |
| | | import { |
| | | getAfterSaleReason, |
| | | applyReturn, |
| | | getAfterSaleInfo, |
| | | } from "@/api/after-sale"; |
| | | |
| | | import city from "@/components/m-city/m-city"; |
| | | import city from "@/pages/order/m-city/m-city.vue"; |
| | | import { upload } from "@/api/common.js"; |
| | | import { checkBankno } from "@/utils/Foundation"; |
| | | import storage from "@/utils/storage.js"; |
| | | import { getSessionId, userAction } from "@/api/userAction.js"; |
| | | export default { |
| | | component: { |
| | | city, |
| | |
| | | refundWay: "", |
| | | serviceType: "", //申请类型 |
| | | }, |
| | | pageSessionNo:"", |
| | | sendOnShow:false, |
| | | actionParam:{ |
| | | sessionId:'', |
| | | actionType:"PAGE", |
| | | joinType:"SELF", |
| | | pageCode:"REFUND_ORDER", |
| | | pageParams:"{}", |
| | | pageStatus:"JOIN", |
| | | pageType:"DETAIL" |
| | | } |
| | | }; |
| | | }, |
| | | |
| | | onUnload() { |
| | | let param = this.actionParam; |
| | | if (this.sendOnShow)return |
| | | param.pageStatus = "LEAVE" |
| | | userAction(param) |
| | | }, |
| | | onHide() { |
| | | this.startHidenTime = Date.now() |
| | | let param = this.actionParam; |
| | | this.sendOnShow = true; |
| | | param.pageStatus = "LEAVE" |
| | | userAction(param) |
| | | }, |
| | | onShow() { |
| | | getSessionId().then(res=>{ |
| | | this.pageSessionNo = res.data.data |
| | | if(this.pageSessionNo){ |
| | | let param = this.actionParam; |
| | | param.sessionId = this.pageSessionNo |
| | | userAction(param) |
| | | } |
| | | }) |
| | | }, |
| | | /** |
| | | * 判断当前内容并生成数据 |
| | | */ |
| | | onLoad(options) { |
| | | this.actionParam.pageParams = JSON.stringify(options) |
| | | let navTitle = "申请售后"; |
| | | this.form.serviceType = "RETURN_GOODS"; |
| | | if (options.value == 1) { |
| | |
| | | let images = []; |
| | | |
| | | lists.forEach((item) => { |
| | | images.push(item.response.result); |
| | | images.push(item.response.data.fileKey); |
| | | }); |
| | | this.form.images = images; |
| | | }, |