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