This commit is contained in:
Gdpao
2020-08-14 19:49:57 +08:00
parent cd0e8bbf9e
commit 9158f27afb
5 changed files with 62 additions and 51 deletions

View File

@@ -52,7 +52,7 @@
</view>
<view class="child_content">{{ child.content }}</view>
</view>
<view class="more-reply" v-if="item.reply_count && is_more" @click="getReplyList(item.id)">展开更多回复<u-icon name="arrow-down"></u-icon></view>
<view class="more-reply" v-if="item.reply_count" @click="getReplyList(item.id)">展开更多回复<u-icon name="arrow-down"></u-icon></view>
</view>
</block>
<view class="no-data" v-if="!commentList.length">还没有评论快来评论吧</view>
@@ -292,6 +292,7 @@
height: 90rpx;
& > input {
width: 80%;
font-size: 24rpx;
padding: 4rpx 20rpx;
border-radius: 20rpx;
}
@@ -575,7 +576,6 @@ export default {
})
if (!this.page_[id] === 0) {
}
console.log(this.page_[id]);
this.$u.post("article/articleReplyList", {id: id, page: this.page_[id]}).then(res => {
uni.hideLoading();
if (res.errCode == 0) {
@@ -583,10 +583,8 @@ export default {
// this.is_more = false;
// }
this.page_[id]++;
console.log(this.page_[id]);
this.$nextTick(() => {
this.allList[id] = res.data;
})
this.allList[id] = res.data;
this.$forceUpdate();
console.log(this.allList);
}
})