瀏覽代碼

外部app跳转接受参数

DELL 3 年之前
父節點
當前提交
20f7de2a91
共有 1 個文件被更改,包括 10 次插入0 次删除
  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() {