This commit is contained in:
zhaofang
2022-11-16 18:09:51 +08:00
parent c1bb255074
commit cecb06f35f
2 changed files with 23 additions and 2 deletions

View File

@@ -43,7 +43,7 @@
</view> -->
</view>
<view v-if="comm.replyList && comm.replyList.length>0" class="comment-replys">
<view v-for="(reply,replyIdx) in comm.replyList" :key="replyIdx" class="comment">
<view v-for="(reply,replyIdx) in comm.replyList" :key="replyIdx" class="comment" v-if="comm.showAll || replyIdx<2">
<view class="comment-top">
<view style="display: flex;">
<author v-if="reply" :showInfo="true" :data="reply"></author>
@@ -78,6 +78,9 @@
</view>
</view>
<view v-if="comm.replyList.length>2" class="view-all-com" @click="loadReplyMore(comm)">
{{comm.showAll ? '收起':`查看全部${comm.replyList.length}条评论 >`}}
</view>
</view>
</view>
</view>
@@ -220,6 +223,9 @@
}
},
methods: {
loadReplyMore(item){
item.showAll=!item.showAll;
},
loadData(append){ //加载数据
let params={
pageIndex:this.pageIndex,
@@ -239,6 +245,7 @@
let ids=[];
let allList=[];
res.result.list.forEach(item=>{
item.showAll = false;
item.avatar='';
item.orgInfo='';
item.sex = null;
@@ -584,6 +591,20 @@
</script>
<style lang="scss" scoped>
.view-all-com{
// width: 304upx;
display: inline-block;
height: 52upx;
line-height: 40upx;
background: #F6F6F6;
border-radius: 26upx;
box-sizing: border-box;
padding: 4upx 40upx 4upx 40upx;
font-size: 24upx;
color: #666666;
margin-left: 100upx;
margin-top: 20upx;
}
.comment{
padding-top: 20upx;
.comment-top{

View File

@@ -3,7 +3,7 @@
<view>
<watermark></watermark>
<u-toast ref="messager"></u-toast>
<page-title :showBack="true">{{courseInfo.name}}</page-title>
<!-- <page-title :showBack="true"></page-title> -->
<view class="playbox"><!--内容播放区域-->
<view style="min-height: 500upx;" >
<view v-if="curContent.contentType==10" style="background-color: #000000;">