diff --git a/src/api/modules/api.js b/src/api/modules/api.js index f7e70db..86cb6bd 100644 --- a/src/api/modules/api.js +++ b/src/api/modules/api.js @@ -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 }) diff --git a/src/page/check/chose.vue b/src/page/check/chose.vue index 6022d8f..dcebe9f 100644 --- a/src/page/check/chose.vue +++ b/src/page/check/chose.vue @@ -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) diff --git a/src/page/check/index.vue b/src/page/check/index.vue index bff3327..4495d30 100644 --- a/src/page/check/index.vue +++ b/src/page/check/index.vue @@ -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) } }); } diff --git a/src/page/login/userlogin.vue b/src/page/login/userlogin.vue index 293ebe9..a53c35b 100644 --- a/src/page/login/userlogin.vue +++ b/src/page/login/userlogin.vue @@ -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); + }) + }, }, };