Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
G
german_mihuanggame
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
xiaotuoluo
german_mihuanggame
Commits
516f1c57
提交
516f1c57
authored
9月 20, 2025
作者:
xiaotuoluo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1
上级
92e5a467
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
113 行增加
和
11 行删除
+113
-11
home.vue
src/pages/home/home.vue
+113
-11
没有找到文件。
src/pages/home/home.vue
浏览文件 @
516f1c57
<
template
>
<
template
>
<div
class=
"home-container"
>
<div
class=
"home-container"
>
<!-- 顶部导航 -->
<!-- 顶部导航 -->
<div
style=
"background-color: #000; height: 50px;"
>
<div
class=
"van-nav-bar__content"
style=
"background-color: #000; height: 50px;"
>
<div
class=
"van-nav-bar__title"
>
<div
class=
"van-nav-bar__title van-ellipsis"
>
<div
style=
"height: 40px; margin: 10px 0 0;"
>
<div
class=
"menu-item-icon van-image"
style=
"height: 40px; margin: 10px 0 0;"
>
<img
src=
"https://admin.xianyuxx.motorcycles/upload/80dc096a3a8977cd/0cf63ef072b934bc.png"
/>
<img
src=
"https://admin.xianyuxx.motorcycles/upload/80dc096a3a8977cd/0cf63ef072b934bc.png"
class=
"van-image__img"
/>
</div>
</div>
</div>
</div>
<div>
<div
class=
"van-nav-bar__right"
>
<i
class=
"van-icon"
style=
"color:#fff; font-size:24px;"
></i>
<i
class=
"van-icon
van-icon-chat-o
"
style=
"color:#fff; font-size:24px;"
></i>
</div>
</div>
</div>
</div>
...
@@ -28,11 +29,32 @@
...
@@ -28,11 +29,32 @@
<div
class=
"linear-gradient"
></div>
<div
class=
"linear-gradient"
></div>
</div>
</div>
<div>
666
</div>
<div
class=
"middelTit"
>
<span
class=
"middelTit-left"
>
High-end Zone
</span>
<div
class=
"middelTit-right"
>
Enjoy the ultimate luxury experience
</div>
</div>
<div
class=
"middleImg"
>
<div
v-for=
"value in gridItems"
class=
"grid-item"
:key=
"value.src"
>
<img
style=
"width: 200px; height: 200px;border-radius: 10px;"
:src=
"value.src"
alt=
""
>
<div
class=
"gridItemTag"
>
<span
class=
"textTag"
>
Yes
</span>
</div>
</div>
</div>
<div
style=
"font-size: 26px;"
>
Recommended connections
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
img1
from
'@/assets/user/1.jpg'
import
img2
from
'@/assets/user/2.jpg'
import
img3
from
'@/assets/user/3.jpg'
import
img4
from
'@/assets/user/4.jpg'
import
img5
from
'@/assets/user/5.jpg'
import
img6
from
'@/assets/user/6.jpg'
import
img7
from
'@/assets/user/7.jpg'
import
img8
from
'@/assets/user/8.jpg'
import
img9
from
'@/assets/user/9.jpg'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -46,6 +68,26 @@ export default {
...
@@ -46,6 +68,26 @@ export default {
],
],
currentIndex
:
0
,
currentIndex
:
0
,
currentNotice
:
""
,
currentNotice
:
""
,
gridItems
:
[
{
src
:
img1
},
{
src
:
img2
},
{
src
:
img3
},
{
src
:
img4
},
{
src
:
img5
},
{
src
:
img6
},
{
src
:
img7
},
{
src
:
img8
},
{
src
:
img9
},
{
src
:
img1
},
{
src
:
img2
},
{
src
:
img3
},
{
src
:
img4
},
{
src
:
img5
},
{
src
:
img6
},
{
src
:
img7
},
{
src
:
img8
},
{
src
:
img9
},
]
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -58,9 +100,7 @@ export default {
...
@@ -58,9 +100,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"less"
scoped
>
.home-container
{
.home-container
{
position
:
relative
;
position
:
relative
;
min-height
:
100vh
;
min-height
:
100vh
;
...
@@ -76,7 +116,7 @@ export default {
...
@@ -76,7 +116,7 @@ export default {
.notice-bar
{
.notice-bar
{
position
:
relative
;
position
:
relative
;
padding
:
30px
;
padding
:
30px
;
background:
#f3f3f5;
background
:
"#fff"
}
}
.notice-swipe
{
.notice-swipe
{
...
@@ -120,4 +160,65 @@ export default {
...
@@ -120,4 +160,65 @@ export default {
.banner
{
.banner
{
margin-top
:
0px
;
margin-top
:
0px
;
}
}
.middleImg
{
display
:
grid
;
grid-auto-flow
:
column
;
grid-template-rows
:
repeat
(
2
,
200px
);
grid-auto-columns
:
200px
;
gap
:
20px
;
overflow-x
:
auto
;
padding
:
10px
;
}
.grid-item
{
background-color
:
#4ade80
;
position
:
relative
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
color
:
white
;
border-radius
:
6px
;
overflow
:
hidden
;
box-shadow
:
0
4px
8px
rgba
(
0
,
0
,
0
,
0
.2
);
/* X偏移 Y偏移 模糊 半透明黑色 */
.gridItemTag
{
position
:
absolute
;
top
:
-30px
;
right
:
-70px
;
/* 根据旋转角度调整位置 */
background-color
:
#000
;
/* 黑底 */
color
:
#fff
;
/* 白字 */
width
:
200px
;
height
:
100px
;
// font-size: 18px;
font-weight
:
bold
;
align-items
:
center
;
transform
:
rotate
(
45deg
);
/* 旋转 45° */
.textTag
{
position
:
absolute
;
bottom
:
5px
;
left
:
80px
;
font-size
:
30px
;
}
}
}
.middelTit
{
display
:
flex
;
flex-direction
:
row
;
padding
:
10px
;
align-items
:
center
;
font-weight
:
500
;
&
-left
{
font-size
:
26px
;
}
&
-right
{
border-top-left-radius
:
20px
;
border-bottom-right-radius
:
20px
;
background-color
:
#000
;
color
:
#fff
;
font-size
:
20px
;
padding
:
5px
;
margin-left
:
10px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论