增加协议

This commit is contained in:
GaoHao
2025-01-07 11:01:32 +08:00
parent c47fe17bcf
commit f82c31084d
5 changed files with 52 additions and 65 deletions

View File

@@ -66,22 +66,22 @@
title: '正在发送验证码...'
})
let res = await setSendMsg(data.mobile,'forget')
if ( res.code == 0 ) {
uni.hideLoading();
uni.hideToast();
if( res ){
data.sending = true;
uni.showToast({
title: '验证码发送成功请注意查收',
icon: 'none',
duration: 1000
})
data.countDown();
} else {
uni.showModal({
showCancel: false,
title: '短信发送失败',
content: res.msg ? res.msg : '请一分钟后再获取验证码'
content: '请一分钟后再获取验证码'
});
}
uni.hideLoading();
}
}
@@ -146,25 +146,15 @@
msg: data.code,
})
uni.hideLoading();
if (res.code === 0) {
uni.showToast({
title: '密码找回成功',
icon: 'none'
uni.showToast({
title: '密码找回成功',
icon: 'none'
});
setTimeout(function() {
uni.navigateTo({
url: '/pages/login/login'
});
setTimeout(function() {
uni.navigateTo({
url: '/pages/login/login'
});
}, 1000)
} else {
uni.showModal({
showCancel: false,
title: '密码找回失败',
content: res.msg,
});
}
}, 1000)
}
}