lottery-flip-card/util/api.js

26 lines
783 B
JavaScript
Raw Normal View History

2024-05-30 11:01:36 +08:00
// 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) //接口地址
},
}