70 lines
2.0 KiB
JavaScript
70 lines
2.0 KiB
JavaScript
// api.js页面
|
|
import request from './request.js' //引入request.js
|
|
const api = request
|
|
// const imgUrl = "http://192.168.111.47"
|
|
const imgUrl = "http://211.137.105.198:8020"
|
|
// const imgUrl = "http://192.168.110.10:8040"
|
|
export default {
|
|
imgUrl,
|
|
// 登录
|
|
login: data => {
|
|
return api.request('/bank/login', 'POST',data) //接口地址
|
|
},
|
|
// 首页数据
|
|
homedata: data => {
|
|
return api.request('/front/manage/dashboard', 'GET', data) //接口地址
|
|
},
|
|
// 获取商品
|
|
getProducts: data => {
|
|
return api.request('/bank/product/list', 'GET', data) //接口地址
|
|
},
|
|
// 获取对象
|
|
getusers: data => {
|
|
return api.request('/bank/account/childrenAccountList', 'GET', data) //接口地址
|
|
},
|
|
// 产品分发
|
|
godistribute: data => {
|
|
return api.request('/bank/integral/distribute/batch', 'POST', data) //接口地址
|
|
},
|
|
// 分发记录
|
|
getfenouts: data => {
|
|
return api.request('/bank/coupon/distribute/list', 'GET', data) //接口地址
|
|
},
|
|
// 分发后分发记录
|
|
getrecord: data => {
|
|
return api.request('/bank/integral/distribute/list', 'GET', data) //接口地址
|
|
},
|
|
// 商品民路
|
|
orderlist: data => {
|
|
return api.request('/front/order/list', 'GET', data) //接口地址
|
|
},
|
|
// 个人中心
|
|
myself: data => {
|
|
return api.request('/bank/getAccountInfo', 'GET', data) //接口地址
|
|
},
|
|
// 登出
|
|
logout: data => {
|
|
return api.request('/bank/logout', 'GET', data) //接口地址
|
|
},
|
|
// 活动推荐数据
|
|
getactivit: data => {
|
|
return api.request('/bank/banner/list', 'GET', data) //接口地址
|
|
},
|
|
// 获取验证码
|
|
getcode: data => {
|
|
return api.request('/bank/verify', 'GET', data) //接口地址
|
|
},
|
|
// 分发项目
|
|
getitems: data => {
|
|
return api.request('/bank/coupon/distribute/distributableProjectList', 'GET', data) //接口地址
|
|
},
|
|
// 内容分发
|
|
fenout: data => {
|
|
return api.request('/bank/coupon/distribute/distributeByProject', 'PUT', data) //接口地址
|
|
},
|
|
// 手机验证
|
|
getpp: data => {
|
|
return api.request('/bank/loginSendSms', 'GET', data) //接口地址
|
|
},
|
|
}
|