From b2c13121fd028b4a05da03a4a0fb18e2f7ff656e Mon Sep 17 00:00:00 2001 From: alger Date: Wed, 25 Dec 2024 19:55:24 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=B7=BB=E5=8A=A0mv?= =?UTF-8?q?=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 +- src/api/mv.ts | 22 +++++++-- src/components/Coffee.vue | 12 +++++ src/layout/AppLayout.vue | 20 ++++---- src/views/mv/index.vue | 101 +++++++++++++++++++++++++++++--------- src/views/set/index.vue | 13 ++++- 6 files changed, 131 insertions(+), 41 deletions(-) diff --git a/src/App.vue b/src/App.vue index 63662d2..410c4b1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,7 +2,9 @@
- + + +
diff --git a/src/api/mv.ts b/src/api/mv.ts index a97d074..546c39f 100644 --- a/src/api/mv.ts +++ b/src/api/mv.ts @@ -2,15 +2,27 @@ import { IData } from '@/type'; import { IMvItem, IMvUrlData } from '@/type/mv'; import request from '@/utils/request'; +interface MvParams { + limit?: number; + offset?: number; + area?: string; +} + // 获取 mv 排行 -export const getTopMv = (limit = 30, offset = 0) => { +export const getTopMv = (params: MvParams) => { return request({ url: '/mv/all', method: 'get', - params: { - limit, - offset, - }, + params, + }); +}; + +// 获取所有mv +export const getAllMv = (params: MvParams) => { + return request({ + url: '/mv/all', + method: 'get', + params, }); }; diff --git a/src/components/Coffee.vue b/src/components/Coffee.vue index e402523..a18bd53 100644 --- a/src/components/Coffee.vue +++ b/src/components/Coffee.vue @@ -23,6 +23,12 @@ 微信支付 + +
+

+ QQ群:789288579 +

+
@@ -31,6 +37,12 @@