Commit 1a127026 by 程智春

扫码

parent 97a29301
...@@ -121,13 +121,13 @@ export default { ...@@ -121,13 +121,13 @@ export default {
this.page = `/goods/${querys[1]}`; this.page = `/goods/${querys[1]}`;
if(querys.length > 3){ if(querys.length > 3){
if(querys[5]){ if(querys[5]){
this.params += `&spokesmanGroupId=${querys[2]}&spokesmanShopId=${querys[3]}&spokesmanRelId=${querys[4]}$userId=${querys[5]}` this.params += `&spokesmanGroupId=${querys[2]}&spokesmanShopId=${querys[3]}&spokesmanRelId=${querys[4]}&userId=${querys[5]}`
}else{ }else{
this.params += `&spokesmanGroupId=${querys[2]}&spokesmanShopId=${querys[3]}&spokesmanRelId=${querys[4]}` this.params += `&spokesmanGroupId=${querys[2]}&spokesmanShopId=${querys[3]}&spokesmanRelId=${querys[4]}`
} }
}else if(querys.length == 3){ }else if(querys.length == 3){
this.params += `&userId=${querys[1]}` this.params += `&userId=${querys[2]}`
} }
...@@ -137,21 +137,22 @@ export default { ...@@ -137,21 +137,22 @@ export default {
} else if (querys[0] == "spokesman") { } else if (querys[0] == "spokesman") {
//分销员 小程序码 //分销员 小程序码
this.page = `/personalCenter/spokesmanCenter`; this.page = `/personalCenter/spokesmanCenter`;
if(querys.length > 4){ if(querys.length > 2){
this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${ if(querys[4]){
querys[2] this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${querys[2]}&spokesmanRelId=${querys[3]}&userId=${querys[4]}`
}&spokesmanRelId=${querys[3]}&usedId=${querys[4]}&=${querys[5]}`;
}else{ }else{
this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${ this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${querys[2]}&spokesmanRelId=${querys[3]}`
querys[2] }
}&spokesmanRelId=${querys[3]}&usedId=${querys[4]}`;
}else if(querys.length == 2){
this.params += `&userId=${querys[1]}`
} }
}else if(querys[0] == "home"){ }else if(querys[0] == "home"){
this.page = `/`; this.page = `/`;
if(querys.length > 2){ if(querys.length > 2){
if(querys[4]){ if(querys[4]){
this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${querys[2]}&spokesmanRelId=${querys[3]}$userId=${querys[4]}` this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${querys[2]}&spokesmanRelId=${querys[3]}&userId=${querys[4]}`
}else{ }else{
this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${querys[2]}&spokesmanRelId=${querys[3]}` this.params += `&spokesmanGroupId=${querys[1]}&spokesmanShopId=${querys[2]}&spokesmanRelId=${querys[3]}`
} }
...@@ -289,7 +290,9 @@ export default { ...@@ -289,7 +290,9 @@ export default {
console.log("卸载----------------", this.options); console.log("卸载----------------", this.options);
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
console.log('=======')
console.log(res) console.log(res)
console.log('=======')
console.log( console.log(
this.shareShopName, this.shareShopName,
"share", "share",
...@@ -298,6 +301,7 @@ export default { ...@@ -298,6 +301,7 @@ export default {
this.shareLogoUrl this.shareLogoUrl
); );
let url = '' let url = ''
console.log(this.newWindowHref + 'this.newWindowHref')
if(this.newWindowHref){ if(this.newWindowHref){
url = this.newWindowHref; url = this.newWindowHref;
}else{ }else{
...@@ -308,10 +312,12 @@ export default { ...@@ -308,10 +312,12 @@ export default {
if (url.indexOf("sessionid") > -1) { if (url.indexOf("sessionid") > -1) {
url = url.split("?")[0] + "?mixid=" + this.shopId; url = url.split("?")[0] + "?mixid=" + this.shopId;
} }
console.log('url' + url)
//分享页面白名单 白名单以外的分享页面为首页 //分享页面白名单 白名单以外的分享页面为首页
if (!this.checkPageUrl(url)) { if (!this.checkPageUrl(url)) {
url = this.baseUrl + "?mixid=" + this.shopId; url = this.baseUrl + "?mixid=" + this.shopId;
} }
console.log('url' + url)
console.log("+++++", this.shareOrderSn); console.log("+++++", this.shareOrderSn);
//有订单为送礼订单分享 //有订单为送礼订单分享
if (this.shareOrderSn != "") { if (this.shareOrderSn != "") {
...@@ -325,6 +331,8 @@ export default { ...@@ -325,6 +331,8 @@ export default {
this.shopId this.shopId
}`; }`;
} }
console.log('url' + url)
//增加分销员信息 //增加分销员信息
if(this.hasInvitationStatus == 1){ if(this.hasInvitationStatus == 1){
this.shareUrl = url this.shareUrl = url
......
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