退出登录的修改密码添加响应式弹窗
This commit is contained in:
@ -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'
|
||||||
})
|
})
|
||||||
wx.reLaunch({
|
setTimeout(() => {
|
||||||
url: '/pages/loginModule/pwdLogin/pwdLogin',
|
wx.reLaunch({
|
||||||
})
|
url: '/pages/loginModule/pwdLogin/pwdLogin',
|
||||||
|
})
|
||||||
|
}, 1000); // 1000ms = 1秒
|
||||||
} else {
|
} else {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: res.data.message,
|
title: res.data.message,
|
||||||
|
@ -39,9 +39,12 @@ Page({
|
|||||||
title: '更改密码成功',
|
title: '更改密码成功',
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
})
|
})
|
||||||
wx.reLaunch({
|
setTimeout(() => {
|
||||||
url: '/pages/loginModule/pwdLogin/pwdLogin',
|
wx.reLaunch({
|
||||||
})
|
url: '/pages/loginModule/pwdLogin/pwdLogin',
|
||||||
|
})
|
||||||
|
}, 1000); // 1000ms = 1秒
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
wx.showModal({
|
wx.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
|
@ -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 {
|
||||||
|
Reference in New Issue
Block a user