Files
ClassContent/项目合集/最新写真app/fontend/js/serve/home.js
2025-03-16 23:01:07 +08:00

39 lines
735 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
*
* @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
}