优化代码
parent
b4c26262fc
commit
8d7b51cf0b
|
@ -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
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue