Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-10-21 12:31:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cac79a484671f7518fafeb3b398f523fe098fdb3
cac79a48
1 parent
7ae1e669
fix 首页自适应调整
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
src/views/index.vue
src/views/index.vue
View file @
cac79a4
<!--
* @Date: 2024-08-27 10:06:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-10-21 1
1:30:52
* @LastEditTime: 2024-10-21 1
2:23:10
* @FilePath: /hager/src/views/index.vue
* @Description: 首页
-->
<template>
<div class="hager-container">
<el-carousel :height="top_img_height" :interval="
800
0">
<el-carousel :height="top_img_height" :interval="0">
<el-carousel-item v-for="(item, index) in banner_list" :key="index">
<el-image style="
width: 100%;
height: 100%;" fit="fill" :src="item.src"></el-image>
<el-image style="height: 100%;" fit="fill" :src="item.src"></el-image>
</el-carousel-item>
</el-carousel>
<hager-box class="box-n">
...
...
@@ -110,7 +110,7 @@
<!-- <div v-if="product_list.length <= productSlidesPerView" class="more-box" style="margin-top: 2rem;">
<hager-more></hager-more>
</div> -->
<div v-if="product_list.length > productSlidesPerView" class="hager-product-center-more xs">
<div v-if="product_list.length > productSlidesPerView
|| is_xs
" class="hager-product-center-more xs">
<!-- <hager-more></hager-more> -->
<div class="xs-control">
<div>
...
...
@@ -643,6 +643,7 @@ export default {
&.xs {
justify-content: flex-end;
padding-left: 20%;
margin-top: 0;
}
}
}
...
...
Please
register
or
login
to post a comment