Commit 23adcb88 by wenyang

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

parent acd5a129
......@@ -74,17 +74,19 @@
type:"1",
source: "cffp"
}
if(common.mobileNoValid(this.form.mobile) && !this.disabledSendBtn){
if(common.mobileNoValid(this.form.mobile)){
if(!this.disabledSendBtn){
api.verificationCode(params).then((res)=>{
if(res['success']){
this.delayTime()
}else{
common.errorDialog(2,res['message'])
}
})
}
}else{
common.errorDialog(2,'手机号校验错误')
}
},
getFile(type){
uni.navigateTo({
......@@ -129,9 +131,10 @@
api.loginVerification(params).then((res)=>{
if(res['success']){
this.userId = String(res['data']['userId']);
uni.setStorageSync('isLogin','1')
uni.setStorageSync('cffp_userId', this.userId)
uni.setStorageSync('isH5', 1)
uni.setStorageSync('isLogin','1');
uni.setStorageSync('cffp_userId', this.userId);
uni.setStorageSync('isH5', 1);
uni.setStorageSync('uni-token', res.data['token']);
uni.navigateTo({
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