Authored by 郭成尧

分享

@@ -70,10 +70,11 @@ @@ -70,10 +70,11 @@
70 this.shopInfo.showBrandInfo = true; 70 this.shopInfo.showBrandInfo = true;
71 this.shareData = { 71 this.shareData = {
72 title: result.brandName, 72 title: result.brandName,
73 - link: '/brand-share?domain=' + this.domain, 73 + des: result.brandIntro,
  74 + url: '/product/brand-share?domain=' + this.domain,
74 img: result.brandBg, 75 img: result.brandBg,
75 - shopId: result.shopId,  
76 - isFav: result.isFav 76 + shopId: result.shopId, // 不是分享的参数,收藏店铺使用
  77 + isFav: result.isFav // 不是分享的参数,收藏店铺使用
77 }; 78 };
78 } else { 79 } else {
79 this.shopInfo.showBrandInfo = false; 80 this.shopInfo.showBrandInfo = false;
@@ -56,6 +56,10 @@ @@ -56,6 +56,10 @@
56 }, 56 },
57 methods: { 57 methods: {
58 goShare() { 58 goShare() {
  59 +
  60 + // 删除两个多余的参数,两个参数是收藏时使用的
  61 + delete this.shareData.shopId;
  62 + delete this.shareData.isFav;
59 yoho.goShare(this.shareData, function() {}, function() {}); 63 yoho.goShare(this.shareData, function() {}, function() {});
60 }, 64 },
61 goBack() { 65 goBack() {