zycp-ddxcx/pages/home/home.js

20 lines
435 B
JavaScript
Raw Normal View History

2022-03-09 15:06:54 +08:00
Page({
data: {
url:''
},
onLoad() {
let userType = dd.$toolAll.getCache('userData').userType;
2022-03-09 18:24:56 +08:00
let token = dd.$toolAll.getCache('token');
2022-03-09 15:06:54 +08:00
console.log(userType,123)
if(userType==1){
this.setData({
2022-03-09 18:24:56 +08:00
url: 'http://aspevel.scdxtc.cn/#/consultant?token='+token
2022-03-09 15:06:54 +08:00
})
}else if(userType==0){
this.setData({
2022-03-09 18:24:56 +08:00
url: 'http://aspevel.scdxtc.cn/#/index?token='+token
2022-03-09 15:06:54 +08:00
})
}
},
});