mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
更新浏览和发现页面,重构相关组件,调整路由和菜单项
This commit is contained in:
@@ -1,2 +1,20 @@
|
||||
<script setup lang="ts"></script>
|
||||
<template></template>
|
||||
<script setup lang="ts">
|
||||
import MediaCardListView from '@/views/discover/MediaCardListView.vue'
|
||||
|
||||
// 电影或者电视剧 movies/tvs
|
||||
const type = ref('movies')
|
||||
|
||||
// 过滤参数
|
||||
const filterParams = ref({
|
||||
'type': 2,
|
||||
'cat': null,
|
||||
'sort': 'rank', // date/rank
|
||||
'year': null,
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<MediaCardListView apipath="bangumi/subjects" :params="filterParams" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import MediaCardListView from '@/views/discover/MediaCardListView.vue'
|
||||
|
||||
// 电影或者电视剧 movies/tvs
|
||||
const type = ref('movies')
|
||||
|
||||
// 过滤参数
|
||||
const filterParams = ref({
|
||||
'sort': 'R',
|
||||
'tags': '',
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
<div>
|
||||
<MediaCardListView :apipath="`douban/${type}`" :params="filterParams" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1,6 +1,24 @@
|
||||
<script setup lang="ts">
|
||||
import MediaCardListView from '@/views/discover/MediaCardListView.vue'
|
||||
|
||||
// 电影或者电视剧 movies/tvs
|
||||
const type = ref('movies')
|
||||
|
||||
// 过滤参数
|
||||
const filterParams = ref({
|
||||
'sort_by': 'popularity.desc',
|
||||
'with_genres': '',
|
||||
'with_original_language': '',
|
||||
'with_keywords': '',
|
||||
'with_watch_providers': '',
|
||||
'vote_average.gte': 0,
|
||||
'vote_count.gte': 0,
|
||||
'release_date.gte': '',
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
<div>
|
||||
<MediaCardListView :apipath="`tmdb/${type}`" :params="filterParams" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user