|
@@ -2,7 +2,7 @@
|
|
|
export const QINIU_URL = 'https://qiniu.bms16.com/';
|
|
|
export const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/
|
|
|
export const defaultHeadImg = `${QINIU_URL}/FpzmRTePsa2QSxemAbc-xWdzSsn1`
|
|
|
-
|
|
|
+import i18n from '../locale/index.js';
|
|
|
// 租赁周期
|
|
|
export const LEASE_TYPE = {
|
|
|
'day': 1, // 日租
|
|
@@ -15,14 +15,14 @@ export const LEASE_TYPE = {
|
|
|
'buy': 100, // 购买
|
|
|
}
|
|
|
export const LEASE_TYPE_ARR = [
|
|
|
- { label: '日租', value: LEASE_TYPE.day, type: 'day', unit: '天' ,sort:3},
|
|
|
- { label: '月租', value: LEASE_TYPE.month, type: 'month', unit: '月' ,sort:5},
|
|
|
- { label: '年租', value: LEASE_TYPE.year, type: 'year', unit: '年' ,sort:7},
|
|
|
- { label: '时租', value: LEASE_TYPE.hour, type: 'hour', unit: '小时',sort:2 },
|
|
|
- { label: '分租', value: LEASE_TYPE.minute, type: 'minute', unit: '分钟',sort:1 },
|
|
|
- { label: '周租', value: LEASE_TYPE.week, type: 'week', unit: '周' ,sort:4},
|
|
|
- { label: '季租', value: LEASE_TYPE.quarter, type: 'quarter', unit: '季',sort:6 },
|
|
|
- { label: '购买', value: LEASE_TYPE.buy, type: 'buy', unit: '买' ,sort:8}
|
|
|
+ { label: i18n.t('日租'), value: LEASE_TYPE.day, type: 'day', unit: i18n.t('天') ,sort:3},
|
|
|
+ { label: i18n.t('月租'), value: LEASE_TYPE.month, type: 'month', unit: i18n.t('月') ,sort:5},
|
|
|
+ { label: i18n.t('年租'), value: LEASE_TYPE.year, type: 'year', unit: i18n.t('年') ,sort:7},
|
|
|
+ { label: i18n.t('时租'), value: LEASE_TYPE.hour, type: 'hour', unit: i18n.t('小时'),sort:2 },
|
|
|
+ { label: i18n.t('分租'), value: LEASE_TYPE.minute, type: 'minute', unit: i18n.t('分钟'),sort:1 },
|
|
|
+ { label: i18n.t('周租'), value: LEASE_TYPE.week, type: 'week', unit: i18n.t('周') ,sort:4},
|
|
|
+ { label: i18n.t('季租'), value: LEASE_TYPE.quarter, type: 'quarter', unit: i18n.t('季'),sort:6 },
|
|
|
+ { label: i18n.t('购买'), value: LEASE_TYPE.buy, type: 'buy', unit: i18n.t('买') ,sort:8}
|
|
|
]
|
|
|
export const MAX_LIMITS = {
|
|
|
4: { max: 24, message: '最多可以选择24小时' },
|