优化代码

master
Lee-1203 2022-03-09 18:24:56 +08:00
parent b4c26262fc
commit 8d7b51cf0b
1 changed files with 3 additions and 3 deletions

View File

@ -3,16 +3,16 @@ Page({
url:''
},
onLoad() {
let userData = JSON.stringify(dd.$toolAll.getCache('userData'));
let userType = dd.$toolAll.getCache('userData').userType;
let token = dd.$toolAll.getCache('token');
console.log(userType,123)
if(userType==1){
this.setData({
url: 'http://aspevel.scdxtc.cn/#/consultant?userData='+userData
url: 'http://aspevel.scdxtc.cn/#/consultant?token='+token
})
}else if(userType==0){
this.setData({
url: 'http://aspevel.scdxtc.cn/#/index?userData='+userData
url: 'http://aspevel.scdxtc.cn/#/index?token='+token
})
}
},