|
@@ -17,7 +17,7 @@
|
|
|
<view class="tag" v-if="user.userType == 4">司机</view>
|
|
|
<view class="tag" v-if="user.userType == 5">外籍商户</view>
|
|
|
</view>
|
|
|
- <text class="icon edit"></text>
|
|
|
+ <text class="icon edit" @click="go('/pages/personal/my')"></text>
|
|
|
<view class="clear"></view>
|
|
|
</view>
|
|
|
<!--组长菜单-->
|
|
@@ -109,7 +109,7 @@
|
|
|
<text class="title">隐私协议</text>
|
|
|
<text class="icon arrow"></text>
|
|
|
</view>
|
|
|
- <view class="s_item" @click="show = true">
|
|
|
+ <view class="s_item" @click="go('/pages/personal/setting')">
|
|
|
<text class="icon ic"></text>
|
|
|
<text class="title">设置</text>
|
|
|
<text class="icon arrow"></text>
|
|
@@ -153,15 +153,24 @@ export default {
|
|
|
uni.navigateTo({ url: url });
|
|
|
},
|
|
|
exitLogin() {
|
|
|
+ let param = {
|
|
|
+ appUserId: this.getUser().id
|
|
|
+ }
|
|
|
uni.showModal({
|
|
|
title: '提示',
|
|
|
content: '确定注销登录?',
|
|
|
success: res => {
|
|
|
if (res.confirm) {
|
|
|
- uni.removeStorageSync('token');
|
|
|
- uni.removeStorageSync('info');
|
|
|
- uni.removeStorageSync('menu');
|
|
|
- uni.redirectTo({ url: '/pages/login/login' });
|
|
|
+ this.http.request({
|
|
|
+ url: '/sp-admin/app/AppUser/logout',
|
|
|
+ data: param,
|
|
|
+ success: res => {
|
|
|
+ uni.removeStorageSync('token');
|
|
|
+ uni.removeStorageSync('info');
|
|
|
+ uni.removeStorageSync('menu');
|
|
|
+ uni.redirectTo({ url: '/pages/login/login' });
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
});
|