diff --git a/src/components/Film.vue b/src/components/Film.vue index 0a14ced..f9ffecd 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -71,6 +71,7 @@
- - - - - - - - - - - - - - - - - - + :data="searchContents.filter(res => !setting.excludeR18Films || (res.type !== undefined && !containsR18Keywords(res.type)))" + height="100%" + row-key="id" + :empty-text="statusText" + @row-click="(row) => detailEvent(row.site, row)" + style="width: 100%"> + + + + + + + + + + + + + + + + + +
@@ -213,6 +215,7 @@ export default { type: {}, pagecount: 0, list: [], + statusText: ' ', infiniteId: +new Date(), searchList: [], searchTxt: '', @@ -370,8 +373,10 @@ export default { const key = this.site.key const type = this.type.tid const page = this.pagecount - if (page < 1) { + this.statusText = ' ' + if (key && page < 1) { // OK资源前几类硬是去不掉 $state.complete() + this.statusText = '暂无数据' return false } zy.list(key, page, type).then(res => { @@ -391,6 +396,7 @@ export default { $state.loaded() } else { $state.complete() + this.statusText = '暂无数据' } }) }, @@ -504,6 +510,7 @@ export default { this.pagecount = 0 this.show.search = false this.show.find = true + this.statusText = ' ' if (wd) { search.find({ keywords: wd }).then(res => { if (!res) { @@ -519,6 +526,7 @@ export default { zy.detail(site.key, element.id).then(detailRes => { detailRes.site = site this.searchContents.push(detailRes) + this.statusText = '暂无数据' }) }) } @@ -526,6 +534,7 @@ export default { zy.detail(site.key, res.id).then(detailRes => { detailRes.site = site this.searchContents.push(detailRes) + this.statusText = '暂无数据' }) } })