config.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import {getNowDate} from "../utils/utils";
  2. class Config {
  3. //测试地址
  4. static BASE_URL = "https://edutest.jlccta.com";
  5. static API = Config.BASE_URL + "/prod-api";
  6. //正式地址
  7. // static BASE_URL = "https://edu.jlccta.com";
  8. // static API = Config.BASE_URL + "/prod-api";
  9. //开发地址
  10. // static BASE_URL = "http://10.16.4.16:80";
  11. // static API = Config.BASE_URL + "/dev-api";//开发地址
  12. // static BASE_URL = "http://localhost:81";
  13. // static API = Config.BASE_URL + "/prod-api";//开发地址
  14. static HTML_API = Config.BASE_URL + "/wx_html/";//测试网页地址
  15. static NAMESPACE = "edu";//本地存储 命名空间
  16. static LOG_ENABLE = true;//日志开关,生产会自动关闭,主要是调试的时候动态开关
  17. static IM_LOG_LEVEL = 1;//IM日志等级
  18. static VERSION_CODE = '1.1.0';//版本号,设置成0 启用线上发布版本号
  19. static CD_TIME = 60 * 1000;//短信验证码时间
  20. static LIVE_CD_TIME = 30 * 1000;//直播互动超时时间
  21. static THEME_COLOR = "#FF4330";//主题色
  22. static APP_ID = '4';//后台app记录id
  23. static TEMPLATE_ID = '9';//后台结业证模板id
  24. static OPT_TIP = [
  25. "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T",
  26. "U", "V", "W", "X", "Y", "Z"
  27. ];
  28. static ERROR_REPEAT = 511;
  29. //用来处理不给用户显示的异常
  30. static ERROR_MSG = {
  31. '-100': "网络异常,请稍后重试",
  32. 10001: '服务器开了个小差,请稍后重试',
  33. 401: '未登录或登录已失效,请重新登录',
  34. };
  35. static DICT = {
  36. TRAIN_DIRECTION: "sys_train_direct",//培训方向
  37. TRAIN_MODEL: "sys_train_form",//培训模式
  38. COURSE_TYPE: "sys_kc_type",//课程类型
  39. EXAMPLE_CATEGORY: "sys_example_type",//典型类型
  40. STUDENT_TYPE: "r_student_type",//学员类别
  41. SEX: "sys_user_sex",//学员性别
  42. EDU_EXP: "education_background",//教育背景
  43. NATION: "sys_nation",//民族
  44. SPECIALTY: "specialty",//专业
  45. SOCIAL_WORK_LEVEL: "social_work_level",//社工证等级
  46. ADVANTAGE: "advantage",//特长
  47. SOCIAL_WORK_YEAR: "social_work_year",//社区工作年限
  48. COMMUNITY_WORKER_TYPE: "community_worker_type",//社区工作 职务
  49. OTHER_WORKER_TYPE: "other_worker_type",//其他工作者 职务
  50. WIFI: "wifi_config",//wifi
  51. }
  52. static UPLOAD_PATH = {
  53. //班内互动
  54. 'TEAM_INTERACTION': `community/teamInteraction/${getNowDate()}/`,
  55. //选树典型
  56. 'COMMUNITY_EXAMPLE': `community/example/${getNowDate()}/`,
  57. //热点难点
  58. 'COMMUNITY_FOCUSISSUES': `community/focusIssues/${getNowDate()}/`,
  59. //培训需求管理
  60. 'COMMUNITY_MANAGEMENT': `community/management/${getNowDate()}/`,
  61. //班级文件
  62. 'CLASS_DIR': 'education/team/',
  63. //学员登记表头像
  64. 'STUDENT': 'resource/student/',
  65. //个人头像
  66. 'AVATER': '',
  67. //其他文件
  68. 'OTHER': ''
  69. }
  70. }
  71. export default Config