Commit b844054f by 程默

fix

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