urlConfig.js 8.7 KB

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