Commit fe44764e by 李嘉林

首页绑定导购

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