From 1e8132692c72c30d49e6f5173edecc2a263e1987 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期二, 05 十一月 2024 15:14:40 +0800 Subject: [PATCH] 前端防重提时间缩短 --- src/api/platform/home.js | 34 +++++++++++++++++++++++++++++++--- 1 files changed, 31 insertions(+), 3 deletions(-) diff --git a/src/api/platform/home.js b/src/api/platform/home.js index 3f6b747..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({ @@ -51,9 +78,10 @@ } // 鏍哥畻鎶ヨ〃 -export function calculate() { +export function calculate(category) { return request({ url: '/home/calculate', - method: 'get' + method: 'get', + params: { category } }) -} \ No newline at end of file +} -- Gitblit v1.8.0