听书评论
This commit is contained in:
@@ -79,7 +79,7 @@
|
|||||||
<view class="pl-item" v-for="item in plList" :key="item.id">
|
<view class="pl-item" v-for="item in plList" :key="item.id">
|
||||||
<view class="plusername">
|
<view class="plusername">
|
||||||
<image :src="item.user.avatar"></image>
|
<image :src="item.user.avatar"></image>
|
||||||
<span v-if="item.user.nickname!=null">{{item.user.nickName}}</span>
|
<span v-if="item.user.nickname!=null">{{item.user.nickname}}</span>
|
||||||
<span v-if="item.user.nickname==null">匿名用户</span>
|
<span v-if="item.user.nickname==null">匿名用户</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="content" v-html="item.content"></view>
|
<view class="content" v-html="item.content"></view>
|
||||||
@@ -411,7 +411,6 @@
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.plList = []
|
|
||||||
console.log(res, '书评评论')
|
console.log(res, '书评评论')
|
||||||
// this.plList = this.plList.concat(res.page.list)
|
// this.plList = this.plList.concat(res.page.list)
|
||||||
let plList1 = res.page.records
|
let plList1 = res.page.records
|
||||||
@@ -525,8 +524,11 @@
|
|||||||
// comment.comments = []
|
// comment.comments = []
|
||||||
// this.plList.unshift(comment)
|
// this.plList.unshift(comment)
|
||||||
|
|
||||||
|
this.plList = []
|
||||||
|
this.pPage = 1
|
||||||
this.getCommPL()
|
this.getCommPL()
|
||||||
|
|
||||||
|
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.log(e, 'e')
|
console.log(e, 'e')
|
||||||
});
|
});
|
||||||
@@ -558,6 +560,9 @@
|
|||||||
title: '删除成功',
|
title: '删除成功',
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
_this.plList = []
|
||||||
|
_this.pPage = 1
|
||||||
_this.getCommPL()
|
_this.getCommPL()
|
||||||
}
|
}
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
@@ -822,7 +827,8 @@
|
|||||||
.plusername {
|
.plusername {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #a1a1a1;
|
color: #a1a1a1;
|
||||||
image{
|
|
||||||
|
image {
|
||||||
width: 40rpx;
|
width: 40rpx;
|
||||||
height: 40rpx;
|
height: 40rpx;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
|
|||||||
Reference in New Issue
Block a user