Files
flux-web/src/js/config/api.config.js

45 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* API 配置
* 统一管理所有 API 接口地址和配置
*/
export const API_CONFIG = {
// 基础 URL - 开发环境
// BASE_URL: 'http://localhost:8071',
// 生产环境 URL如需切换取消注释并注释掉上面的
// BASE_URL: 'https://flux.1216.top',
BASE_URL: '',
// API 端点配置
ENDPOINTS: {
// 短信相关接口(使用 JSON 格式)
SEND_SMS: '/zcore/sms/send',
VERIFY_SMS: '/zcore/sms/verify',
// 极光一键登录接口(使用 JSON 格式)
JPUSH_LOGIN: '/zcore/jpush/login',
// 客户相关接口(使用 x-www-form-urlencoded 格式)
CUSTOMER_REGISTER: '/api/partnerh5/login',
// 表单相关接口(使用 x-www-form-urlencoded 格式)
SUBMIT_FORM: '/api/partnerh5/submit',
SUBMIT_DRAFT_FORM: '/api/partnerh5/save_draft',
GET_DRAFT_FORM: '/api/partnerh5/get_draft',
// 授权状态查询接口
CHECK_AUTH_STATUS: '/api/partnerh5/check_auth_status',
// 区域数据接口
AREA_LIST: '/api/partnerh5/area_list',
// IP定位接口
IP_LOCATION: '/api/partnerh5/ip_location',
},
// 请求超时配置(毫秒)
TIMEOUT: 30000,
};