作者 wumengyu

搜索页加性别

@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 <!--<text class="iconfont icon-vip" wx:if="{{user.type === 2}}"></text>--> 12 <!--<text class="iconfont icon-vip" wx:if="{{user.type === 2}}"></text>-->
13 <!--<image src="{{user.sex === 1?'../../images/man.png':'../../images/women.png'}}" class="sex-icon"></image>--> 13 <!--<image src="{{user.sex === 1?'../../images/man.png':'../../images/women.png'}}" class="sex-icon"></image>-->
14 <block wx:if="{{user.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)--> 14 <block wx:if="{{user.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
15 - <image src="{{user.sex === 1?'../../../images/man.png':'../../../images/women.png'}}" 15 + <image src="{{user.sex === 1?'../../images/man.png':'../../images/women.png'}}"
16 class="sex-icon"></image> 16 class="sex-icon"></image>
17 </block> 17 </block>
18 <block wx:if="{{user.userType ===2}}"> 18 <block wx:if="{{user.userType ===2}}">
@@ -48,6 +48,13 @@ @@ -48,6 +48,13 @@
48 <view class="name-box"> 48 <view class="name-box">
49 <!--<image src="../../images/avatar@2x.png" class="avatar"></image>--> 49 <!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
50 <image src="{{item.userPic}}" class="avatar"></image> 50 <image src="{{item.userPic}}" class="avatar"></image>
  51 + <block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
  52 + <image src="{{item.sex === 1?'../../images/man.png':'../../images/women.png'}}"
  53 + class="sex-icon"></image>
  54 + </block>
  55 + <block wx:if="{{item.userType ===2}}">
  56 + <text class="iconfont icon-vip sex-icon"></text>
  57 + </block>
51 <text>{{item.userName}}</text> 58 <text>{{item.userName}}</text>
52 </view> 59 </view>
53 </view> 60 </view>
@@ -62,6 +62,7 @@ page { @@ -62,6 +62,7 @@ page {
62 align-items: center; 62 align-items: center;
63 color: #666666; 63 color: #666666;
64 font-size: 22rpx; 64 font-size: 22rpx;
  65 + position: relative;
65 } 66 }
66 .lish-right .name-box .avatar{ 67 .lish-right .name-box .avatar{
67 border-radius:50%; 68 border-radius:50%;
@@ -69,6 +70,17 @@ page { @@ -69,6 +70,17 @@ page {
69 height: 40rpx; 70 height: 40rpx;
70 margin-right: 16rpx; 71 margin-right: 16rpx;
71 } 72 }
  73 +.lish-right .name-box .sex-icon {
  74 + position: absolute;
  75 + top:-6rpx;
  76 + left:28rpx;
  77 + width: 20rpx;
  78 + height: 20rpx;
  79 +}
  80 +.lish-right .name-box .icon-vip{
  81 + color:#E1C8AF;
  82 + font-size:21rpx;
  83 +}
72 .input { 84 .input {
73 width: 100%; 85 width: 100%;
74 display: flex; 86 display: flex;
@@ -108,7 +108,7 @@ @@ -108,7 +108,7 @@
108 <!--<image src="../../images/avatar@2x.png" class="avatar"></image>--> 108 <!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
109 <image src="{{item.userPic}}" class="avatar"></image> 109 <image src="{{item.userPic}}" class="avatar"></image>
110 <block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)--> 110 <block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
111 - <image src="{{item.sex === 1?'../../../images/man.png':'../../../images/women.png'}}" 111 + <image src="{{item.sex === 1?'../../images/man.png':'../../images/women.png'}}"
112 class="sex-icon"></image> 112 class="sex-icon"></image>
113 </block> 113 </block>
114 <block wx:if="{{item.userType ===2}}"> 114 <block wx:if="{{item.userType ===2}}">
@@ -135,7 +135,7 @@ @@ -135,7 +135,7 @@
135 <!--<image src="../../images/avatar@2x.png" class="avatar"></image>--> 135 <!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
136 <image src="{{item.userPic}}" class="avatar"></image> 136 <image src="{{item.userPic}}" class="avatar"></image>
137 <block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)--> 137 <block wx:if="{{item.userType ===1}}"><!--userType 1注册用户,2后台用户(金v)-->
138 - <image src="{{item.sex === 1?'../../../images/man.png':'../../../images/women.png'}}" 138 + <image src="{{item.sex === 1?'../../images/man.png':'../../images/women.png'}}"
139 class="sex-icon"></image> 139 class="sex-icon"></image>
140 </block> 140 </block>
141 <block wx:if="{{item.userType ===2}}"> 141 <block wx:if="{{item.userType ===2}}">