index.ts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. // 开发环境
  2. export const BASE_URL = 'https://help-community-yfb.lastbs.com'
  3. export const BASE_URL_SECOND = 'https://help-community-yfb.lastbs.com'
  4. export const CDX = ''//不进行重定向(本地开发)
  5. // export const CDX = 'https://ygsn-yfb.lastbs.com'//重定向到测试服
  6. // 生产环境
  7. // export const BASE_URL = 'https://help-community.lastbs.com/'
  8. // export const BASE_URL_SECOND = 'https://help-community.lastbs.com/'
  9. // export const CDX = 'https://ygsn.lastbs.com'
  10. export const app_id = "wx1c4fc8e7d1aa4aa8"
  11. export const solarParams = [
  12. { pinyin: 'lichun', chinese: '立春', wuXing: 'mu' },
  13. { pinyin: 'yushui', chinese: '雨水', wuXing: 'mu' },
  14. { pinyin: 'jingzhe', chinese: '惊蛰', wuXing: 'mu' },
  15. { pinyin: 'chunfen', chinese: '春分', wuXing: 'mu' },
  16. { pinyin: 'qingming', chinese: '清明', wuXing: 'mu' },
  17. { pinyin: 'guyu', chinese: '谷雨', wuXing: 'tu' },
  18. { pinyin: 'lixia', chinese: '立夏', wuXing: 'huo' },
  19. { pinyin: 'xiaoman', chinese: '小满', wuXing: 'huo' },
  20. { pinyin: 'mangzhong', chinese: '芒种', wuXing: 'huo' },
  21. { pinyin: 'xiazhi', chinese: '夏至', wuXing: 'huo' },
  22. { pinyin: 'xiaoshu', chinese: '小暑', wuXing: 'huo' },
  23. { pinyin: 'dashu', chinese: '大暑', wuXing: 'tu' },
  24. { pinyin: 'liqiu', chinese: '立秋', wuXing: 'jin' },
  25. { pinyin: 'chushu', chinese: '处暑', wuXing: 'jin' },
  26. { pinyin: 'bailu', chinese: '白露', wuXing: 'jin' },
  27. { pinyin: 'qiufen', chinese: '秋分', wuXing: 'jin' },
  28. { pinyin: 'hanlu', chinese: '寒露', wuXing: 'jin' },
  29. { pinyin: 'shuangjiang', chinese: '霜降', wuXing: 'tu' },
  30. { pinyin: 'lidong', chinese: '立冬', wuXing: 'shui' },
  31. { pinyin: 'xiaoxue', chinese: '小雪', wuXing: 'shui' },
  32. { pinyin: 'daxue', chinese: '大雪', wuXing: 'shui' },
  33. { pinyin: 'dongzhi', chinese: '冬至', wuXing: 'shui' },
  34. { pinyin: 'xiaohan', chinese: '小寒', wuXing: 'shui' },
  35. { pinyin: 'dahan', chinese: '大寒', wuXing: 'tu' }
  36. ]
  37. let jin1 = {
  38. background: "#DDC207"
  39. }
  40. let mu1 = {
  41. background: "#19C772"
  42. }
  43. let shui1 = {
  44. background: "#4E99E9"
  45. }
  46. let huo1 = {
  47. background: "#E45050"
  48. }
  49. let tu1 = {
  50. background: "#E1922E"
  51. }
  52. let jin2 = {
  53. border: "2rpx solid #EF9000"
  54. }
  55. let mu2 = {
  56. border: "2rpx solid #53B175"
  57. }
  58. let shui2 = {
  59. border: "2rpx solid #00A3FF"
  60. }
  61. let huo2 = {
  62. border: "2rpx solid #FF5F5F"
  63. }
  64. let tu2 = {
  65. border: "2rpx solid #EF9000"
  66. }
  67. let jin3 = {
  68. color:'#DDC207'
  69. }
  70. let mu3 = {
  71. color:'#19C772'
  72. }
  73. let shui3 = {
  74. color:'#4E99E9'
  75. }
  76. let huo3 = {
  77. color:'#E45050'
  78. }
  79. let tu3 = {
  80. color:'#E1922E'
  81. }
  82. export const jieqiFn = (v, i) => {
  83. let a : any = ""
  84. solarParams.map((item) => {
  85. if (v == item.chinese) {
  86. if (i === 1) {
  87. if (item.wuXing == "jin") { a = jin1 }
  88. if (item.wuXing == "mu") { a = mu1 }
  89. if (item.wuXing == "shui") { a = shui1 }
  90. if (item.wuXing == "huo") { a = huo1 }
  91. if (item.wuXing == "tu") { a = tu1 }
  92. }
  93. if (i === 2) {
  94. if (item.wuXing == "jin") { a = jin2 }
  95. if (item.wuXing == "mu") { a = mu2 }
  96. if (item.wuXing == "shui") { a = shui2 }
  97. if (item.wuXing == "huo") { a = huo2 }
  98. if (item.wuXing == "tu") { a = tu2 }
  99. }
  100. if (i === 3) {
  101. if (item.wuXing == "jin") { a = jin3 }
  102. if (item.wuXing == "mu") { a = mu3 }
  103. if (item.wuXing == "shui") { a = shui3 }
  104. if (item.wuXing == "huo") { a = huo3 }
  105. if (item.wuXing == "tu") { a = tu3 }
  106. }
  107. }
  108. })
  109. return a
  110. }
  111. export const solarList = [
  112. {
  113. "term": "立春",
  114. "angle": 315
  115. },
  116. {
  117. "term": "雨水",
  118. "angle": 330
  119. },
  120. {
  121. "term": "惊蛰",
  122. "angle": 345
  123. },
  124. {
  125. "term": "春分",
  126. "angle": 0
  127. },
  128. {
  129. "term": "清明",
  130. "angle": 15
  131. },
  132. {
  133. "term": "谷雨",
  134. "angle": 30
  135. },
  136. {
  137. "term": "立夏",
  138. "angle": 45
  139. },
  140. {
  141. "term": "小满",
  142. "angle": 60
  143. },
  144. {
  145. "term": "芒种",
  146. "angle": 75
  147. },
  148. {
  149. "term": "夏至",
  150. "angle": 90
  151. },
  152. {
  153. "term": "小暑",
  154. "angle": 105
  155. },
  156. {
  157. "term": "大暑",
  158. "angle": 120
  159. },
  160. {
  161. "term": "立秋",
  162. "angle": 135
  163. },
  164. {
  165. "term": "处暑",
  166. "angle": 150
  167. },
  168. {
  169. "term": "白露",
  170. "angle": 165
  171. },
  172. {
  173. "term": "秋分",
  174. "angle": 180
  175. },
  176. {
  177. "term": "寒露",
  178. "angle": 195
  179. },
  180. {
  181. "term": "霜降",
  182. "angle": 210
  183. },
  184. {
  185. "term": "立冬",
  186. "angle": 225
  187. },
  188. {
  189. "term": "小雪",
  190. "angle": 240
  191. },
  192. {
  193. "term": "大雪",
  194. "angle": 255
  195. },
  196. {
  197. "term": "冬至",
  198. "angle": 270
  199. },
  200. {
  201. "term": "小寒",
  202. "angle": 285
  203. },
  204. {
  205. "term": "大寒",
  206. "angle": 300
  207. }
  208. ]