add login out

This commit is contained in:
cmxdd 2020-08-10 11:31:03 +08:00
parent 959afc776a
commit 64da585bd7

View File

@ -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;