|
@ -13,12 +13,12 @@ |
|
|
<view class="tab">有视频(6)</view> |
|
|
<view class="tab">有视频(6)</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="list" v-if="list.length"> |
|
|
<view class="list" v-if="list.length"> |
|
|
<view class="card" v-for="(item,index) in index" :key="index"> |
|
|
|
|
|
|
|
|
<view class="card" v-for="(item,index) in list" :key="index"> |
|
|
<commentItem :item="item"/> |
|
|
<commentItem :item="item"/> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view style="padding-bottom: 20rpx;" v-if="list.length"> |
|
|
|
|
|
|
|
|
<view style="padding-bottom: 20rpx;" v-if="list.length>5"> |
|
|
<u-loadmore :status="status" /> |
|
|
<u-loadmore :status="status" /> |
|
|
</view> |
|
|
</view> |
|
|
<nodata v-if="!list.length&&status=='nomore'"></nodata> |
|
|
<nodata v-if="!list.length&&status=='nomore'"></nodata> |
|
@ -58,12 +58,13 @@ |
|
|
this.coachCommentPageFn() |
|
|
this.coachCommentPageFn() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onReachBottom() { |
|
|
|
|
|
if(this.total>this.list.length) { |
|
|
|
|
|
this.coachCommentPageFn() |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
loadMore() { |
|
|
|
|
|
if(this.total>this.list.length) { |
|
|
|
|
|
this.coachCommentPageFn() |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
searchFn(val) { |
|
|
searchFn(val) { |
|
|
this.params.studentName = val |
|
|
this.params.studentName = val |
|
|
this.initList() |
|
|
this.initList() |
|
@ -109,6 +110,7 @@ |
|
|
.card { |
|
|
.card { |
|
|
padding: 28rpx; |
|
|
padding: 28rpx; |
|
|
margin-bottom: 20rpx; |
|
|
margin-bottom: 20rpx; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
.tabs { |
|
|
.tabs { |
|
|
display: flex; |
|
|
display: flex; |
|
|