This commit is contained in:
yanran200730
2022-11-02 17:23:17 +08:00
parent 5061c0d950
commit 33b9400e4a
5 changed files with 164 additions and 66 deletions

View File

@@ -1,13 +1,12 @@
<template>
<div class="home">
<image class="banner" src="https://jisheng-xiaochengxu.oss-cn-hangzhou.aliyuncs.com/admin/5bad9165-fa6e-4c81-894d-2beae426260b.png" />
<image class="banner" src="https://cdn.cunwuyun.cn/wxmp/tianfuxing/banner.png" />
<div class="nav">
<div class="nav-item" hover-class="text-hover" @click="$linkTo('./PhotoReport')">
<span>随手拍</span>
<image mode="aspectFill" src="https://cdn.cunwuyun.cn/wxmp/tianfuxing/ssp.png" />
</div>
<div class="nav-item" @click="$linkTo('./Culture')">
<span>文明倡导</span>
<image src="https://jisheng-xiaochengxu.oss-cn-hangzhou.aliyuncs.com/admin/5bad9165-fa6e-4c81-894d-2beae426260b.png" />
<div class="nav-item" hover-class="text-hover" @click="$linkTo('./Culture')">
<image mode="aspectFill" src="https://cdn.cunwuyun.cn/wxmp/tianfuxing/wmcd.png" />
</div>
</div>
<div class="activity-wrapper">
@@ -118,6 +117,7 @@
width: 686px;
height: 240px;
margin: 0 auto 32rpx;
border-radius: 10px;
}
.nav {
@@ -127,36 +127,13 @@
margin: 0 32rpx 58rpx;
.nav-item {
position: relative;
width: 328px;
height: 128px;
line-height: 128px;
text-align: center;
font-size: 30rpx;
overflow: hidden;
background: rgba($color: #fff, $alpha: 0.8);
border-radius: 16px;
span {
position: relative;
z-index: 1;
color: #333;
font-weight: 600;
}
&:last-child {
span {
color: #fff;
font-weight: 600;
}
}
height: 122px;
image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 10px;
}
}
}