Commit f513a82a authored by linwenqing's avatar linwenqing

refactor:退出加弹窗确认,学时证头像居中对齐

parent 4e601988
......@@ -208,7 +208,7 @@ export default {
background-image: url('https://qn-static.banshouhui.com/study/biantiao@2x.png');
.head-photo{
height: 145rpx;
padding-left: 260rpx;
padding-left: 245rpx;
}
.table-list {
padding: 160rpx 40rpx 0 40rpx;
......
......@@ -42,14 +42,24 @@ export default {
})
},
logout() {
this.$u.vuex('vuex_token', '')
this.$u.vuex('openId', '')
this.$u.vuex('userInfo', {})
setTimeout(() => {
this.$u.route({
type: 'back',
})
}, 1000)
let that = this
uni.showModal({
title: '提示',
content: '确认退出当前账号',
success: function(res) {
if (res.confirm) {
that.$u.vuex('vuex_token', '')
that.$u.vuex('openId', '')
that.$u.vuex('userInfo', {})
setTimeout(() => {
that.$u.route({
type: 'back',
})
}, 800)
} else if (res.cancel) {
}
},
})
},
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment