修改
This commit is contained in:
parent
568024c085
commit
60a2bbb405
@ -50,6 +50,11 @@
|
|||||||
getCodeBtnColor: "#4C7BC9", //获取验证码的color
|
getCodeBtnColor: "#4C7BC9", //获取验证码的color
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
if(options.phone){
|
||||||
|
this.phone = options.phone
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
pwdlogin() {
|
pwdlogin() {
|
||||||
if (this.password !== this.newpassword) {
|
if (this.password !== this.newpassword) {
|
||||||
@ -64,9 +69,13 @@
|
|||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '密码修改成功',
|
title: '密码修改成功',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
url: '/pages/login/login',
|
|
||||||
duration: '1500'
|
duration: '1500'
|
||||||
})
|
})
|
||||||
|
setTimeout(e => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/login/login?phone=${this.phone}&password=${this.password}`
|
||||||
|
})
|
||||||
|
}, 1500)
|
||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
|||||||
@ -34,7 +34,12 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
//获取到传值
|
//获取到传值
|
||||||
onLoad(options) {},
|
onLoad(options) {
|
||||||
|
if (options.phone && options.password) {
|
||||||
|
this.phone = options.phone
|
||||||
|
this.password = options.password
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//密码登录
|
//密码登录
|
||||||
pwdlogin() {
|
pwdlogin() {
|
||||||
@ -83,7 +88,7 @@
|
|||||||
//跳转忘记密码页面
|
//跳转忘记密码页面
|
||||||
goforgotPassword() {
|
goforgotPassword() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/forgotPassword/forgotPassword"
|
url: `/pages/forgotPassword/forgotPassword?phone=${this.phone}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -115,9 +115,13 @@
|
|||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '注册成功,前往登录',
|
title: '注册成功,前往登录',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
url: '/pages/login/login',
|
|
||||||
duration: '1500'
|
duration: '1500'
|
||||||
})
|
})
|
||||||
|
setTimeout(e => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/login/login?phone=${this.phone}&password=${this.password}`
|
||||||
|
})
|
||||||
|
}, 1500)
|
||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user