Commit 23adcb88 by wenyang

1、邀请加盟人登录时获取最新token; 2、手机号校验调整

parent acd5a129
...@@ -74,17 +74,19 @@ ...@@ -74,17 +74,19 @@
type:"1", type:"1",
source: "cffp" source: "cffp"
} }
if(common.mobileNoValid(this.form.mobile) && !this.disabledSendBtn){ if(common.mobileNoValid(this.form.mobile)){
api.verificationCode(params).then((res)=>{ if(!this.disabledSendBtn){
if(res['success']){ api.verificationCode(params).then((res)=>{
this.delayTime() if(res['success']){
} this.delayTime()
}) }else{
common.errorDialog(2,res['message'])
}
})
}
}else{ }else{
common.errorDialog(2,'手机号校验错误') common.errorDialog(2,'手机号校验错误')
} }
}, },
getFile(type){ getFile(type){
uni.navigateTo({ uni.navigateTo({
...@@ -129,9 +131,10 @@ ...@@ -129,9 +131,10 @@
api.loginVerification(params).then((res)=>{ api.loginVerification(params).then((res)=>{
if(res['success']){ if(res['success']){
this.userId = String(res['data']['userId']); this.userId = String(res['data']['userId']);
uni.setStorageSync('isLogin','1') uni.setStorageSync('isLogin','1');
uni.setStorageSync('cffp_userId', this.userId) uni.setStorageSync('cffp_userId', this.userId);
uni.setStorageSync('isH5', 1) uni.setStorageSync('isH5', 1);
uni.setStorageSync('uni-token', res.data['token']);
uni.navigateTo({ uni.navigateTo({
url:'/pages/application-process/basic-info?userId=' + this.userId + '&shareId=' + this.form.id url:'/pages/application-process/basic-info?userId=' + this.userId + '&shareId=' + this.form.id
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment