Commit f1631122 authored by xd's avatar xd

专柜维护粉丝获取修改

parent 9aaf5f3d
......@@ -47,12 +47,12 @@ export default {
}
},
mounted() {
this.userId = sessionStorage.getItem('userId')
this.getDirector(this.userId)
this.userId = sessionStorage.getItem('userId')
this.oyStallCode = sessionStorage.getItem('oyStallCode')
console.log(sessionStorage.getItem('oyStallCode'),'专柜code1')
this.getAgentAuth()
this.getDetail()
this.getDirector(this.userId)
},
methods: {
getDetail() {
......@@ -85,6 +85,15 @@ export default {
this.$router.push("counterHome")
}
},
getDirector(userId) {
getDirector({userId}).then(res => {
if(res.data == true) {
this.flag = 1
}else {
this.flag = 2
}
})
},
handlePushInfo() {
if(this.info == 1) {
this.$router.push('pushStoreInfo')
......@@ -104,16 +113,8 @@ export default {
})
}
}
},
getDirector(userId) {
getDirector({userId}).then(res => {
if(res.data == true) {
this.flag = 1
}else {
this.flag = 2
}
})
}
}
</script>
......
......@@ -226,15 +226,12 @@ export default {
}
if(sessionStorage.getItem('allFans')) {
this.test.barInfo.fans = sessionStorage.getItem('allFans')
console.log(sessionStorage.getItem('allFans'),'已有全部粉丝')
}
if(sessionStorage.getItem('newFans')) {
this.test.barInfo.newFans = sessionStorage.getItem('allFans')
console.log(sessionStorage.getItem('newFans'),'已有新增粉丝')
this.test.barInfo.newFans = sessionStorage.getItem('newFans')
}
if(sessionStorage.getItem('allNewFans')) {
this.test.barInfo.allNewFans = sessionStorage.getItem('allNewFans')
console.log(sessionStorage.getItem('allNewFans'),'已有店铺新增粉丝')
}
}else {
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