xhj hace 2 años
padre
commit
529c68c97b
Se han modificado 2 ficheros con 10 adiciones y 5 borrados
  1. 4 3
      product/detail/detail.vue
  2. 6 2
      topic/content/content.vue

+ 4 - 3
product/detail/detail.vue

@@ -176,9 +176,7 @@
 		onLoad: async function(options) {
 			let that = this;
 			this.query = options;
-			this.setData({
-				query: options
-			});
+			if(options.shareId) req.setStorage('shareId',options.shareId)
 
 			if (options.scene) {
 				this.scene = options.scene;
@@ -211,6 +209,9 @@
 			if (!userInfo.id) {} else {
 				path += '&userId=' + userInfo.id;
 			}
+			if(userInfo.userType==1){
+				path += '&shareId=' + req.getStorage('userInfo').saleNo
+			}
 			let url = '/product/detail/detail?' + path;
 			return {
 				title: this.product.title,

+ 6 - 2
topic/content/content.vue

@@ -85,7 +85,10 @@ export default {
 		this.query = options
 		this.id = options.id;
 		if(options.shareId) req.setStorage('shareId',options.shareId)
-		await  req.silenceLogin(options.userId, '');
+		// 朋友圈页面不调用登陆
+		if(!this.query.isSharePYQ){
+			await  req.silenceLogin(options.userId, '');
+		}
 		setTimeout(()=>{
 			this.userInfo = req.getStorage('userInfo')
 		},500)
@@ -116,7 +119,8 @@ export default {
 		return {
 			title: this.detaile.title,
 			imageUrl: this.detaile.pic,
-			path: '/topic/content/content?id=' + this.id +'&isShareTimeline=' + true+(this.userInfo.userType==1?('&userId='+this.userInfo.saleNo):'')
+			path: '/topic/content/content',
+			query:'id=' + this.id+'&isSharePYQ=' + true +'&isShare=' + true+(this.userInfo.userType==1?('&shareId='+this.userInfo.saleNo):'')
 		};
 	},
 	methods: {