个人中心修改资料完善
This commit is contained in:
@@ -8,12 +8,23 @@ Page({
|
||||
},
|
||||
// 退出登录
|
||||
loginOut() {
|
||||
wx.clearStorage({
|
||||
wx.showModal({
|
||||
title: "退出提示",
|
||||
content: "是否现在就退出",
|
||||
showCancel: true,
|
||||
confirmColor: "#0b0041",
|
||||
confirmText: "确定",
|
||||
success: (res) => {
|
||||
wx.reLaunch({
|
||||
url: '/pages/welcome/index',
|
||||
})
|
||||
},
|
||||
if (res.confirm) {
|
||||
wx.clearStorage({
|
||||
success: (res) => {
|
||||
wx.reLaunch({
|
||||
url: '/pages/welcome/index',
|
||||
})
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user