12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- const baseUrl = '/api-v2'
- const wechat = '/wechat/:org'
- const guest = '/guest/:org'
- const common = '/common/:org'
-
- const $api = {
- index: {
- location: {
- 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: {
- method: 'get',
- url: `${baseUrl}${guest}/cms/news`
- }
- },
- majorProjects: {
- getCourseList: {
- method: 'get',
- url: `${baseUrl}${guest}/cms/case/:id`
- },
- getCourseDetail: {
- method: 'get',
- url: `${baseUrl}${guest}/course/: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`
- }
- },
- login:{
- login: {
- method: 'post',
- url: `${baseUrl}${guest}/wxsignin`
- }
- }
- }
- export default $api
|