From b8de15da6882d0c752df50d47683d676c0a5aeb4 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期三, 15 十月 2025 09:26:36 +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