From 9fb47e531ec21428be0316fc437b5ec5dd7808b2 Mon Sep 17 00:00:00 2001
From: zzzz <690498789@qq.com>
Date: Wed, 10 Apr 2024 10:52:23 +0800
Subject: [PATCH] first commit
---
src/config/index.js | 129 +++++++++++++++++++++---------------------
1 files changed, 64 insertions(+), 65 deletions(-)
diff --git a/src/config/index.js b/src/config/index.js
index c4e7fa2..c5dea78 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -1,73 +1,72 @@
-export const TIME_OUT = 2000 // 请求频率
+export const TIME_OUT = 2000; // 请求频率
-
-const ENV_DEV = 'xinbi.jumpexs.com' // dev
+const ENV_DEV = "xinbi.jumpexs.com"; // dev
//const ENV_PRO = 'worldcoinpro.com' // 官网环境
// const ENV_PRO = 'thjddu.com' // app域名
-const ENV_PRO = window.location.hostname // 接口域名跟随
+const ENV_PRO = window.location.hostname; // 接口域名跟随
-let base_url =''
-let base_url2 =''
-let ws_url = ''
-let host_url =''
-if (process.env.NODE_ENV === 'development'){
- host_url = 'https://'+ENV_DEV
- base_url = 'https://'+ENV_DEV +'/wap/'
- base_url2 = 'https://'+ENV_DEV +'/'
- ws_url = 'wss://' + ENV_DEV +'/data/websocket'
-}else{
- host_url = 'https://'+ENV_PRO
- base_url = 'https://' + ENV_PRO +'/wap/'
- base_url2 = 'https://' + ENV_PRO +'/'
- //ws_url = `wss://${ENV_PRO}/data/websocket`
- ws_url = `wss://xinbi.jumpexs.com/data/websocket`
+let base_url = "";
+let base_url2 = "";
+let ws_url = "";
+let host_url = "";
+if (process.env.NODE_ENV === "development") {
+ host_url = "https://" + ENV_DEV + "/wap/";
+ base_url = "https://" + ENV_DEV + "/wap/";
+ base_url2 = "https://" + ENV_DEV + "/";
+ ws_url = "wss://" + ENV_DEV + "/data/websocket";
+} else {
+ host_url = "https://" + ENV_PRO + "/wap/";
+ base_url = "https://" + ENV_PRO + "/wap/";
+ base_url2 = "https://" + ENV_PRO + "/";
+ //ws_url = `wss://${ENV_PRO}/data/websocket`
+ ws_url = `wss://xinbi.jumpexs.com/data/websocket`;
}
-export const BASE_URL = base_url
-export const BASE_URL2 = base_url2
-export const WS_URL = ws_url
-export const HOST_URL = host_url
+export const BASE_URL = base_url;
+export const BASE_URL2 = base_url2;
+export const WS_URL = ws_url;
+export const HOST_URL = host_url;
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,
- }
-}
+ 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,
+ },
+};
--
Gitblit v1.9.3