|
@@ -48,6 +48,7 @@
|
|
|
<view class=" headr">
|
|
<view class=" headr">
|
|
|
<view class="left">
|
|
<view class="left">
|
|
|
<view class="img">
|
|
<view class="img">
|
|
|
|
|
+
|
|
|
<image :src="item.commentsReply" mode="" v-if="item.commentsReply"></image>
|
|
<image :src="item.commentsReply" mode="" v-if="item.commentsReply"></image>
|
|
|
<image src="/static/avatar_boy.png" mode="" v-else></image>
|
|
<image src="/static/avatar_boy.png" mode="" v-else></image>
|
|
|
</view>
|
|
</view>
|
|
@@ -195,6 +196,7 @@
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
this.appraiseList = this.appraiseList.concat(res.data.result.records)
|
|
this.appraiseList = this.appraiseList.concat(res.data.result.records)
|
|
|
this.mescroll.endSuccess(res.data.result.records.length, res.data.result.total);; // 结束下拉刷新状态
|
|
this.mescroll.endSuccess(res.data.result.records.length, res.data.result.total);; // 结束下拉刷新状态
|
|
|
|
|
+ console.log(this.appraiseList)
|
|
|
}
|
|
}
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
|
this.mescroll.endErr()
|
|
this.mescroll.endErr()
|
|
@@ -208,15 +210,16 @@
|
|
|
this.$http.post('/app/comments/reply',data).then(res =>{
|
|
this.$http.post('/app/comments/reply',data).then(res =>{
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
if(res.data.code == 200){
|
|
if(res.data.code == 200){
|
|
|
|
|
+ item.reply = ''
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
icon:'none',
|
|
icon:'none',
|
|
|
title:'回复成功'
|
|
title:'回复成功'
|
|
|
})
|
|
})
|
|
|
|
|
+ this.appraiseList = []
|
|
|
let page = {
|
|
let page = {
|
|
|
num: 1,
|
|
num: 1,
|
|
|
size: 10
|
|
size: 10
|
|
|
}
|
|
}
|
|
|
- this.appraiseList = []
|
|
|
|
|
this.getcommentList(page)
|
|
this.getcommentList(page)
|
|
|
}
|
|
}
|
|
|
|
|
|