Parcourir la source

外部app跳转接受参数

DELL il y a 3 ans
Parent
commit
20f7de2a91
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 10 0
      src/pages/ticketBox/detail.vue

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

@@ -157,6 +157,16 @@
 			if (opthios.type) {
 				uni.setStorageSync('shareType', opthios.type)
 			}
+			
+			/**
+			* 外部app跳转接受的参数
+			* shareUid: 用户ID
+			* shareType: 分享类型
+			* */
+			if(opthios.uid) {
+				uni.setStorageSync('shareUid', opthios.uid)
+				uni.setStorageSync('shareType', opthios.t)
+			}
 		},
 		
 		mounted() {