v0.7.12 主题

This commit is contained in:
hunlongyu
2020-01-19 16:39:04 +08:00
parent 58f1ecdb57
commit 4c8b3ae36b
4 changed files with 8 additions and 7 deletions

BIN
src/assets/image/light.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@@ -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`

View File

@@ -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

View File

@@ -10,14 +10,14 @@
</el-row>
</el-row>
<el-row class="item theme">
<el-row class="title"><i class="el-icon-picture-outline-round"></i><span>主题 Coming soon</span></el-row>
<el-row class="title"><i class="el-icon-picture-outline-round"></i><span>主题 (即将来到...)</span></el-row>
<el-row class="card-box">
<el-card shadow="hover" class="card">
<img src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" class="image">
<img src="@/assets/image/light.png" class="image">
<span size="mini">Light</span>
</el-card>
<el-card shadow="hover" class="card">
<img src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png" class="image">
<img src="@/assets/image/light.png" class="image">
<span size="mini">Dark</span>
</el-card>
</el-row>