Commit f513a82a authored by linwenqing's avatar linwenqing

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

parent 4e601988
...@@ -208,7 +208,7 @@ export default { ...@@ -208,7 +208,7 @@ export default {
background-image: url('https://qn-static.banshouhui.com/study/biantiao@2x.png'); background-image: url('https://qn-static.banshouhui.com/study/biantiao@2x.png');
.head-photo{ .head-photo{
height: 145rpx; height: 145rpx;
padding-left: 260rpx; padding-left: 245rpx;
} }
.table-list { .table-list {
padding: 160rpx 40rpx 0 40rpx; padding: 160rpx 40rpx 0 40rpx;
......
...@@ -42,14 +42,24 @@ export default { ...@@ -42,14 +42,24 @@ export default {
}) })
}, },
logout() { logout() {
this.$u.vuex('vuex_token', '') let that = this
this.$u.vuex('openId', '') uni.showModal({
this.$u.vuex('userInfo', {}) title: '提示',
content: '确认退出当前账号',
success: function(res) {
if (res.confirm) {
that.$u.vuex('vuex_token', '')
that.$u.vuex('openId', '')
that.$u.vuex('userInfo', {})
setTimeout(() => { setTimeout(() => {
this.$u.route({ that.$u.route({
type: 'back', type: 'back',
}) })
}, 1000) }, 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