Commit f1631122 authored by xd's avatar xd

专柜维护粉丝获取修改

parent 9aaf5f3d
...@@ -48,11 +48,11 @@ export default { ...@@ -48,11 +48,11 @@ export default {
}, },
mounted() { mounted() {
this.userId = sessionStorage.getItem('userId') this.userId = sessionStorage.getItem('userId')
this.getDirector(this.userId)
this.oyStallCode = sessionStorage.getItem('oyStallCode') this.oyStallCode = sessionStorage.getItem('oyStallCode')
console.log(sessionStorage.getItem('oyStallCode'),'专柜code1') console.log(sessionStorage.getItem('oyStallCode'),'专柜code1')
this.getAgentAuth() this.getAgentAuth()
this.getDetail() this.getDetail()
this.getDirector(this.userId)
}, },
methods: { methods: {
getDetail() { getDetail() {
...@@ -85,6 +85,15 @@ export default { ...@@ -85,6 +85,15 @@ export default {
this.$router.push("counterHome") this.$router.push("counterHome")
} }
}, },
getDirector(userId) {
getDirector({userId}).then(res => {
if(res.data == true) {
this.flag = 1
}else {
this.flag = 2
}
})
},
handlePushInfo() { handlePushInfo() {
if(this.info == 1) { if(this.info == 1) {
this.$router.push('pushStoreInfo') this.$router.push('pushStoreInfo')
...@@ -104,16 +113,8 @@ export default { ...@@ -104,16 +113,8 @@ export default {
}) })
} }
} }
},
getDirector(userId) {
getDirector({userId}).then(res => {
if(res.data == true) {
this.flag = 1
}else {
this.flag = 2
}
})
} }
} }
</script> </script>
......
...@@ -226,15 +226,12 @@ export default { ...@@ -226,15 +226,12 @@ export default {
} }
if(sessionStorage.getItem('allFans')) { if(sessionStorage.getItem('allFans')) {
this.test.barInfo.fans = sessionStorage.getItem('allFans') this.test.barInfo.fans = sessionStorage.getItem('allFans')
console.log(sessionStorage.getItem('allFans'),'已有全部粉丝')
} }
if(sessionStorage.getItem('newFans')) { if(sessionStorage.getItem('newFans')) {
this.test.barInfo.newFans = sessionStorage.getItem('allFans') this.test.barInfo.newFans = sessionStorage.getItem('newFans')
console.log(sessionStorage.getItem('newFans'),'已有新增粉丝')
} }
if(sessionStorage.getItem('allNewFans')) { if(sessionStorage.getItem('allNewFans')) {
this.test.barInfo.allNewFans = sessionStorage.getItem('allNewFans') this.test.barInfo.allNewFans = sessionStorage.getItem('allNewFans')
console.log(sessionStorage.getItem('allNewFans'),'已有店铺新增粉丝')
} }
}else { }else {
this.zReadyUserId() this.zReadyUserId()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment