From 701d4b81b4c4c13b47d317f5f16644b5b1a2717f Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Fri, 26 May 2023 11:14:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E4=BA=A7=E5=93=81=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Index/index.vue | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/views/Index/index.vue b/src/views/Index/index.vue index d4619b0..7e9d839 100755 --- a/src/views/Index/index.vue +++ b/src/views/Index/index.vue @@ -135,6 +135,7 @@ export default { // search优先级高 首先判断search 而后判断# const params = new URLSearchParams(search) const p = params.get('p') + const countStore = useCountStore() if (p) { if (p == 'contact') { // 跳转到联系我们 @@ -146,6 +147,9 @@ export default { } if (p == 'design') { swiper.slideTo(3, 0, false) + setTimeout(() => { + countStore.countAdd() + }) // 工业设计 } if (p == 'culture') { @@ -153,6 +157,9 @@ export default { // 企业文化 } if (p == 'hardware') { + setTimeout(() => { + countStore.countAddI() + }) swiper.slideTo(5, 0, false) // 软硬件 } @@ -160,6 +167,30 @@ export default { swiper.slideTo(14, 0, false) // 招聘 } + // 跳转产品详情页面 + if (p == 'softdetail') { + // 更新store + const pid = params.get('pid') + const tid = params.get('tid') + if (pid && tid) { + const detailStore = useDetailStore() + detailStore.updateIndustryId(tid) + detailStore.updateExampleId(pid) + //外观 + swiper.slideTo(4, 0, false) + } + } + if (p == 'harddetail') { + const pid = params.get('pid') + const tid = params.get('tid') + if (pid && tid) { + const detailStore = useDetailStore() + detailStore.updateHardwareId(tid) + detailStore.updateHardwareExampleId(pid) + // 硬件 + swiper.slideTo(6, 0, false) + } + } } } const virtualOption = {