You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.6 KiB
51 lines
1.6 KiB
let baseUrl = "";
|
|
let socketUrl = "";
|
|
if (process.env.NODE_ENV === 'development') {
|
|
// 开发环境
|
|
// baseUrl = "http://localhost:7001/";
|
|
// socketUrl = "ws://localhost:8001/";
|
|
// baseUrl = "http://26077a35f5.wicp.vip:43609/";
|
|
baseUrl = "http://mall.yyundong.com/portalapi/api/";
|
|
socketUrl = "ws://8192.168.43.195:8083/";
|
|
} else if (process.env.NODE_ENV === 'production') {
|
|
// 生产环境
|
|
baseUrl = "http://mall.yyundong.com/portalapi/api/";
|
|
// baseUrl = "http://192.168.43.195:8083/";
|
|
socketUrl = "ws://192.168.43.195:8083/";
|
|
}
|
|
const courtConfig = {
|
|
//微信公众号APPID
|
|
publicAppId: "",
|
|
//请求接口
|
|
baseUrl: baseUrl,
|
|
//webSocket地址
|
|
socketUrl: socketUrl,
|
|
//平台名称
|
|
platformName: "uniApp-案例",
|
|
//项目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 phoneRegular = /^1\d{10}$/;
|
|
//邮箱验证正则表达式
|
|
const mailRegular = /^\w+@\w+(\.[a-zA-Z]{2,3}){1,2}$/;
|
|
//密码验证正则表达式
|
|
const passwordRegular = /^[a-zA-Z0-9]{4,10}$/;
|
|
export default Object.assign({
|
|
phoneRegular,
|
|
mailRegular,
|
|
passwordRegular
|
|
}, courtConfig);
|
|
|