调整首页样式

This commit is contained in:
2020-11-24 11:20:28 +08:00
parent 8e65d86e93
commit 1156475b5b
7 changed files with 33 additions and 13 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@@ -1,9 +1,23 @@
.header{
padding-top:.5rem;
height:5rem;
text-align: center;
color:#fafafa;
background-image: url(../../lib/icon/headerbg.png);
background-size:contain;
background-repeat: no-repeat;
}
.header-text{
padding-top: .3rem;
font-weight: bold;
}
/* banner */
.banner{
padding-top: 50%;
width: 100%;
background: #ddd;
margin-top: .3rem;
padding-top:50%;
width: 94%;
margin-left: 3%;
background:transparent;
position: relative;
}
@@ -18,6 +32,7 @@
.banner-swiper-img{
width: 100%;
height: 100%;
border-radius:3%;
}
/* 工作台 */
@@ -37,8 +52,8 @@
.grid-icon{
background: #fafafa;
width: 68rpx;
height: 68rpx;
width: 120rpx;
height: 120rpx;
vertical-align: top;
margin-bottom: 15rpx;
}

View File

@@ -1,11 +1,16 @@
<!-- banner -->
<view class="banner">
<view class="header">
<view class="header-text">工作台</view>
<view class="banner">
<swiper class="banner-swiper" indicator-dots circular autoplay indicator-color="rgba(0,0,0,.1)" indicator-active-color="#ff6600">
<swiper-item a:for="{{adverts}}" a:key="banner">
<image class="banner-swiper-img" mode="aspectFill" src="{{item.cover}}"/>
</swiper-item>
</swiper>
</view>
</view>
<!-- banner -->
<!-- 通知公告 -->
<notice