Showing
4 changed files
with
47 additions
and
34 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-09-26 13:36:06 | 2 | * @Date: 2024-09-26 13:36:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-10-16 17:07:50 | 4 | + * @LastEditTime: 2024-10-17 09:45:26 |
| 5 | * @FilePath: /hager/src/App.vue | 5 | * @FilePath: /hager/src/App.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -81,6 +81,7 @@ body { | ... | @@ -81,6 +81,7 @@ body { |
| 81 | .text { | 81 | .text { |
| 82 | font-weight: bold; | 82 | font-weight: bold; |
| 83 | .title { | 83 | .title { |
| 84 | + margin-bottom: 1rem; | ||
| 84 | font-size: 2.5rem; | 85 | font-size: 2.5rem; |
| 85 | color: @secondary-color; | 86 | color: @secondary-color; |
| 86 | } | 87 | } | ... | ... |
| 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-16 10:32:24 | 4 | + * @LastEditTime: 2024-10-17 11:04:59 |
| 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 | - <el-image style="width: auto; height: 2.5rem" src="https://cdn.ipadbiz.cn/hager/icon/logo@2x.png" fit="fit"></el-image> | 16 | + <el-image style="width: 8rem; 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"> |
| ... | @@ -31,12 +31,12 @@ | ... | @@ -31,12 +31,12 @@ |
| 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-image style="width: 1rem; height: 1rem" src="https://cdn.ipadbiz.cn/hager/icon/%E8%AF%AD%E8%A8%80@2x.png" fit="fit"></el-image> |
| 35 | </el-tooltip> | 35 | </el-tooltip> |
| 36 | </div> | 36 | </div> |
| 37 | <div @click="goToLogin" class="tooltip"> | 37 | <div @click="goToLogin" class="tooltip"> |
| 38 | <el-tooltip class="item" effect="dark" content="用户登录" placement="bottom"> | 38 | <el-tooltip class="item" effect="dark" content="用户登录" placement="bottom"> |
| 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> | 39 | + <el-image style="width: 1rem; 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> --> | 40 | <!-- <i class=el-icon-user style="font-size: 1.25rem;"></i> --> |
| 41 | </el-tooltip> | 41 | </el-tooltip> |
| 42 | </div> | 42 | </div> |
| ... | @@ -52,14 +52,14 @@ | ... | @@ -52,14 +52,14 @@ |
| 52 | <el-row> | 52 | <el-row> |
| 53 | <el-col :sm="16" :md="16" :lg="16" :xl="16"> | 53 | <el-col :sm="16" :md="16" :lg="16" :xl="16"> |
| 54 | <div class="nav-wrapper"> | 54 | <div class="nav-wrapper"> |
| 55 | - <div :class="[is_active === 'product' ? 'active' : '', 'item']" @click="onClickProduct" @mouseenter="onClickProduct"> | 55 | + <div :class="[is_active === 'product' ? 'active' : '', 'item']" @click="onClickProduct"> |
| 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> | 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> |
| 57 | - 产品中心 | 57 | + <span @mouseenter="onClickProduct">产品中心</span> |
| 58 | </div> | 58 | </div> |
| 59 | <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> |
| 60 | <div :class="[is_active === '新闻中心' ? 'active' : '', 'item']">新闻中心</div> | 60 | <div :class="[is_active === '新闻中心' ? 'active' : '', 'item']">新闻中心</div> |
| 61 | <div :class="[is_active === '招聘信息' ? 'active' : '', 'item']">招聘信息</div> | 61 | <div :class="[is_active === '招聘信息' ? 'active' : '', 'item']">招聘信息</div> |
| 62 | - <div :class="[is_active === '关于海格' ? 'active' : '', 'item']">关于海格</div> | 62 | + <div :class="[is_active === 'about' ? 'active' : '', 'item']" @click="goTo('/about')">关于海格</div> |
| 63 | <div :class="[is_active === '联系我们' ? 'active' : '', 'item']">联系我们</div> | 63 | <div :class="[is_active === '联系我们' ? 'active' : '', 'item']">联系我们</div> |
| 64 | <div :class="[is_active === 'index' ? 'active' : '', 'item']" @click="goTo('/')">首页</div> | 64 | <div :class="[is_active === 'index' ? 'active' : '', 'item']" @click="goTo('/')">首页</div> |
| 65 | </div> | 65 | </div> |
| ... | @@ -530,6 +530,7 @@ export default { | ... | @@ -530,6 +530,7 @@ export default { |
| 530 | color: @secondary-color; | 530 | color: @secondary-color; |
| 531 | margin-right: 1.5rem; | 531 | margin-right: 1.5rem; |
| 532 | font-size: 0.95rem; | 532 | font-size: 0.95rem; |
| 533 | + height: 1.5rem; | ||
| 533 | &:hover { | 534 | &:hover { |
| 534 | cursor: pointer; | 535 | cursor: pointer; |
| 535 | color: @primary-color; | 536 | color: @primary-color; | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-09-29 15:49:27 | 2 | * @Date: 2024-09-29 15:49:27 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-10-16 17:42:18 | 4 | + * @LastEditTime: 2024-10-16 18:55:21 |
| 5 | * @FilePath: /hager/src/views/solution/detail.vue | 5 | * @FilePath: /hager/src/views/solution/detail.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -58,7 +58,8 @@ | ... | @@ -58,7 +58,8 @@ |
| 58 | <swiper-slide v-for="(item, index) in product_list" :key="index"> | 58 | <swiper-slide v-for="(item, index) in product_list" :key="index"> |
| 59 | <div class="card-box" @click="goToProduct(item)"> | 59 | <div class="card-box" @click="goToProduct(item)"> |
| 60 | <div class="card-image-wrapper"> | 60 | <div class="card-image-wrapper"> |
| 61 | - <el-image :src="item.src" fit="fit"></el-image> | 61 | + <!-- <el-image :src="item.src" fit="fit"></el-image> --> |
| 62 | + <img :src="item.src" style=""> | ||
| 62 | </div> | 63 | </div> |
| 63 | <p class="card-title">{{ item.title }}</p> | 64 | <p class="card-title">{{ item.title }}</p> |
| 64 | </div> | 65 | </div> |
| ... | @@ -239,33 +240,40 @@ export default { | ... | @@ -239,33 +240,40 @@ export default { |
| 239 | } | 240 | } |
| 240 | .hager-success-cases { | 241 | .hager-success-cases { |
| 241 | margin-top: 2rem; | 242 | margin-top: 2rem; |
| 242 | - display: grid; | 243 | + // display: grid; |
| 243 | - grid-template-columns: repeat(3, 1fr); /* 一行显示4个 */ | 244 | + // grid-template-columns: repeat(3, 1fr); /* 一行显示4个 */ |
| 244 | - gap: 1.5rem; /* 每个项目之间的间距 */ | 245 | + // gap: 1.5rem; /* 每个项目之间的间距 */ |
| 245 | - .case-item { | 246 | + display: flex; |
| 246 | - position: relative; | 247 | + flex-wrap: wrap; |
| 247 | - height: 12rem; | 248 | + justify-content: space-between; /* 确保子元素之间的空间被均匀分配 */ |
| 248 | - padding: 1.5rem; | 249 | + // .case-item { |
| 249 | - text-align: center; | 250 | + // position: relative; |
| 250 | - color: #FFF; | 251 | + // height: 12rem; |
| 251 | - border-radius: 8px; | 252 | + // padding: 1.5rem; |
| 252 | - background-image: url('https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'); | 253 | + // text-align: center; |
| 253 | - background-size: cover; | 254 | + // color: #FFF; |
| 254 | - background-position: top center; | 255 | + // border-radius: 8px; |
| 255 | - transition: transform 0.3s ease-in-out; | 256 | + // background-image: url('https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'); |
| 256 | - &:hover { | 257 | + // background-size: cover; |
| 257 | - transform: scale(1.05); | 258 | + // background-position: top center; |
| 258 | - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | 259 | + // transition: transform 0.3s ease-in-out; |
| 259 | - cursor: pointer; | 260 | + // &:hover { |
| 260 | - } | 261 | + // transform: scale(1.05); |
| 261 | - } | 262 | + // box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); |
| 263 | + // cursor: pointer; | ||
| 264 | + // } | ||
| 265 | + // } | ||
| 262 | .card { | 266 | .card { |
| 267 | + // margin: 0.5rem; | ||
| 268 | + flex: 0 0 32.33%; /* 宽度为 1/3 */ | ||
| 269 | + margin-bottom: 1rem; /* 在元素之间添加间距 */ | ||
| 270 | + box-sizing: border-box; /* 防止 padding 或 margin 影响宽度 */ | ||
| 263 | // width: 300px; | 271 | // width: 300px; |
| 264 | border-radius: 10px; | 272 | border-radius: 10px; |
| 265 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | 273 | box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); |
| 266 | overflow: hidden; | 274 | overflow: hidden; |
| 267 | background-color: #fff; | 275 | background-color: #fff; |
| 268 | - margin: 0; | 276 | + // margin: 0; |
| 269 | transition: transform 0.3s ease-in-out; | 277 | transition: transform 0.3s ease-in-out; |
| 270 | &:hover { | 278 | &:hover { |
| 271 | transform: scale(1.05); | 279 | transform: scale(1.05); |
| ... | @@ -332,6 +340,11 @@ export default { | ... | @@ -332,6 +340,11 @@ export default { |
| 332 | // box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | 340 | // box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); |
| 333 | cursor: pointer; | 341 | cursor: pointer; |
| 334 | } | 342 | } |
| 343 | + img { | ||
| 344 | + width: 14rem; | ||
| 345 | + margin-left: calc((100% - 14rem) / 2); | ||
| 346 | + height: auto; | ||
| 347 | + } | ||
| 335 | } | 348 | } |
| 336 | .card-title { | 349 | .card-title { |
| 337 | color: @secondary-color; | 350 | color: @secondary-color; | ... | ... |
| ... | @@ -194,12 +194,10 @@ export default { | ... | @@ -194,12 +194,10 @@ export default { |
| 194 | <style lang="less" scoped> | 194 | <style lang="less" scoped> |
| 195 | .hager-solution-index { | 195 | .hager-solution-index { |
| 196 | .hager-solution-top { | 196 | .hager-solution-top { |
| 197 | - | ||
| 198 | width: 100%; | 197 | width: 100%; |
| 199 | .banner-text-wrapper { | 198 | .banner-text-wrapper { |
| 200 | height: 100%; | 199 | height: 100%; |
| 201 | display: flex; | 200 | display: flex; |
| 202 | - // align-items: center; | ||
| 203 | justify-content: center; | 201 | justify-content: center; |
| 204 | flex-direction: column; | 202 | flex-direction: column; |
| 205 | } | 203 | } | ... | ... |
-
Please register or login to post a comment