9 changed files with 162 additions and 12 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 615 B |
@ -1,4 +1,49 @@ |
|||||||
<!--index.wxml--> |
<!--index.wxml--> |
||||||
|
<wxs module="filter"> |
||||||
|
var setTag = function(state) { |
||||||
|
var obj = {} |
||||||
|
if(state===1){ |
||||||
|
obj = { |
||||||
|
sname:'ycj', |
||||||
|
text:'已成交' |
||||||
|
} |
||||||
|
}else if(state===2){ |
||||||
|
obj = { |
||||||
|
sname:'wcj', |
||||||
|
text:'未成交' |
||||||
|
} |
||||||
|
}else{ |
||||||
|
obj = { |
||||||
|
sname:'gsz', |
||||||
|
text:'公示中' |
||||||
|
} |
||||||
|
} |
||||||
|
return obj |
||||||
|
}; |
||||||
|
module.exports = {setTag:setTag}; |
||||||
|
</wxs> |
||||||
<view class="pages"> |
<view class="pages"> |
||||||
|
<mp-navigation-bar ext-class="set-bar" title="AIR" back="{{false}}"></mp-navigation-bar> |
||||||
|
<view class="tab"> |
||||||
|
<view class="tab-item {{item.id===active?'active':''}}" wx:for="{{tabList}}" wx:for-index="i" wx:for-item="item" wx:key="id" bindtap="tabDowm" data-id="{{item.id}}"> |
||||||
|
<text class="tab-title">{{item.name}}</text> |
||||||
|
<image class="tab-tag" src="../../assets/images/tab-tag.png"></image> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="main"> |
||||||
|
<scroll-view class="list" scroll-y="true" enable-flex="true" refresher-enabled> |
||||||
|
<view class="list-item" wx:for="{{list}}" wx:for-index="i" wx:for-item="item"> |
||||||
|
<view class="list-info"> |
||||||
|
<view class="list-title"> |
||||||
|
{{item.title}} |
||||||
|
</view> |
||||||
|
<view class="list-tag center {{filter.setTag(item.state).sname}}"> |
||||||
|
{{filter.setTag(item.state).text}} |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="list-timer">挂牌日期:{{item.timer}}</view> |
||||||
|
</view> |
||||||
|
<view class="bottom"></view> |
||||||
|
</scroll-view> |
||||||
</view> |
</view> |
||||||
|
</view> |
@ -1,19 +1,102 @@ |
|||||||
/**index.wxss**/ |
/**index.wxss**/ |
||||||
.userinfo { |
.main{ |
||||||
|
padding-bottom: 0; |
||||||
|
} |
||||||
|
|
||||||
|
.tab{ |
||||||
|
display: flex; |
||||||
|
justify-content: space-between; |
||||||
|
padding: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.tab-item{ |
||||||
display: flex; |
display: flex; |
||||||
flex-direction: column; |
flex-direction: column; |
||||||
align-items: center; |
align-items: center; |
||||||
color: #aaa; |
|
||||||
} |
} |
||||||
|
|
||||||
.userinfo-avatar { |
.tab-title{ |
||||||
overflow: hidden; |
font-size: 30rpx; |
||||||
width: 128rpx; |
font-weight: bold; |
||||||
height: 128rpx; |
color: #565A6B; |
||||||
margin: 20rpx; |
} |
||||||
border-radius: 50%; |
|
||||||
|
.tab-tag{ |
||||||
|
width: 44rpx; |
||||||
|
height: 10rpx; |
||||||
|
display: none; |
||||||
|
} |
||||||
|
|
||||||
|
.active .tab-title{ |
||||||
|
font-size: 34rpx; |
||||||
|
font-weight: bold; |
||||||
|
color: #262936; |
||||||
|
} |
||||||
|
|
||||||
|
.active .tab-tag{ |
||||||
|
display: block; |
||||||
|
} |
||||||
|
|
||||||
|
.list{ |
||||||
|
height: 100%; |
||||||
|
display: flex; |
||||||
|
flex-direction: column; |
||||||
|
align-items: center ; |
||||||
|
} |
||||||
|
|
||||||
|
.list-item{ |
||||||
|
width: 688rpx; |
||||||
|
height: 208rpx; |
||||||
|
background: #FFFFFF; |
||||||
|
box-shadow: 0 2rpx 23rpx 0 rgba(191, 191, 191, 0.15); |
||||||
|
border-radius: 18rpx; |
||||||
|
margin-bottom: 24rpx; |
||||||
|
padding: 30rpx; |
||||||
|
box-sizing: border-box; |
||||||
|
} |
||||||
|
|
||||||
|
.list-info{ |
||||||
|
display: flex; |
||||||
|
justify-content: space-between; |
||||||
|
} |
||||||
|
|
||||||
|
.list-title{ |
||||||
|
max-width: 488rpx; |
||||||
|
font-size: 33rpx; |
||||||
|
color: #262936; |
||||||
|
line-height: 47rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.list-tag{ |
||||||
|
width: 89rpx; |
||||||
|
height: 34rpx; |
||||||
|
line-height: 34rpx; |
||||||
|
border-radius: 4rpx; |
||||||
|
font-size: 22rpx; |
||||||
|
font-weight: bold; |
||||||
|
color: #FFFFFF; |
||||||
|
margin-top: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ycj{ |
||||||
|
background-color: #FF652F; |
||||||
|
} |
||||||
|
|
||||||
|
.wcj{ |
||||||
|
background-color: #666A7A; |
||||||
|
} |
||||||
|
|
||||||
|
.gsz{ |
||||||
|
background-color: #02D775; |
||||||
|
} |
||||||
|
|
||||||
|
.list-timer{ |
||||||
|
margin-top: 10rpx; |
||||||
|
font-size: 26rpx; |
||||||
|
color: #838B99; |
||||||
} |
} |
||||||
|
|
||||||
.usermotto { |
.bottom{ |
||||||
margin-top: 200px; |
width: 688rpx; |
||||||
|
height: 208rpx; |
||||||
} |
} |
Loading…
Reference in new issue