From 50eac4101c827bc7202b8259534eed70aa909a49 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 15 十月 2025 00:42:55 +0800
Subject: [PATCH] Merge branch 'dev_fix_sub' of http://42.193.1.25:9521/r/lmk-shop-wx into dev_fix_sub
---
pages/video/video-goods-detail.vue | 37 ++++++++++++++++++++++++++++++++++++-
1 files changed, 36 insertions(+), 1 deletions(-)
diff --git a/pages/video/video-goods-detail.vue b/pages/video/video-goods-detail.vue
index 62ae3a8..9039cc5 100644
--- a/pages/video/video-goods-detail.vue
+++ b/pages/video/video-goods-detail.vue
@@ -31,6 +31,7 @@
import {getGoodsDetail} from "@/api/video.js"
import { buyBack } from "@/api/trade.js";
import '@/components/uview-components/uview-ui';
+ import { getSessionId, userAction } from "@/api/userAction.js";
export default {
computed: {
totalMoney() {
@@ -45,11 +46,45 @@
data() {
return {
videoId: '',
- goodsList: []
+ goodsList: [],
+ pageSessionNo:"",
+ actionParam:{
+ sessionId:'',
+ actionType:"PAGE",
+ joinType:"SELF",
+ pageCode:"RECOMMEND_VIDEO_GOODS",
+ 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(option) {
this.videoId = option.videoId;
+ this.actionParam.pageParams = JSON.stringify(option)
this.getGoodsList();
},
methods: {
--
Gitblit v1.8.0