Authored by htoo

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

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