Commit b844054f by 程默

fix

parent d8563970
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
this.spokesmanRelId = getQueryVariable(this.link, "spokesmanRelId") || ""; this.spokesmanRelId = getQueryVariable(this.link, "spokesmanRelId") || "";
this.userId = getQueryVariable(this.link, "userId") || ""; this.userId = getQueryVariable(this.link, "userId") || "";
if (this.spokesmanGroupId != "") { if (this.spokesmanGroupId != "") {
//分销员分享 //上级分销员信息
this.$store.commit("setSpokesman", { this.$store.commit("setSpokesman", {
spokesmanGroupId: this.spokesmanGroupId, spokesmanGroupId: this.spokesmanGroupId,
spokesmanShopId: this.spokesmanShopId, spokesmanShopId: this.spokesmanShopId,
...@@ -264,8 +264,8 @@ export default { ...@@ -264,8 +264,8 @@ export default {
mpvue.navigateTo({ url }); mpvue.navigateTo({ url });
} }
}, },
//右上角分享时触发
getMessage(res) { getMessage(res) {
console.log(res)
let len = res.target.data.length - 1; let len = res.target.data.length - 1;
console.log(res, "h5消息", res.target.data[len]); console.log(res, "h5消息", res.target.data[len]);
this.shareShopName = res.target.data[len].shareShopName || ""; this.shareShopName = res.target.data[len].shareShopName || "";
...@@ -312,19 +312,16 @@ export default { ...@@ -312,19 +312,16 @@ 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) //有订单为送礼订单分享--分销员信息由h5添加
console.log("+++++", this.shareOrderSn); // if (this.shareOrderSn != "") {
//有订单为送礼订单分享 // url = `${this.baseUrl}/activty/receivingGift?mixid=${
if (this.shareOrderSn != "") { // this.shopId
url = `${this.baseUrl}/activty/receivingGift?mixid=${ // }&orderSn=${this.shareOrderSn}&shareTid=${this.shareTid}`;
this.shopId // }
}&orderSn=${this.shareOrderSn}&shareTid=${this.shareTid}`;
}
//分销员推广页面 默认分享分销员中心页面 //分销员推广页面 默认分享分销员中心页面
if (url.indexOf("/personalCenter/spokesmanCenter/mine/popularize") > -1) { if (url.indexOf("/personalCenter/spokesmanCenter/mine/popularize") > -1) {
url = `${this.baseUrl}/personalCenter/spokesmanCenter?mixid=${ url = `${this.baseUrl}/personalCenter/spokesmanCenter?mixid=${
...@@ -332,12 +329,12 @@ export default { ...@@ -332,12 +329,12 @@ export default {
}`; }`;
} }
console.log('url' + url) console.log('url---------------' + url)
//增加分销员信息 //增加分销员信息
if(this.hasInvitationStatus == 1){ if(this.hasInvitationStatus == 1 && url.indexOf('spokesmanGroupId')==-1){
this.shareUrl = url this.shareUrl = url+ this.newHref
}else{ }else{
this.shareUrl = url + this.newHref; 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