From 7dbe13ff4c1b5784aa285faf6b5248d2de25e9ce Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期五, 10 十月 2025 16:22:45 +0800
Subject: [PATCH] 获取定制模板信息
---
pages/order/myOrder.vue | 41 +++++++++++++++++++++++++++++++++++++++--
1 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/pages/order/myOrder.vue b/pages/order/myOrder.vue
index 179a8da..55b224e 100644
--- a/pages/order/myOrder.vue
+++ b/pages/order/myOrder.vue
@@ -177,7 +177,7 @@
</view>
<view style="display: flex;justify-content: space-around;">
<view class="" @click="callPhone">
- 瀹㈡湇鐑嚎: 028-84472936
+ 瀹㈡湇鐑嚎: 19980834650
</view>
<view class="" @click="copyToClipboard">
瀹㈡湇寰俊: meiyikuang
@@ -249,6 +249,7 @@
import { getClearReason } from "@/api/after-sale.js";
import LiLiWXPay from "@/js_sdk/lili-pay/wx-pay.js";
import {buyBack} from "@/api/trade.js";
+import { getSessionId, userAction } from "@/api/userAction.js";
export default {
data() {
@@ -335,6 +336,16 @@
reason: "", //鍙栨秷鍘熷洜
cancelList: "", //鍙栨秷鍒楄〃
rogShow: false, //鏄剧ず鏄惁鏀惰揣
+ pageSessionNo:"",
+ actionParam:{
+ sessionId:'',
+ actionType:"PAGE",
+ joinType:"SELF",
+ pageCode:"ORDER_LIST",
+ pageParams:"{}",
+ pageStatus:"JOIN",
+ pageType:"DETAIL"
+ }
};
},
@@ -357,7 +368,28 @@
}
// this.loadData(this.status);
},
+ 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)
+ }
+ })
if(this.$options.filters.tipsToLogin()){
if (!this.tabCurrentIndex) {
this.initData(0);
@@ -367,6 +399,7 @@
},
onLoad(options) {
+ this.actionParam.pageParams = JSON.stringify(options)
/**
* 淇app绔偣鍑婚櫎鍏ㄩ儴璁㈠崟澶栫殑鎸夐挳杩涘叆鏃朵笉鍔犺浇鏁版嵁鐨勯棶棰�
* 鏇挎崲onLoad涓嬩唬鐮佸嵆鍙�
@@ -411,7 +444,7 @@
success(e) {
if(e.confirm){
uni.makePhoneCall({
- phoneNumber:'028-84472936'
+ phoneNumber:'19980834650'
})
}
}
@@ -685,6 +718,10 @@
url:
"/pages/mine/msgTips/packageMsg/logisticsDetail?order_sn=" + order.sn,
});
+ // uni.navigateTo({
+ // url:
+ // `/pages/order/deliverDetail?order_sn=${order.sn}`,
+ // });
},
},
};
--
Gitblit v1.8.0