Fix:4810 【商城小程序】团购详情页显示了全部评价内容,改为显示最新一条评价内容即可

This commit is contained in:
LinCyJang
2026-01-14 22:29:25 +08:00
parent 7da3e2ae1a
commit e582b521fe
+7 -7
View File
@@ -162,13 +162,7 @@
<text class="iconfont icon-jiantou review-arrow"></text>
</view>
<view v-if="reviewList.length">
<UserEvaluation :reply="reviewList" />
<view class="review-load-more" v-if="!reviewLoadEnd" @click="fetchReviewList()">
{{ reviewLoading ? '加载中...' : '查看更多评价' }}
</view>
<view class="review-load-more review-no-more" v-else>
没有更多评价了
</view>
<UserEvaluation :reply="latestReviewList" />
</view>
<view v-else class="review-empty">
暂无评价
@@ -271,6 +265,12 @@ export default {
enableAgreement: false
}
},
computed: {
latestReviewList() {
if (!this.reviewList || !this.reviewList.length) return []
return [this.reviewList[0]]
}
},
onShow() {
getGiftCardSendBackground().then(res => {
if (res.status === 200) {