Commit f137177a by 李嘉林

分销员新增业绩字段

parent 66a0a25a
...@@ -247,6 +247,10 @@ export default { ...@@ -247,6 +247,10 @@ export default {
offlineShopName: getQueryVariable(this.link, "offlineShopName"), offlineShopName: getQueryVariable(this.link, "offlineShopName"),
}); });
} }
this.saveSpokesmanShareGoodsLog({
link: this.link,
type: 2
});
this.page = ""; this.page = "";
this.params = ""; this.params = "";
} else if (options.from && options.from == "h5login") { } else if (options.from && options.from == "h5login") {
...@@ -388,7 +392,10 @@ export default { ...@@ -388,7 +392,10 @@ export default {
} }
this.params += params this.params += params
log.info("存入商品分享日志", this.page + this.params); log.info("存入商品分享日志", this.page + this.params);
this.saveSpokesmanShareGoodsLog(this.page + this.params); this.saveSpokesmanShareGoodsLog({
link: this.page + this.params,
type: 1
});
} }
}).catch((err)=>{ }).catch((err)=>{
this.withoutScene = true; this.withoutScene = true;
...@@ -635,32 +642,35 @@ export default { ...@@ -635,32 +642,35 @@ export default {
url = beforeUrl + nextUrl; url = beforeUrl + nextUrl;
return url; return url;
}, },
saveSpokesmanShareGoodsLog(link) { saveSpokesmanShareGoodsLog({ link, type }) {
let query = {}; let query = {};
if(getQueryVariable(link, "spokesmanGroupId")) { if (getQueryVariable(link, "spokesmanGroupId")) {
query.spokesmanGroupId = getQueryVariable(link, "spokesmanGroupId") query.spokesmanGroupId = getQueryVariable(link, "spokesmanGroupId")
} }
if(getQueryVariable(link, "spokesmanRelId")) { if (getQueryVariable(link, "spokesmanRelId")) {
query.spokesmanRelId = getQueryVariable(link, "spokesmanRelId") query.spokesmanRelId = getQueryVariable(link, "spokesmanRelId")
} }
if(getQueryVariable(link, "userId")) { if (getQueryVariable(link, "userId")) {
query.userId = getQueryVariable(link, "userId") query.userId = getQueryVariable(link, "userId")
} }
if(getQueryVariable(link, "productId")) { if (getQueryVariable(link, "productId")) {
query.productId = getQueryVariable(link, "productId") query.productId = getQueryVariable(link, "productId")
} }
if(getQueryVariable(link, "terminalProductId")) { if (getQueryVariable(link, "terminalProductId")) {
query.terminalProductId = getQueryVariable(link, "terminalProductId") query.terminalProductId = getQueryVariable(link, "terminalProductId")
} }
if(getQueryVariable(link, "mixid")) { if (getQueryVariable(link, "mixid")) {
query.mixid = getQueryVariable(link, "mixid") query.mixid = getQueryVariable(link, "mixid")
} }
if(getQueryVariable(link, "spokesmanShopId")) { if (getQueryVariable(link, "spokesmanShopId")) {
query.spokesmanShopId = getQueryVariable(link, "spokesmanShopId") query.spokesmanShopId = getQueryVariable(link, "spokesmanShopId")
} }
if(getQueryVariable(link, "timeStamp")) { if (getQueryVariable(link, "timeStamp")) {
query.timeStamp = getQueryVariable(link, "timeStamp") query.timeStamp = getQueryVariable(link, "timeStamp")
} }
if (type) {
query.sharingMethods = type;
}
console.log("saveSpokesmanShareGoodsLog", query) console.log("saveSpokesmanShareGoodsLog", query)
goods.saveSpokesmanShareGoodsLog(query); goods.saveSpokesmanShareGoodsLog(query);
} }
......
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