Commit 1a127026 by 程智春

扫码

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