diff --git a/src/pages/score-list/score-list.vue b/src/pages/score-list/score-list.vue index 2ab02a8..3b16caf 100644 --- a/src/pages/score-list/score-list.vue +++ b/src/pages/score-list/score-list.vue @@ -4,6 +4,7 @@ 评分系统 + 退出 ··· @@ -294,6 +295,20 @@ export default { return scored + '/' + total }, + handleLogout() { + uni.showModal({ + title: "提示", + content: "确定要退出登录吗?", + success: (res) => { + if (res.confirm) { + uni.removeStorageSync("judgeInfo") + uni.removeStorageSync("token") + uni.reLaunch({ url: "/pages/login/login" }) + } + } + }) + }, + async handleRefresh() { if (this.isLoading) return uni.showToast({ title: '刷新中...', icon: 'loading', duration: 1000 }) @@ -437,6 +452,15 @@ export default { gap: 20rpx; } +.logout-btn { + font-size: 26rpx; + color: #FFFFFF; + background: rgba(255, 255, 255, 0.2); + padding: 8rpx 20rpx; + border-radius: 20rpx; + margin-right: 10rpx; +} + .nav-dots, .nav-circle { font-size: 32rpx; color: #FFFFFF;