hookehuyr

fix 解决方案-成功案例显示优化

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-12-03 17:46:50 4 + * @LastEditTime: 2024-12-04 12:09:38
5 * @FilePath: /hager/src/views/solution/detail.vue 5 * @FilePath: /hager/src/views/solution/detail.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -60,12 +60,12 @@ ...@@ -60,12 +60,12 @@
60 <div v-if="!is_xs"> 60 <div v-if="!is_xs">
61 <div class="hager-success-cases"> 61 <div class="hager-success-cases">
62 <div @click="goToCase(item)" class="card" v-for="(item, index) in success_data_list" :key="index"> 62 <div @click="goToCase(item)" class="card" v-for="(item, index) in success_data_list" :key="index">
63 - <img :src="item.cover" alt="图片" class="card-image"> 63 + <img :src="item.cover" alt="图片" class="card-image-pc">
64 - <div class="card-content"> 64 + <div class="card-content-pc">
65 <h3>{{ item.post_title }}</h3> 65 <h3>{{ item.post_title }}</h3>
66 <p v-html="item.post_description"></p> 66 <p v-html="item.post_description"></p>
67 - <i class="el-icon-right"></i>
68 </div> 67 </div>
68 + <i class="el-icon-right pc"></i>
69 </div> 69 </div>
70 </div> 70 </div>
71 <!-- <div style="display: flex; justify-content: center; margin-top: 2rem;"> 71 <!-- <div style="display: flex; justify-content: center; margin-top: 2rem;">
...@@ -356,19 +356,40 @@ export default { ...@@ -356,19 +356,40 @@ export default {
356 overflow: hidden; 356 overflow: hidden;
357 background-color: #fff; 357 background-color: #fff;
358 transition: transform 0.3s ease-in-out; 358 transition: transform 0.3s ease-in-out;
359 + position: relative;
359 &:hover { 360 &:hover {
360 transform: scale(1.05); 361 transform: scale(1.05);
361 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 362 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
362 cursor: pointer; 363 cursor: pointer;
363 } 364 }
365 + .card-image-pc {
366 + width: 100%;
367 + height: 15rem;
368 + object-fit: cover;
369 + }
364 .card-image { 370 .card-image {
365 width: 100%; 371 width: 100%;
366 height: auto; 372 height: auto;
367 object-fit: cover; 373 object-fit: cover;
368 } 374 }
369 375
376 + .card-content-pc {
377 + padding: 1rem 1.5rem;
378 + margin-bottom: 2rem;
379 + h3 {
380 + color: @secondary-color;
381 + font-size: 1.25rem;
382 + margin: 0;
383 + margin-bottom: 0.5rem;
384 + }
385 + p {
386 + font-size: 0.95rem;
387 + line-height: 1.8;
388 + }
389 + }
370 .card-content { 390 .card-content {
371 padding: 1rem 1.5rem; 391 padding: 1rem 1.5rem;
392 + margin-bottom: 2rem;
372 h3 { 393 h3 {
373 color: @secondary-color; 394 color: @secondary-color;
374 font-size: 1.25rem; 395 font-size: 1.25rem;
...@@ -380,10 +401,20 @@ export default { ...@@ -380,10 +401,20 @@ export default {
380 line-height: 1.8; 401 line-height: 1.8;
381 } 402 }
382 i { 403 i {
383 - margin-top: 1rem; 404 + margin-top: 0.5rem;
384 - color: @primary-color; 405 + color: @primary-color;
385 - font-size: 1.5rem; 406 + font-size: 1.5rem;
386 - } 407 + }
408 + }
409 + i.pc {
410 + position: absolute;
411 + bottom: 0;
412 + display: inline-flex;
413 + margin-top: 0.5rem;
414 + margin-left: 1.5rem;
415 + margin-bottom: 1rem;
416 + color: @primary-color;
417 + font-size: 1.5rem;
387 } 418 }
388 419
389 .card p { 420 .card p {
......