zhengjinyi 5 years ago
parent
commit
4e2740bc90
3 changed files with 7 additions and 3 deletions
  1. 5 0
      pages.json
  2. 0 2
      pages/goods/product.vue
  3. 2 1
      pages/tabBar/home/home.vue

+ 5 - 0
pages.json

@@ -68,6 +68,11 @@
 				"navigationBarTitleText": "商品详情",
 				"navigationStyle":"custom"
 			}
+		},{
+			"path": "pages/goods/product-detail",
+			"style": {
+				"navigationStyle":"custom"
+			}
 		},{
 			"path": "pages/service/aftersale",
 			"style": {

+ 0 - 2
pages/goods/product.vue

@@ -559,7 +559,6 @@
 		},
 		onShow() {
 			this.$api.getStorage().then((resolve) => {
-				console.log('2222222222')
 				this.userID = resolve.userID ? resolve.userID : '';	
 				this.userIdentity = resolve.userIdentity ? resolve.userIdentity : 3
 				if (isPreviewImg) {
@@ -569,7 +568,6 @@
 					this.initData();
 				}
 			}).catch(resolve =>{
-				console.log('1111111111')
 				this.initData();
 			})
 		}

+ 2 - 1
pages/tabBar/home/home.vue

@@ -260,7 +260,8 @@
 			},
 			navToDetailPage(id) {//跳转商品详情页
 				this.modallayer = true;
-				this.$api.navigateTo(`/pages/goods/product?id=${id}`)
+				this.$api.navigateTo(`/pages/goods/product-detail?id=${id}`)
+				// this.$api.navigateTo(`/pages/goods/product?id=${id}`)
 			},
 			handleContact(e){
 				console.log(e.detail.path)