|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="pages">
|
|
|
- <!-- <u-navbar
|
|
|
+ <u-navbar
|
|
|
title="修改密码"
|
|
|
:placeholder="true"
|
|
|
:autoBack="true"
|
|
@@ -9,7 +9,7 @@
|
|
|
:titleStyle="{color:'#fff'}"
|
|
|
leftIconColor="#fff"
|
|
|
>
|
|
|
- </u-navbar> -->
|
|
|
+ </u-navbar>
|
|
|
<view class="form-wrap">
|
|
|
<u--form labelPosition="left" labelWidth="70px" :model="form" :rules="rules" ref="uForm" >
|
|
|
<u-form-item label="旧密码" prop="oldPassword" borderBottom ref="oldPassword" >
|
|
@@ -130,6 +130,7 @@
|
|
|
})
|
|
|
},
|
|
|
async submit(){
|
|
|
+ let that = this;
|
|
|
// console.log('form',this.form);
|
|
|
this.$refs.uForm.validate().then(res => {
|
|
|
// let chekPassResult = await this.chekPass();
|
|
@@ -147,7 +148,7 @@
|
|
|
icon:'success'
|
|
|
})
|
|
|
setTimeout(()=>{
|
|
|
- uni.$u.route('/pages/login/login');
|
|
|
+ that.redirectToAuth();
|
|
|
},2000)
|
|
|
// uni.reLaunch({url: this.backUrl});
|
|
|
}).catch(err=>{
|
|
@@ -156,7 +157,15 @@
|
|
|
}).catch(errors => {
|
|
|
uni.$u.toast('请正确填写表单')
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ redirectToAuth() {
|
|
|
+ try{
|
|
|
+ window.location.href = this.$commonConfig.authUrl;
|
|
|
+ }catch(e){
|
|
|
+ alert(`redirectToAuth e:${e}`)
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|