From d1cada30a4b98000ef9c8970f0e2b53ed76e352c Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 30 九月 2025 11:16:00 +0800
Subject: [PATCH] 商品行为分析

---
 pages/tabbar/index/home.vue |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/pages/tabbar/index/home.vue b/pages/tabbar/index/home.vue
index 00fd2d7..054c85e 100644
--- a/pages/tabbar/index/home.vue
+++ b/pages/tabbar/index/home.vue
@@ -441,7 +441,18 @@
     userAction(param)
   },
 	onLoad(option) {
-
+		if(option.shareId){
+			console.log('瑙﹀彂onLoad')
+			this.actionParam.shareId = option.shareId;
+			this.actionParam.joinType = 'SHARE'
+			uni.setStorage({
+				key: 'shareId',
+				data: option.shareId,
+				success: function () {
+					console.log('缂撳瓨shareId鎴愬姛');
+				}
+			});
+		}
 		console.log('-----------鍒嗕韩鍑虹殑鏁版嵁---------->', option)
 		//澶勭悊鎵爜鍑烘潵鐨勮棰�
 		this.marginBottom = uni.getSystemInfoSync().safeAreaInsets.bottom
@@ -513,13 +524,15 @@
 
 		// })
 		// 淇濆瓨鍒嗕韩璁板綍
-		
+
 		// 杩斿洖涓�涓狿romise
 		return new Promise((resolve) => {
 					this.shareId = '';
-					this.shareParam.shareOption = JSON.stringify({
-						id:this.activityId
-					})
+					let shareObj ={
+						videoId:videoInfo.id,
+						userId:userInfo.id
+					}
+					this.shareParam.shareOption = JSON.stringify(shareObj)
 					userShare(this.shareParam).then(res => {
 					  this.shareId = res.data.data;
 					  let param = {

--
Gitblit v1.8.0