Commit 0fd32f7e authored by duxinyuan's avatar duxinyuan

132

parent bda91135
......@@ -368,6 +368,39 @@
let _this = this;
console.log(c);
localStorage.setItem('tlSiteid',c);
//
_this.axios({
method: 'get',
url: '/broker/getAgentSiteListV2',
responseType: 'json',
data: {
'AuthToken': _this.token,
'agent_phone': localStorage.getItem('userphone'),
'site_id' : c ,
}
})
.then(function(res) {
console.log(res)
if ( res.data.code == 200 ){
let agentId = localStorage.getItem('tlYjAgentId')
let arr = res.data.data;
arr.map((obj)=>{
if (obj.site_id == c) {
localStorage.setItem('tlYjAgentId',obj.id)
}
})
}
})
.catch(function(error) {
layer.tipsX(error);
});
_this.realSearch('normal');
}
}
......
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