ck@123911.net 4 days ago
parent
commit
5aa967bf79
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pages/index/Search.vue

+ 2 - 2
pages/index/Search.vue

@@ -97,10 +97,10 @@
 								</view>
 								<!-- <view class="desc">{{ item.description }}</view> -->
 							</view>
-							<view :class="item.is_attention ? 'unfollow-btn active' : 'unfollow-btn'"
+							<view :class="item.is_attention == 0 ? 'unfollow-btn active' : 'unfollow-btn'"
 								@click="toggleFollow(item)">
 								<image src="../../static/me/wd_icon_guanzhu.png"></image>
-								{{ item.is_attention == 0 ? '取消关注' : '关注' }}
+								{{ item.is_attention > 0 ? '取消关注' : '关注' }}
 							</view>
 						</view>
 					</block>