global.config.js 747 B

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