hookehuyr

头部导航组件显示优化

1 <!-- 1 <!--
2 * @Date: 2024-09-26 13:42:11 2 * @Date: 2024-09-26 13:42:11
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-09-27 13:35:32 4 + * @LastEditTime: 2024-09-29 14:19:50
5 * @FilePath: /hager/src/components/common/hagerHeader.vue 5 * @FilePath: /hager/src/components/common/hagerHeader.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
8 <template> 8 <template>
9 <div class="hager-header"> 9 <div class="hager-header">
10 - <el-row class="hidden-xs-only"> 10 + <el-row class="hidden-xs-only" style="background-color: #fff;">
11 <el-col :sm="2" :md="2" :lg="3" :xl="4">&nbsp;</el-col> 11 <el-col :sm="2" :md="2" :lg="3" :xl="4">&nbsp;</el-col>
12 - <el-col :sm="20" :md="20" :lg="18" :xl="16" style="position: relative;"> 12 + <el-col :sm="20" :md="20" :lg="18" :xl="16" style="position: relative;height: 5rem;">
13 - <el-row> 13 + <el-row style="">
14 <el-col :sm="16" :md="16" :lg="16" :xl="16"> 14 <el-col :sm="16" :md="16" :lg="16" :xl="16">
15 - <div style="display: flex; background-color: gray;"> 15 + <div style="display: flex;height: 5rem; align-items: center; justify-content: space-around;">
16 <div>图标</div> 16 <div>图标</div>
17 <div @click="onClickProduct">产品中心</div> 17 <div @click="onClickProduct">产品中心</div>
18 <div>解决方案</div> 18 <div>解决方案</div>
...@@ -24,10 +24,13 @@ ...@@ -24,10 +24,13 @@
24 </div> 24 </div>
25 </el-col> 25 </el-col>
26 <el-col :sm="8" :md="8" :lg="8" :xl="8"> 26 <el-col :sm="8" :md="8" :lg="8" :xl="8">
27 - <div style="display: flex; background-color: blue;"> 27 + <div style="display: flex; height: 5rem; align-items: center;justify-content: right;">
28 - <div>搜索</div> 28 + <div style="display: flex; align-items: center; border-radius: 1rem; border: 1px solid# f5f5f5; background-color: #e3f1f7; padding: 0.5rem 1rem;">
29 - <div>地球仪</div> 29 + <i class=el-icon-zoom-out></i>&nbsp;
30 - <div>用户</div> 30 + <input style="border: 0;background-color: #e3f1f7;" placeholder="搜索" />
31 + </div>
32 + <div style="margin: 0 1rem;"><i class=el-icon-eleme></i></div>
33 + <div><i class=el-icon-eleme></i></div>
31 </div> 34 </div>
32 </el-col> 35 </el-col>
33 </el-row> 36 </el-row>
...@@ -224,7 +227,7 @@ export default { ...@@ -224,7 +227,7 @@ export default {
224 z-index: 9; 227 z-index: 9;
225 .product-center { 228 .product-center {
226 position: absolute; 229 position: absolute;
227 - top: 2rem; 230 + top: 5rem;
228 left: 0; 231 left: 0;
229 width: 100%; 232 width: 100%;
230 height: auto; 233 height: auto;
......