浏览代码

转发朋友圈

DELL 3 年之前
父节点
当前提交
978d8b1d6e

+ 2 - 2
src/packageOperate/activity/index.vue

@@ -269,12 +269,12 @@
 			if (opthios.userId) {
 				uni.setStorageSync('shareUid', opthios.userId)
 			}
-			
 			if (opthios.type) {
 				uni.setStorageSync('shareType', opthios.type)
 			}
 			
 			this.getDetail()
+			
 		},
 		onShow() {
 			this.pagesNum = getCurrentPages().length
@@ -392,7 +392,7 @@
 		//分享朋友圈
 		onShareTimeline() {
 			return {
-				title: '一起来刮盲票吧',
+				title: '超值宝贝免费抽,参与活动仅需3秒',
 				path: `/packageOperate/activity/index?marketingId=${ this.info.id }&inviteCode=${ this.inviteCode }&userId=${ this.userInfo.userId }&type=1`,
 				imageUrl: 'https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/free_draw_bkg.jpeg',
 			}

+ 6 - 0
src/pages/activity/index.vue

@@ -91,6 +91,12 @@
 			if (opthios.triggerStatus) {
 				this.triggerStatus = opthios.triggerStatus
 			}
+			if (opthios.userId) {
+				uni.setStorageSync('shareUid', opthios.userId)
+			}
+			if (opthios.type) {
+				uni.setStorageSync('shareType', opthios.type)
+			}
 			this.getBaseInfo()
 		},
 		onShow() {

+ 8 - 1
src/pages/core/index.vue

@@ -225,11 +225,18 @@
 				userInfo: '',
 			};
 		},
-		onLoad() {
+		onLoad(opthios) {
+			if (opthios.userId) {
+				uni.setStorageSync('shareUid', opthios.userId)
+			}
+			if (opthios.type) {
+				uni.setStorageSync('shareType', opthios.type)
+			}
 			this.pageList()
 			this.getExclusive()
 			this.getClassify()
 			this.getSwiper()
+			
 		},
 		onShow() {
 			if(uni.getStorageSync('token')) {

+ 6 - 0
src/pages/index/index.vue

@@ -179,6 +179,12 @@
 				uni.setStorageSync('shareUid', opthios.uid)
 				uni.setStorageSync('shareType', opthios.t)
 			}
+			if (opthios.userId) {
+				uni.setStorageSync('shareUid', opthios.userId)
+			}
+			if (opthios.type) {
+				uni.setStorageSync('shareType', opthios.type)
+			}
 			
 			// #ifdef MP-WEIXIN
 			const res = uni.getMenuButtonBoundingClientRect()

+ 0 - 1
src/pages/ticketBox/detail.vue

@@ -169,7 +169,6 @@
 			if (opthios.userId) {
 				uni.setStorageSync('shareUid', opthios.userId)
 			}
-
 			if (opthios.type) {
 				uni.setStorageSync('shareType', opthios.type)
 			}

+ 8 - 0
src/pages/user/index.vue

@@ -119,6 +119,14 @@
 				userInfo: '',
 			};
 		},
+		onLoad(opthios) {
+			if (opthios.userId) {
+				uni.setStorageSync('shareUid', opthios.userId)
+			}
+			if (opthios.type) {
+				uni.setStorageSync('shareType', opthios.type)
+			}
+		},
 		onShow() {
 			this.loginState = uni.getStorageSync('token') ? true : false
 			if (this.loginState) {