Commit e95b5504 by 李伟康

commit 退出增加二次确认

1 parent 6eb2b521
...@@ -77,8 +77,15 @@ export default { ...@@ -77,8 +77,15 @@ export default {
}) })
}, },
// 退出 // 退出
async logout () { logout () {
this.stopAudio(); let _this = this
uni.showModal({
title: '温馨提示',
content: '是否退出当前账号?',
confirmColor: '#347BFF',
async success (res) {
if (res.confirm) {
_this.stopAudio();
try { try {
uni.showLoading() uni.showLoading()
const { code, message } = await uni.$api.userApi.logout() const { code, message } = await uni.$api.userApi.logout()
...@@ -102,8 +109,9 @@ export default { ...@@ -102,8 +109,9 @@ export default {
icon: "none", icon: "none",
}); });
} }
}
}
})
}, },
jump (type) { jump (type) {
let url = type == 'icp' ? 'https://beian.miit.gov.cn/' : 'https://img01.glsx.com.cn/weapp/resource/saas/app/privacy.html' let url = type == 'icp' ? 'https://beian.miit.gov.cn/' : 'https://img01.glsx.com.cn/weapp/resource/saas/app/privacy.html'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!