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