add login out
This commit is contained in:
parent
959afc776a
commit
64da585bd7
@ -23,6 +23,10 @@
|
|||||||
<text>骑手投诉</text>
|
<text>骑手投诉</text>
|
||||||
<image src="/static/image/user/1.png"></image>
|
<image src="/static/image/user/1.png"></image>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="nav" @click="loginout()">
|
||||||
|
<text>退出登录</text>
|
||||||
|
<image src="/static/image/user/1.png"></image>
|
||||||
|
</view>
|
||||||
<u-toast ref="uToast" />
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -41,6 +45,17 @@ export default {
|
|||||||
this.getmyinfo()
|
this.getmyinfo()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 退出登陆
|
||||||
|
loginout(){
|
||||||
|
uni.clearStorage();
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: "退出登陆成功!",
|
||||||
|
type: 'success'
|
||||||
|
});
|
||||||
|
uni.reLaunch({
|
||||||
|
url:"../login/login"
|
||||||
|
})
|
||||||
|
},
|
||||||
// 获取个人信息
|
// 获取个人信息
|
||||||
getmyinfo(){
|
getmyinfo(){
|
||||||
let that = this;
|
let that = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user