Browse Source

init

newStyle
lancer 3 years ago
parent
commit
87f7e1f7d6
4 changed files with 27 additions and 1 deletions
  1. +1
    -1
      src/api/modules/api.js
  2. +8
    -0
      src/page/check/chose.vue
  3. +9
    -0
      src/page/check/index.vue
  4. +9
    -0
      src/page/login/userlogin.vue

+ 1
- 1
src/api/modules/api.js View File

@@ -1066,7 +1066,7 @@ export function filedownload(query) {
//选择楼盘后
export function addLoginCount(data) {
return request({
url: 'admin/log/admin/log/addLoginCount',
url: 'admin/log/addLoginCount',
method:'post',
data
})


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

@@ -384,10 +384,18 @@ export default {
localStorage.setItem("agentId", '');
localStorage.setItem("topName", item.propertyName);
localStorage.setItem("houseId", item.id);
this.addLoginCount(item.id)
}
this.$router.push({ path: "/wel" });
localStorage.setItem('allClose',true)
},
addLoginCount(houseId){
this.$api.api.addLoginCount({
houseId
}).then(res=>{
console.log(res);
})
},
goback() {
this.$router.back();
localStorage.setItem('allClose',false)


+ 9
- 0
src/page/check/index.vue View File

@@ -173,6 +173,13 @@ export default {
this.zkhousePage();
});
},
addLoginCount(houseId){
this.$api.api.addLoginCount({
houseId
}).then(res=>{
console.log(res);
})
},
zkhousePage() {
let obj = {
current: 1,
@@ -200,6 +207,7 @@ export default {
localStorage.setItem("orgCode", res.data.records[0].orgCode);
localStorage.setItem("agentId", "");
localStorage.setItem("houseId", res.data.records[0].id);
this.addLoginCount(res.data.records[0].id)
}
});
}
@@ -229,6 +237,7 @@ export default {
localStorage.setItem("orgCode", res.data.records[0].orgCode);
localStorage.setItem("houseId", res.data.records[0].id);
localStorage.setItem("agentId", "");
this.addLoginCount(res.data.records[0].id)
}
});
}


+ 9
- 0
src/page/login/userlogin.vue View File

@@ -266,6 +266,7 @@ export default {
localStorage.setItem("orgCode", res.data.records[0].orgCode);
localStorage.setItem("agentId", "");
localStorage.setItem("houseId", res.data.records[0].id);
this.addLoginCount(res.data.records[0].id)
}
});
}
@@ -295,10 +296,18 @@ export default {
localStorage.setItem("orgCode", res.data.records[0].orgCode);
localStorage.setItem("houseId", res.data.records[0].id);
localStorage.setItem("agentId", "");
this.addLoginCount(res.data.records[0].id)
}
});
}
},
addLoginCount(houseId){
this.$api.api.addLoginCount({
houseId
}).then(res=>{
console.log(res);
})
},
},
};
</script>


Loading…
Cancel
Save