Commit 6167bf70 authored by 吴春's avatar 吴春

1

parent 8e16d898
...@@ -371,7 +371,7 @@ ...@@ -371,7 +371,7 @@
</view> </view>
<view class="comment" v-if="comments.length > 0"> <view class="comment" v-if="comments.length > 0">
<view class="chead"> <view class="chead">
<u-section :bold="false" :sub-color="secondary" :show-split="false" :title="`商品评价(${comments.length})`" sub-title="查看更多" <u-section :bold="false" :sub-color="secondary" :show-split="false" :title="`商品评价(${commentsCount})`" sub-title="查看更多"
@click="clickCommentHandler" font-size="24"></u-section> @click="clickCommentHandler" font-size="24"></u-section>
</view> </view>
<view class="content"> <view class="content">
...@@ -499,6 +499,7 @@ ...@@ -499,6 +499,7 @@
sku: "", sku: "",
skuimage: [], skuimage: [],
comments: [], comments: [],
commentsCount:0,
secondary: "", secondary: "",
detailContent: "", detailContent: "",
recommend: [], recommend: [],
...@@ -878,6 +879,7 @@ ...@@ -878,6 +879,7 @@
}, },
(res) => { (res) => {
this.comments = res.data.pageData; this.comments = res.data.pageData;
this.commentsCount=res.data.count;
console.log("1111", this.comments) console.log("1111", this.comments)
}, },
......
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