|
|
@@ -178,12 +178,16 @@ export default { |
|
|
|
// this.list = res.data.records; |
|
|
|
// this.total = res.data.total; |
|
|
|
if (res.data.total == 0) { |
|
|
|
this.$message.warning("您当前并未绑定楼盘"); |
|
|
|
this.$message.warning("您当前并未绑定代理商"); |
|
|
|
return; |
|
|
|
} else if (res.data.total > 1) { |
|
|
|
// 公司后台 |
|
|
|
this.$router.push({ path: "/chose", query: { flag: 1 } }); |
|
|
|
} else { |
|
|
|
if(res.data.records[0].lockFlag!=0){ |
|
|
|
this.$message.warning("您已经被禁用"); |
|
|
|
return |
|
|
|
} |
|
|
|
this.$router.push({ path: "/wel" }); |
|
|
|
localStorage.setItem("topName", res.data.records[0].agentName); |
|
|
|
localStorage.setItem("agentId", res.data.records[0].id); |
|
|
|