调整提示
This commit is contained in:
parent
14b896eee0
commit
07c1dd3a72
|
|
@ -74,7 +74,9 @@ const handleConfirm = async () => {
|
||||||
await userBindMobile(formData, { token: userStore.temToken })
|
await userBindMobile(formData, { token: userStore.temToken })
|
||||||
uni.$u.toast('绑定成功')
|
uni.$u.toast('绑定成功')
|
||||||
userStore.login(userStore.temToken!)
|
userStore.login(userStore.temToken!)
|
||||||
uni.navigateBack()
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
}, 1000)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,9 @@ const handleConfirm = async () => {
|
||||||
if (formData.password != formData.password2) return uni.$u.toast('两次输入的密码不一致')
|
if (formData.password != formData.password2) return uni.$u.toast('两次输入的密码不一致')
|
||||||
await userChangePwd(formData)
|
await userChangePwd(formData)
|
||||||
uni.$u.toast('操作成功')
|
uni.$u.toast('操作成功')
|
||||||
uni.navigateBack()
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
}, 1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,9 @@ const handleConfirm = async () => {
|
||||||
if (formData.password != formData.password2) return uni.$u.toast('两次输入的密码不一致')
|
if (formData.password != formData.password2) return uni.$u.toast('两次输入的密码不一致')
|
||||||
await forgotPassword(formData)
|
await forgotPassword(formData)
|
||||||
uni.$u.toast('操作成功')
|
uni.$u.toast('操作成功')
|
||||||
uni.navigateBack()
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
}, 1000)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,9 @@ const accountRegister = async () => {
|
||||||
if (formData.password != formData.password2) return uni.$u.toast('两次输入的密码不一致')
|
if (formData.password != formData.password2) return uni.$u.toast('两次输入的密码不一致')
|
||||||
await register(formData)
|
await register(formData)
|
||||||
uni.$u.toast('注册成功')
|
uni.$u.toast('注册成功')
|
||||||
uni.navigateBack()
|
setTimeout(() => {
|
||||||
|
uni.navigateBack()
|
||||||
|
}, 1000)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue