wkyy 3 years ago
parent
commit
f74a5937ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/friend/index.vue

+ 1 - 1
pages/friend/index.vue

@@ -137,7 +137,7 @@
 						<u-icon custom-prefix="custom-icon" name="men-line" color="#1677FF"></u-icon>
 					</view>
 					<view class="friendList-info">
-						<span>{{item.age}}岁 · {{item.height}}cm</span>&nbsp;<span v-if="item.weight != null">· {{item.weight}}kg</span>
+						<span>{{item.age}}岁 · {{item.height}}cm{{item.weight?' · '+item.weight+'kg':''}}</span>
 					</view>
 					<view class="friendList-label">
 						<view class="friendList-label-item">