// api.js页面 import request from './request.js' //引入request.js const api = request // const imgUrl = "http://192.168.7.122" const imgUrl = "http://47.109.21.59/" export default { imgUrl, getcodes: data => { return api.request('/front/loginSendSms', 'POST', data) //接口地址 }, homedata: data => { return api.request('/front/getAccountInfo', 'GET', data) //接口地址 }, getprizes: data => { return api.request('/front/homeData', 'GET', data) //接口地址 }, loglin: data => { return api.request('/front/loginBySms', 'POST', data) //接口地址 }, takeit: data => { return api.request('/front/activity/draw/lottery/' + data.ids, 'GET') //接口地址 }, zjlist: data => { return api.request('/front/order/list', 'GET',data) //接口地址 }, }