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