梁彦春 il y a 6 ans
Parent
révision
0fd2075132

+ 0
- 220
src/components/commonComponents/headerNav.vue Voir le fichier

1
-<template>
2
-  <div class="header transparent">
3
-    <div class=section>
4
-      <!-- <a class=header-logo href= /></a> -->
5
-      <!-- logo -->
6
-      <img src="../../assets/image/home/logo/logo.png" alt="">
7
-      <div class="header-right-block">
8
-        <ul class=nav-menu>
9
-          <li class="nav-item active">
10
-            首页
11
-          </li>
12
-          <li class="nav-item">
13
-            解决方案
14
-          </li>
15
-          <li class="nav-item">
16
-            产品中心
17
-          </li>
18
-          <li class="nav-item">
19
-            新闻资讯
20
-          </li>
21
-          
22
-          <li class="nav-item">
23
-            关于我们
24
-          </li>
25
-        </ul>
26
-      </div>
27
-    </div>
28
-    <div class="sub-nav-menu">
29
-      <div class="section">
30
-        <span >智慧案场</span>
31
-        <span >智慧社区</span>
32
-        <span>产品订制 </span>
33
-      </div>
34
-    </div>
35
-    <div class="sub-nav-menu">
36
-      <div class="section">
37
-        <span >智慧案场</span>
38
-        <span >智慧社区 </span>
39
-        <span>产品订制 </span>
40
-      </div>
41
-    </div>
42
-    </div>
43
-  <!-- </div> -->
44
-<!-- </div> -->
45
-</template>
46
-<script>
47
-export default {
48
-  data() {
49
-      return {
50
-        activeIndex: '1'
51
-      };
52
-    },
53
-    methods: {
54
-      
55
-    }
56
-
57
-}
58
-</script>
59
-<style>
60
-.section {
61
-      width: 1280px;
62
-      height: 100%;
63
-      margin: 0 auto;
64
-      position: relative
65
-    }
66
-    .clearfix:after,
67
-    .clearfix:before {
68
-      content: "";
69
-      display: table
70
-    }
71
-
72
-    .clearfix:after {
73
-      clear: both
74
-    }
75
-
76
-    .clearfix {
77
-      *zoom: 1
78
-    }
79
-
80
-    input:-ms-input-placeholder {
81
-      color: #ccc
82
-    }
83
-
84
-    input::placeholder {
85
-      color: #ccc
86
-    }
87
-
88
-    button,
89
-    input,
90
-    select,
91
-    textarea {
92
-      font-family: inherit;
93
-      font-size: inherit;
94
-      font-style: inherit;
95
-      font-weight: inherit
96
-    }
97
-
98
-    .hide {
99
-      display: none
100
-    }
101
-
102
-    .header {
103
-      height: 64px;
104
-      font-size: 16px;
105
-      position: fixed;
106
-      top: 0;
107
-      left: 0;
108
-      right: 0;
109
-      z-index: 1;
110
-      transition: background-color .5s ease-out
111
-    }
112
-
113
-    .header .header-logo {
114
-      position: absolute;
115
-      width: 125px;
116
-      height: 35px;
117
-      top: 0;
118
-      bottom: 0;
119
-      left: 40px;
120
-      background-size: contain;
121
-      background-repeat: no-repeat;
122
-      margin: auto
123
-    }
124
-
125
-
126
-    .header .header-right-block {
127
-      position: relative;
128
-      float: right;
129
-      height: 64px;
130
-      width: 676px;
131
-      padding-right: 60px
132
-    }
133
-
134
-    .header .nav-menu {
135
-      display: table;
136
-      width: 100%;
137
-      height: 100%;
138
-      table-layout: fixed
139
-    }
140
-
141
-    .header .nav-menu li {
142
-      display: table-cell;
143
-      text-align: center;
144
-      vertical-align: middle;
145
-      position: relative
146
-    }
147
-
148
-    .header .nav-menu li:before {
149
-      content: "";
150
-      position: absolute;
151
-      top: 32px;
152
-      left: 0;
153
-      right: 0;
154
-      margin: auto;
155
-      display: inline-block;
156
-      width: 0;
157
-      height: 12px;
158
-      transition: width .3s ease-out
159
-    }
160
-
161
-    .header .nav-menu li.active:before,
162
-    .header .nav-menu li:hover:before {
163
-      width: 72px
164
-    }
165
-
166
-    .header .nav-menu span {
167
-      display: inline-block;
168
-      width: 100%;
169
-      height: 64px;
170
-      line-height: 64px
171
-    }
172
-
173
-    .header .sub-nav-menu {
174
-      position: absolute;
175
-      top: 64px;
176
-      width: 100%;
177
-      height: 0;
178
-      text-align: center;
179
-      overflow: hidden;
180
-      transition: height .3s ease-out
181
-    }
182
-
183
-    .header .sub-nav-menu span {
184
-      display: inline-block;
185
-      margin-right: 100px;
186
-      height: 72px;
187
-      line-height: 72px;
188
-    }
189
-
190
-    .header .sub-nav-menu span.last-item {
191
-      margin-right: 0
192
-    }
193
-
194
-    .header .sub-nav-menu.show {
195
-      height: 72px
196
-    }
197
-
198
-    .header.transparent {
199
-      background-color: hsla(0, 0%, 100%, 0);
200
-      color: red;
201
-    }
202
-    .header.transparent li.active:before,
203
-    .header.transparent li:hover:before {
204
-      background: #4e84ff;
205
-      opacity:0.7326;
206
-    }
207
-    body {
208
-      background: #0a0f2c
209
-    }
210
-
211
-    .header {
212
-      z-index: 2
213
-    }
214
-    body,
215
-    html {
216
-      height: 100%
217
-    }
218
-</style>
219
-
220
-

+ 0
- 16
src/components/pages/productCenter/product.vue Voir le fichier

1
-<template>
2
-  <div class="product">
3
-    <headerTab></headerTab>
4
-    <router-view></router-view>
5
-  </div>
6
-</template>
7
-<script>
8
-import headerTab from "@/components/commonComponents/headerTab";
9
-
10
-export default {
11
-  components:{
12
-    headerTab
13
-  }
14
-}
15
-</script>
16
-

+ 0
- 11
src/router/index.js Voir le fichier

5
 
5
 
6
 import solution from '@/components/pages/solution/solution' // 解决方案
6
 import solution from '@/components/pages/solution/solution' // 解决方案
7
 
7
 
8
-import product from '@/components/pages/productCenter/product'
9
-
10
 import productCenter from '@/components/pages/productCenter/productCenter' // 产品中心
8
 import productCenter from '@/components/pages/productCenter/productCenter' // 产品中心
11
 
9
 
12
 import online from '@/components/pages/productCenter/online'
10
 import online from '@/components/pages/productCenter/online'
21
 
19
 
22
 import aboutUs from '@/components/pages/aboutUs/aboutUs' // 关于我们
20
 import aboutUs from '@/components/pages/aboutUs/aboutUs' // 关于我们
23
 
21
 
24
-import headerNav from '@/components/commonComponents/headerNav'
25
 
22
 
26
 
23
 
27
 Vue.use(Router)
24
 Vue.use(Router)
130
       path: '/aboutUs',
127
       path: '/aboutUs',
131
       name: 'aboutUs',
128
       name: 'aboutUs',
132
       component: aboutUs
129
       component: aboutUs
133
-    },
134
-
135
-
136
-    {
137
-      path: '/headerNav',
138
-      name: 'headerNav',
139
-      component: headerNav
140
     }
130
     }
141
 
131
 
142
- 
143
   ]
132
   ]
144
 })
133
 })