diff --git a/pages/user/index.vue b/pages/user/index.vue
index 6294cbe..9a28156 100644
--- a/pages/user/index.vue
+++ b/pages/user/index.vue
@@ -23,10 +23,11 @@
骑手投诉
-
+
退出登录
+
@@ -36,6 +37,8 @@ export default {
data() {
return {
info:{},
+ is_loginout: false,
+ content: "是否退出登录?",
num:0
}
},
@@ -46,9 +49,9 @@ export default {
},
methods: {
// 退出登陆
- loginout(){
+ loginOut(){
uni.clearStorage();
- this.imService.disconnect()
+ this.imService.disconnect();
this.$refs.uToast.show({
title: "退出登陆成功!",
type: 'success'
diff --git a/pages/user/myinfo.vue b/pages/user/myinfo.vue
index a9d34d2..4d4598d 100644
--- a/pages/user/myinfo.vue
+++ b/pages/user/myinfo.vue
@@ -19,7 +19,7 @@
内容管理
-
+
退出登录
@@ -46,6 +46,7 @@
+
@@ -55,6 +56,8 @@ export default {
data() {
return {
publishstate:false,
+ is_loginout: false,
+ content: "是否退出登录?",
info:{},
}
},
@@ -68,8 +71,8 @@ export default {
this.imService.connectIM()
},
methods: {
- loginout(){
- this.imService.disconnect()
+ loginOut(){
+ this.imService.disconnect();
uni.clearStorage();
this.$refs.uToast.show({
title: "退出登陆成功!",
@@ -78,7 +81,6 @@ export default {
uni.reLaunch({
url:"../login/login"
})
-
},
// 获取个人信息
getmyinfo(){