urlConfig.js 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. var config = function(env) {
  2. let WEB_CONF = {}
  3. if (env === 'test') {
  4. WEB_CONF = {
  5. brandId: 102,
  6. xcxHouseId: '100296',
  7. miniAppUrl: 'https://h5test.elab-plus.com/',
  8. zipUrl: 'http://139.196.5.59:5307',
  9. uploadUrl: 'http://101.132.138.87:5555', //文件上传
  10. api_url: 'https://gatewaytest.elab-plus.vip/', //測試
  11. redirect_uri: 'https://h5test1.elab-plus.com/krpano/template', // 授权回调地址
  12. min_uri: 'https://dm.static.elab-plus.com/miniProgram/webgl/test1/index.html#/', // H5小程序的地址
  13. ws_url: 'wss://wstest3.skyforestcity.com/',
  14. themeColor1: '#FFD09F',
  15. themeColor2: '#FFAD5C',
  16. themeColor3: '#EF863F',
  17. themeColor4: '#FFDF80',
  18. themeColor5: '#848EFF',
  19. themeColor6: '#76BCFF',
  20. themeColor7: '#85FDF0',
  21. themeColor8: '#FFEDB9',
  22. themeColor9: '#FFFFFF',
  23. themeColor10: '#000000',
  24. themeColor11: '#B4FACB',
  25. themeColor12: '#4D7B5C',
  26. clientId:'1112011009',
  27. appId:'1758586978178079',
  28. baiduAppid:'d06f13eae4d2bc56f5fa7359784c0af9',
  29. }
  30. } else if (env === 'test2') {
  31. WEB_CONF = {
  32. brandId: 102,
  33. xcxHouseId: '100296',
  34. miniAppUrl: 'https://h5test.elab-plus.com/',
  35. zipUrl: 'http://139.196.5.59:5307',
  36. uploadUrl: 'http://106.14.187.241:5555', //文件上传
  37. api_url: 'https://gatewaytest1.elab-plus.com/', //測試
  38. redirect_uri: 'https://h5test1.elab-plus.com/krpano/template', // 授权回调地址
  39. min_uri: 'https://dm.static.elab-plus.com/miniProgram/webgl/test1/index.html#/', // H5小程序的地址
  40. ws_url: 'wss://wstest3.skyforestcity.com/',
  41. // ws_url: 'ws://192.168.50.190:5556/',
  42. themeColor1: '#FFD09F',
  43. themeColor2: '#FFAD5C',
  44. themeColor3: '#EF863F',
  45. themeColor4: '#FFDF80',
  46. themeColor5: '#848EFF',
  47. themeColor6: '#76BCFF',
  48. themeColor7: '#85FDF0',
  49. themeColor8: '#FFEDB9',
  50. themeColor9: '#FFFFFF',
  51. themeColor10: '#000000',
  52. themeColor11: '#B4FACB',
  53. themeColor12: '#4D7B5C',
  54. clientId:'1112011009',
  55. appId:'1758586978178079',
  56. baiduAppid:'d06f13eae4d2bc56f5fa7359784c0af9',
  57. }
  58. } else if (env === 'test3') {
  59. WEB_CONF = {
  60. brandId: 102,
  61. xcxHouseId: '100296',
  62. miniAppUrl: 'https://h5test.elab-plus.com/',
  63. zipUrl: 'http://139.196.5.59:5307',
  64. uploadUrl: 'http://106.14.187.241:5555', //文件上传
  65. api_url: 'https://gatewaytest3.skyforestcity.com/', //測試
  66. redirect_uri: 'https://h5test3.elab-plus.net/krpano/template', // 授权回调地址
  67. min_uri: 'https://dm.static.elab-plus.com/miniProgram/webgl/test1/index.html#/', // H5小程序的地址
  68. ws_url: 'wss://wstest3.skyforestcity.com/',
  69. themeColor1: '#FFD09F',
  70. themeColor2: '#FFAD5C',
  71. themeColor3: '#EF863F',
  72. themeColor4: '#FFDF80',
  73. themeColor5: '#848EFF',
  74. themeColor6: '#76BCFF',
  75. themeColor7: '#85FDF0',
  76. themeColor8: '#FFEDB9',
  77. themeColor9: '#FFFFFF',
  78. themeColor10: '#000000',
  79. themeColor11: '#B4FACB',
  80. themeColor12: '#4D7B5C',
  81. clientId:'1112011009',
  82. appId:'1758586978178079',
  83. baiduAppid:'d06f13eae4d2bc56f5fa7359784c0af9',
  84. }
  85. } else if (env === 'test4') {
  86. WEB_CONF = {
  87. brandId: 102,
  88. xcxHouseId: '100296',
  89. miniAppUrl: 'https://h5test.elab-plus.com/',
  90. zipUrl: 'http://139.196.5.59:5307',
  91. uploadUrl: 'http://106.14.187.241:5555', //文件上传
  92. api_url: 'https://gatewaytest4.skyforestcity.com/', //測試
  93. redirect_uri: 'https://h5test1.elab-plus.com/krpano/template', // 授权回调地址
  94. themeColor1: '#FFD09F',
  95. themeColor2: '#FFAD5C',
  96. themeColor3: '#EF863F',
  97. themeColor4: '#FFDF80',
  98. themeColor5: '#848EFF',
  99. themeColor6: '#76BCFF',
  100. themeColor7: '#85FDF0',
  101. themeColor8: '#FFEDB9',
  102. themeColor9: '#FFFFFF',
  103. themeColor10: '#000000',
  104. themeColor11: '#B4FACB',
  105. themeColor12: '#4D7B5C',
  106. clientId:'1112011009',
  107. appId:'1758586978178079',
  108. baiduAppid:'d06f13eae4d2bc56f5fa7359784c0af9',
  109. }
  110. } else if (env === 'dev') {
  111. WEB_CONF = {
  112. brandId: 94,
  113. xcxHouseId: '100296',
  114. miniAppUrl: 'http://h5test.elab-plus.com/',
  115. zipUrl: 'http://139.196.5.59:5307',
  116. uploadUrl: 'http://192.168.50.104:5555', //文件上传
  117. api_url: 'http://192.168.50.104:5555/', //开发
  118. redirect_uri: 'https://h5test1.elab-plus.com/krpano/template', // 授权回调地址
  119. themeColor1: '#FFD09F',
  120. themeColor2: '#FFAD5C',
  121. themeColor3: '#EF863F',
  122. themeColor4: '#FFDF80',
  123. themeColor5: '#848EFF',
  124. themeColor6: '#76BCFF',
  125. themeColor7: '#85FDF0',
  126. themeColor8: '#FFEDB9',
  127. themeColor9: '#FFFFFF',
  128. themeColor10: '#000000',
  129. themeColor11: '#B4FACB',
  130. themeColor12: '#4D7B5C',
  131. clientId:'1112011009',
  132. appId:'1758586978178079',
  133. baiduAppid:'d06f13eae4d2bc56f5fa7359784c0af9',
  134. }
  135. } else if (env === 'uat') {
  136. WEB_CONF = {
  137. brandId: 94,
  138. xcxHouseId: '11121',
  139. miniAppUrl: 'https://mng-uat.elaber.cn/',
  140. uploadUrl: 'https://api-uat.elaber.cn', //文件上传地址
  141. api_url: 'https://api-uat.elaber.cn/', //堡垒 接口地址https://dm.static.elab-plus.com/Kq3t1c3IDV.txt
  142. redirect_uri: 'https://mng-uat.elaber.cn/krpano/template', // 授权回调地址
  143. themeColor1: '#FFD09F',
  144. themeColor2: '#FFAD5C',
  145. themeColor3: '#EF863F',
  146. themeColor4: '#FFDF80',
  147. themeColor5: '#848EFF',
  148. themeColor6: '#76BCFF',
  149. themeColor7: '#85FDF0',
  150. themeColor8: '#FFEDB9',
  151. themeColor9: '#FFFFFF',
  152. themeColor10: '#000000',
  153. themeColor11: '#B4FACB',
  154. themeColor12: '#4D7B5C',
  155. clientId:'1112013355',
  156. appId:'1758979466364941',
  157. baiduAppid:'9a7c9c156493ffbb48bd562112e1161a',
  158. }
  159. } else if (env === 'uat3') {
  160. WEB_CONF = {
  161. brandId: 94,
  162. xcxHouseId: '11121',
  163. miniAppUrl: 'https://mng-uat3.elaber.cn/',
  164. uploadUrl: 'https://api-uat3.elaber.cn', //文件上传地址
  165. api_url: 'https://api-uat3.elaber.cn/', //堡垒 接口地址https://dm.static.elab-plus.com/Kq3t1c3IDV.txt
  166. redirect_uri: 'https://mng-uat3.elaber.cn/krpano/template', // 授权回调地址
  167. themeColor1: '#FFD09F',
  168. themeColor2: '#FFAD5C',
  169. themeColor3: '#EF863F',
  170. themeColor4: '#FFDF80',
  171. themeColor5: '#848EFF',
  172. themeColor6: '#76BCFF',
  173. themeColor7: '#85FDF0',
  174. themeColor8: '#FFEDB9',
  175. themeColor9: '#FFFFFF',
  176. themeColor10: '#000000',
  177. themeColor11: '#B4FACB',
  178. themeColor12: '#4D7B5C',
  179. clientId:'1112013355',
  180. appId:'1758979466364941',
  181. baiduAppid:'9a7c9c156493ffbb48bd562112e1161a',
  182. }
  183. } else if (env === 'production') {
  184. WEB_CONF = {
  185. brandId: 109,
  186. miniAppUrl: 'https://dm-mng.elab-plus.com.cn/',
  187. uploadUrl: 'https://dm-api.elab-plus.cn', //文件上传
  188. api_url: 'https://dm-api.elab-plus.cn/', //接口地址
  189. redirect_uri: 'http://city.1949plus.com', // 授权回调地址
  190. min_uri: 'https://dm.static.elab-plus.com/miniProgram/webgl/test1/index.html#/', // H5小程序的地址
  191. ws_url: 'wss://websocket.elab-plus.cn/',
  192. xcxHouseId: '11121',
  193. themeColor1: '#7AB47C',
  194. themeColor2: '#A7CE80',
  195. themeColor3: '#EEFFE6',
  196. themeColor4: '#F8F8F8',
  197. themeColor5: 'rgba(122, 180, 124, 0.5)',
  198. themeColor6: 'rgba(122, 180, 124, 0.2)',
  199. themeColor7: 'rgba(220, 252, 168, 0.5)',
  200. themeColor8: 'rgba(220, 252, 168, 0.2)',
  201. themeColor9: '#292D33',
  202. themeColor10: '#FFFFFF',
  203. themeColor11: '#B4FACB',
  204. themeColor12: '#4D7B5C',
  205. clientId:'1112009742',
  206. appId:'1758704971288606',
  207. baiduAppid:'30c97c277abecefe282aaa2ea7fa4115',
  208. }
  209. }
  210. return WEB_CONF
  211. }
  212. module.exports = config;