1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| export const requestCtx = 'http://182.92.203.7:3001' // 请求地址
| const aiCtx = 'http://192.168.1.14:8100/'
| export const appId = 42
| export const requestTimeOut = 300000 // 请求超时时间
| export const tokenKey = 'caccrd-token'
| export const userInfoKey = 'accrd-userInfo' // 用户信息key
| export const appRefCode = 'CACCRD'
| export const goodsStore = `defaultGoodsStore${appId}` // 默认商品库(书城)
| export const publicStore = `defaultPublicStore${appId}` // 默认资源开放仓储
| export const publicRepository = `defaultPublicRepository${appId}` // 默认资源开放库
|
| export const reg_tel =
| /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/ // 电话号正则
| export const reg_telphone = /^0\d{2}-\d{8}$|^0\d{3}-\d{7}$/ //座机号正则
|
| export const pathData = {
| home: '/index',
| searchList: '/home/searchList',
| detailsPage: '/home/detailsPage',
| about: '/home/about',
| ai: '/home/ai',
| aiDetails: '/home/aiDetails',
| }
|
| const refCodes = {
| // 资源
| BioChargeMap: 'BioChargeMap', //天然产物
| thirteenClassics: 'CACCRD_thirteenClassics', //十三经
| about: 'CACCRD_aboutUs', // 关于我们简介
| }
| const config = {
| requestCtx,
| aiCtx,
| requestTimeOut,
| tokenKey,
| userInfoKey,
| appRefCode,
| goodsStore,
| reg_tel,
| reg_telphone,
| appId,
| pathData,
| refCodes,
| }
| export default config
|
|