You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
2.3 KiB
41 lines
2.3 KiB
<view class="contact" style="height: calc(100vh - {{scrollViewTop}}rpx - {{scrollViewBottom}}rpx);">
|
|
|
|
<scroll-view scroll-y="{{true}}" scroll-into-view="member-{{listCurID}}" class="member" scroll-with-animation="true" enable-back-to-top="true">
|
|
<block wx:for="{{dataList}}" wx:key="{{index}}" wx:for-item="item">
|
|
<view class="alphabet-item" id="member-{{dataList[index].alphabet}}" data-index="{{dataList[index]}}">{{item.alphabet}}</view>
|
|
<view class="member-item" wx:for="{{item.memberList}}" wx:for-item="items" wx:for-index="sub" wx:key="{{items}}">
|
|
<view class="item-avatar">
|
|
<image src="{{items.userAvatar}}" alt="用户头像"/>
|
|
</view>
|
|
<view class="content">
|
|
<view class="item-info">
|
|
<view class="name">{{items.nickname}}</view>
|
|
<view class="note" wx:if="{{pageType !== 'delete' && pageType !== 'invite'}}">{{items.createdTime}}</view>
|
|
</view>
|
|
<view class="operation" wx:if="btnName !== ''">
|
|
<checkbox-group wx:if="{{btnName === '邀请'}}" bindchange="chooseMember" data-alphabet="{{item.alphabet}}" data-userId="{{items.userId}}">
|
|
<checkbox color="red" value="{{items.userId}}" checked="{{items.checked}}" />
|
|
</checkbox-group>
|
|
<block wx:elif="{{pageType == 'delete'}}">
|
|
<view class="lordFlag" wx:if="{{items.lordFlag == 1}}">群主</view>
|
|
<button bindtap="operationBtn" data-userid="{{items.userId}}" data-id="{{items.id}}" wx:elif="{{loadFlag == 1 && groupCategory != '0'}}" hover-class="hover-btn" type="default" size="mini">{{btnName}}</button>
|
|
</block>
|
|
<button bindtap="operationBtn" data-id="{{items.id}}" data-userid="{{items.userId}}" wx:else hover-class="hover-btn" type="default" size="mini">{{btnName}}</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</scroll-view>
|
|
|
|
<view class="indexBar">
|
|
<view class="indexBar-box" bindtouchstart="tStart" bindtouchend="tEnd" catchtouchmove="tMove">
|
|
<view class="indexBar-item" wx:for="{{alphabetList}}" wx:key id="{{alphabetList[index]}}" bindtouchstart="getCur" bindtouchend="setCur">{{alphabetList[index]}}</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view hidden="{{hidden}}" class="indexToast">
|
|
{{listCur}}
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|