|
|
@ -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 = { |
|
|
|