constant.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. export const QINIU_URL = 'https://qiniu.bms16.com/';
  2. export const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/
  3. export const defaultHeadImg = `${QINIU_URL}/FpzmRTePsa2QSxemAbc-xWdzSsn1`
  4. // 租赁周期
  5. export const LEASE_TYPE = {
  6. 'hour': 4, // 时租
  7. 'day': 1, // 日租
  8. 'week': 6, // 周租
  9. 'month': 2, // 月租
  10. 'season': 7, // 季租
  11. }
  12. export const LEASE_TYPE_ARR = [
  13. { label: '时租', value: LEASE_TYPE.hour, type: 'short', unit: '小时' },
  14. { label: '日租', value: LEASE_TYPE.day, type: 'short', unit: '天' },
  15. { label: '周租', value: LEASE_TYPE.week, type: 'long', unit: '周' },
  16. { label: '月租', value: LEASE_TYPE.month, type: 'long', unit: '月' },
  17. { label: '季租', value: LEASE_TYPE.season, type: 'long', unit: '季' }
  18. ]
  19. export const MAX_LIMITS = {
  20. 4: { max: 24, message: '最多可以选择24小时' },
  21. 1: { max: 30, message: '最多可以选择30天' },
  22. 2: { max: 12, message: '最多可以选择12个月' },
  23. 6: { max: 4, message: '最多可以选择4周' },
  24. 7: { max: 4, message: '最多可以选择4季度' },
  25. };
  26. //不同appid对应不同的首页顶部导航栏字体 门店名字
  27. export const APP_ID_NAME = [
  28. {app_name: '小众出行' , img_url: 'https://qiniu.bms16.com/FgUti3mvD9L4U-LzTNF70PP1BI5E', wx_id: 'wx868f4e5130ef2636',ali_id:'2021004109662240'},
  29. {app_name: '名师傅出行' , img_url: 'https://qiniu.bms16.com/FtApW97AbZn6PLd2IyAojrpKwCrQ', wx_id: 'wx56681a7f2fe324ed',ali_id:'2021004194666931'},
  30. ]