123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369 |
- /**
- * 小程序配置文件
- */
- // return 'https://examopenapi.elab-plus.com' //测试
- // return 'http://139.196.5.82:3001' //堡垒 映射
- // return 'https://openapi.elab-plus.com' //生产
- // return 'http://192.168.0.15:3000' //开发环境
- // return 'http://101.132.138.87:3001' // 测试
- const env = 'test';
- var config = function() {
- var result = {};
- if (env === 'prod') {
- result = {
- env: env,
- sdkAppID: '1400107457',
- accType: '30285',
- brandId: 1,
- houseId: "",
- color1: "#6193A5",
- color2: "#3A4A80",
- color3:"#a27e5d",
- color4:"#edb686",
- backColor: "#474952",
- themeColor: '#A27E5D',
- themeColor1: '#A27E5D',
- themeColor2: '#EDB686',
- themeColor3: '#ECE5DE',
- themeColor4: '#F8F8F8',
- themeColor5: '#C7B19D',
- themeColor6: '#E3D8CE',
- themeColor7: '#F4D3B6',
- themeColor8: '#FAE9DA',
- themeColor9: '#FEF9F4',
- themeColor10: '#FFFFFF',
- projectName: '金茂粉',
- imPhoneAuthorize: true,
- ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
- baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
- H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
- projectEngName: 'jinmaofen',
- // 后台接口请求地址
- url: 'https://dm-api.elab-plus.cn/', //开发-request接口域名
- newUrl: 'https://dm-api.elab-plus.cn/', //开发-request接口域名
- ImgUrl: 'http://skyforest.static.elab-plus.com/', //图片域名
- tdviewUrl: 'https://m.elab-plus.com/sell/#/tdview?houseId=', //获取3D房列表的地址,业务域名
- //客户业务后台请求域名
- // serverUrl: 'https://dm-api.elab-plus.cn/elab-marketing-rtc',//'https://room.qcloud.com', 139.196.5.59:5757 、、https://zb.elab-plus.com//生产
- roomServiceUrl: 'https://dm-api.elab-plus.cn/elab-marketing-rtc', //腾讯云RoomService后台请求域名-request接口域名
- webrtcServerUrl: 'https://dm-api.elab-plus.cn/elab-marketing-rtc', //webrtc服务地址-request接口域名
- templateUrl: 'https://m.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀 ,webview打开,业务域名
- newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀 ,webview打开,业务域名
- websocketUrl: 'wss://websocket.elab-plus.cn/', //websocket请求
- host:'https://dm-mng.elab-plus.com.cn/adverProgram',
- }
- } else if (env === 'dev') {
- result = {
- env: env,
- sdkAppID: '1400107457',
- accType: '30285',
- brandId: 1,
- houseId: "",
- color1: "#6193A5",
- color2: "#3A4A80",
- color3:"#a27e5d",
- color4:"#edb686",
- backColor: "#474952",
- themeColor: '#A27E5D',
- themeColor1: '#A27E5D',
- themeColor2: '#EDB686',
- themeColor3: '#ECE5DE',
- themeColor4: '#F8F8F8',
- themeColor5: '#C7B19D',
- themeColor6: '#E3D8CE',
- themeColor7: '#F4D3B6',
- themeColor8: '#FAE9DA',
- themeColor9: '#292D33',
- themeColor10: '#FFFFFF',
- projectName: '金茂粉',
- imPhoneAuthorize: true,
- ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
- baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
- H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
- projectEngName: 'jinmao',
- // 后台接口请求地址
- url: 'https://examopenapi.elab-plus.com',
- newUrl: 'http://192.168.4.212:5555/', //开发
- ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
- tdviewUrl: 'http://h5test.elab-plus.com/sell/#/tdview?houseId=',
- //客户业务后台请求域名
- // serverUrl: 'http://192.168.0.16:5555/elab-marketing-rtc',
- roomServiceUrl: 'http://192.168.0.16:5555/elab-marketing-rtc', //腾讯云RoomService后台请求域名
- webrtcServerUrl: 'https://xzb.qcloud.com/webrtc/weapp/webrtc_room',
- templateUrl: 'http://h5test.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
- newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
- websocketUrl: 'ws://192.168.4.212:5556/', //websocket请求
- host:'https://h5test.elab-plus.com/adver',
- }
- } else if (env === 'test') {
- result = {
- env: env,
- sdkAppID: '1400107457',
- accType: '30285',
- brandId: 6,
- houseId: "",
- color1: "#6193A5",
- color2: "#3A4A80",
- color3:"#a27e5d",
- color4:"#edb686",
- backColor: "#474952",
- themeColor: '#A27E5D',
- themeColor1: '#A27E5D',
- themeColor2: '#EDB686',
- themeColor3: '#ECE5DE',
- themeColor4: '#F8F8F8',
- themeColor5: '#C7B19D',
- themeColor6: '#E3D8CE',
- themeColor7: '#F4D3B6',
- themeColor8: '#FAE9DA',
- themeColor9: '#292D33',
- themeColor10: '#FFFFFF',
- projectName: '金茂粉',
- imPhoneAuthorize: true,
- ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
- baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
- H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
- projectEngName: 'jinmao',
- // 后台接口请求地址
- url: 'http://101.132.138.87:5555/',
- tdviewUrl: 'http://h5test.elab-plus.com/sell/#/tdview?houseId=', //获取3D房列表的地址,业务域名
- newUrl:'https://gatewaytest.elab-plus.vip/', //开发-request接口域名
- ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
- //客户业务后台请求域名
- // serverUrl: 'http://101.132.138.87:5555/elab-marketing-rtc',//测试
- roomServiceUrl: 'https://gatewaytest.elab-plus.vip/elab-marketing-rtc', //腾讯云RoomService后台请求域名
- webrtcServerUrl: 'https://xzb.qcloud.com/webrtc/weapp/webrtc_room',
- templateUrl: 'http://h5test.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
- newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
- websocketUrl: 'ws://101.132.138.87:5556/', //websocket请求
- host:'https://h5test.elab-plus.com/adver',
- }
- } else if (env === 'test2') {
- result = {
- env: env,
- sdkAppID: '1400107457',
- accType: '30285',
- brandId: 1,
- houseId: "",
- color1: "#6193A5",
- color2: "#3A4A80",
- color3:"#a27e5d",
- color4:"#edb686",
- backColor: "#474952",
- themeColor: '#A27E5D',
- themeColor1: '#A27E5D',
- themeColor2: '#EDB686',
- themeColor3: '#ECE5DE',
- themeColor4: '#F8F8F8',
- themeColor5: '#C7B19D',
- themeColor6: '#E3D8CE',
- themeColor7: '#F4D3B6',
- themeColor8: '#FAE9DA',
- themeColor9: '#292D33',
- themeColor10: '#FFFFFF',
- projectName: '金茂粉',
- imPhoneAuthorize: true,
- ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
- baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
- H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
- projectEngName: 'zhidi',
- // 后台接口请求地址
- url: 'http://101.132.138.87:5555/',
- tdviewUrl: 'http://h5test.elab-plus.com/sell/#/tdview?houseId=', //获取3D房列表的地址,业务域名
- newUrl: 'http://106.14.187.241:5555/', //开发-request接口域名
- // newUrl:'https://gatewaytest.elab-plus.com/',
- ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
- //客户业务后台请求域名
- // serverUrl: 'http://101.132.138.87:5555/elab-marketing-rtc',//测试
- roomServiceUrl: 'http://106.14.187.241:5555/elab-marketing-rtc', //腾讯云RoomService后台请求域名
- webrtcServerUrl: 'https://xzb.qcloud.com/webrtc/weapp/webrtc_room',
- templateUrl: 'http://h5test1.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
- newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
- // websocketUrl: 'ws://106.14.187.241:5556/', //websocket请求
- websocketUrl: 'ws://106.14.187.241:5556/', //websocket请求
- host:'https://h5test.elab-plus.com/adver',
- }
- } else if (env === 'test3') {
- result = {
- env: env,
- sdkAppID: '1400107457',
- accType: '30285',
- brandId: 1,
- houseId: "",
- color1: "#6193A5",
- color2: "#3A4A80",
- color3:"#a27e5d",
- color4:"#edb686",
- backColor: "#474952",
- themeColor: '#A27E5D',
- themeColor1: '#A27E5D',
- themeColor2: '#EDB686',
- themeColor3: '#ECE5DE',
- themeColor4: '#F8F8F8',
- themeColor5: '#C7B19D',
- themeColor6: '#E3D8CE',
- themeColor7: '#F4D3B6',
- themeColor8: '#FAE9DA',
- themeColor9: '#292D33',
- themeColor10: '#FFFFFF',
- projectName: '金茂粉',
- imPhoneAuthorize: true,
- ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
- baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
- H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
- projectEngName: 'zhidi',
- // 后台接口请求地址
- url: 'http://101.132.138.87:5555/',
- tdviewUrl: 'http://h5test.elab-plus.com/sell/#/tdview?houseId=', //获取3D房列表的地址,业务域名
- newUrl: 'https://gatewaytest3.skyforestcity.com/', //开发-request接口域名
- // newUrl:'https://gatewaytest.elab-plus.com/',
- ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
- //客户业务后台请求域名
- // serverUrl: 'http://101.132.138.87:5555/elab-marketing-rtc',//测试
- roomServiceUrl: 'https://gatewaytest3.skyforestcity.com/elab-marketing-rtc', //腾讯云RoomService后台请求域名
- webrtcServerUrl: 'https://xzb.qcloud.com/webrtc/weapp/webrtc_room',
- templateUrl: 'http://h5test1.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
- newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
- websocketUrl: 'wss://websocket.test.elab-plus.com/', //websocket请求
- host:'https://h5test.elab-plus.com/adver',
- }
- } else if (env === 'test4') {
- result = {
- env: env,
- sdkAppID: '1400107457',
- accType: '30285',
- brandId: 1,
- houseId: "",
- color1: "#6193A5",
- color2: "#3A4A80",
- color3:"#a27e5d",
- color4:"#edb686",
- backColor: "#474952",
- themeColor: '#A27E5D',
- themeColor1: '#A27E5D',
- themeColor2: '#EDB686',
- themeColor3: '#ECE5DE',
- themeColor4: '#F8F8F8',
- themeColor5: '#C7B19D',
- themeColor6: '#E3D8CE',
- themeColor7: '#F4D3B6',
- themeColor8: '#FAE9DA',
- themeColor9: '#98FB98',
- themeColor10: '#FFFFFF',
- projectName: '金茂粉',
- imPhoneAuthorize: true,
- ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
- baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
- H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
- projectEngName: 'jinmao',
- // 后台接口请求地址
- url: 'http://47.103.74.184:5555/',
- tdviewUrl: 'http://h5test.elab-plus.com/sell/#/tdview?houseId=', //获取3D房列表的地址,业务域名
- // newUrl:'http://106.14.187.241/',//开发-request接口域名
- newUrl: 'https://gatewaytest4.skyforestcity.com/',
- ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
- //客户业务后台请求域名
- // serverUrl: 'http://47.103.74.184/elab-marketing-rtc',//测试
- roomServiceUrl: 'https://gatewaytest4.skyforestcity.com/elab-marketing-rtc', //腾讯云RoomService后台请求域名
- webrtcServerUrl: 'https://xzb.qcloud.com/webrtc/weapp/webrtc_room',
- templateUrl: 'http://h5test1.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
- newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
- websocketUrl: 'ws://106.14.187.241:5556/', //websocket请求
- host:'https://h5test.elab-plus.com/adver',
- }
- } else if (env === 'uat') {
- result = {
- env: env,
- sdkAppID: '1400107457',
- accType: '30285',
- brandId: 1,
- houseId: "",
- color1: "#6193A5",
- color2: "#3A4A80",
- color3:"#a27e5d",
- color4:"#edb686",
- backColor: "#474952",
- themeColor: '#A27E5D',
- themeColor1: '#A27E5D',
- themeColor2: '#ffc444',
- themeColor3: '#f1f5f9',
- themeColor4: '#F8F8F8',
- themeColor5: '#7fbaff',
- themeColor6: '#bfddff',
- themeColor7: '#ffe1a1',
- themeColor8: '#fff6e3',
- themeColor9: '#f3f8ff',
- themeColor10: '#FFFFFF',
- projectName: '金茂粉',
- imPhoneAuthorize: true,
- ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
- baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
- H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
- projectEngName: 'jinmao',
- tdviewUrl: 'https://mng-uat.elaber.cn/sell/#/tdview?houseId=',
- // 后台接口请求地址
- url: 'https://api-uat.elaber.cn/',
- newUrl: 'https://api-uat.elaber.cn/', //测试
- ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
- //客户业务后台请求域名
- // serverUrl: 'https://api-uat.elaber.cn/elab-marketing-rtc',
- roomServiceUrl: 'https://api-uat.elaber.cn/elab-marketing-rtc', //腾讯云RoomService后台请求域名
- webrtcServerUrl: 'https://api-uat.elaber.cn/elab-marketing-rtc',
- templateUrl: 'https://m.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
- newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
- websocketUrl: 'wss://websocket-uat.elaber.cn/', //websocket请求
- host:'https://mng-uat.elaber.cn/adverProgram',
- }
- } else if (env === 'uat3') {
- result = {
- env: env,
- sdkAppID: '1400107457',
- accType: '30285',
- brandId: 1,
- houseId: "",
- color1: "#6193A5",
- color2: "#3A4A80",
- color3:"#a27e5d",
- color4:"#edb686",
- backColor: "#474952",
- themeColor: '#A27E5D',
- themeColor1: '#A27E5D',
- themeColor2: '#EDB686',
- themeColor3: '#ECE5DE',
- themeColor4: '#F8F8F8',
- themeColor5: '#C7B19D',
- themeColor6: '#E3D8CE',
- themeColor7: '#F4D3B6',
- themeColor8: '#FAE9DA',
- themeColor9: '#292D33',
- themeColor10: '#FFFFFF',
- projectName: '金茂粉',
- imPhoneAuthorize: false,
- ttPlatformPhoneAuth:false, //代表字节平台手机号审核情况
- baiduPlatformPhoneAuth:true, //代表百度平台手机号审核情况
- H5PlatformPhoneAuth:false, //代表h5平台手机号审核情况
- projectEngName: 'jinmao',
- tdviewUrl: 'https://mng-uat.elaber.cn/sell/#/tdview?houseId=',
- // 后台接口请求地址
- url: 'https://api-uat3.elaber.cn/',
- newUrl: 'https://api-uat3.elaber.cn/', //测试
- ImgUrl: 'http://skyforest.static.elab-plus.com/', // 图片地址
- //客户业务后台请求域名
- // serverUrl: 'https://api-uat3.elaber.cn/elab-marketing-rtc',
- roomServiceUrl: 'https://api-uat3.elaber.cn/elab-marketing-rtc', //腾讯云RoomService后台请求域名
- webrtcServerUrl: 'https://api-uat3.elaber.cn/elab-marketing-rtc',
- templateUrl: 'https://m.elab-plus.com/launch/#/pages/preview?projectId=', // 模板H5链接前缀
- newTemplateUrl: 'https://dm-mng.elab-plus.cn/touFangBao/#/pages/preview?houseId=', // 新的模板H5链接前缀
- websocketUrl: 'wss://websocket-uat.elaber.cn/', //websocket请求
- host:'https://mng-uat3.elaber.cn/adverProgram',
- }
- }
- return result;
- }
- module.exports = config();
|