123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- // const baseUrl = '/api-v2'
- const baseUrl = '/api'
- const wechat = '/wechat/:org'
- const guest = '/guest/:org'
- const common = '/common/:org'
-
- const $api = {
- index: { // 首页
- location: { // 获取5A
- method: 'get',
- url: `${baseUrl}${guest}/cms/location`
- },
- banner: { // 获取轮播图
- method: 'get',
- url: `${baseUrl}${guest}/cms/img`
- },
- message: { // 获取最新消息
- method: 'get',
- url: `${baseUrl}${guest}/cms/info`
- },
- project: { // 获取项目专题
- method: 'get',
- url: `${baseUrl}${guest}/cms/case`
- },
- cms: { // 获取cms消息
- method: 'get',
- url: `${baseUrl}${guest}/cms/news`
- },
- getFiveAList: { // 获取5A列表
- method: 'get',
- url: `${baseUrl}${guest}/cms/course`
- }
- },
- caseForCoffee: {
- getCaseTableList: { // 获取案场桌位列表
- method: 'get',
- url: `${baseUrl}${guest}/cms/area`
- },
- getGoodsTypeList: { // 获取商品分类列表
- method: 'get',
- url: `${baseUrl}${guest}/type/goods`
- },
- getGoodsList: { // 获取商品列表
- method: 'get',
- url: `${baseUrl}${guest}/goods`
- },
- placeGoodsOrder: { // 商品下单
- method: 'post',
- url: `${baseUrl}${wechat}/order/goods`
- },
- getCouponList: { // 获取优惠券列表
- method: 'get',
- url: `${baseUrl}${wechat}/customer/coupon`
- },
- getCouponInfo: { // 获取优惠券详情
- method: 'get',
- url: `${baseUrl}${wechat}/customer/coupon/:id`
- },
- },
- majorProjects: { // 项目专题
- getCourseList: { // 获取课程列表
- method: 'get',
- url: `${baseUrl}${guest}/cms/case/:id`
- },
- getCourseDetail: { // 获取课程详情
- method: 'get',
- url: `${baseUrl}${guest}/course/:id`
- },
- placeCourseOrder: { // 课程下单
- method: 'post',
- url: `${baseUrl}${wechat}/order/course`
- },
- },
- card: {
- myCustomer: { // 我的客户
- method: 'get',
- url: `${baseUrl}${wechat}/customer/user`
- },
- getCardList: { // 我的体验卡列表
- method: 'get',
- url: `${baseUrl}${wechat}/customer/card`
- },
- getCardInfo: { // 我的体验卡详情
- method: 'get',
- url: `${baseUrl}${wechat}/customer/card/:id`
- },
- },
- user: {
- info: { // 获取用户信息
- method: 'get',
- url: `${baseUrl}${wechat}/customer`
- },
- case: { // 获取案场及销售列表
- method: 'get',
- url: `${baseUrl}${guest}/case`
- },
- wxsignup: { // 绑定手机号
- method: 'post',
- url: `${baseUrl}${guest}/wxsignup`
- },
- captcha: { // 获取手机验证码
- method: 'get',
- url: `${baseUrl}${guest}/captcha`
- },
- getCaseList: { // 获取案场信息
- method: 'get',
- url: `${baseUrl}${guest}/case`
- },
- getCourseOrderList: { // 获取我的课程订单信息
- method: 'get',
- url: `${baseUrl}${wechat}/course/user`
- },
- getCourseLoactionList: { // 获取课程类型列表
- method: 'get',
- url: `${baseUrl}${guest}/cms/location`
- },
- getCourseOrderDetail: { // 获取课程订单详情
- method: 'get',
- url: `${baseUrl}${wechat}/course/user/:id`
- },
- gymCard: { // 获取健身卡列表
- method: 'get',
- url: `${baseUrl}${wechat}/gymcard`
- },
- gymCardDetail: { // 获取健身卡详情
- method: 'get',
- url: `${baseUrl}${wechat}/gymcard/:customerGymId`
- },
- },
- director: {
- getSales: { // 获取销售列表
- method: 'get',
- url: `${baseUrl}${wechat}/user/:type`
- },
- getForbidList: { // 获取禁用列表
- method: 'get',
- url: `${baseUrl}${wechat}/user/forbid`
- },
- putForbidOpen: { // 打开禁用状态
- method: 'post',
- url: `${baseUrl}${wechat}/user/forbid/:userid/:type`
- },
- putForbid:{ // 关闭禁用状态
- method: 'put',
- url: `${baseUrl}${wechat}/user/forbid/:userid/:type`
- },
- getSalesCardList: {
- method: 'get',
- url: `${baseUrl}${wechat}/user/detail/:id`
- }
- },
- login: { // 主管、销售端登陆
- login: {
- method: 'post',
- url: `${baseUrl}${guest}/wxsignin`
- }
- },
- case: {
- total: {
- method: 'get',
- url: `${baseUrl}${wechat}/goods/case/:caseid`
- },
- },
- goods: {
- getCustOrders: {
- method: 'get',
- url: `${baseUrl}${wechat}/goods/user`
- }
- },
- }
- export default $api
|