123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- 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`
- }
- },
- 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`
- }
- },
- 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`
- },
- },
- 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`
- },
- },
- login:{ // 主管、销售端登陆
- login: {
- method: 'post',
- url: `${baseUrl}${guest}/wxsignin`
- }
- }
- }
- export default $api
|