From b200eed05d5bff2e12a45331bdc062f4b00bebf7 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 28 七月 2022 10:20:51 +0800 Subject: [PATCH] 列表样式 --- src/views/connectUs/index.vue | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/views/connectUs/index.vue b/src/views/connectUs/index.vue index 2b60e9e..d861af0 100644 --- a/src/views/connectUs/index.vue +++ b/src/views/connectUs/index.vue @@ -8,7 +8,7 @@ class="navItem" :key="index" :class="{ active: activeNav == index }" - @click="activeNav = index" + @click="jump(index)" > {{ item }} </div> @@ -31,6 +31,17 @@ components: { consult, }, + methods: { + jump(index) { + this.activeNav = index; + if (index == 0) { + this.$router.push("/"); + } + if (index == 2 || index == 4) { + window.open("http://smartai.com/contact"); + } + }, + }, }; </script> -- Gitblit v1.8.0