This commit is contained in:
luyuan 2020-09-01 16:06:27 +08:00
commit 164b7f8e4c
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
3 changed files with 17 additions and 5 deletions

View File

@ -16,6 +16,13 @@
"autoclose" : true, "autoclose" : true,
"delay" : 0 "delay" : 0
}, },
"safearea" : {
//iOS
"bottom" : {
//
"offset" : "none" // "none""auto""none"
}
},
/* */ /* */
"modules" : { "modules" : {
"Push" : {}, "Push" : {},

View File

@ -23,10 +23,11 @@
<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()"> <view class="nav" @click="is_loginout = true">
<text>退出登录</text> <text>退出登录</text>
<image src="/static/image/user/1.png"></image> <image src="/static/image/user/1.png"></image>
</view> </view>
<u-modal v-model="is_loginout" show-confirm-button show-cancel-button :content="content" @confirm="loginOut"></u-modal>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
</view> </view>
</template> </template>
@ -36,6 +37,8 @@ export default {
data() { data() {
return { return {
info:{}, info:{},
is_loginout: false,
content: "是否退出登录?",
num:0 num:0
} }
}, },
@ -46,9 +49,9 @@ export default {
}, },
methods: { methods: {
// 退 // 退
loginout(){ loginOut(){
uni.clearStorage(); uni.clearStorage();
this.imService.disconnect() this.imService.disconnect();
this.$refs.uToast.show({ this.$refs.uToast.show({
title: "退出登陆成功!", title: "退出登陆成功!",
type: 'success' type: 'success'

View File

@ -23,7 +23,7 @@
<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()"> <view class="nav" @click="is_loginout = true">
<text>退出登录</text> <text>退出登录</text>
<image src="/static/image/user/1.png"></image> <image src="/static/image/user/1.png"></image>
</view> </view>
@ -50,6 +50,7 @@
<image src="../../static/image/index/close.png" class="off" @click="close"></image> <image src="../../static/image/index/close.png" class="off" @click="close"></image>
</view> </view>
</u-popup> </u-popup>
<u-modal v-model="is_loginout" show-confirm-button show-cancel-button :content="content" @confirm="loginOut"></u-modal>
<u-toast ref="uToast" /> <u-toast ref="uToast" />
</view> </view>
</template> </template>
@ -59,6 +60,8 @@ export default {
data() { data() {
return { return {
publishstate:false, publishstate:false,
is_loginout: false,
content: "是否退出登录?",
info:{}, info:{},
} }
}, },
@ -88,7 +91,6 @@ export default {
uni.reLaunch({ uni.reLaunch({
url:"../login/login" url:"../login/login"
}) })
}, },
// //
getmyinfo(){ getmyinfo(){