Commit ec75081b by 李嘉林

参数优化

parent f137177a
......@@ -644,35 +644,43 @@ export default {
},
saveSpokesmanShareGoodsLog({ link, type }) {
let query = {};
if (getQueryVariable(link, "spokesmanGroupId")) {
query.spokesmanGroupId = getQueryVariable(link, "spokesmanGroupId")
if (this.getQueryVariableNotNull(link, "spokesmanGroupId")) {
query.spokesmanGroupId = this.getQueryVariableNotNull(link, "spokesmanGroupId");
}
if (getQueryVariable(link, "spokesmanRelId")) {
query.spokesmanRelId = getQueryVariable(link, "spokesmanRelId")
if (this.getQueryVariableNotNull(link, "spokesmanRelId")) {
query.spokesmanRelId = this.getQueryVariableNotNull(link, "spokesmanRelId");
}
if (getQueryVariable(link, "userId")) {
query.userId = getQueryVariable(link, "userId")
if (this.getQueryVariableNotNull(link, "userId")) {
query.userId = this.getQueryVariableNotNull(link, "userId");
}
if (getQueryVariable(link, "productId")) {
query.productId = getQueryVariable(link, "productId")
if (this.getQueryVariableNotNull(link, "productId")) {
query.productId = this.getQueryVariableNotNull(link, "productId");
}
if (getQueryVariable(link, "terminalProductId")) {
query.terminalProductId = getQueryVariable(link, "terminalProductId")
if (this.getQueryVariableNotNull(link, "terminalProductId")) {
query.terminalProductId = this.getQueryVariableNotNull(link, "terminalProductId");
}
if (getQueryVariable(link, "mixid")) {
query.mixid = getQueryVariable(link, "mixid")
if (this.getQueryVariableNotNull(link, "mixid")) {
query.mixid = this.getQueryVariableNotNull(link, "mixid");
}
if (getQueryVariable(link, "spokesmanShopId")) {
query.spokesmanShopId = getQueryVariable(link, "spokesmanShopId")
if (this.getQueryVariableNotNull(link, "spokesmanShopId")) {
query.spokesmanShopId = this.getQueryVariableNotNull(link, "spokesmanShopId");
}
if (getQueryVariable(link, "timeStamp")) {
query.timeStamp = getQueryVariable(link, "timeStamp")
if (this.getQueryVariableNotNull(link, "timeStamp")) {
query.timeStamp = this.getQueryVariableNotNull(link, "timeStamp");
}
if (type) {
query.sharingMethods = type;
}
console.log("saveSpokesmanShareGoodsLog", query)
goods.saveSpokesmanShareGoodsLog(query);
},
getQueryVariableNotNull(link, key) {
let val = getQueryVariable(link, key);
if (val && val != 'undefined') {
return val;
}
return '';
}
},
onUnload() {
......
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