twt 3 年之前
父節點
當前提交
154b46c9bb
共有 2 個文件被更改,包括 7 次插入4 次删除
  1. 1 1
      pages/homePage/homePage.vue
  2. 6 3
      pages/me/invite.vue

+ 1 - 1
pages/homePage/homePage.vue

@@ -81,7 +81,7 @@
 				<view class="btnName">特价车</view>
 			</view>
 		</view>
-
+        <!-- <view>shareID:{{shareID}}</view> -->
 		<!-- 优惠券中心 -->
 
 		<view class="quanImg">

+ 6 - 3
pages/me/invite.vue

@@ -84,11 +84,14 @@
 					imageUrl: '',
 					desc: '',
 					content: ''
-				}
+				},
+			   shareID:'',
 			}
 		},
 		onLoad() {
-			this.uidStr = uni.getStorageSync("logodata").uid.replace(/\-/g, "")
+			this.uidStr = uni.getStorageSync("logodata").uid.replace(/\-/g, "");
+			this.shareID=uni.getStorageSync("logodata").uid;
+			console.log("shareID==="+this.shareID)
 		},
 		onShow() {
 			this.getDetailData();
@@ -97,7 +100,7 @@
 			onShareAppMessage: function() {
                  return {
 					 title: '车蓝图4S店养车服务',
-					 path: 'pages/homePage/homePage?scene=' + this.uidStr,
+					 path: 'pages/homePage/homePage?scene=' + this.shareID,
 					 imageUrl: '',
 					 desc: '',
 					 content: ''