Commit fe44764e by 李嘉林

首页绑定导购

parent 73f5137d
......@@ -89,4 +89,11 @@ export default {
data
);
},
// 商城二维码分配组织或跟进人
ShopCodeDistributionOrg(data) {
return requestPOST(
`${process.env.OLSHOP_URL}/user/allocation`,
data
);
},
};
......@@ -393,6 +393,8 @@ export default {
// this.$mp.page.onPageScroll= (el)=>{
// throttle(this.scrolls(el),100)
// };
// 调绑定导购
this.ShopCodeDistributionOrg();
},
// 滚动节流方法
onPageScroll: tool.throttle(function (el) {
......@@ -1190,8 +1192,17 @@ export default {
}
wx.stopPullDownRefresh();
},
ShopCodeDistributionOrg() {
let setGuideEmployeeId = wx.getStorageSync(this.$store.state.mixid + 'setGuideEmployeeId');
if (setGuideEmployeeId) {
shop.ShopCodeDistributionOrg({
isCover: false,
employeeId: setGuideEmployeeId
});
}
},
},
async onShareAppMessage(res){
log.info(res)
let newHref = '/pages/home/main';
......
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