Commit f137177a by 李嘉林

分销员新增业绩字段

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