let baseUrl = ""; let h5BaseUrl = ""; let socketUrl = ""; if (process.env.NODE_ENV === 'development') { // 开发环境 // baseUrl = "http://192.168.0.106:8080"; //屈晨 // baseUrl = "http://192.168.0.55:8080"; //蔡雅茹 // baseUrl = "http://192.168.0.52:8080"; //贺礼霄 baseUrl = "https://test.baoxianzhanggui.com/web-api"; //测试 h5BaseUrl = "https://test.baoxianzhanggui.com/copartnerH5"; // baseUrl = "https://pre.baoxianzhanggui.com/web-api"; //预生产 // h5BaseUrl = "https://pre.baoxianzhanggui.com/h5"; // baseUrl = "https://sxzgkj.baoxianzhanggui.com/web-api"; //生产 // h5BaseUrl = "http://192.168.0.52:8080/copartnerH5"; socketUrl = ""; } else if (process.env.NODE_ENV === 'production') { // 生产环境 baseUrl = "https://test.baoxianzhanggui.com/web-api"; //测试 h5BaseUrl = "https://test.baoxianzhanggui.com/copartnerH5"; // baseUrl = "https://pre.baoxianzhanggui.com/web-api"; //预生产 // h5BaseUrl = "https://pre.baoxian8zhanggui.com/copartnerH5"; // baseUrl = "https://sxzgkj.baoxianzhanggui.com/web-api"; //生产 // h5BaseUrl = "https://sxzgkj.baoxianzhanggui.com/copartnerH5"; socketUrl = ""; } const courtConfig = { //微信公众号APPID publicAppId: "", //请求接口 baseUrl: baseUrl, //h5请求接口 h5BaseUrl: h5BaseUrl, //webSocket地址 socketUrl: socketUrl, //平台名称 platformName: "晋掌柜合伙人", //项目logo logoUrl: "https://qn.kemean.cn/upload/201906/19/3f3b4751f3ed4a97be804450c3ec4c79", //页面分享配置 share: { title: 'uniApp-案例', // #ifdef MP-WEIXIN path: '/pages/home/home', //小程序分享路径 // #endif // #ifdef H5 || APP-PLUS //公众号||APP分享 desc: "uniApp-案例", // 分享描述 link: "https://www.kemean.com/sameCity/18031201/index.html", // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 imgUrl: "http://qn.kemean.cn/upload/201901/28/23bedfc34597482292ecd6dc107f6342", // 分享图标 // #endif } }; const insCompanyList = [{ name: "中煤财险", icon: "/static/insuranceicon/zhongmei.png" }, //华农 { name: "恒邦财险", icon: "/static/insuranceicon/hengbang.png" }, { name: "安盛天平", icon: "/static/insuranceicon/ansheng.png" }, { name: "中国人寿", icon: "/static/insuranceicon/renshou.png" }, { name: "众安财险", icon: "/static/insuranceicon/zhongan.png" }, { name: "永诚财险", icon: "/static/insuranceicon/yongcheng.png" }, { name: "永安财险", icon: "/static/insuranceicon/yongan.png" }, { name: "紫金财险", icon: "/static/insuranceicon/zijin.png" }, { name: "国任财险", icon: "/static/insuranceicon/guoren.png" }, { name: "华泰财险", icon: "/static/insuranceicon/huatai.png" }, { name: "大家财险", icon: "/static/insuranceicon/dajia.png" }, { name: "太平财险", icon: "/static/insuranceicon/taiping.png" }, { name: "华农财险", icon: "/static/insuranceicon/huanong.png" }, { name: "渤海财险", icon: "/static/insuranceicon/bohai.png" }, { name: "泰康财险", icon: "/static/insuranceicon/taikang.png" }, ]; //手机号验证正则表达式 const phoneRegular = /^1[3456789]\d{9}$/; //邮箱验证正则表达式 const mailRegular = /^\w+@\w+(\.[a-zA-Z]{2,3}){1,2}$/; //密码验证正则表达式(6-15位数字和字母组合) const passwordRegular = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,15}$/; export default Object.assign({ phoneRegular, mailRegular, passwordRegular, insCompanyList }, courtConfig);