From 75dfd973baf59fddcb478cffa4c813bc533c237b Mon Sep 17 00:00:00 2001 From: rouchen <3133657697@qq.com> Date: Tue, 26 Mar 2024 20:22:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=202.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 12 +- src/views/product/info/detail/index.vue | 139 +++++++++++++++++------- src/views/product/info/index.vue | 7 ++ 3 files changed, 113 insertions(+), 45 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 74d3068..a35c89a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -80,17 +80,17 @@ export const constantRoutes = [ redirect: 'product-detail', children: [ { - path: 'product-detail', - component: () => import('@/views/product/shop/index'), + path: 'product-detail/:detailId(\\d+)', + component: () => import('@/views/product/info/detail/index'), name: 'ShopProduct', meta: {title: '商品详情', icon: 'dashboard', affix: true} } ] }, - { - path: '/gb', - component: detail - }, + // { + // path: '/gb', + // component: detail + // }, { path: '/user', component: Layout, diff --git a/src/views/product/info/detail/index.vue b/src/views/product/info/detail/index.vue index a2c943e..f4a99f0 100644 --- a/src/views/product/info/detail/index.vue +++ b/src/views/product/info/detail/index.vue @@ -92,47 +92,57 @@ :label="value" :key="value" :value="value" border>{{value}} - + 加入购物车 立即购买 - + 总价格{{num}}
商品详情 -
- - kooriookami - 18100000000 - 苏州市 - 江苏省苏州市吴中区吴中大道 1188 号 - - - kooriookami - 18100000000 - 苏州市 - - 学校 - - 江苏省苏州市吴中区吴中大道 1188 号 - + + + + {{attributeMap[attribute.id]}} + + + + + + + {{attributeMap[attributeInfo.id]}} + + + + + + {{attributeMap[attributeInfo.id]}} + + + + +