From 72a73a1cde9ebbfc0097609595fe2226ae84b9f0 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 30 十月 2025 14:27:16 +0800
Subject: [PATCH] 页面优化
---
pages/order/afterSales/afterSalesDetail.vue | 41 ++++++++++++++++++++++++++++++++++++++---
1 files changed, 38 insertions(+), 3 deletions(-)
diff --git a/pages/order/afterSales/afterSalesDetail.vue b/pages/order/afterSales/afterSalesDetail.vue
index be2efa9..c282daa 100644
--- a/pages/order/afterSales/afterSalesDetail.vue
+++ b/pages/order/afterSales/afterSalesDetail.vue
@@ -104,10 +104,11 @@
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,
@@ -169,13 +170,47 @@
refundWay: "",
serviceType: "", //鐢宠绫诲瀷
},
+ pageSessionNo:"",
+ sendOnShow:false,
+ actionParam:{
+ sessionId:'',
+ actionType:"PAGE",
+ joinType:"SELF",
+ pageCode:"REFUND_ORDER",
+ pageParams:"{}",
+ pageStatus:"JOIN",
+ pageType:"DETAIL"
+ }
};
},
-
+ onUnload() {
+ let param = Object.assign({}, this.actionParam);
+ if (this.sendOnShow)return
+ param.pageStatus = "LEAVE"
+ userAction(param)
+ },
+ onHide() {
+ this.startHidenTime = Date.now()
+ let param = Object.assign({}, this.actionParam);
+ this.sendOnShow = true;
+ param.pageStatus = "LEAVE"
+ userAction(param)
+ },
+ onShow() {
+ getSessionId().then(res=>{
+ this.pageSessionNo = res.data.data
+ this.actionParam.sessionId = this.pageSessionNo
+ if(this.pageSessionNo){
+ let param = Object.assign({}, this.actionParam);
+ userAction(param)
+ }
+ })
+ },
/**
* 鍒ゆ柇褰撳墠鍐呭骞剁敓鎴愭暟鎹�
*/
onLoad(options) {
+ this.actionParam.pageParams = JSON.stringify(options)
let navTitle = "鐢宠鍞悗";
this.form.serviceType = "RETURN_GOODS";
if (options.value == 1) {
@@ -269,7 +304,7 @@
let images = [];
lists.forEach((item) => {
- images.push(item.response.result);
+ images.push(item.response.data.fileKey);
});
this.form.images = images;
},
--
Gitblit v1.8.0