global.config.js 851 B

1234567891011121314
  1. const CONFIG = {
  2. staticUrl: 'https://shop.xiaocaituan.com/image', // 所有图片服务器地址 https://shop.xiaocaituan.com/image
  3. // staticUrl: '/static/image', // 所有图片服务器地址 https://shop.xiaocaituan.com/image
  4. // baseUrl: 'http://192.168.0.152:8300/api', // 后台接、口请求地址
  5. baseUrl: 'http://192.168.0.68:8300/api', // 后台接、口请求地址
  6. // baseUrl: 'https://shop.xiaocaituan.com/hd-api/api', // 正式接口请求地址
  7. telRegex: /^1[3-9]\d{9}$/, //手机正则
  8. telIdentity: /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(10|11|12))((0[1-9])|([1-2][0-9])|30|31)\d{3}[\dXx]$/, //身份证的正则表达式
  9. twoMinNum: /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/,
  10. mailVerify: "^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$",
  11. };
  12. export default CONFIG;