Showing
1 changed file
with
5 additions
and
4 deletions
| 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-21 11:30:52 | 4 | + * @LastEditTime: 2024-10-21 12:23:10 |
| 5 | * @FilePath: /hager/src/views/index.vue | 5 | * @FilePath: /hager/src/views/index.vue |
| 6 | * @Description: 首页 | 6 | * @Description: 首页 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | <div class="hager-container"> | 9 | <div class="hager-container"> |
| 10 | - <el-carousel :height="top_img_height" :interval="8000"> | 10 | + <el-carousel :height="top_img_height" :interval="0"> |
| 11 | <el-carousel-item v-for="(item, index) in banner_list" :key="index"> | 11 | <el-carousel-item v-for="(item, index) in banner_list" :key="index"> |
| 12 | - <el-image style="width: 100%; height: 100%;" fit="fill" :src="item.src"></el-image> | 12 | + <el-image style="height: 100%;" fit="fill" :src="item.src"></el-image> |
| 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"> |
| ... | @@ -110,7 +110,7 @@ | ... | @@ -110,7 +110,7 @@ |
| 110 | <!-- <div v-if="product_list.length <= productSlidesPerView" class="more-box" style="margin-top: 2rem;"> | 110 | <!-- <div v-if="product_list.length <= productSlidesPerView" class="more-box" style="margin-top: 2rem;"> |
| 111 | <hager-more></hager-more> | 111 | <hager-more></hager-more> |
| 112 | </div> --> | 112 | </div> --> |
| 113 | - <div v-if="product_list.length > productSlidesPerView" class="hager-product-center-more xs"> | 113 | + <div v-if="product_list.length > productSlidesPerView || is_xs" class="hager-product-center-more xs"> |
| 114 | <!-- <hager-more></hager-more> --> | 114 | <!-- <hager-more></hager-more> --> |
| 115 | <div class="xs-control"> | 115 | <div class="xs-control"> |
| 116 | <div> | 116 | <div> |
| ... | @@ -643,6 +643,7 @@ export default { | ... | @@ -643,6 +643,7 @@ export default { |
| 643 | &.xs { | 643 | &.xs { |
| 644 | justify-content: flex-end; | 644 | justify-content: flex-end; |
| 645 | padding-left: 20%; | 645 | padding-left: 20%; |
| 646 | + margin-top: 0; | ||
| 646 | } | 647 | } |
| 647 | } | 648 | } |
| 648 | } | 649 | } | ... | ... |
-
Please register or login to post a comment