增加新项目

This commit is contained in:
2025-03-16 23:01:07 +08:00
parent 3f86afc191
commit 353b15385f
49 changed files with 4407 additions and 2 deletions

View File

@@ -0,0 +1,38 @@
/**
*
* @param {*} data 是get请求的参数
* 由页面调用者传递过来给我
*/
const homeBanner = async (data = {}) => {
return await http().get({
url: config.urlList.homeBanner,
// data: data
data
})
}
const homeHot = async (data = {}) => {
let res = await http().get({
url: config.urlList.homeHot,
// data: data
data
})
res.forEach(v => v.view = v.view.replaceAll("W+", ""));
return res
}
const homeList = async (data = {}) => {
let res = await http().get({
url: config.urlList.homeList,
// data: data
data
});
res.forEach(v => v.view = v.view.replaceAll("W+", ""));
return res
}

View File

@@ -0,0 +1,11 @@
const hotList = async (data = {}) => {
let res = await http().get({
url: config.urlList.hotList,
// data: data
data
});
console.log(res)
res.list.forEach(v => v.view = v.view.replaceAll("W+", ""));
return res
}

View File

@@ -0,0 +1,7 @@
const infoList = async (data = {}) => {
return await http().get({
url: config.urlList.infoList,
// data: data
data
});
}

View File

@@ -0,0 +1,33 @@
const tagRecommend = async (data = {}) => {
let res = await http().get({
url: config.urlList.tagRecommend,
// data: data
data
});
res.forEach(v => v.short_title = v.title.substring(0,1));
return res
}
const tagList = async (data = {}) => {
let res = await http().get({
url: config.urlList.tagList,
// data: data
data
});
res.forEach(v => {
v.page = 1;
v.totalPage = 0;
v.content = [];
});
return res;
}
const tagInfo = async (data = {}) => {
return await http().get({
url: config.urlList.tagInfo,
// data: data
data
});
}