wkyy 3 năm trước cách đây
mục cha
commit
c4b45be788
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      pages/friend/index.vue

+ 2 - 1
pages/friend/index.vue

@@ -134,7 +134,8 @@
 				<view class="friendList-text">
 				<view class="friendList-text">
 					<view class="friendList-name">
 					<view class="friendList-name">
 						<span>{{item.realName}}</span>
 						<span>{{item.realName}}</span>
-						<u-icon custom-prefix="custom-icon" name="men-line" color="#1677FF"></u-icon>
+						<u-icon v-if="item.gender" custom-prefix="custom-icon" name="women-line" color="#1677FF"></u-icon>
+						<u-icon v-else custom-prefix="custom-icon" name="men-line" color="#1677FF"></u-icon>
 					</view>
 					</view>
 					<view class="friendList-info">
 					<view class="friendList-info">
 						<span>{{item.age}}岁 · {{item.height}}cm{{item.weight?' · '+item.weight+'kg':''}}</span>
 						<span>{{item.age}}岁 · {{item.height}}cm{{item.weight?' · '+item.weight+'kg':''}}</span>