个人中心修改资料完善

This commit is contained in:
zdx
2020-12-31 15:19:42 +08:00
parent 923e648a82
commit a3a38b0736
13 changed files with 230 additions and 66 deletions

View File

@@ -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',
})
},
})
}
}
})
}
})