|
@@ -1,22 +1,26 @@
|
|
|
+<wxs src="../../utils/filter.wxs" module="filters" />
|
|
|
+
|
|
|
<view class="followBox">
|
|
|
<view class="screening">
|
|
|
<view class="type {{currentType==1?'currentType':''}}" data-type="1" bindtap="setType">我的关注</view>
|
|
|
<view class="type {{currentType==2?'currentType':''}}" data-type="2" bindtap="setType">我的粉丝</view>
|
|
|
</view>
|
|
|
- <view class="follow" wx:for="{{list}}" wx:key="*this" bindtap="jumpUserInfo" data-uid='{{item.user.uid}}'>
|
|
|
- <view class="userInfo">
|
|
|
+ <view class="follow" wx:for="{{list}}" wx:key="*this">
|
|
|
+ <view class="userInfo" bindtap="jumpUserInfo" data-uid='{{item.user.uid}}'>
|
|
|
<view class='avatar'>
|
|
|
<image class='avatar-image' src="{{ item.user.avatar }}" />
|
|
|
<view class="user-profession">{{item.user.profession}}</view>
|
|
|
</view>
|
|
|
- <view class="nickName">
|
|
|
- {{item.user.nickName||item.user.eid}}
|
|
|
+ <view class="infoBox">
|
|
|
+ <view class="nickName">
|
|
|
+ {{item.user.nickName||item.user.eid}}
|
|
|
+ </view>
|
|
|
+ <view class="gmtCreated">{{filters.formatDate(item.fans.gmtCreated,4)}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="state">
|
|
|
- <image class='stateImg'
|
|
|
- src="{{currentType==1?'/static/concernback.png':item.isEachOther?'/static/concerned.png':'/static/concernRespond.png'}}" />
|
|
|
- <view class="stateText">{{ currentType==1?'已关注':item.isEachOther?'互相关注':'回关'}}</view>
|
|
|
+ <view class="state" data-uid='{{item.user.uid}}' data-isEachOther="{{item.isEachOther}}" bindtap="setFans">
|
|
|
+ <view class="stateText {{currentType==1||item.isEachOther?'already':'yet'}}">{{
|
|
|
+ currentType==1?'已关注':item.isEachOther?'互相关注':'回关'}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<emptyBg wx:if="{{nullList}}" message='快去寻找小伙伴吧!' />
|