mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
提交
This commit is contained in:
@@ -50,6 +50,9 @@
|
||||
<!-- <view v-show="statusSelectShow" class="sea-show">
|
||||
<text :class="[articleList.status == status.value? 'sea-active':'','sea-index']" v-for="(status,index) in selectData" :key="index" @click="chooseStatus(status)">{{status.label}}</text>
|
||||
</view> -->
|
||||
<view v-if="articleList.list.length == 0 && loadStatus == 'noMore'" style="text-align: center;margin-top: 100upx;color: #666;">
|
||||
暂未搜索到内容
|
||||
</view>
|
||||
<view style="padding-top: 14upx;">
|
||||
<!-- 文章内容 下面需要把样式提到class中-->
|
||||
<view class="article_one" v-for="(item, index) of articleList.list" :key="item.id">
|
||||
@@ -167,6 +170,7 @@ export default {
|
||||
uni.hideLoading();
|
||||
if (rs.status == 200) {
|
||||
this.articleList.count = rs.result.count;
|
||||
|
||||
if (rs.result.list.length != 0) {
|
||||
let userIds = [];
|
||||
rs.result.list.forEach(item => {
|
||||
@@ -180,11 +184,17 @@ export default {
|
||||
userIds.push(item.sysCreateAid);
|
||||
});
|
||||
await this.loadUserInfos(rs.result.list, userIds);
|
||||
if (this.articleList.list.length < this.articleList.count) {
|
||||
this.loadStatus = 'more';
|
||||
} else {
|
||||
this.loadStatus = 'noMore';
|
||||
}
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: '查无数据',
|
||||
icon: 'none'
|
||||
});
|
||||
this.loadStatus = 'noMore';
|
||||
// uni.showToast({
|
||||
// title: '查无数据',
|
||||
// icon: 'none'
|
||||
// });
|
||||
}
|
||||
}
|
||||
// uni.hideLoading();
|
||||
|
||||
Reference in New Issue
Block a user