退出登录的修改密码添加响应式弹窗

This commit is contained in:
2025-06-10 10:03:55 +08:00
parent 7d63133f54
commit 4d40d86061
3 changed files with 13 additions and 9 deletions

View File

@ -28,12 +28,14 @@ Page({
success: res => {
if (res.data.code === 1) {
wx.showToast({
title: '退出登录',
title: '退出成功',
icon: 'success'
})
setTimeout(() => {
wx.reLaunch({
url: '/pages/loginModule/pwdLogin/pwdLogin',
})
}, 1000); // 1000ms = 1秒
} else {
wx.showToast({
title: res.data.message,

View File

@ -39,9 +39,12 @@ Page({
title: '更改密码成功',
icon: 'success'
})
setTimeout(() => {
wx.reLaunch({
url: '/pages/loginModule/pwdLogin/pwdLogin',
})
}, 1000); // 1000ms = 1秒
} else {
wx.showModal({
title: '提示',

View File

@ -34,7 +34,7 @@
font-size: 30.53rpx;
font-family: SourceHanSansCN;
line-height: 28.34rpx;
color: #8c8c8c;
color: #323232;
}
.text_3 {
color: #ff8d1a;
@ -45,7 +45,6 @@
}
.text {
margin-left: 2.69rpx;
color: #000000;
line-height: 23.17rpx;
}
.text_4 {