config.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. /**
  2. * 小程序配置文件
  3. */
  4. // return 'https://examopenapi.elab-plus.com' //测试
  5. // return 'http://139.196.5.82:3001' //堡垒 映射
  6. // return 'https://openapi.elab-plus.com' //生产
  7. // return 'http://192.168.0.15:3000' //开发环境
  8. // return 'http://101.132.138.87:3001' // 测试
  9. const env = 'test';
  10. var config = function() {
  11. var result = {};
  12. if (env === 'prod') {
  13. result = {
  14. env: env,
  15. sdkAppID: '1400107457',
  16. accType: '30285',
  17. brandId: 1,
  18. houseId: "",
  19. color1: "#6193A5",
  20. color2: "#3A4A80",
  21. color3:"#a27e5d",
  22. color4:"#edb686",
  23. backColor: "#474952",
  24. themeColor: '#A27E5D',
  25. themeColor1: '#A27E5D',
  26. themeColor2: '#EDB686',
  27. themeColor3: '#ECE5DE',
  28. themeColor4: '#F8F8F8',
  29. themeColor5: '#C7B19D',
  30. themeColor6: '#E3D8CE',
  31. themeColor7: '#F4D3B6',
  32. themeColor8: '#FAE9DA',
  33. themeColor9: '#FEF9F4',
  34. themeColor10: '#FFFFFF',
  35. projectName: '金茂粉',
  36. imPhoneAuthorize: true,
  37. ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
  38. baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
  39. H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
  40. projectEngName: 'jinmaofen',
  41. // 后台接口请求地址
  42. url: 'https://dm-api.elab-plus.cn/', //开发-request接口域名
  43. newUrl: 'https://dm-api.elab-plus.cn/', //开发-request接口域名
  44. ImgUrl: 'http://skyforest.static.elab-plus.com/', //图片域名
  45. tdviewUrl: 'https://m.elab-plus.com/sell/#/tdview?houseId=', //获取3D房列表的地址,业务域名
  46. //客户业务后台请求域名
  47. // serverUrl: 'https://dm-api.elab-plus.cn/elab-marketing-rtc',//'https://room.qcloud.com', 139.196.5.59:5757 、、https://zb.elab-plus.com//生产
  48. roomServiceUrl: 'https://dm-api.elab-plus.cn/elab-marketing-rtc', //腾讯云RoomService后台请求域名-request接口域名
  49. webrtcServerUrl: 'https://dm-api.elab-plus.cn/elab-marketing-rtc', //webrtc服务地址-request接口域名
  50. templateUrl: 'https://m.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀 ,webview打开,业务域名
  51. newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀 ,webview打开,业务域名
  52. websocketUrl: 'wss://websocket.elab-plus.cn/', //websocket请求
  53. host:'https://dm-mng.elab-plus.com.cn/adverProgram',
  54. }
  55. } else if (env === 'dev') {
  56. result = {
  57. env: env,
  58. sdkAppID: '1400107457',
  59. accType: '30285',
  60. brandId: 1,
  61. houseId: "",
  62. color1: "#6193A5",
  63. color2: "#3A4A80",
  64. color3:"#a27e5d",
  65. color4:"#edb686",
  66. backColor: "#474952",
  67. themeColor: '#A27E5D',
  68. themeColor1: '#A27E5D',
  69. themeColor2: '#EDB686',
  70. themeColor3: '#ECE5DE',
  71. themeColor4: '#F8F8F8',
  72. themeColor5: '#C7B19D',
  73. themeColor6: '#E3D8CE',
  74. themeColor7: '#F4D3B6',
  75. themeColor8: '#FAE9DA',
  76. themeColor9: '#292D33',
  77. themeColor10: '#FFFFFF',
  78. projectName: '金茂粉',
  79. imPhoneAuthorize: true,
  80. ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
  81. baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
  82. H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
  83. projectEngName: 'jinmao',
  84. // 后台接口请求地址
  85. url: 'https://examopenapi.elab-plus.com',
  86. newUrl: 'http://192.168.4.212:5555/', //开发
  87. ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
  88. tdviewUrl: 'http://h5test.elab-plus.com/sell/#/tdview?houseId=',
  89. //客户业务后台请求域名
  90. // serverUrl: 'http://192.168.0.16:5555/elab-marketing-rtc',
  91. roomServiceUrl: 'http://192.168.0.16:5555/elab-marketing-rtc', //腾讯云RoomService后台请求域名
  92. webrtcServerUrl: 'https://xzb.qcloud.com/webrtc/weapp/webrtc_room',
  93. templateUrl: 'http://h5test.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
  94. newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
  95. websocketUrl: 'ws://192.168.4.212:5556/', //websocket请求
  96. host:'https://h5test.elab-plus.com/adver',
  97. }
  98. } else if (env === 'test') {
  99. result = {
  100. env: env,
  101. sdkAppID: '1400107457',
  102. accType: '30285',
  103. brandId: 6,
  104. houseId: "",
  105. color1: "#6193A5",
  106. color2: "#3A4A80",
  107. color3:"#a27e5d",
  108. color4:"#edb686",
  109. backColor: "#474952",
  110. themeColor: '#A27E5D',
  111. themeColor1: '#A27E5D',
  112. themeColor2: '#EDB686',
  113. themeColor3: '#ECE5DE',
  114. themeColor4: '#F8F8F8',
  115. themeColor5: '#C7B19D',
  116. themeColor6: '#E3D8CE',
  117. themeColor7: '#F4D3B6',
  118. themeColor8: '#FAE9DA',
  119. themeColor9: '#292D33',
  120. themeColor10: '#FFFFFF',
  121. projectName: '金茂粉',
  122. imPhoneAuthorize: true,
  123. ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
  124. baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
  125. H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
  126. projectEngName: 'jinmao',
  127. // 后台接口请求地址
  128. url: 'http://101.132.138.87:5555/',
  129. tdviewUrl: 'http://h5test.elab-plus.com/sell/#/tdview?houseId=', //获取3D房列表的地址,业务域名
  130. newUrl:'https://gatewaytest.elab-plus.vip/', //开发-request接口域名
  131. ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
  132. //客户业务后台请求域名
  133. // serverUrl: 'http://101.132.138.87:5555/elab-marketing-rtc',//测试
  134. roomServiceUrl: 'https://gatewaytest.elab-plus.vip/elab-marketing-rtc', //腾讯云RoomService后台请求域名
  135. webrtcServerUrl: 'https://xzb.qcloud.com/webrtc/weapp/webrtc_room',
  136. templateUrl: 'http://h5test.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
  137. newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
  138. websocketUrl: 'ws://101.132.138.87:5556/', //websocket请求
  139. host:'https://h5test.elab-plus.com/adver',
  140. }
  141. } else if (env === 'test2') {
  142. result = {
  143. env: env,
  144. sdkAppID: '1400107457',
  145. accType: '30285',
  146. brandId: 1,
  147. houseId: "",
  148. color1: "#6193A5",
  149. color2: "#3A4A80",
  150. color3:"#a27e5d",
  151. color4:"#edb686",
  152. backColor: "#474952",
  153. themeColor: '#A27E5D',
  154. themeColor1: '#A27E5D',
  155. themeColor2: '#EDB686',
  156. themeColor3: '#ECE5DE',
  157. themeColor4: '#F8F8F8',
  158. themeColor5: '#C7B19D',
  159. themeColor6: '#E3D8CE',
  160. themeColor7: '#F4D3B6',
  161. themeColor8: '#FAE9DA',
  162. themeColor9: '#292D33',
  163. themeColor10: '#FFFFFF',
  164. projectName: '金茂粉',
  165. imPhoneAuthorize: true,
  166. ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
  167. baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
  168. H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
  169. projectEngName: 'zhidi',
  170. // 后台接口请求地址
  171. url: 'http://101.132.138.87:5555/',
  172. tdviewUrl: 'http://h5test.elab-plus.com/sell/#/tdview?houseId=', //获取3D房列表的地址,业务域名
  173. newUrl: 'http://106.14.187.241:5555/', //开发-request接口域名
  174. // newUrl:'https://gatewaytest.elab-plus.com/',
  175. ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
  176. //客户业务后台请求域名
  177. // serverUrl: 'http://101.132.138.87:5555/elab-marketing-rtc',//测试
  178. roomServiceUrl: 'http://106.14.187.241:5555/elab-marketing-rtc', //腾讯云RoomService后台请求域名
  179. webrtcServerUrl: 'https://xzb.qcloud.com/webrtc/weapp/webrtc_room',
  180. templateUrl: 'http://h5test1.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
  181. newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
  182. // websocketUrl: 'ws://106.14.187.241:5556/', //websocket请求
  183. websocketUrl: 'ws://106.14.187.241:5556/', //websocket请求
  184. host:'https://h5test.elab-plus.com/adver',
  185. }
  186. } else if (env === 'test3') {
  187. result = {
  188. env: env,
  189. sdkAppID: '1400107457',
  190. accType: '30285',
  191. brandId: 1,
  192. houseId: "",
  193. color1: "#6193A5",
  194. color2: "#3A4A80",
  195. color3:"#a27e5d",
  196. color4:"#edb686",
  197. backColor: "#474952",
  198. themeColor: '#A27E5D',
  199. themeColor1: '#A27E5D',
  200. themeColor2: '#EDB686',
  201. themeColor3: '#ECE5DE',
  202. themeColor4: '#F8F8F8',
  203. themeColor5: '#C7B19D',
  204. themeColor6: '#E3D8CE',
  205. themeColor7: '#F4D3B6',
  206. themeColor8: '#FAE9DA',
  207. themeColor9: '#292D33',
  208. themeColor10: '#FFFFFF',
  209. projectName: '金茂粉',
  210. imPhoneAuthorize: true,
  211. ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
  212. baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
  213. H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
  214. projectEngName: 'zhidi',
  215. // 后台接口请求地址
  216. url: 'http://101.132.138.87:5555/',
  217. tdviewUrl: 'http://h5test.elab-plus.com/sell/#/tdview?houseId=', //获取3D房列表的地址,业务域名
  218. newUrl: 'https://gatewaytest3.skyforestcity.com/', //开发-request接口域名
  219. // newUrl:'https://gatewaytest.elab-plus.com/',
  220. ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
  221. //客户业务后台请求域名
  222. // serverUrl: 'http://101.132.138.87:5555/elab-marketing-rtc',//测试
  223. roomServiceUrl: 'https://gatewaytest3.skyforestcity.com/elab-marketing-rtc', //腾讯云RoomService后台请求域名
  224. webrtcServerUrl: 'https://xzb.qcloud.com/webrtc/weapp/webrtc_room',
  225. templateUrl: 'http://h5test1.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
  226. newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
  227. websocketUrl: 'wss://websocket.test.elab-plus.com/', //websocket请求
  228. host:'https://h5test.elab-plus.com/adver',
  229. }
  230. } else if (env === 'test4') {
  231. result = {
  232. env: env,
  233. sdkAppID: '1400107457',
  234. accType: '30285',
  235. brandId: 1,
  236. houseId: "",
  237. color1: "#6193A5",
  238. color2: "#3A4A80",
  239. color3:"#a27e5d",
  240. color4:"#edb686",
  241. backColor: "#474952",
  242. themeColor: '#A27E5D',
  243. themeColor1: '#A27E5D',
  244. themeColor2: '#EDB686',
  245. themeColor3: '#ECE5DE',
  246. themeColor4: '#F8F8F8',
  247. themeColor5: '#C7B19D',
  248. themeColor6: '#E3D8CE',
  249. themeColor7: '#F4D3B6',
  250. themeColor8: '#FAE9DA',
  251. themeColor9: '#98FB98',
  252. themeColor10: '#FFFFFF',
  253. projectName: '金茂粉',
  254. imPhoneAuthorize: true,
  255. ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
  256. baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
  257. H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
  258. projectEngName: 'jinmao',
  259. // 后台接口请求地址
  260. url: 'http://47.103.74.184:5555/',
  261. tdviewUrl: 'http://h5test.elab-plus.com/sell/#/tdview?houseId=', //获取3D房列表的地址,业务域名
  262. // newUrl:'http://106.14.187.241/',//开发-request接口域名
  263. newUrl: 'https://gatewaytest4.skyforestcity.com/',
  264. ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
  265. //客户业务后台请求域名
  266. // serverUrl: 'http://47.103.74.184/elab-marketing-rtc',//测试
  267. roomServiceUrl: 'https://gatewaytest4.skyforestcity.com/elab-marketing-rtc', //腾讯云RoomService后台请求域名
  268. webrtcServerUrl: 'https://xzb.qcloud.com/webrtc/weapp/webrtc_room',
  269. templateUrl: 'http://h5test1.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
  270. newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
  271. websocketUrl: 'ws://106.14.187.241:5556/', //websocket请求
  272. host:'https://h5test.elab-plus.com/adver',
  273. }
  274. } else if (env === 'uat') {
  275. result = {
  276. env: env,
  277. sdkAppID: '1400107457',
  278. accType: '30285',
  279. brandId: 1,
  280. houseId: "",
  281. color1: "#6193A5",
  282. color2: "#3A4A80",
  283. color3:"#a27e5d",
  284. color4:"#edb686",
  285. backColor: "#474952",
  286. themeColor: '#A27E5D',
  287. themeColor1: '#A27E5D',
  288. themeColor2: '#ffc444',
  289. themeColor3: '#f1f5f9',
  290. themeColor4: '#F8F8F8',
  291. themeColor5: '#7fbaff',
  292. themeColor6: '#bfddff',
  293. themeColor7: '#ffe1a1',
  294. themeColor8: '#fff6e3',
  295. themeColor9: '#f3f8ff',
  296. themeColor10: '#FFFFFF',
  297. projectName: '金茂粉',
  298. imPhoneAuthorize: true,
  299. ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
  300. baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
  301. H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
  302. projectEngName: 'jinmao',
  303. tdviewUrl: 'https://mng-uat.elaber.cn/sell/#/tdview?houseId=',
  304. // 后台接口请求地址
  305. url: 'https://api-uat.elaber.cn/',
  306. newUrl: 'https://api-uat.elaber.cn/', //测试
  307. ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
  308. //客户业务后台请求域名
  309. // serverUrl: 'https://api-uat.elaber.cn/elab-marketing-rtc',
  310. roomServiceUrl: 'https://api-uat.elaber.cn/elab-marketing-rtc', //腾讯云RoomService后台请求域名
  311. webrtcServerUrl: 'https://api-uat.elaber.cn/elab-marketing-rtc',
  312. templateUrl: 'https://m.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
  313. newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
  314. websocketUrl: 'wss://websocket-uat.elaber.cn/', //websocket请求
  315. host:'https://mng-uat.elaber.cn/adverProgram',
  316. }
  317. } else if (env === 'uat3') {
  318. result = {
  319. env: env,
  320. sdkAppID: '1400107457',
  321. accType: '30285',
  322. brandId: 1,
  323. houseId: "",
  324. color1: "#6193A5",
  325. color2: "#3A4A80",
  326. color3:"#a27e5d",
  327. color4:"#edb686",
  328. backColor: "#474952",
  329. themeColor: '#A27E5D',
  330. themeColor1: '#A27E5D',
  331. themeColor2: '#EDB686',
  332. themeColor3: '#ECE5DE',
  333. themeColor4: '#F8F8F8',
  334. themeColor5: '#C7B19D',
  335. themeColor6: '#E3D8CE',
  336. themeColor7: '#F4D3B6',
  337. themeColor8: '#FAE9DA',
  338. themeColor9: '#292D33',
  339. themeColor10: '#FFFFFF',
  340. projectName: '金茂粉',
  341. imPhoneAuthorize: false,
  342. ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
  343. baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
  344. H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
  345. projectEngName: 'jinmao',
  346. tdviewUrl: 'https://mng-uat.elaber.cn/sell/#/tdview?houseId=',
  347. // 后台接口请求地址
  348. url: 'https://api-uat3.elaber.cn/',
  349. newUrl: 'https://api-uat3.elaber.cn/', //测试
  350. ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
  351. //客户业务后台请求域名
  352. // serverUrl: 'https://api-uat3.elaber.cn/elab-marketing-rtc',
  353. roomServiceUrl: 'https://api-uat3.elaber.cn/elab-marketing-rtc', //腾讯云RoomService后台请求域名
  354. webrtcServerUrl: 'https://api-uat3.elaber.cn/elab-marketing-rtc',
  355. templateUrl: 'https://m.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
  356. newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
  357. websocketUrl: 'wss://websocket-uat.elaber.cn/', //websocket请求
  358. host:'https://mng-uat3.elaber.cn/adverProgram',
  359. }
  360. }
  361. return result;
  362. }
  363. module.exports = config();