/** * 配置通用 */ // const node_dev = process.env.H_NODE_ENV; // //运行到浏览器用的 // let baseUrl='/api'; // let upFileUrl='/api'; // //打包用的 // if (node_dev) { // baseUrl = process.env.H_BASE_URL; // upFileUrl = process.env.H_UP_FILE_URL // } /** * 后端环境配置 */ let baseUrl = null // 后端服务接口 let upFileUrl= null // 后端上传接口 let staticUrl= null // 静态文件地址 //64 // #ifdef MP baseUrl='https://greatadmin.dev.dazesoft.cn/serviceapi'; upFileUrl='http://fileupload.dev.dazesoft.cn/upload/single/minio'; // staticUrl='http://res.dev.dazesoft.cn/xushuo/'; staticUrl='https://miniores.dev.dazesoft.cn/greattransition/staticfile'; // #endif // #ifdef H5 baseUrl='https://greath5.dev.dazesoft.cn/serviceapi'; upFileUrl='http://fileupload.dev.dazesoft.cn/upload/single/minio'; // staticUrl='http://res.dev.dazesoft.cn/xushuo/'; staticUrl='https://miniores.dev.dazesoft.cn/greattransition/staticfile'; // #endif //正式 // #ifdef MP // baseUrl='https://serviceapi.wdzzgs.com'; // upFileUrl='https://serviceapi.wdzzgs.com/thirdapi/upload/single/minio'; staticUrl='https://minio.wdzzgs.com/greattransition/staticfile'; // #endif // #ifdef H5 // baseUrl='https://xusapi.gzxsjt.cn/appapi/app'; // upFileUrl='https://xusapi.gzxsjt.cn/thirdapi/upload/single/minio'; // staticUrl='https://xusapi.gzxsjt.cn/miniores/imgs/app'; // #endif const commonConfig = { wxAppid: '', // 测试wxAppid baseUrl: baseUrl, // 服务器地址 uploadFileUrl: upFileUrl, // 上传文件路径 staticUrl:staticUrl, paginationConfig:{ pageNum: 1, pageSize: 10 },//分页参数 successCode:200,//接口返回状态 } export { commonConfig }