This commit is contained in:
曹辉 2022-11-15 16:45:11 +08:00
parent 568024c085
commit 60a2bbb405
3 changed files with 22 additions and 4 deletions

View File

@ -50,6 +50,11 @@
getCodeBtnColor: "#4C7BC9", //color
}
},
onLoad(options) {
if(options.phone){
this.phone = options.phone
}
},
methods: {
pwdlogin() {
if (this.password !== this.newpassword) {
@ -64,9 +69,13 @@
this.$refs.uToast.show({
title: '密码修改成功',
type: 'success',
url: '/pages/login/login',
duration: '1500'
})
setTimeout(e => {
uni.navigateTo({
url: `/pages/login/login?phone=${this.phone}&password=${this.password}`
})
}, 1500)
} else {
this.$refs.uToast.show({
title: res.msg,

View File

@ -34,7 +34,12 @@
};
},
//
onLoad(options) {},
onLoad(options) {
if (options.phone && options.password) {
this.phone = options.phone
this.password = options.password
}
},
methods: {
//
pwdlogin() {
@ -83,7 +88,7 @@
//
goforgotPassword() {
uni.navigateTo({
url: "/pages/forgotPassword/forgotPassword"
url: `/pages/forgotPassword/forgotPassword?phone=${this.phone}`
})
},
},

View File

@ -115,9 +115,13 @@
this.$refs.uToast.show({
title: '注册成功,前往登录',
type: 'success',
url: '/pages/login/login',
duration: '1500'
})
setTimeout(e => {
uni.navigateTo({
url: `/pages/login/login?phone=${this.phone}&password=${this.password}`
})
}, 1500)
} else {
this.$refs.uToast.show({
title: res.msg,