xhj преди 2 години
родител
ревизия
9f3949b6c4
променени са 2 файла, в които са добавени 42 реда и са изтрити 33 реда
  1. 20 17
      product/detail/detail.vue
  2. 22 16
      topic/content/content.vue

+ 20 - 17
product/detail/detail.vue

@@ -631,23 +631,26 @@
 				})
 			},
 			async showShare() {
-				let shareD = await this.onShareMessage()
-				h5util.jumpShare({
-					title:shareD.title,
-					imageUrl:shareD.imageUrl,
-					path:shareD.path,
-					shareType:2,
-					id:this.product.id,
-					merchantId:this.query.merchantId,
-					sendBehaviorObj:{
-						BIND_TYPE : this.BIND_TYPE,
-						BIND_ID : this.BIND_ID,
-						USER_ID : this.USER_ID,
-						SHARE_USER_ID : this.SHARE_USER_ID,
-						PARENT_CODE : this.PARENT_CODE,
-						CURRENT_CODE : this.CURRENT_CODE
-					}
-				})
+				let islogin = req.isAuthFn(true)
+				if(islogin){
+					let shareD = await this.onShareMessage()
+					h5util.jumpShare({
+						title:shareD.title,
+						imageUrl:shareD.imageUrl,
+						path:shareD.path,
+						shareType:2,
+						id:this.product.id,
+						merchantId:this.query.merchantId,
+						sendBehaviorObj:{
+							BIND_TYPE : this.BIND_TYPE,
+							BIND_ID : this.BIND_ID,
+							USER_ID : this.USER_ID,
+							SHARE_USER_ID : this.SHARE_USER_ID,
+							PARENT_CODE : this.PARENT_CODE,
+							CURRENT_CODE : this.CURRENT_CODE
+						}
+					})
+				}
 			},
 
 			/**

+ 22 - 16
topic/content/content.vue

@@ -83,6 +83,9 @@ export default {
 	onShow(){
 		this.getConfig();
 		this.getBrowse();
+		uni.showModal({
+			content:req.getStorage('AUTH_TOKEN')
+		})
 	},
 
 	 async onShareAppMessage() {
@@ -222,22 +225,25 @@ export default {
 		},
 		
 		async toShare(){
-			let shareD = await this.onShareMessage()
-			h5util.jumpShare({
-				title:shareD.title,
-				imageUrl:shareD.imageUrl,
-				path:shareD.path,
-				shareType:1,
-				id:this.detaile.id,
-				sendBehaviorObj:{
-					BIND_TYPE : this.BIND_TYPE,
-					BIND_ID : this.BIND_ID,
-					USER_ID : this.USER_ID,
-					SHARE_USER_ID : this.SHARE_USER_ID,
-					PARENT_CODE : this.PARENT_CODE,
-					CURRENT_CODE : this.CURRENT_CODE
-				}
-			})
+			let islogin = await req.isAuthFn(true)
+			if(islogin){
+				let shareD = await this.onShareMessage()
+				h5util.jumpShare({
+					title:shareD.title,
+					imageUrl:shareD.imageUrl,
+					path:shareD.path,
+					shareType:1,
+					id:this.detaile.id,
+					sendBehaviorObj:{
+						BIND_TYPE : this.BIND_TYPE,
+						BIND_ID : this.BIND_ID,
+						USER_ID : this.USER_ID,
+						SHARE_USER_ID : this.SHARE_USER_ID,
+						PARENT_CODE : this.PARENT_CODE,
+						CURRENT_CODE : this.CURRENT_CODE
+					}
+				})
+			}
 		}
 	},
 	filters: {