Showing
3 changed files
with
23 additions
and
16 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2024-08-26 10:42:15 | 2 | * @Date: 2024-08-26 10:42:15 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-11-04 16:51:13 | 4 | + * @LastEditTime: 2024-11-29 14:06:03 |
| 5 | * @FilePath: /hager/src/route.js | 5 | * @FilePath: /hager/src/route.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -37,7 +37,7 @@ export default [{ | ... | @@ -37,7 +37,7 @@ export default [{ |
| 37 | name: '解决方案', | 37 | name: '解决方案', |
| 38 | component: () => import('@/views/solution/index'), | 38 | component: () => import('@/views/solution/index'), |
| 39 | meta: { | 39 | meta: { |
| 40 | - title: '海格电气', | 40 | + title: '解决方案 | Hager China', |
| 41 | tag: 'solution' | 41 | tag: 'solution' |
| 42 | }, | 42 | }, |
| 43 | children: [] | 43 | children: [] |
| ... | @@ -46,7 +46,7 @@ export default [{ | ... | @@ -46,7 +46,7 @@ export default [{ |
| 46 | name: '解决方案详情', | 46 | name: '解决方案详情', |
| 47 | component: () => import('@/views/solution/detail'), | 47 | component: () => import('@/views/solution/detail'), |
| 48 | meta: { | 48 | meta: { |
| 49 | - title: '海格电气', | 49 | + title: '解决方案 | Hager China', |
| 50 | tag: 'solution' | 50 | tag: 'solution' |
| 51 | }, | 51 | }, |
| 52 | children: [] | 52 | children: [] |
| ... | @@ -55,7 +55,7 @@ export default [{ | ... | @@ -55,7 +55,7 @@ export default [{ |
| 55 | name: '成功案例', | 55 | name: '成功案例', |
| 56 | component: () => import('@/views/solution/case'), | 56 | component: () => import('@/views/solution/case'), |
| 57 | meta: { | 57 | meta: { |
| 58 | - title: '海格电气', | 58 | + title: '解决方案 | Hager China', |
| 59 | tag: 'solution' | 59 | tag: 'solution' |
| 60 | }, | 60 | }, |
| 61 | children: [] | 61 | children: [] | ... | ... |
| 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-11-29 11:26:32 | 4 | + * @LastEditTime: 2024-12-02 09:56:26 |
| 5 | * @FilePath: /hager/src/views/solution/detail.vue | 5 | * @FilePath: /hager/src/views/solution/detail.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -20,13 +20,13 @@ | ... | @@ -20,13 +20,13 @@ |
| 20 | <el-col :span="12" style="height: 25rem;"> | 20 | <el-col :span="12" style="height: 25rem;"> |
| 21 | <el-carousel height="25rem" :interval="8000" style="border-radius: 5px;"> | 21 | <el-carousel height="25rem" :interval="8000" style="border-radius: 5px;"> |
| 22 | <el-carousel-item v-for="(item, index) in case_img" :key="index" class="carousel-img"> | 22 | <el-carousel-item v-for="(item, index) in case_img" :key="index" class="carousel-img"> |
| 23 | - <el-image @click="onClickImg(item)" style="width: 100%; height: 100%;" fit="fill" :src="item"></el-image> | 23 | + <el-image @click="onClickImg(item.value)" style="width: 100%; height: 100%;" fit="cover" :src="item.value"></el-image> |
| 24 | </el-carousel-item> | 24 | </el-carousel-item> |
| 25 | </el-carousel> | 25 | </el-carousel> |
| 26 | </el-col> | 26 | </el-col> |
| 27 | <el-col :span="12" class="brief-introduction"> | 27 | <el-col :span="12" class="brief-introduction"> |
| 28 | <div class="intro-box"> | 28 | <div class="intro-box"> |
| 29 | - <p style="margin: 2rem 0;" v-html="case_info.category_description"></p> | 29 | + <p v-html="case_info.category_description"></p> |
| 30 | <!-- <i class="el-icon-right"></i> --> | 30 | <!-- <i class="el-icon-right"></i> --> |
| 31 | </div> | 31 | </div> |
| 32 | </el-col> | 32 | </el-col> |
| ... | @@ -36,7 +36,7 @@ | ... | @@ -36,7 +36,7 @@ |
| 36 | <div style="height: 25rem; margin-top: 2rem;"> | 36 | <div style="height: 25rem; margin-top: 2rem;"> |
| 37 | <el-carousel height="25rem" :interval="8000" style="border-radius: 5px;"> | 37 | <el-carousel height="25rem" :interval="8000" style="border-radius: 5px;"> |
| 38 | <el-carousel-item v-for="(item, index) in case_img" :key="index" class="carousel-img"> | 38 | <el-carousel-item v-for="(item, index) in case_img" :key="index" class="carousel-img"> |
| 39 | - <el-image @click="onClickImg(item)" style="width: 100%; height: 100%;" fit="fill" :src="item"></el-image> | 39 | + <el-image @click="onClickImg(item.value)" style="width: 100%; height: 100%;" fit="cover" :src="item.value"></el-image> |
| 40 | </el-carousel-item> | 40 | </el-carousel-item> |
| 41 | </el-carousel> | 41 | </el-carousel> |
| 42 | </div> | 42 | </div> |
| ... | @@ -297,12 +297,19 @@ export default { | ... | @@ -297,12 +297,19 @@ export default { |
| 297 | .brief-introduction { | 297 | .brief-introduction { |
| 298 | background-color: #FFF; | 298 | background-color: #FFF; |
| 299 | height: 25rem; | 299 | height: 25rem; |
| 300 | + display: flex; | ||
| 301 | + align-items: center; | ||
| 300 | &.xs { | 302 | &.xs { |
| 301 | height: auto; | 303 | height: auto; |
| 302 | } | 304 | } |
| 303 | .intro-box { | 305 | .intro-box { |
| 304 | - padding: 3rem; | 306 | + padding: 0 3rem; |
| 305 | - padding-top: 0; | 307 | + overflow: auto; |
| 308 | + height: 25rem; | ||
| 309 | + box-sizing:border-box; | ||
| 310 | + display: flex; | ||
| 311 | + // align-items: center; | ||
| 312 | + margin-top: 2rem; | ||
| 306 | &.xs { | 313 | &.xs { |
| 307 | padding: 2rem; | 314 | padding: 2rem; |
| 308 | } | 315 | } | ... | ... |
| ... | @@ -115,8 +115,8 @@ export default { | ... | @@ -115,8 +115,8 @@ export default { |
| 115 | }, | 115 | }, |
| 116 | activeIndex: 0, | 116 | activeIndex: 0, |
| 117 | reach_end: false, | 117 | reach_end: false, |
| 118 | - solution_box_height: '10rem', | 118 | + solution_box_height: '25rem', |
| 119 | - solution_mini_height: '10rem', | 119 | + solution_mini_height: '25rem', |
| 120 | } | 120 | } |
| 121 | }, | 121 | }, |
| 122 | async mounted () { | 122 | async mounted () { |
| ... | @@ -126,8 +126,8 @@ export default { | ... | @@ -126,8 +126,8 @@ export default { |
| 126 | } | 126 | } |
| 127 | this.$nextTick(() => { | 127 | this.$nextTick(() => { |
| 128 | // 高度监听 | 128 | // 高度监听 |
| 129 | - this.solution_box_height = $('.hager-solution-top').outerWidth() * 0.3 + 'px'; | 129 | + // this.solution_box_height = $('.hager-solution-top').outerWidth() * 0.255 + 'px'; |
| 130 | - this.solution_mini_height = $(window).outerWidth() * 0.55 + 'px'; | 130 | + // this.solution_mini_height = $(window).outerWidth() * 0.55 + 'px'; |
| 131 | // 动态计算图片高度 | 131 | // 动态计算图片高度 |
| 132 | let img_width = $('.card-image').outerWidth(); | 132 | let img_width = $('.card-image').outerWidth(); |
| 133 | $('.card-image').css('height', img_width * 0.7 + 'px'); | 133 | $('.card-image').css('height', img_width * 0.7 + 'px'); |
| ... | @@ -141,8 +141,8 @@ export default { | ... | @@ -141,8 +141,8 @@ export default { |
| 141 | methods: { | 141 | methods: { |
| 142 | handleHeightResize () { | 142 | handleHeightResize () { |
| 143 | // 高度监听 | 143 | // 高度监听 |
| 144 | - this.solution_box_height = $('.hager-solution-top').outerWidth() * 0.3 + 'px'; | 144 | + // this.solution_box_height = $('.hager-solution-top').outerWidth() * 0.255 + 'px'; |
| 145 | - this.solution_mini_height = $('.hager-solution-top').outerWidth() * 0.6 + 'px'; | 145 | + // this.solution_mini_height = $('.hager-solution-top').outerWidth() * 0.6 + 'px'; |
| 146 | // 动态计算图片高度 | 146 | // 动态计算图片高度 |
| 147 | let img_width = $('.card-image').outerWidth(); | 147 | let img_width = $('.card-image').outerWidth(); |
| 148 | $('.card-image').css('height', img_width * 0.7 + 'px'); | 148 | $('.card-image').css('height', img_width * 0.7 + 'px'); | ... | ... |
-
Please register or login to post a comment