Commit c353356a authored by 李俊赕's avatar 李俊赕

过程反馈静态页面-0.0.5

parent aa643772
...@@ -9,11 +9,14 @@ ...@@ -9,11 +9,14 @@
<view class="txt">选择日期</view> <view class="txt">选择日期</view>
<view class="txt active">2021.04.21</view> <view class="txt active">2021.04.21</view>
</view> </view>
<view class="u-p-t-30 u-flex u-row-between date-list"> <view class="u-m-t-30 u-flex u-row-between date-list">
<view :class="{'date-item':true,'active':index===currentDay}" <view :class="{'date-item':true,'active':index===currentDay}"
@click="dateChange(item,index,dateList)" v-for="(item,index) in dateList" :key="index"> @click="dateChange(item,index,dateList)" v-for="(item,index) in dateList" :key="index">
<text class="day week">{{item.weekDay}}</text> <text class="day">{{item.weekDay}}</text>
<text class="day">{{item.day}}</text> <text class="day day1">{{item.day}}</text>
</view>
<view class="next" @click="weekChange">
<u-icon name="arrow-right" color="#2979ff" size="28"></u-icon>
</view> </view>
</view> </view>
</view> </view>
...@@ -134,35 +137,46 @@ ...@@ -134,35 +137,46 @@
} }
.date-list { .date-list {
background-color: #F4F5F7;
.next{
width: 60rpx;
height: 120rpx;
line-height: 120rpx;
text-align: center;
border-left: 2rpx solid #fff;
}
.date-item { .date-item {
padding: 14rpx; padding: 20rpx 20rpx 16rpx;
border-radius: 12rpx; border-radius: 12rpx;
background-color: #F4F5F7;
.day { .day {
display: block; display: block;
font-size: 36rpx; font-size: 24rpx;
line-height: 36rpx; line-height: 26rpx;
color: #333; color: #999;
&.week { &.day1 {
margin-bottom: 10rpx; width: 48rpx;
font-size: 24rpx; height: 48rpx;
line-height: 26rpx; margin-top: 10rpx;
color: #999; border-radius: 50%;
} font-size: 28rpx;
text-align: center;
line-height: 48rpx;
&.time {
padding: 6rpx 10rpx;
font-size: 26rpx;
} }
} }
&.active { &.active {
background-color: #2272FF; // background-color: #2272FF;
.day { .day {
color: #fff !important; color: #2272FF;
&.day1 {
background-color: #2272FF;
color: #fff !important;
}
} }
} }
} }
...@@ -182,7 +196,12 @@ ...@@ -182,7 +196,12 @@
&:nth-child(3n) { &:nth-child(3n) {
margin-right: 0; margin-right: 0;
} }
&.active{
background-color: #2272FF;
.time{
color:#fff;
}
}
.time { .time {
font-size: 26rpx; font-size: 26rpx;
line-height: 26rpx; line-height: 26rpx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment