瀏覽代碼

init

newStyle
lancer 2 年之前
父節點
當前提交
c078647281
共有 2 個檔案被更改,包括 9 行新增1 行删除
  1. +4
    -0
      src/page/check/chose.vue
  2. +5
    -1
      src/page/login/userlogin.vue

+ 4
- 0
src/page/check/chose.vue 查看文件

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


+ 5
- 1
src/page/login/userlogin.vue 查看文件

@@ -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);


Loading…
取消
儲存