Authored by htoo

fix(share): 分享标题和描述调整

@@ -17,6 +17,23 @@ @@ -17,6 +17,23 @@
17 :authorUid="authorUid" 17 :authorUid="authorUid"
18 :authorName="authorName"> 18 :authorName="authorName">
19 </CommentList> 19 </CommentList>
  20 +
  21 +<!-- <div class="footer-comment">-->
  22 +<!-- <CommentPlaceholder-->
  23 +<!-- ref="commentInput"-->
  24 +<!-- :share="share"-->
  25 +<!-- class="comment-input hover-opacity"-->
  26 +<!-- :dest-id="articleInfo.articleId"-->
  27 +<!-- :add-type="0"-->
  28 +<!-- :article-id="articleInfo.articleId"-->
  29 +<!-- :pos-id="posId"-->
  30 +<!-- :column-type="1001"-->
  31 +<!-- :autoUpdate="false"-->
  32 +<!-- :user="articleInfo.authorName"-->
  33 +<!-- @on-comment="onCommentInput">-->
  34 +<!-- 添加评论...-->
  35 +<!-- </CommentPlaceholder>-->
  36 +<!-- </div>-->
20 </Layout> 37 </Layout>
21 </template> 38 </template>
22 39
@@ -24,14 +24,14 @@ @@ -24,14 +24,14 @@
24 </div> 24 </div>
25 </div> 25 </div>
26 </div> 26 </div>
27 - <div v-if="collage && isCollage" class="product-collage" @click="onGroupClick">  
28 - <div class="collage-tag">  
29 - 拼团价:<span class="collage-price">¥{{product.collage_price}}</span>  
30 - </div>  
31 - <div class="collage-op">  
32 - 去拼团<i class="iconfont icon-right"></i>  
33 - </div>  
34 - </div> 27 +<!-- <div v-if="collage && isCollage" class="product-collage" @click="onGroupClick">-->
  28 +<!-- <div class="collage-tag">-->
  29 +<!-- 拼团价:<span class="collage-price">¥{{product.collage_price}}</span>-->
  30 +<!-- </div>-->
  31 +<!-- <div class="collage-op">-->
  32 +<!-- 去拼团<i class="iconfont icon-right"></i>-->
  33 +<!-- </div>-->
  34 +<!-- </div>-->
35 </div> 35 </div>
36 </template> 36 </template>
37 37
@@ -105,12 +105,14 @@ export default { @@ -105,12 +105,14 @@ export default {
105 105
106 if (+this.product.productType === 2) { 106 if (+this.product.productType === 2) {
107 className = 'ufo-tag'; 107 className = 'ufo-tag';
  108 + } else if (this.isCollage) {
  109 + className = 'collage-tag';
108 } 110 }
109 111
110 return className; 112 return className;
111 }, 113 },
112 salesPrice() { 114 salesPrice() {
113 - return this.product.salesPrice; 115 + return this.isCollage ? this.product.collage_price : this.product.salesPrice;
114 } 116 }
115 }, 117 },
116 methods: { 118 methods: {
@@ -101,7 +101,7 @@ const getDetailShareData = (article, app_version = '6.9.11') => { @@ -101,7 +101,7 @@ const getDetailShareData = (article, app_version = '6.9.11') => {
101 authorName = filterEmoji(article.authorName || ''); 101 authorName = filterEmoji(article.authorName || '');
102 102
103 return { 103 return {
104 - title: `@${authorName} 在有货社区上发了一篇内容,快点开看看!`, 104 + title: `${desc}`,
105 imgUrl: handleProtocol( 105 imgUrl: handleProtocol(
106 get(shareImage.split('?'), '[0]') || DEFAULT_SHARE_IMAGE, 106 get(shareImage.split('?'), '[0]') || DEFAULT_SHARE_IMAGE,
107 ), 107 ),
@@ -110,7 +110,7 @@ const getDetailShareData = (article, app_version = '6.9.11') => { @@ -110,7 +110,7 @@ const getDetailShareData = (article, app_version = '6.9.11') => {
110 article.articleId 110 article.articleId
111 }?share=true&t=${Date.now()}`, 111 }?share=true&t=${Date.now()}`,
112 ), 112 ),
113 - desc: `${desc}`, 113 + desc: `@${authorName} 在有货社区上发了一篇内容,快点开看看!`,
114 hideType, 114 hideType,
115 shareType: 'grassDetail', 115 shareType: 'grassDetail',
116 userName: authorName, 116 userName: authorName,