From 6ffbc2a63cd53e725cec5286b99771aa60294ce9 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Thu, 5 Nov 2020 21:19:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Film=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Film.vue | 123 +++++++++++++++++++++------------------- 1 file changed, 66 insertions(+), 57 deletions(-) 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 = '暂无数据' }) } })