12345678910111213141516171819202122232425262728293031 |
- <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">
- <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="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" data-uid='{{item.user.uid}}' data-isEachOther="{{item.isEachOther}}" bindtap="setFans">
- <view class="stateText already" wx:if="{{currentType==1}}">
- {{item.isEachOther?'互相关注':'已关注'}}
- </view>
- <view class="stateText {{item.isEachOther?'already':'yet'}}" wx:else>
- {{item.isEachOther?'互相关注':'回关'}}
- </view>
- </view>
- </view>
- <emptyBg wx:if="{{nullList}}" message='快去寻找小伙伴吧!' />
- </view>
|