Ver Fonte

commit -m 商品详情BUG修复

zhengjinyi há 4 anos atrás
pai
commit
2901c4a43e

+ 2 - 2
pages/goods/product-activi.vue

@@ -542,7 +542,7 @@
 			    }
 				return {
 				  title: `${this.product.name}`,
-				  path: `pages/goods/product?type=share&id=${this.productId}`,
+				  path: `pages/goods/product?type=share&productId=${this.productId}`,
 				  imageUrl:`${this.productImage[0]}`
 				}
 			},
@@ -650,7 +650,7 @@
 		    }
 			return {
 			  title: `${this.product.name}`,
-			  path: `pages/goods/product?type=share&id=${this.productId}`,
+			  path: `pages/goods/product?type=share&productId=${this.productId}`,
 			  imageUrl:`${this.productImage[0]}`
 			}
 		},

+ 2 - 3
pages/goods/product.vue

@@ -284,7 +284,6 @@
 			}
 		},
 		onLoad(option) {
-			
 			this.productId = option.productId;//获取商品ID
 			this.isShareType = option.type
 			this.linkPath = option.path
@@ -541,7 +540,7 @@
 			    }
 				return {
 				  title: `${this.product.name}`,
-				  path: `pages/goods/product?type=share&id=${this.productId}`,
+				  path: `pages/goods/product?type=share&productId=${this.productId}`,
 				  imageUrl:`${this.productImage[0]}`
 				}
 			},
@@ -649,7 +648,7 @@
 		    }
 			return {
 			  title: `${this.product.name}`,
-			  path: `pages/goods/product?type=share&id=${this.productId}`,
+			  path: `pages/goods/product?type=share&productId=${this.productId}`,
 			  imageUrl:`${this.productImage[0]}`
 			}
 		},

+ 2 - 9
pages/goods/search.vue

@@ -110,13 +110,12 @@
 			}
 		},
 		onLoad(option) {
-			console.log(option)
 			if(option.type =='share'){
 				wxLogin.wxLoginAuthorize()
 			}
 			this.$api.getStorage().then((resolve) =>{
-				this.userIdentity = resolve.userIdentity;
 				this.listQuery.userId = resolve.userId ? resolve.userId : 0;
+				this.userIdentity = resolve.userIdentity;
 				if(option.keyWord){
 					this.listQuery.name = option.keyWord
 					this.getListFromServer()
@@ -126,12 +125,6 @@
 					this.InitGetSerachRecord()
 				}
 			})	
-			this.$api.getStorage().then((resolve) =>{
-				this.listQuery.userId = resolve.userId ? resolve.userId : 0;
-				this.userIdentity = resolve.userIdentity;
-				this.isFocus = true
-				this.InitGetSerachRecord()
-			})	
 		},
 		filters: {
 			PriceFormat:function(text) {//处理金额
@@ -277,7 +270,7 @@
 			},
 			navToDetailPage(id) {
 				this.isModallayer = true;
-				this.$api.navigateTo(`/pages/goods/product?id=${id}`);
+				this.$api.navigateTo(`/pages/goods/product?productId=${id}`);
 				this.isModallayer = false;
 			},
 			setScrollHeight() {

+ 2 - 1
services/config.env.js

@@ -3,7 +3,8 @@ if(process.env.NODE_ENV === 'development'){
     // 开发环境
     // URL_CONFIG = 'http://192.168.2.75:8011'	 //采美测试地址
 	// URL_CONFIG = 'http://192.168.2.67:8011'	 //裴裴联调地址
-	URL_CONFIG = 'https://mall2c-b.caimei365.com'
+	// URL_CONFIG = 'https://mall2c-b.caimei365.com'
+	URL_CONFIG = 'https://mall2c.caimei365.com'
 }else{
     // 生产环境
 	URL_CONFIG = 'https://mall2c.caimei365.com'