个人认证

This commit is contained in:
shijingjing
2023-03-17 15:42:41 +08:00
parent d53e5f3b4b
commit 782f632892
3 changed files with 175 additions and 79 deletions

View File

@@ -46,6 +46,9 @@
</div>
</div>
</div>
<div class="logout">
<b class="login-out" @click="onLogout">退出登录</b>
</div>
<AiLogin ref="login" @success="getAuth()"/>
</div>
</template>
@@ -157,7 +160,22 @@ export default {
this.$nextTick(() => {
this.token && this.getUserInfo()
})
}
},
onLogout() {
uni.showModal({
title: '提示',
content: "是否要退出登录",
success: res => {
if (res.confirm) {
this.$store.commit('logout')
this.$toast('退出成功');
setTimeout(() => {
this.getAuth();
}, 500)
}
}
})
},
},
onShow() {
this.getAuth();
@@ -354,6 +372,20 @@ export default {
}
}
}
.logout {
width: 100%;
height: 96px;
padding: 0 32px;
box-sizing: border-box;
line-height: 96px;
text-align: center;
.login-out {
background: #FFF;
border-radius: 16px;
font-size: 34px;
font-weight: 500;
color: #4181FF;
}
}
}
</style>