Commit 89381950 by 李嘉林

扫导购码调绑定接口

parent 35a69906
...@@ -92,6 +92,9 @@ console.log(process.env,'-----------------config------') ...@@ -92,6 +92,9 @@ console.log(process.env,'-----------------config------')
uploadFile(data) { uploadFile(data) {
return requestPOST(`${process.env.OLSHOP_URL}/common/uploadFile`,data) return requestPOST(`${process.env.OLSHOP_URL}/common/uploadFile`,data)
}, },
allocation(data) {
return requestPOST(`${process.env.OLSHOP_URL}/user/allocation`,data)
},
} }
\ No newline at end of file
...@@ -457,6 +457,13 @@ export default { ...@@ -457,6 +457,13 @@ export default {
// 判断是否为导购分享进入 // 判断是否为导购分享进入
if (paramsObj.setGuideEmployeeId) { if (paramsObj.setGuideEmployeeId) {
wx.setStorageSync(this.$store.state.mixid+'setGuideEmployeeId', paramsObj.setGuideEmployeeId); wx.setStorageSync(this.$store.state.mixid+'setGuideEmployeeId', paramsObj.setGuideEmployeeId);
// 有导购参数调接口绑关系
console.log('setGuideEmployeeId', paramsObj.setGuideEmployeeId)
if (wx.getStorageSync("sessionid")) {
indexApi.allocation({
employeeId: paramsObj.setGuideEmployeeId,
})
}
} }
if (paramsObj.QRCodeType) { if (paramsObj.QRCodeType) {
wx.setStorageSync(this.$store.state.mixid+'guide_QRCodeType', paramsObj.QRCodeType); wx.setStorageSync(this.$store.state.mixid+'guide_QRCodeType', paramsObj.QRCodeType);
......
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