1
This commit is contained in:
@@ -86,8 +86,30 @@
|
||||
<view class="btns flexbox" style="margin-top:10rpx;">
|
||||
<span class="left" style="color: #C0C4CC;">{{formatTimeDifferenceFromT(item.createTime)}}</span>
|
||||
<span class="condelt" @click="deleteCont(item)" v-if="item.deletUse">删除</span>
|
||||
<!-- <span class="conhuif" @click="pinglun(item)">回复</span> -->
|
||||
</view>
|
||||
|
||||
<!-- <view class="pl-son" v-if="item.comments.length > 0">
|
||||
<view class="pl-son-item" v-for="(item1,index) in item.comments" :key="index">
|
||||
<view class="pl-son-item-content">
|
||||
<text class="pl-son-atob">
|
||||
<text v-if="item1.user.nickname!=null">{{item1.user.nickname}}</text>
|
||||
<text v-if="item1.user.nickname==null">匿名用户</text>
|
||||
<text style="margin: 0 10rpx;">回复</text>
|
||||
<text v-if="item.user.nickname!=null">{{item.user.nickname}}</text>
|
||||
<text v-if="item.user.nickname==null">匿名用户</text>:
|
||||
</text>
|
||||
<text v-html="item1.content"></text>
|
||||
</view>
|
||||
<view class="btns flexbox" style="margin-top:10rpx;">
|
||||
<span class="left"
|
||||
style="color: #C0C4CC;">{{formatTimeDifferenceFromT(item1.createTime)}}</span>
|
||||
<span class="condelt" @click="deleteCont(item)" v-if="item.deletUse">删除</span>
|
||||
<span class="conhuif" @click="pinglun(item)">回复</span>
|
||||
</view>
|
||||
<view style="border-bottom:2rpx solid #e9e9e9;height:20rpx;"
|
||||
v-if="index<item.comments.length-1"></view>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- </view> -->
|
||||
</view>
|
||||
</view>
|
||||
@@ -336,6 +358,7 @@
|
||||
|
||||
// this.isBuy = res.book.isBuy
|
||||
// this.freeChapterCount = res.book.freeChapterCount
|
||||
|
||||
} else {
|
||||
console.log(res.msg)
|
||||
}
|
||||
@@ -515,35 +538,25 @@
|
||||
this.Pform.puserId = ''
|
||||
// this.pinglunId = null
|
||||
|
||||
// 把回复的评论拼进this.plList回复列表中
|
||||
let comment = res.comment
|
||||
|
||||
// comment.content = this.getHtmlComment(comment.content)
|
||||
// console.log('this.userInfo', this.userInfo)
|
||||
// comment.user = this.userInfo
|
||||
// comment.comments = []
|
||||
// this.plList.unshift(comment)
|
||||
|
||||
this.plList = []
|
||||
this.pPage = 1
|
||||
this.getCommPL()
|
||||
|
||||
|
||||
}).catch(e => {
|
||||
console.log(e, 'e')
|
||||
});
|
||||
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请先输入您的评价内容 !',
|
||||
title: '请先输入您的评价内容!',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
// 删除评论
|
||||
deleteCont(item) {
|
||||
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定要删除评论吗?',
|
||||
@@ -560,7 +573,6 @@
|
||||
title: '删除成功',
|
||||
icon: 'success'
|
||||
})
|
||||
|
||||
_this.plList = []
|
||||
_this.pPage = 1
|
||||
_this.getCommPL()
|
||||
@@ -571,10 +583,8 @@
|
||||
}
|
||||
}.bind(this)
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
|
||||
closePingjia() {
|
||||
this.pingjiaShow = false
|
||||
this.Pform.comment = ''
|
||||
@@ -819,9 +829,32 @@
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
|
||||
.condelt {
|
||||
color: #fd6004;
|
||||
color: #fd6004;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.conhuif {
|
||||
|
||||
color: #4185c1;
|
||||
}
|
||||
|
||||
.pl-son {
|
||||
margin: 14rpx 0 14rpx 60rpx;
|
||||
padding: 0 14rpx 14rpx 14rpx;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 10rpx;
|
||||
|
||||
.pl-son-item {
|
||||
font-size: 26rpx;
|
||||
padding-top: 28rpx;
|
||||
|
||||
.pl-son-item-content {}
|
||||
|
||||
.pl-son-atob {
|
||||
color: #a1a1a1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.plusername {
|
||||
|
||||
Reference in New Issue
Block a user