正在显示
2 个修改的文件
包含
23 行增加
和
1 行删除
| ... | ... | @@ -120,6 +120,26 @@ Page({ |
| 120 | 120 | }) |
| 121 | 121 | }, |
| 122 | 122 | |
| 123 | + loginout:function(){ | |
| 124 | + wx.showModal({ | |
| 125 | + title: '退出登录', | |
| 126 | + content: '确认要退出登录吗?', | |
| 127 | + confirmText: '确定', | |
| 128 | + showCancel: true, | |
| 129 | + cancelText:"取消", | |
| 130 | + confirmColor: '#357aeb', | |
| 131 | + success(res) { | |
| 132 | + console.log("loginout", res) | |
| 133 | + if (res.confirm) { | |
| 134 | + wx.reLaunch({ | |
| 135 | + // url: '../../login/login' | |
| 136 | + url: '../../getPhone/getPhone' | |
| 137 | + }) | |
| 138 | + } | |
| 139 | + } | |
| 140 | + }) | |
| 141 | + }, | |
| 142 | + | |
| 123 | 143 | /** |
| 124 | 144 | * 生命周期函数--监听页面隐藏 |
| 125 | 145 | */ | ... | ... |
| ... | ... | @@ -55,9 +55,11 @@ |
| 55 | 55 | </view> |
| 56 | 56 | <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image> |
| 57 | 57 | </view> --> |
| 58 | + | |
| 59 | + <text style="font-size:34rpx;color:#999;text-align:center;padding:20rpx;margin:80rpx 0" bindtap='loginout'>退出登录</text> | |
| 58 | 60 | </view> |
| 59 | 61 | </scroll-view> |
| 60 | - | |
| 62 | + | |
| 61 | 63 | <image class='chat-img' bindtap='gochat' src='/images/icon_chat.png'></image> |
| 62 | 64 | |
| 63 | 65 | </view> | ... | ... |
请
注册
或
登录
后发表评论