diff --git a/yudao-ui-app/api/product.js b/yudao-ui-app/api/product.js
index 824aede9d..627013c46 100644
--- a/yudao-ui-app/api/product.js
+++ b/yudao-ui-app/api/product.js
@@ -5,4 +5,4 @@ const { http } = uni.$u
export const productSpuPage = params => http.get('product/spu/page', { params })
// 查询商品
-export const productSpu = id => http.get('product/spu/get-detail?id=' + id, { })
+export const getSpuDetail = id => http.get('product/spu/get-detail?id=' + id, { })
diff --git a/yudao-ui-app/components/yd-cart-product/yd-cart-product.vue b/yudao-ui-app/components/yd-cart-product/yd-cart-product.vue
index c6cc674b8..634afb243 100644
--- a/yudao-ui-app/components/yd-cart-product/yd-cart-product.vue
+++ b/yudao-ui-app/components/yd-cart-product/yd-cart-product.vue
@@ -49,7 +49,7 @@ export default {
methods: {
handleProductItemClick(productId) {
uni.$u.route('/pages/product/product', {
- productId: productId
+ id: productId
})
},
handleItemCartClick(productId) {
diff --git a/yudao-ui-app/components/yd-order-product/yd-order-product.vue b/yudao-ui-app/components/yd-order-product/yd-order-product.vue
index 6e662baec..e6f06eba1 100644
--- a/yudao-ui-app/components/yd-order-product/yd-order-product.vue
+++ b/yudao-ui-app/components/yd-order-product/yd-order-product.vue
@@ -39,7 +39,7 @@ export default {
methods: {
handleProductItemClick(productId) {
uni.$u.route('/pages/product/product', {
- productId: productId
+ id: productId
})
}
}
diff --git a/yudao-ui-app/components/yd-product-box/yd-product-box.vue b/yudao-ui-app/components/yd-product-box/yd-product-box.vue
index ad35b968f..04b216ee7 100644
--- a/yudao-ui-app/components/yd-product-box/yd-product-box.vue
+++ b/yudao-ui-app/components/yd-product-box/yd-product-box.vue
@@ -76,7 +76,7 @@ export default {
methods: {
handleProdItemClick(productId) {
uni.$u.route('/pages/product/product', {
- productId: productId
+ id: productId
})
}
}
diff --git a/yudao-ui-app/components/yd-product-more/yd-product-more.vue b/yudao-ui-app/components/yd-product-more/yd-product-more.vue
index e908cade8..ab9a3a91a 100644
--- a/yudao-ui-app/components/yd-product-more/yd-product-more.vue
+++ b/yudao-ui-app/components/yd-product-more/yd-product-more.vue
@@ -62,7 +62,7 @@ export default {
methods: {
handleProdItemClick(productId) {
uni.$u.route('/pages/product/product', {
- productId: productId
+ id: productId
})
}
}
diff --git a/yudao-ui-app/pages.json b/yudao-ui-app/pages.json
index 3bda77165..71093ac94 100644
--- a/yudao-ui-app/pages.json
+++ b/yudao-ui-app/pages.json
@@ -62,12 +62,12 @@
"navigationBarTitleText": "账户设置"
}
},
- {
- "path": "pages/product/product",
- "style": {
- "navigationBarTitleText": "商品详情"
- }
- },
+ {
+ "path": "pages/product/product",
+ "style": {
+ "navigationBarTitleText": "商品详情"
+ }
+ },
{
"path": "pages/checkout/checkout",
"style": {
diff --git a/yudao-ui-app/pages/product/product.vue b/yudao-ui-app/pages/product/product.vue
index fa0a1fa63..d9d3a9dd2 100644
--- a/yudao-ui-app/pages/product/product.vue
+++ b/yudao-ui-app/pages/product/product.vue
@@ -1,20 +1,22 @@
- (currentNum = e.current)" :autoplay="false" height="750rpx" radius="0" indicatorStyle="right: 20px">
+
+ (currentNum = e.current)" :autoplay="false"
+ height="750rpx" radius="0" indicatorStyle="right: 20px">
- {{ currentNum + 1 }}/{{ product.images.length }}
+ {{ currentNum + 1 }}/{{ spu.picUrls.length }}
+
-
-
-
+
-
+
+
@@ -28,8 +30,8 @@
-
- {{ product.sku[currentSkuIndex].desc }}
+
+ {{ spu.skus[currentSkuIndex].desc }}
@@ -39,19 +41,23 @@
-
+
-
-
- 配送
-
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
促销
@@ -151,6 +141,8 @@
+
+
@@ -161,9 +153,10 @@
客服
+
-
- 购物车
+
+ 收藏
@@ -178,7 +171,7 @@