首次提交
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<view class="add-section">
|
||||
<input class="input-field" value="{{addPhone}}" bindinput="onPhoneInput" placeholder="输入手机号添加" style="flex:1;margin-bottom:0" />
|
||||
<button class="add-btn" bindtap="onAdd" disabled="{{!addPhone.trim()}}">添加</button>
|
||||
</view>
|
||||
|
||||
<text class="section-title">好友列表 ({{friends.length}})</text>
|
||||
<view wx:for="{{friends}}" wx:key="id" class="friend-item">
|
||||
<view class="friend-avatar">{{item.nickname?.[0] || '?'}}</view>
|
||||
<text class="friend-name">{{item.nickname || '用户'}}</text>
|
||||
<button class="remove-btn" data-id="{{item.id}}" bindtap="onRemove">删除</button>
|
||||
</view>
|
||||
<view class="empty" wx:if="{{!loading && friends.length===0}}"><text class="empty-text">还没有好友</text></view>
|
||||
Reference in New Issue
Block a user