作者 wumengyu

搜索页加性别

... ... @@ -12,7 +12,7 @@
<!--<text class="iconfont icon-vip" wx:if="{{user.type === 2}}"></text>-->
<!--<image src="{{user.sex === 1?'../../images/man.png':'../../images/women.png'}}" class="sex-icon"></image>-->
<block wx:if="{{user.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{user.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
<image src="{{user.sex === 1?'../../images/man.png':'../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{user.userType ===2}}">
... ...
... ... @@ -48,6 +48,13 @@
<view class="name-box">
<!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
<image src="{{item.userPic}}" class="avatar"></image>
<block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{item.sex === 1?'../../images/man.png':'../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{item.userType ===2}}">
<text class="iconfont icon-vip sex-icon"></text>
</block>
<text>{{item.userName}}</text>
</view>
</view>
... ...
... ... @@ -62,6 +62,7 @@ page {
align-items: center;
color: #666666;
font-size: 22rpx;
position: relative;
}
.lish-right .name-box .avatar{
border-radius:50%;
... ... @@ -69,6 +70,17 @@ page {
height: 40rpx;
margin-right: 16rpx;
}
.lish-right .name-box .sex-icon {
position: absolute;
top:-6rpx;
left:28rpx;
width: 20rpx;
height: 20rpx;
}
.lish-right .name-box .icon-vip{
color:#E1C8AF;
font-size:21rpx;
}
.input {
width: 100%;
display: flex;
... ...
... ... @@ -108,7 +108,7 @@
<!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
<image src="{{item.userPic}}" class="avatar"></image>
<block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{item.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
<image src="{{item.sex === 1?'../../images/man.png':'../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{item.userType ===2}}">
... ... @@ -135,7 +135,7 @@
<!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
<image src="{{item.userPic}}" class="avatar"></image>
<block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
<image src="{{item.sex === 1?'../../../images/man.png':'../../../images/women.png'}}"
<image src="{{item.sex === 1?'../../images/man.png':'../../images/women.png'}}"
class="sex-icon"></image>
</block>
<block wx:if="{{item.userType ===2}}">
... ...