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

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 => { success: res => {
if (res.data.code === 1) { if (res.data.code === 1) {
wx.showToast({ wx.showToast({
title: '退出登录', title: '退出成功',
icon: 'success' icon: 'success'
}) })
setTimeout(() => {
wx.reLaunch({ wx.reLaunch({
url: '/pages/loginModule/pwdLogin/pwdLogin', url: '/pages/loginModule/pwdLogin/pwdLogin',
}) })
}, 1000); // 1000ms = 1秒
} else { } else {
wx.showToast({ wx.showToast({
title: res.data.message, title: res.data.message,

View File

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

View File

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