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