1
This commit is contained in:
@@ -86,8 +86,30 @@
|
|||||||
<view class="btns flexbox" style="margin-top:10rpx;">
|
<view class="btns flexbox" style="margin-top:10rpx;">
|
||||||
<span class="left" style="color: #C0C4CC;">{{formatTimeDifferenceFromT(item.createTime)}}</span>
|
<span class="left" style="color: #C0C4CC;">{{formatTimeDifferenceFromT(item.createTime)}}</span>
|
||||||
<span class="condelt" @click="deleteCont(item)" v-if="item.deletUse">删除</span>
|
<span class="condelt" @click="deleteCont(item)" v-if="item.deletUse">删除</span>
|
||||||
|
<!-- <span class="conhuif" @click="pinglun(item)">回复</span> -->
|
||||||
</view>
|
</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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -336,6 +358,7 @@
|
|||||||
|
|
||||||
// this.isBuy = res.book.isBuy
|
// this.isBuy = res.book.isBuy
|
||||||
// this.freeChapterCount = res.book.freeChapterCount
|
// this.freeChapterCount = res.book.freeChapterCount
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
console.log(res.msg)
|
console.log(res.msg)
|
||||||
}
|
}
|
||||||
@@ -515,35 +538,25 @@
|
|||||||
this.Pform.puserId = ''
|
this.Pform.puserId = ''
|
||||||
// this.pinglunId = null
|
// 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.plList = []
|
||||||
this.pPage = 1
|
this.pPage = 1
|
||||||
this.getCommPL()
|
this.getCommPL()
|
||||||
|
|
||||||
|
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.log(e, 'e')
|
console.log(e, 'e')
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请先输入您的评价内容 !',
|
title: '请先输入您的评价内容!',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// 删除评论
|
// 删除评论
|
||||||
deleteCont(item) {
|
deleteCont(item) {
|
||||||
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '确定要删除评论吗?',
|
content: '确定要删除评论吗?',
|
||||||
@@ -560,7 +573,6 @@
|
|||||||
title: '删除成功',
|
title: '删除成功',
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
})
|
})
|
||||||
|
|
||||||
_this.plList = []
|
_this.plList = []
|
||||||
_this.pPage = 1
|
_this.pPage = 1
|
||||||
_this.getCommPL()
|
_this.getCommPL()
|
||||||
@@ -571,10 +583,8 @@
|
|||||||
}
|
}
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
closePingjia() {
|
closePingjia() {
|
||||||
this.pingjiaShow = false
|
this.pingjiaShow = false
|
||||||
this.Pform.comment = ''
|
this.Pform.comment = ''
|
||||||
@@ -819,9 +829,32 @@
|
|||||||
border-bottom: 1px solid #f0f0f0;
|
border-bottom: 1px solid #f0f0f0;
|
||||||
|
|
||||||
.condelt {
|
.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 {
|
.plusername {
|
||||||
|
|||||||
Reference in New Issue
Block a user