Browse Source

init

newStyle
lancer 3 years ago
parent
commit
c078647281
2 changed files with 9 additions and 1 deletions
  1. +4
    -0
      src/page/check/chose.vue
  2. +5
    -1
      src/page/login/userlogin.vue

+ 4
- 0
src/page/check/chose.vue View File

@@ -358,6 +358,10 @@ export default {
this.$message.warning('您已经被禁用') this.$message.warning('您已经被禁用')
return return
} }
if(item.residueTime!=0){
this.$message.warning('您已过期')
return
}
if (this.flag == 1) { if (this.flag == 1) {
localStorage.setItem("agentId", item.id); localStorage.setItem("agentId", item.id);
localStorage.setItem("orgCode", ''); localStorage.setItem("orgCode", '');


+ 5
- 1
src/page/login/userlogin.vue View File

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


Loading…
Cancel
Save