From e5d499ae6a4e6b320f71c49987b76cc11f6bc1e4 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 28 十月 2025 14:13:10 +0800
Subject: [PATCH] 首页问题
---
src/api/platform/home.js | 62 ++++++++++++++++++++++++++++++
1 files changed, 61 insertions(+), 1 deletions(-)
diff --git a/src/api/platform/home.js b/src/api/platform/home.js
index 92c3128..7198b74 100644
--- a/src/api/platform/home.js
+++ b/src/api/platform/home.js
@@ -1,5 +1,32 @@
import request from '@/utils/request'
+// 杩愮淮鐩戞帶鎶ヨ〃
+export function video(data) {
+ return request({
+ url: '/home/video',
+ method: 'get',
+ params: data
+ })
+}
+
+// 杩愮淮鐩戞帶鎶ヨ〃
+export function car(data) {
+ return request({
+ url: '/home/car',
+ method: 'get',
+ params: data
+ })
+}
+
+// 杩愮淮鐩戞帶鎶ヨ〃
+export function face(data) {
+ return request({
+ url: '/home/face',
+ method: 'get',
+ params: data
+ })
+}
+
// 杩愮淮鍏徃涓嬫媺
export function ywUnitList() {
return request({
@@ -24,4 +51,37 @@
method: 'get',
params: data
})
-}
\ No newline at end of file
+}
+
+// 杩愮淮鍒版湡棰勮
+export function ywPoint() {
+ return request({
+ url: '/home/ywPoint',
+ method: 'get'
+ })
+}
+
+// 杩愮淮鍗曚綅瓒呮湡璐d换鏁版帓鍚�
+export function ywUnitCount() {
+ return request({
+ url: '/home/ywUnitCount',
+ method: 'get'
+ })
+}
+
+// 鑰冩牳棰勮
+export function checkScore() {
+ return request({
+ url: '/home/checkScore',
+ method: 'get'
+ })
+}
+
+// 鏍哥畻鎶ヨ〃
+export function calculate(category) {
+ return request({
+ url: '/home/calculate',
+ method: 'get',
+ params: { category }
+ })
+}
--
Gitblit v1.8.0