|
|
|
@ -197,23 +197,26 @@
|
|
|
|
<text @tap="getProdCommPage" data-evaluate="3" :class="evaluate==3?'selected':''">有图({{prodCommData.picNumber}})</text>
|
|
|
|
<text @tap="getProdCommPage" data-evaluate="3" :class="evaluate==3?'selected':''">有图({{prodCommData.picNumber}})</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="cmt-items">
|
|
|
|
<view class="cmt-items">
|
|
|
|
<view v-for="(item, index) in prodCommPage.records" :key="index" class="cmt-item">
|
|
|
|
<block v-if="prodCommPage.records.length">
|
|
|
|
<view class="cmt-user">
|
|
|
|
<view v-for="(item, index) in prodCommPage.records" :key="index" class="cmt-item">
|
|
|
|
<text class="date">{{item.recTime}}</text>
|
|
|
|
<view class="cmt-user">
|
|
|
|
<view class="cmt-user-info">
|
|
|
|
<text class="date">{{item.recTime}}</text>
|
|
|
|
<image class="user-img" :src="item.pic"></image>
|
|
|
|
<view class="cmt-user-info">
|
|
|
|
<view class="nickname">{{item.nickName}}</view>
|
|
|
|
<image class="user-img" :src="item.pic"></image>
|
|
|
|
<!-- <van-rate readonly :value="item.score" @change="onChange" color="#f44"></van-rate> -->
|
|
|
|
<view class="nickname">{{item.nickName}}</view>
|
|
|
|
|
|
|
|
<!-- <van-rate readonly :value="item.score" @change="onChange" color="#f44"></van-rate> -->
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="cmt-cnt">{{item.content}}</view>
|
|
|
|
|
|
|
|
<scroll-view class="cmt-attr" scroll-x="true" v-if="item.pics.length">
|
|
|
|
|
|
|
|
<image v-for="(commPic, index2) in item.pics" :key="index2" :src="commPic"></image>
|
|
|
|
|
|
|
|
</scroll-view>
|
|
|
|
|
|
|
|
<view class="cmt-reply" v-if="item.replyContent">
|
|
|
|
|
|
|
|
<text class="reply-tit">店铺回复:</text> {{item.replyContent}}
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="cmt-cnt">{{item.content}}</view>
|
|
|
|
</block>
|
|
|
|
<scroll-view class="cmt-attr" scroll-x="true" v-if="item.pics.length">
|
|
|
|
<view v-if="!prodCommPage.records.length" class="empty">暂无评价</view>
|
|
|
|
<image v-for="(commPic, index2) in item.pics" :key="index2" :src="commPic"></image>
|
|
|
|
|
|
|
|
</scroll-view>
|
|
|
|
|
|
|
|
<view class="cmt-reply" v-if="item.replyContent">
|
|
|
|
|
|
|
|
<text class="reply-tit">店铺回复:</text> {{item.replyContent}}
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="load-more" v-if="prodCommPage.pages > prodCommPage.current">
|
|
|
|
<view class="load-more" v-if="prodCommPage.pages > prodCommPage.current">
|
|
|
|
<text @tap="getMoreCommPage">点击加载更多</text>
|
|
|
|
<text @tap="getMoreCommPage">点击加载更多</text>
|
|
|
|
@ -438,6 +441,7 @@ export default {
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
prodCommData: res
|
|
|
|
prodCommData: res
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
console.log('评论prodCommData:', this.prodCommData)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|