增加新项目
This commit is contained in:
38
项目合集/最新写真app/fontend/js/serve/home.js
Normal file
38
项目合集/最新写真app/fontend/js/serve/home.js
Normal 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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user