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-10-15 16:53:54 4 + * @LastEditTime: 2024-10-16 10:32:24
5 * @FilePath: /hager/src/components/common/hagerHeader.vue 5 * @FilePath: /hager/src/components/common/hagerHeader.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 <el-row> 13 <el-row>
14 <el-col :sm="6" :md="6" :lg="6" :xl="6"> 14 <el-col :sm="6" :md="6" :lg="6" :xl="6">
15 <div class="nav-logo"> 15 <div class="nav-logo">
16 - <div>图标</div> 16 + <el-image style="width: auto; height: 2.5rem" src="https://cdn.ipadbiz.cn/hager/icon/logo@2x.png" fit="fit"></el-image>
17 </div> 17 </div>
18 </el-col> 18 </el-col>
19 <el-col :sm="10" :md="10" :lg="10" :xl="10"> 19 <el-col :sm="10" :md="10" :lg="10" :xl="10">
...@@ -30,12 +30,14 @@ ...@@ -30,12 +30,14 @@
30 <div class="nav-right" style="float: right;"> 30 <div class="nav-right" style="float: right;">
31 <div @click="goToWeb" class="tooltip"> 31 <div @click="goToWeb" class="tooltip">
32 <el-tooltip class="item" effect="dark" content="国际站" placement="bottom"> 32 <el-tooltip class="item" effect="dark" content="国际站" placement="bottom">
33 - <i class=el-icon-orange style="font-size: 1.25rem;"></i> 33 + <!-- <i class=el-icon-orange style="font-size: 1.25rem;"></i> -->
34 + <el-image style="width: auto; height: 1rem" src="https://cdn.ipadbiz.cn/hager/icon/%E8%AF%AD%E8%A8%80@2x.png" fit="fit"></el-image>
34 </el-tooltip> 35 </el-tooltip>
35 </div> 36 </div>
36 <div @click="goToLogin" class="tooltip"> 37 <div @click="goToLogin" class="tooltip">
37 <el-tooltip class="item" effect="dark" content="用户登录" placement="bottom"> 38 <el-tooltip class="item" effect="dark" content="用户登录" placement="bottom">
38 - <i class=el-icon-user style="font-size: 1.25rem;"></i> 39 + <el-image style="width: auto; height: 1rem" src="https://cdn.ipadbiz.cn/hager/icon/%E7%99%BB%E9%99%86@2x.png" fit="fit"></el-image>
40 + <!-- <i class=el-icon-user style="font-size: 1.25rem;"></i> -->
39 </el-tooltip> 41 </el-tooltip>
40 </div> 42 </div>
41 </div> 43 </div>
...@@ -51,7 +53,7 @@ ...@@ -51,7 +53,7 @@
51 <el-col :sm="16" :md="16" :lg="16" :xl="16"> 53 <el-col :sm="16" :md="16" :lg="16" :xl="16">
52 <div class="nav-wrapper"> 54 <div class="nav-wrapper">
53 <div :class="[is_active === 'product' ? 'active' : '', 'item']" @click="onClickProduct" @mouseenter="onClickProduct"> 55 <div :class="[is_active === 'product' ? 'active' : '', 'item']" @click="onClickProduct" @mouseenter="onClickProduct">
54 - <i class="el-icon-s-operation"></i> 56 + <el-image style="width: auto; height: 0.65rem" src="https://cdn.ipadbiz.cn/hager/icon/%E8%8F%9C%E5%8D%95@2x.png" fit="fit"></el-image>
55 产品中心 57 产品中心
56 </div> 58 </div>
57 <div :class="[is_active === 'solution' ? 'active' : '', 'item']" @click="goTo('/solution/index')">解决方案</div> 59 <div :class="[is_active === 'solution' ? 'active' : '', 'item']" @click="goTo('/solution/index')">解决方案</div>
...@@ -68,8 +70,8 @@ ...@@ -68,8 +70,8 @@
68 <div style="display: flex; width: 100%;"> 70 <div style="display: flex; width: 100%;">
69 <div class="product-left-wrapper"> 71 <div class="product-left-wrapper">
70 <div :class="['product-left-item', p_index === index ? 'active' : '']" v-for="(item, index) in product_menu" :key="index" @click="onClick(item, index)"> 72 <div :class="['product-left-item', p_index === index ? 'active' : '']" v-for="(item, index) in product_menu" :key="index" @click="onClick(item, index)">
71 - <div style="display: flex; align-items: center;"> 73 + <div class="icon-text">
72 - <el-image style="width: 2rem; height: 2rem" src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" fit="fit"></el-image> 74 + <el-image style="width: auto; height: 1.65rem" :src="item.icon" fit="fit"></el-image>
73 &nbsp; 75 &nbsp;
74 {{ item.name }} 76 {{ item.name }}
75 </div> 77 </div>
...@@ -138,6 +140,7 @@ export default { ...@@ -138,6 +140,7 @@ export default {
138 test1: true, 140 test1: true,
139 product_menu: [{ 141 product_menu: [{
140 name: '配电产品', 142 name: '配电产品',
143 + icon: 'https://cdn.ipadbiz.cn/hager/icon/%E9%85%8D%E7%94%B5%E4%BA%A7%E5%93%81@2x.png',
141 info: { 144 info: {
142 name: '配电产品', 145 name: '配电产品',
143 desc: '探索配电新境界,我们的产品引领行业潮流,提供高效、安全的配电解决方案,助您事业更上一层楼!', 146 desc: '探索配电新境界,我们的产品引领行业潮流,提供高效、安全的配电解决方案,助您事业更上一层楼!',
...@@ -249,6 +252,7 @@ export default { ...@@ -249,6 +252,7 @@ export default {
249 } 252 }
250 }, { 253 }, {
251 name: '成套产品', 254 name: '成套产品',
255 + icon: 'https://cdn.ipadbiz.cn/hager/icon/%E4%BA%A7%E5%93%81@2x.png',
252 info: { 256 info: {
253 name: '成套产品', 257 name: '成套产品',
254 desc: '探索配电新境界,我们的产品引领行业潮流,提供高效、安全的配电解决方案,助您事业更上一层楼!', 258 desc: '探索配电新境界,我们的产品引领行业潮流,提供高效、安全的配电解决方案,助您事业更上一层楼!',
...@@ -256,6 +260,7 @@ export default { ...@@ -256,6 +260,7 @@ export default {
256 } 260 }
257 }, { 261 }, {
258 name: '开关面板', 262 name: '开关面板',
263 + icon: 'https://cdn.ipadbiz.cn/hager/icon/%E5%BC%80%E5%85%B3@2x.png',
259 info: { 264 info: {
260 name: '开关面板', 265 name: '开关面板',
261 desc: '探索配电新境界,我们的产品引领行业潮流,提供高效、安全的配电解决方案,助您事业更上一层楼!', 266 desc: '探索配电新境界,我们的产品引领行业潮流,提供高效、安全的配电解决方案,助您事业更上一层楼!',
...@@ -263,6 +268,7 @@ export default { ...@@ -263,6 +268,7 @@ export default {
263 } 268 }
264 }, { 269 }, {
265 name: '智能控制', 270 name: '智能控制',
271 + icon: 'https://cdn.ipadbiz.cn/hager/icon/%E6%99%BA%E8%83%BD%E6%8E%A7%E5%88%B6@2x.png',
266 info: { 272 info: {
267 name: '智能控制', 273 name: '智能控制',
268 desc: '探索配电新境界,我们的产品引领行业潮流,提供高效、安全的配电解决方案,助您事业更上一层楼!', 274 desc: '探索配电新境界,我们的产品引领行业潮流,提供高效、安全的配电解决方案,助您事业更上一层楼!',
...@@ -452,6 +458,10 @@ export default { ...@@ -452,6 +458,10 @@ export default {
452 i { 458 i {
453 color: @primary-color; 459 color: @primary-color;
454 } 460 }
461 + .icon-text {
462 + display: flex;
463 + align-items: center;
464 + }
455 } 465 }
456 } 466 }
457 .product-right-wrapper { 467 .product-right-wrapper {
...@@ -498,6 +508,7 @@ export default { ...@@ -498,6 +508,7 @@ export default {
498 &:hover { 508 &:hover {
499 cursor: pointer; 509 cursor: pointer;
500 text-decoration: underline; 510 text-decoration: underline;
511 + color: @primary-color;
501 } 512 }
502 } 513 }
503 } 514 }
...@@ -521,6 +532,7 @@ export default { ...@@ -521,6 +532,7 @@ export default {
521 font-size: 0.95rem; 532 font-size: 0.95rem;
522 &:hover { 533 &:hover {
523 cursor: pointer; 534 cursor: pointer;
535 + color: @primary-color;
524 } 536 }
525 } 537 }
526 .active { 538 .active {
......
1 <!-- 1 <!--
2 * @Date: 2024-08-27 10:06:30 2 * @Date: 2024-08-27 10:06:30
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-10-15 18:40:38 4 + * @LastEditTime: 2024-10-16 10:25:22
5 * @FilePath: /hager/src/views/index.vue 5 * @FilePath: /hager/src/views/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 </el-carousel-item> 13 </el-carousel-item>
14 </el-carousel> 14 </el-carousel>
15 <hager-box class="box-n"> 15 <hager-box class="box-n">
16 - <hager-h1 title="海格全球" sub="Hager Global"></hager-h1> 16 + <hager-h1 title="海格全球" sub="Hager Group"></hager-h1>
17 <div class="hager-global"> 17 <div class="hager-global">
18 <div class="hager-global-info-fold"> 18 <div class="hager-global-info-fold">
19 <p>海格集团是全球领先的电气及智能化解决方案和服务提供商,应用领域涵盖<span class="strong">住宅、商业建筑、公共建筑和工业。</span><i v-if="is_fold" class="el-icon-arrow-up" @click="toggleFold(true)"></i><i v-else class="el-icon-arrow-down" @click="toggleFold(false)"></i></p> 19 <p>海格集团是全球领先的电气及智能化解决方案和服务提供商,应用领域涵盖<span class="strong">住宅、商业建筑、公共建筑和工业。</span><i v-if="is_fold" class="el-icon-arrow-up" @click="toggleFold(true)"></i><i v-else class="el-icon-arrow-down" @click="toggleFold(false)"></i></p>
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
84 </div> 84 </div>
85 </hager-box> 85 </hager-box>
86 <hager-box class="box-n"> 86 <hager-box class="box-n">
87 - <hager-h1 title="产品中心" sub="Product Center"></hager-h1> 87 + <hager-h1 title="产品中心" sub="Product"></hager-h1>
88 <div v-if="!is_xs" class="hager-product-center"> 88 <div v-if="!is_xs" class="hager-product-center">
89 <el-row :gutter="15"> 89 <el-row :gutter="15">
90 <el-col :span="6" v-for="(item, index) in product_list" :key="index"> 90 <el-col :span="6" v-for="(item, index) in product_list" :key="index">
...@@ -94,6 +94,9 @@ ...@@ -94,6 +94,9 @@
94 </div> 94 </div>
95 </el-col> 95 </el-col>
96 </el-row> 96 </el-row>
97 + <div class="more-box" style="margin-top: 2rem;">
98 + <hager-more></hager-more>
99 + </div>
97 </div> 100 </div>
98 <div v-else> 101 <div v-else>
99 <swiper ref="myProductSwiper" class="swiper" :options="swiperOption" @slideChange="onProductSlideChange"> 102 <swiper ref="myProductSwiper" class="swiper" :options="swiperOption" @slideChange="onProductSlideChange">
...@@ -114,9 +117,6 @@ ...@@ -114,9 +117,6 @@
114 </div> 117 </div>
115 </div> 118 </div>
116 </div> 119 </div>
117 - <div class="more-box" style="margin-top: 2rem;">
118 - <hager-more></hager-more>
119 - </div>
120 </hager-box> 120 </hager-box>
121 <hager-box v-if="!is_xs" class="box-2n"> 121 <hager-box v-if="!is_xs" class="box-2n">
122 <hager-h1 title="最新资讯" sub="News"></hager-h1> 122 <hager-h1 title="最新资讯" sub="News"></hager-h1>
...@@ -166,8 +166,8 @@ ...@@ -166,8 +166,8 @@
166 </div> 166 </div>
167 </div> 167 </div>
168 <hager-box class="box-n"> 168 <hager-box class="box-n">
169 - <hager-h1 title="招聘信息" sub="Recruit"></hager-h1> 169 + <hager-h1 title="招聘信息" sub="Recruitment"></hager-h1>
170 - <p style="margin: 2rem 0;">心国近心,支注万你。海恰人囫指员光工,然于則行!我们哦这音齐稱央那八我们附行列,共同书与成功的扁草。用你的才罕,刨道九限可能!</p> 170 + <p style="margin: 2rem 0;">德国匠心,专注为你。海格集团招贤纳士,携手前行!我们诚邀各界精英加入我们的行列,共同书写成功的篇章。用你的才华,创造无限可能! </p>
171 <div class="more-box" style="margin-top: 2rem;"> 171 <div class="more-box" style="margin-top: 2rem;">
172 <hager-more></hager-more> 172 <hager-more></hager-more>
173 </div> 173 </div>
...@@ -225,17 +225,17 @@ export default { ...@@ -225,17 +225,17 @@ export default {
225 title: '4住宅解决方案' 225 title: '4住宅解决方案'
226 }], 226 }],
227 product_list: [{ 227 product_list: [{
228 - src: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg', 228 + src: 'https://cdn.ipadbiz.cn/hager/img/KNX%E6%99%BA%E8%83%BD%E6%8E%A7%E5%88%B6%E6%A8%A1%E5%9D%97@2x.png',
229 - title: '三型特决井天' 229 + title: 'hw01 空气断路器'
230 }, { 230 }, {
231 - src: 'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg', 231 + src: 'https://cdn.ipadbiz.cn/hager/img/ats%E8%87%AA%E5%8A%A8%E8%BD%AC%E6%8D%A2%E5%BC%80%E5%85%B3@2x.png',
232 - title: '三型特决井天' 232 + title: 'h3+ 智能塑壳断路器'
233 }, { 233 }, {
234 - src: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg', 234 + src: 'https://cdn.ipadbiz.cn/hager/img/h3+%20%E6%99%BA%E8%83%BD%E5%A1%91%E5%A3%B3%E6%96%AD%E8%B7%AF%E5%99%A8@2x.png',
235 - title: '三型特决井天' 235 + title: 'ats自动转换开关'
236 }, { 236 }, {
237 - src: 'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg', 237 + src: 'https://cdn.ipadbiz.cn/hager/img/hw+%20%E7%A9%BA%E6%B0%94%E6%96%AD%E8%B7%AF%E5%99%A8@2x.png',
238 - title: '三型特决井天' 238 + title: 'KNX智能控制模块'
239 }], 239 }],
240 swiperOption: { 240 swiperOption: {
241 slidesPerView: 2, 241 slidesPerView: 2,
......