From 9914bb723d812b81be0152bb2693ccae3c385a99 Mon Sep 17 00:00:00 2001 From: hrx <18603305412@163.com> Date: Wed, 17 Dec 2025 14:28:25 +0800 Subject: [PATCH] updata --- f/web-kboss/src/router/index.js | 11 +- f/web-kboss/src/views/H5/calculate/index.vue | 19 +- f/web-kboss/src/views/H5/details/index.vue | 16 + .../src/views/H5/less/official/index.css | 5 +- .../src/views/H5/less/official/index.less | 7 +- f/web-kboss/src/views/H5/official/index.vue | 7 +- .../operation/productsServices/index.vue | 307 +++++++++++++++--- 7 files changed, 305 insertions(+), 67 deletions(-) create mode 100644 f/web-kboss/src/views/H5/details/index.vue diff --git a/f/web-kboss/src/router/index.js b/f/web-kboss/src/router/index.js index 2f2eb03..c037e80 100644 --- a/f/web-kboss/src/router/index.js +++ b/f/web-kboss/src/router/index.js @@ -91,7 +91,7 @@ export const constantRoutes = [ path: "net", title: '网', component: () => import('@/views/H5/net/index.vue'), - meta: { + meta: { title: "网", fullPath: "/h5HomePage/net", }, }, @@ -103,6 +103,15 @@ export const constantRoutes = [ title: "用", fullPath: "/h5HomePage/use", }, }, + { + path: "details", + title: '产品详情', + component: () => import('@/views/H5/details/index.vue'), + meta: { + title: "产品详情", fullPath: "/h5HomePage/details", + }, + + } ] }, { diff --git a/f/web-kboss/src/views/H5/calculate/index.vue b/f/web-kboss/src/views/H5/calculate/index.vue index af5b513..7fd737d 100644 --- a/f/web-kboss/src/views/H5/calculate/index.vue +++ b/f/web-kboss/src/views/H5/calculate/index.vue @@ -61,10 +61,14 @@
智算
- +
-
+ + +
+ 查看详情
@@ -159,6 +163,17 @@ export default { this.activeSupplierIndex = index }, + // 跳转到详情页 + goToDetail(productId) { + // 使用路由跳转到详情页,携带productId作为参数 + this.$router.push({ + path: '/h5HomePage/details', + query: { + id: productId + } + }) + }, + // 打开咨询弹窗 openConsultDialog(product, category) { this.currentProduct = product diff --git a/f/web-kboss/src/views/H5/details/index.vue b/f/web-kboss/src/views/H5/details/index.vue new file mode 100644 index 0000000..3dc627f --- /dev/null +++ b/f/web-kboss/src/views/H5/details/index.vue @@ -0,0 +1,16 @@ + + + + + diff --git a/f/web-kboss/src/views/H5/less/official/index.css b/f/web-kboss/src/views/H5/less/official/index.css index 68e57ac..1e2398b 100644 --- a/f/web-kboss/src/views/H5/less/official/index.css +++ b/f/web-kboss/src/views/H5/less/official/index.css @@ -279,7 +279,6 @@ max-width: 12.8rem; margin: 0 auto; position: relative; - z-index: 1; } /* 顶部信息区域 */ .footer-top { @@ -352,7 +351,7 @@ gap: 0.16rem; } } -.footer-center .contact-item .phone-link { +.footer-center .contact-item 下 .phone-link { color: #333; text-decoration: none; transition: all 0.3s; @@ -360,7 +359,7 @@ font-size: 0.208rem; /* 增大30%: 0.16rem * 1.3 = 0.208rem */ } -.footer-center .contact-item .phone-link:hover { +.footer-center .contact-item 下 .phone-link:hover { color: #275AFF; text-decoration: underline; } diff --git a/f/web-kboss/src/views/H5/less/official/index.less b/f/web-kboss/src/views/H5/less/official/index.less index bf78d83..e73f387 100644 --- a/f/web-kboss/src/views/H5/less/official/index.less +++ b/f/web-kboss/src/views/H5/less/official/index.less @@ -288,7 +288,7 @@ max-width: 12.8rem; margin: 0 auto; position: relative; - z-index: 1; + // z-index: 1; } /* 顶部信息区域 */ @@ -368,10 +368,7 @@ align-items: center; gap: 0.16rem; } - } - .center{ - // display: flex; - } + }下 .phone-link { color: #333; text-decoration: none; diff --git a/f/web-kboss/src/views/H5/official/index.vue b/f/web-kboss/src/views/H5/official/index.vue index df4cc1b..717c285 100644 --- a/f/web-kboss/src/views/H5/official/index.vue +++ b/f/web-kboss/src/views/H5/official/index.vue @@ -140,13 +140,14 @@