20 lines
469 B
JavaScript
20 lines
469 B
JavaScript
Page({
|
|
data: {
|
|
url:''
|
|
},
|
|
onLoad() {
|
|
let userData = JSON.stringify(dd.$toolAll.getCache('userData'));
|
|
let userType = dd.$toolAll.getCache('userData').userType;
|
|
console.log(userType,123)
|
|
if(userType==1){
|
|
this.setData({
|
|
url: 'http://aspevel.scdxtc.cn/#/consultant?userData='+userData
|
|
})
|
|
}else if(userType==0){
|
|
this.setData({
|
|
url: 'http://aspevel.scdxtc.cn/#/index?userData='+userData
|
|
})
|
|
}
|
|
},
|
|
});
|