config.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. export class config {
  2. /**
  3. * 平台
  4. */
  5. public static Platform = {
  6. WEIXIN :"WEIXIN",
  7. TOUTIAO: "TOUTIAO",
  8. H5:"H5"
  9. }
  10. /**
  11. * 日志开关
  12. */
  13. public static LOG_OPEN:boolean = true
  14. /**
  15. * 测试开关
  16. */
  17. public static isTest:boolean = true
  18. /**
  19. * 缓存数据的key
  20. */
  21. public static stores_key = {
  22. USER_DATA: "USER_DATA",
  23. }
  24. /**
  25. * 测试域名
  26. */
  27. private static URL_DEBUG = {
  28. Dynamic:"http://",
  29. Static:"http://"
  30. }
  31. /**
  32. * 正式域名
  33. */
  34. private static URL_RELEASE = {
  35. Dynamic:"http://",
  36. Static:"http://"
  37. }
  38. /**
  39. * 域名
  40. */
  41. public static url_addr= {
  42. Dynamic:config.isTest?config.URL_DEBUG.Dynamic:config.URL_RELEASE.Dynamic, //动态接口
  43. Static:config.isTest?config.URL_DEBUG.Static:config.URL_RELEASE.Static //静态接口
  44. }
  45. /**
  46. * 接口
  47. */
  48. public static url_confg = {
  49. /**
  50. * 动态
  51. */
  52. Dynamic:{
  53. },
  54. /**
  55. * 静态
  56. */
  57. Static:{
  58. },
  59. StatesCode:{
  60. SUCCESS:10000,
  61. }
  62. }
  63. public static read_config = {
  64. colorList:['#000', '#666'],
  65. lineHeight:1.8,
  66. fontSizeList:[12,14,16,18,20,22,24]
  67. }
  68. }