Browse Source

【首页project布局修改】 -刘绍文 -2020/05/07

feature/v2.0
bailsw 5 years ago
parent
commit
e4cd8d0494
  1. 10
      epdc-resident-mp-yushan/pages/index/components/project/project.wxml
  2. 31
      epdc-resident-mp-yushan/pages/index/components/project/project.wxss

10
epdc-resident-mp-yushan/pages/index/components/project/project.wxml

@ -42,16 +42,14 @@
<view> <view>
<image class="project-status" src="{{filters.formatState(item.stateName)}}" /> <image class="project-status" src="{{filters.formatState(item.stateName)}}" />
</view> </view>
<view class="progress">
<view class="image-logo">
<image class="progress-logo" src="../../../../images/home/new-progress.png"/>
</view>
<view class="progress-content">最新进展:{{item.latestProgress.progressName}}</view>
</view>
</view> </view>
</view> </view>
<view class="bottom"> <view class="bottom">
<view class="title">{{item.itemContent}}</view> <view class="title">{{item.itemContent}}</view>
<view class="progress">
<view class="progress-content">进度:{{item.latestProgress.progressName}}</view>
</view>
<view class="info"> <view class="info">
<view class="left"> <view class="left">
<image class="avatar" src="{{item.avatar}}" /> <image class="avatar" src="{{item.avatar}}" />

31
epdc-resident-mp-yushan/pages/index/components/project/project.wxss

@ -11,7 +11,7 @@
} }
.project .swiper { .project .swiper {
width: 100%; width: 100%;
height: 380rpx; height: 430rpx;
display: inline-block; display: inline-block;
white-space: nowrap; white-space: nowrap;
overflow-x: scroll; overflow-x: scroll;
@ -21,11 +21,11 @@
box-sizing: border-box; box-sizing: border-box;
padding: 0 30rpx; padding: 0 30rpx;
width:60%; width:60%;
height: 380rpx; height: 430rpx;
} }
.project .content { .project .content {
width: 100%; width: 100%;
height: 380rpx; height: 430rpx;
background: #fff; background: #fff;
overflow: hidden; overflow: hidden;
padding: 0 30rpx; padding: 0 30rpx;
@ -56,42 +56,43 @@
width: 110rpx; width: 110rpx;
height: 42rpx; height: 42rpx;
} }
.project .content .top .top-content .progress { .progress {
height: 36rpx; height: 36rpx;
width: 60%; width: 94%;
margin-left: 20rpx; background: #f7f7f7;
background: rgba(0,0,0, 0.4);
border-radius: 17rpx; border-radius: 17rpx;
margin-bottom: 10rpx; margin-bottom: 10rpx;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.project .content .top .top-content .progress .image-logo { .progress .image-logo {
width: 36rpx; width: 36rpx;
height:36rpx; height:36rpx;
} }
.project .content .top .top-content .progress .progress-logo { .progress .progress-logo {
width: 36rpx; width: 36rpx;
height: 36rpx; height: 36rpx;
position: relative; position: relative;
top: -2rpx; top: -2rpx;
} }
.project .content .top .top-content .progress .progress-content { .progress-content {
color: #fff; color: #b0b0b0;
font-size: 22rpx; font-size: 22rpx;
line-height: 36rpx; line-height: 36rpx;
margin-left: 5rpx; padding: 20rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.project .content .bottom { .project .content .bottom {
width: 100%; width: 100%;
height: 120rpx; height: 120rpx;
box-sizing: border-box; box-sizing: border-box;
padding: 0 20rpx;
} }
.project .content .bottom .title { .project .content .bottom .title {
color: #333; color: #333;
font-size: 30rpx; font-size: 30rpx;
width: 100%; width: 94%;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -123,7 +124,7 @@
.project .content .bottom .info .right { .project .content .bottom .info .right {
color: #aaa; color: #aaa;
font-size: 20rpx; font-size: 20rpx;
padding-right: 15rpx; padding-right: 40rpx;
} }
/* 自定义轮播指示点样式 */ /* 自定义轮播指示点样式 */

Loading…
Cancel
Save