Showing
5 changed files
with
84 additions
and
45 deletions
| ... | @@ -19,6 +19,7 @@ declare module 'vue' { | ... | @@ -19,6 +19,7 @@ declare module 'vue' { |
| 19 | ElImage: typeof import('element-ui/lib/image')['default'] | 19 | ElImage: typeof import('element-ui/lib/image')['default'] |
| 20 | ElInput: typeof import('element-ui/lib/input')['default'] | 20 | ElInput: typeof import('element-ui/lib/input')['default'] |
| 21 | ElRow: typeof import('element-ui/lib/row')['default'] | 21 | ElRow: typeof import('element-ui/lib/row')['default'] |
| 22 | + ElTooltip: typeof import('element-ui/lib/tooltip')['default'] | ||
| 22 | HagerBox: typeof import('./src/components/common/hagerBox.vue')['default'] | 23 | HagerBox: typeof import('./src/components/common/hagerBox.vue')['default'] |
| 23 | HagerCarousel: typeof import('./src/components/hagerCarousel.vue')['default'] | 24 | HagerCarousel: typeof import('./src/components/hagerCarousel.vue')['default'] |
| 24 | HagerFooter: typeof import('./src/components/common/hagerFooter.vue')['default'] | 25 | HagerFooter: typeof import('./src/components/common/hagerFooter.vue')['default'] | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-09-26 13:42:22 | 2 | * @Date: 2024-09-26 13:42:22 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-09-27 20:31:41 | 4 | + * @LastEditTime: 2024-09-30 16:26:28 |
| 5 | * @FilePath: /hager/src/components/common/hagerFooter.vue | 5 | * @FilePath: /hager/src/components/common/hagerFooter.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -124,7 +124,7 @@ export default { | ... | @@ -124,7 +124,7 @@ export default { |
| 124 | margin-bottom: 0.5rem; | 124 | margin-bottom: 0.5rem; |
| 125 | } | 125 | } |
| 126 | .link-info { | 126 | .link-info { |
| 127 | - font-size: 0.75rem; | 127 | + font-size: 0.85rem; |
| 128 | color: #FFF; | 128 | color: #FFF; |
| 129 | line-height: 2; | 129 | line-height: 2; |
| 130 | display: flex; | 130 | display: flex; | ... | ... |
| 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-30 11:34:14 | 4 | + * @LastEditTime: 2024-09-30 17:21:13 |
| 5 | * @FilePath: /hager/src/components/common/hagerHeader.vue | 5 | * @FilePath: /hager/src/components/common/hagerHeader.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -10,11 +10,11 @@ | ... | @@ -10,11 +10,11 @@ |
| 10 | <el-row class="hidden-xs-only" style="background-color: #fff;"> | 10 | <el-row class="hidden-xs-only" style="background-color: #fff;"> |
| 11 | <el-col :sm="2" :md="2" :lg="3" :xl="4"> </el-col> | 11 | <el-col :sm="2" :md="2" :lg="3" :xl="4"> </el-col> |
| 12 | <el-col :sm="20" :md="20" :lg="18" :xl="16" style="position: relative;height: 5rem;"> | 12 | <el-col :sm="20" :md="20" :lg="18" :xl="16" style="position: relative;height: 5rem;"> |
| 13 | - <el-row style=""> | 13 | + <el-row> |
| 14 | <el-col :sm="16" :md="16" :lg="16" :xl="16"> | 14 | <el-col :sm="16" :md="16" :lg="16" :xl="16"> |
| 15 | <div class="nav-wrapper"> | 15 | <div class="nav-wrapper"> |
| 16 | <div>图标</div> | 16 | <div>图标</div> |
| 17 | - <div :class="[is_active === 'product' ? 'active' : '', 'item']" @click="onClickProduct">产品中心</div> | 17 | + <div :class="[is_active === 'product' ? 'active' : '', 'item']" @click="onClickProduct" @mouseenter="onClickProduct">产品中心</div> |
| 18 | <div :class="[is_active === 'solution' ? 'active' : '', 'item']" @click="goTo('/solution/index')">解决方案</div> | 18 | <div :class="[is_active === 'solution' ? 'active' : '', 'item']" @click="goTo('/solution/index')">解决方案</div> |
| 19 | <div :class="[is_active === '新闻中心' ? 'active' : '', 'item']">新闻中心</div> | 19 | <div :class="[is_active === '新闻中心' ? 'active' : '', 'item']">新闻中心</div> |
| 20 | <div :class="[is_active === '招聘信息' ? 'active' : '', 'item']">招聘信息</div> | 20 | <div :class="[is_active === '招聘信息' ? 'active' : '', 'item']">招聘信息</div> |
| ... | @@ -24,13 +24,21 @@ | ... | @@ -24,13 +24,21 @@ |
| 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; height: 5rem; align-items: center;justify-content: right;"> | 27 | + <div class="nav-right"> |
| 28 | - <div style="display: flex; align-items: center; border-radius: 1rem; border: 1px solid #f5f5f5; background-color: #e3f1f7; padding: 0.5rem 1rem;"> | 28 | + <div class="search"> |
| 29 | - <i class=el-icon-zoom-out></i> | 29 | + <i class=el-icon-search></i> |
| 30 | <input style="border: 0;background-color: #e3f1f7;" placeholder="搜索" /> | 30 | <input style="border: 0;background-color: #e3f1f7;" placeholder="搜索" /> |
| 31 | </div> | 31 | </div> |
| 32 | - <div style="margin: 0 1rem;"><i class=el-icon-eleme></i></div> | 32 | + <div @click="goToWeb" class="tooltip"> |
| 33 | - <div><i class=el-icon-eleme></i></div> | 33 | + <el-tooltip class="item" effect="dark" content="国际站" placement="bottom"> |
| 34 | + <i class=el-icon-orange style="font-size: 1.25rem;"></i> | ||
| 35 | + </el-tooltip> | ||
| 36 | + </div> | ||
| 37 | + <div @click="goToLogin" class="tooltip"> | ||
| 38 | + <el-tooltip class="item" effect="dark" content="用户登录" placement="bottom"> | ||
| 39 | + <i class=el-icon-user style="font-size: 1.25rem;"></i> | ||
| 40 | + </el-tooltip> | ||
| 41 | + </div> | ||
| 34 | </div> | 42 | </div> |
| 35 | </el-col> | 43 | </el-col> |
| 36 | </el-row> | 44 | </el-row> |
| ... | @@ -229,6 +237,7 @@ export default { | ... | @@ -229,6 +237,7 @@ export default { |
| 229 | watch: { | 237 | watch: { |
| 230 | '$route' (to, from) { | 238 | '$route' (to, from) { |
| 231 | this.is_active = to.meta.tag; | 239 | this.is_active = to.meta.tag; |
| 240 | + this.show = false; | ||
| 232 | } | 241 | } |
| 233 | }, | 242 | }, |
| 234 | methods: { | 243 | methods: { |
| ... | @@ -301,7 +310,15 @@ export default { | ... | @@ -301,7 +310,15 @@ export default { |
| 301 | } | 310 | } |
| 302 | }); | 311 | }); |
| 303 | this.closeMenu(); | 312 | this.closeMenu(); |
| 304 | - } | 313 | + }, |
| 314 | + goToWeb () { | ||
| 315 | + console.warn('暂无跳转'); | ||
| 316 | + }, | ||
| 317 | + goToLogin () { | ||
| 318 | + this.$router.push({ | ||
| 319 | + path: '/login' | ||
| 320 | + }); | ||
| 321 | + }, | ||
| 305 | } | 322 | } |
| 306 | } | 323 | } |
| 307 | </script> | 324 | </script> |
| ... | @@ -407,5 +424,25 @@ export default { | ... | @@ -407,5 +424,25 @@ export default { |
| 407 | color: @primary-color; | 424 | color: @primary-color; |
| 408 | } | 425 | } |
| 409 | } | 426 | } |
| 427 | + .nav-right { | ||
| 428 | + display: flex; | ||
| 429 | + height: 5rem; | ||
| 430 | + align-items: center; | ||
| 431 | + justify-content: right; | ||
| 432 | + .search { | ||
| 433 | + display: flex; | ||
| 434 | + align-items: center; | ||
| 435 | + border-radius: 1rem; | ||
| 436 | + border: 1px solid #f5f5f5; | ||
| 437 | + background-color: #e3f1f7; | ||
| 438 | + padding: 0.5rem 1rem; | ||
| 439 | + } | ||
| 440 | + .tooltip { | ||
| 441 | + margin: 0 1rem; | ||
| 442 | + &:hover { | ||
| 443 | + cursor: pointer; | ||
| 444 | + } | ||
| 445 | + } | ||
| 446 | + } | ||
| 410 | } | 447 | } |
| 411 | </style> | 448 | </style> | ... | ... |
| 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-09-30 16:21:59 | 4 | + * @LastEditTime: 2024-09-30 16:57:53 |
| 5 | * @FilePath: /hager/src/views/index.vue | 5 | * @FilePath: /hager/src/views/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -55,19 +55,7 @@ | ... | @@ -55,19 +55,7 @@ |
| 55 | <hager-box class="box-n"> | 55 | <hager-box class="box-n"> |
| 56 | <hager-h1 title="产品中心" sub="Product Center"></hager-h1> | 56 | <hager-h1 title="产品中心" sub="Product Center"></hager-h1> |
| 57 | <div class="hager-product-center"> | 57 | <div class="hager-product-center"> |
| 58 | - <div class="product-item"> | 58 | + <div v-for="(item, index) in 4" :key="index" class="product-item"> |
| 59 | - <el-image style="width: 14rem; height: 14rem;" src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" fit="fit"></el-image> | ||
| 60 | - <p style="margin-top: 1rem;">atS三型特决井天</p> | ||
| 61 | - </div> | ||
| 62 | - <div class="product-item"> | ||
| 63 | - <el-image style="width: 14rem; height: 14rem;" src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" fit="fit"></el-image> | ||
| 64 | - <p style="margin-top: 1rem;">atS三型特决井天</p> | ||
| 65 | - </div> | ||
| 66 | - <div class="product-item"> | ||
| 67 | - <el-image style="width: 14rem; height: 14rem;" src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" fit="fit"></el-image> | ||
| 68 | - <p style="margin-top: 1rem;">atS三型特决井天</p> | ||
| 69 | - </div> | ||
| 70 | - <div class="product-item"> | ||
| 71 | <el-image style="width: 14rem; height: 14rem;" src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" fit="fit"></el-image> | 59 | <el-image style="width: 14rem; height: 14rem;" src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" fit="fit"></el-image> |
| 72 | <p style="margin-top: 1rem;">atS三型特决井天</p> | 60 | <p style="margin-top: 1rem;">atS三型特决井天</p> |
| 73 | </div> | 61 | </div> |
| ... | @@ -315,6 +303,12 @@ export default { | ... | @@ -315,6 +303,12 @@ export default { |
| 315 | color: #333; | 303 | color: #333; |
| 316 | border-radius: 8px; | 304 | border-radius: 8px; |
| 317 | background-color: #f3f3f3; | 305 | background-color: #f3f3f3; |
| 306 | + transition: transform 0.3s ease-in-out; | ||
| 307 | + &:hover { | ||
| 308 | + cursor: pointer; | ||
| 309 | + transform: scale(1.05); | ||
| 310 | + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | ||
| 311 | + } | ||
| 318 | } | 312 | } |
| 319 | } | 313 | } |
| 320 | } | 314 | } | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-09-27 16:53:09 | 2 | * @Date: 2024-09-27 16:53:09 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-09-30 14:09:02 | 4 | + * @LastEditTime: 2024-09-30 16:48:54 |
| 5 | * @FilePath: /hager/src/views/product/index.vue | 5 | * @FilePath: /hager/src/views/product/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -22,24 +22,8 @@ | ... | @@ -22,24 +22,8 @@ |
| 22 | <div class="product-nav-title">按产品类别查找</div> | 22 | <div class="product-nav-title">按产品类别查找</div> |
| 23 | <el-input style="margin-bottom: 0.5rem;" placeholder="请输入产品" prefix-icon="el-icon-search" v-model="search_input"></el-input> | 23 | <el-input style="margin-bottom: 0.5rem;" placeholder="请输入产品" prefix-icon="el-icon-search" v-model="search_input"></el-input> |
| 24 | <el-collapse v-model="activeNames" @change="handleChange"> | 24 | <el-collapse v-model="activeNames" @change="handleChange"> |
| 25 | - <el-collapse-item title="低压主配电" name="1"> | 25 | + <el-collapse-item v-for="(item, index) in c_list" :key="index" :title="item.title" :name="item.name"> |
| 26 | - <div class="p-item">acb hw01 空气断路器</div> | 26 | + <div @click="goToP(c)" v-for="(c, idx) in item.list" :key="idx" class="p-item">{{ c.name }}</div> |
| 27 | - <div class="p-item">unimes(优跃)开关柜</div> | ||
| 28 | - <div class="p-item">unimes(优跃)面板开关</div> | ||
| 29 | - <div class="p-item">acb hw04 空气断路器</div> | ||
| 30 | - <div class="p-item">acb hwo5 空气断路器</div> | ||
| 31 | - <div class="p-item">acb hw06 空气断路器</div> | ||
| 32 | - <div class="p-item">acb hwo7 空气断路器</div> | ||
| 33 | - </el-collapse-item> | ||
| 34 | - <el-collapse-item title="分配电" name="2"> | ||
| 35 | - </el-collapse-item> | ||
| 36 | - <el-collapse-item title="终端配电" name="3"> | ||
| 37 | - </el-collapse-item> | ||
| 38 | - <el-collapse-item title="开关面板" name="4"> | ||
| 39 | - </el-collapse-item> | ||
| 40 | - <el-collapse-item title="酒店客控" name="5"> | ||
| 41 | - </el-collapse-item> | ||
| 42 | - <el-collapse-item title="智能家居" name="6"> | ||
| 43 | </el-collapse-item> | 27 | </el-collapse-item> |
| 44 | </el-collapse> | 28 | </el-collapse> |
| 45 | </div> | 29 | </div> |
| ... | @@ -71,7 +55,22 @@ export default { | ... | @@ -71,7 +55,22 @@ export default { |
| 71 | data () { | 55 | data () { |
| 72 | return { | 56 | return { |
| 73 | search_input: '', | 57 | search_input: '', |
| 74 | - activeNames: ['1'] | 58 | + activeNames: ['1'], |
| 59 | + c_list: [{ | ||
| 60 | + title: '低压主配电', | ||
| 61 | + name: '1', | ||
| 62 | + list: [{ | ||
| 63 | + id: '', | ||
| 64 | + name: 'acb hw01 空气断路器' | ||
| 65 | + }] | ||
| 66 | + }, { | ||
| 67 | + title: '分配电', | ||
| 68 | + name: '2', | ||
| 69 | + list: [{ | ||
| 70 | + id: '', | ||
| 71 | + name: 'acb hw01 空气断路器' | ||
| 72 | + }] | ||
| 73 | + }] | ||
| 75 | } | 74 | } |
| 76 | }, | 75 | }, |
| 77 | mounted () { | 76 | mounted () { |
| ... | @@ -80,6 +79,14 @@ export default { | ... | @@ -80,6 +79,14 @@ export default { |
| 80 | methods: { | 79 | methods: { |
| 81 | handleChange(val) { | 80 | handleChange(val) { |
| 82 | console.log(val); | 81 | console.log(val); |
| 82 | + }, | ||
| 83 | + goToP (item) { // 跳转产品详情 | ||
| 84 | + this.$router.push({ | ||
| 85 | + path: '/product/detail', | ||
| 86 | + query: { | ||
| 87 | + // id: id | ||
| 88 | + } | ||
| 89 | + }); | ||
| 83 | } | 90 | } |
| 84 | } | 91 | } |
| 85 | } | 92 | } | ... | ... |
-
Please register or login to post a comment