diff --git a/src/assets/image/light.png b/src/assets/image/light.png new file mode 100644 index 0000000..99d5926 Binary files /dev/null and b/src/assets/image/light.png differ diff --git a/src/lib/util.zy.ts b/src/lib/util.zy.ts index e497271..d8a4689 100644 --- a/src/lib/util.zy.ts +++ b/src/lib/util.zy.ts @@ -126,12 +126,12 @@ const zy: ZY = { }) }) }, - films (n: number = 0, p: number = 1, type: number = 0) { + films (n: number = 0, p: number = 1, type: string = '0') { return new Promise((resolve, reject) => { this.site = sites[n] let url: string = sites[n].url let params: string = '' - if (type === 0) { + if (type === '0') { params = `${url}/?m=vod-index-pg-${p}.html` } else { params = `${url}/?m=vod-type-id-${type}-pg-${p}.html` diff --git a/src/page/film.vue b/src/page/film.vue index 8956a08..cc1fa70 100644 --- a/src/page/film.vue +++ b/src/page/film.vue @@ -90,11 +90,12 @@ export default Vue.extend({ this.site = e this.tabs = '0' this.filmPage = 1 - this.getFilmList(e, 1, 0) + this.getFilmList(e, 1, '0') }, - getFilmList (n: number = 0, p: number = 1, type: number = 0) { + getFilmList (n: number = 0, p: number = 1, type: string = '0') { this.loading = true this.filmData = [] + this.tabs = type zy.films(n, p, type).then((res: any) => { this.filmTotal = res.total this.filmData = res.list diff --git a/src/page/setting.vue b/src/page/setting.vue index 1af21e1..c82823e 100644 --- a/src/page/setting.vue +++ b/src/page/setting.vue @@ -10,14 +10,14 @@ - 主题 Coming soon + 主题 (即将来到...) - + Light - + Dark