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) { export function addLoginCount(data) {
return request({ return request({
url: 'admin/log/admin/log/addLoginCount',
url: 'admin/log/addLoginCount',
method:'post', method:'post',
data data
}) })


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

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


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

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


Loading…
Cancel
Save