1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
| <template>
| <div class="connectUs">
| <div class="nav">
| <div class="heart">
| <img src="/images/connectUs/logo.png" alt="" />
| <div
| v-for="(item, index) in navList"
| class="navItem"
| :key="index"
| :class="{ active: activeNav == index }"
| @click="jump(index)"
| >
| {{ item }}
| </div>
| </div>
| </div>
|
| <consult></consult>
| </div>
| </template>
|
| <script>
| import consult from "@/views/connectUs/components/consult";
| export default {
| data() {
| return {
| activeNav: 4,
| navList: ["首页", "产品和服务", "关于我们", "联系我们", "业务咨询"],
| };
| },
| 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>
|
| <style lang="scss" scoped>
| .connectUs {
| .nav {
| overflow: hidden;
| height: 80px;
| background-color: #000;
| color: #fff;
|
| .heart {
| display: flex;
| margin-top: 18px;
| align-items: center;
| }
|
| img {
| margin-right: 100px;
| height: 40px;
| }
|
| .navItem {
| font-size: 16px;
| margin-right: 68px;
| cursor: pointer;
|
| &.active {
| color: #5b9bf1;
| }
| }
| }
| }
| </style>
|
|