import config from '@/config/index' import http from '@/http/index' class IndexService { async home(data = {}, header = {}) { let res = await (new http()).post({ url: config.urlList.index, data: data, headers: header }); res.forEach(v => { v.wares_masterimg = JSON.parse(v.wares_masterimg) }); return res; } async info(data = {}, header = {}) { let res = await (new http()).post({ url: config.urlList.info, data: data, headers: header }); res.wares_masterimg = JSON.parse(res.wares_masterimg) res.wares_infoimg = JSON.parse(res.wares_infoimg) return res; } } export default IndexService