parent
57aa083a00
commit
b42f4ca2e5
File diff suppressed because one or more lines are too long
@ -1,4 +1,6 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"usingComponents": {
|
||||
"mp-slideview": "/weui-miniprogram/slideview/slideview"
|
||||
},
|
||||
"navigationBarTitleText": "切换账号"
|
||||
}
|
@ -1,25 +1,28 @@
|
||||
<page-meta>
|
||||
<navigation-bar loading="{{loading}}"/>
|
||||
<navigation-bar loading="{{loading}}" />
|
||||
</page-meta>
|
||||
|
||||
<view>
|
||||
<view class="message single-line {{showMessage&&message?'':'hidden'}}">
|
||||
{{message}}
|
||||
</view>
|
||||
<view wx:for="{{accounts}}" class="account" data-id="{{item.user_id}}" bindtap="switchAccount" bindlongpress="removeAccount" wx:key="user_id">
|
||||
<image src="{{eduImgDir}}{{item.image_url}}" class="avatar"></image>
|
||||
<view class="info">
|
||||
<view class="name">{{item.name}}</view>
|
||||
<view class="login">{{item.login}}</view>
|
||||
</view>
|
||||
<view class="status" wx:if="{{item.user_id==user.user_id}}">
|
||||
<icon type="success_no_circle" color="#00b0f0"></icon>
|
||||
</view>
|
||||
</view>
|
||||
<view class="empty" wx:if="{{accounts.length==0}}">
|
||||
<text>暂无账号</text>
|
||||
</view>
|
||||
<button class="addAccount" type="main" bindtap="addAccount">添加账号</button>
|
||||
<button class="nav-back" type="main" plain="1" bindtap="navBack">返回</button>
|
||||
<view class="tip">长按移除</view>
|
||||
<view class="message single-line {{showMessage&&message?'':'hidden'}}">
|
||||
{{message}}
|
||||
</view>
|
||||
<mp-slideview wx:for="{{accounts}}" data-id="{{item.user_id}}" buttons="{{buttons}}"
|
||||
bindtap="switchAccount" bindlongpress="removeAccount1" bindbuttontap="removeAccount2"
|
||||
wx:key="user_id">
|
||||
<view class="account" >
|
||||
<image src="{{eduImgDir}}{{item.image_url}}" class="avatar"></image>
|
||||
<view class="info">
|
||||
<view class="name">{{item.name}}</view>
|
||||
<view class="login">{{item.login}}</view>
|
||||
</view>
|
||||
<view class="status" wx:if="{{item.user_id==user.user_id}}">
|
||||
<icon type="success_no_circle" color="#00b0f0"></icon>
|
||||
</view>
|
||||
</view>
|
||||
</mp-slideview>
|
||||
<view class="empty" wx:if="{{accounts.length==0}}">
|
||||
<text>暂无账号</text>
|
||||
</view>
|
||||
<button class="addAccount" type="main" bindtap="addAccount">添加账号</button>
|
||||
<button class="nav-back" type="main" plain="1" bindtap="navBack">返回</button>
|
||||
</view>
|
Loading…
Reference in new issue