|
|
// 请求方法
|
export const METHODS = { POST: 'POST', GET: 'GET', PUT: 'PUT', PATCH: 'PATCH', DELETE: 'DELETE' }
|
|
// 请求超时时间
|
export const REQUEST_TIMEOUT = 30000
|
|
// 请求频率
|
export const TIME_OUT = 2000
|
|
// 表单类型key
|
export const CONTENT_TYPE = 'Content-Type'
|
|
// 表单类型value
|
export const CONTENT_TYPES = {
|
URL_ENCODED: 'application/x-www-form-urlencoded'
|
}
|
|
// 是否携带凭证
|
export const WITH_CREDENTIALS = false
|
|
// API前缀
|
export const API_PREFIX = '/api'
|
|
|
// 请求频率
|
export const REQUEST_TIMER = 2000
|
|
|
/// 默认日线
|
export const defaultStage = '1day'
|
|
export const defaultSeconds = 1 * 24 * 60 * 60 * 1000
|
|
// const ENV_DEV = 'zhapi.coinbtcs.com' // dev
|
// const ENV_DEV = 'openapi.yanshiz.com' // dev
|
const ENV_DEV = 'ddapi.fractionx-ex.com' // dev
|
// const ENV_DEV = '192.168.10.6:8086' // dev
|
|
// const ENV_PRO = 'qheufhj.site' // app域名
|
// const ENV_PRO = window.location.hostname // 接口域名跟随 H5zhapi.coinbtcs.com
|
const ENV_PRO = 'ddapi.fractionx-ex.com' // 接口域名跟随 H5zhapi.coinbtcs.com
|
// const ENV_PRO = '192.168.10.6:8086' // 接口域名跟随 H5zhapi.coinbtcs.com
|
|
let base_url = ''
|
let ws_url = ''
|
let host_url = ''
|
if (import.meta.env.MODE === 'development') {
|
host_url = 'https://' + ENV_DEV
|
base_url = 'https://' + ENV_DEV
|
ws_url = 'wss://' + ENV_DEV + '/api/websocket'
|
} else {
|
host_url = 'https://' + ENV_PRO
|
base_url = 'https://' + ENV_PRO
|
ws_url = 'wss://' + ENV_PRO + '/api/websocket'
|
}
|
|
let imgUrl = 'https://ddimg.fractionx-ex.com' // 暂时的 单独的图片地址
|
|
export const BASE_URL = base_url
|
export const WS_URL = ws_url
|
// export const IMG_PATH = host_url
|
export const IMG_PATH = imgUrl
|
// export const HOST_URL = host_url
|
export const HOST_URL = imgUrl
|
|
// 公司logo
|
export const LOGO = new URL('@/assets/imgs/logo.png', import.meta.url)
|
|
|
export const customerServiceUrl = ()=>{
|
let str = ' https://47.86.59.44:1588/chat_online/index?channelId=5c7314eab72c4a72b2dc9b63c4502e69'
|
let user = JSON.parse(localStorage.getItem('user'))
|
console.log(user);
|
let userName = '',pid = '';
|
if(user && user.userInfo){
|
userName = user.userInfo.username
|
pid = user.userInfo.usercode
|
}
|
str += `&userName=${userName}&pid=${pid}`
|
return str
|
} // 客服外链链接
|
|
export default {
|
sliderOptions: {
|
dotSize: 14,
|
width: 'auto',
|
height: 4,
|
contained: false,
|
direction: 'ltr',
|
data: null,
|
dataLabel: 'label',
|
dataValue: 'value',
|
min: 0,
|
max: 0, // 这里默认是3,被我改了
|
interval: 1,
|
disabled: false,
|
clickable: true,
|
duration: 0.5,
|
adsorb: false,
|
lazy: false,
|
tooltip: 'active',
|
tooltipPlacement: 'top',
|
tooltipFormatter: void 0,
|
useKeyboard: false,
|
keydownHook: null,
|
dragOnClick: false,
|
enableCross: true,
|
fixed: false,
|
minRange: void 0,
|
maxRange: void 0,
|
order: true,
|
marks: false,
|
dotOptions: void 0,
|
dotAttrs: void 0,
|
process: true,
|
dotStyle: void 0,
|
railStyle: void 0,
|
processStyle: void 0,
|
tooltipStyle: void 0,
|
stepStyle: void 0,
|
stepActiveStyle: void 0,
|
labelStyle: void 0,
|
labelActiveStyle: void 0,
|
}
|
}
|