app.ts
2.66 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
const isBuildDebug = process.env.NODE_ENV === 'development' || false
const APP = {
appName: '',
/** @description token存储的名称 */
tokenName: 'jwt',
/** @description token在存储的时长,单位 天 */
tokenExpires: 7,
/** @description 初始的HTTP请求的全局header头*/
header: {},
/** @description API基础请求地址*/
baseUrl: isBuildDebug ? `https://gateway-dev.b2bwings.com/` : 'https://gateway.b2bwings.com',
/** @description 应用的登陆API的PATH*/
loginPath: '/user/sysLogin/login',
/** @description 401页面地址,用于提醒用户登陆状态失效*/
error404: '/404',
/** @description 静态资源目录,必须。用于菜单图标显示*/
STATIS_URL: 'https://b2bwings-system-image.oss-cn-shenzhen.aliyuncs.com/',
/** @description 静态资源目录,必须。图片地址*/
IMG_URL: 'https://images.b2bwings.com/',
/** @description tab按钮颜色配置*/
tabConfig: {
activeTintColor: '#F77116',
inactiveTintColor: '#434343'
},
/** @description 地址库存储名称 */
siteCacheName: '_site',
/** @description 地址库存储版本名称 */
siteVersionName: '_site_version',
/** @description 运营渠道 0=信巴迪 100=众家联 */
operationChannel: 0,
/** @description 适用平台:0=业务平台 1=运管平台 */
applyPlatform: [0],
/** @description 适用前端 0=web 1=app 3=小程序 */
applyCarrier: [1],
/** @description 配置发送邮件接口中的跳转链接(link参数),找回密码用*/
emailLinkFindPassword: isBuildDebug ? 'https://xbd-dev.b2bwings.com/findPassword' : 'https://xbd.b2bwings.com/findPassword',
/** @description 配置发送邮件接口中的跳转链接(link参数),重置邮箱用 */
emailLinkSetEmail: isBuildDebug ? 'https://xbd-dev.b2bwings.com/setMail' : 'https://xbd.b2bwings.com/setMail',
/** @description 用户信息本地存储名称 */
authCacheName: '_auth',
/** @description 查询版本更新的API地址 */
updateApi: isBuildDebug ? 'http://app-admin-dev.b2bwings.com/api/app/version/' : 'http://app-admin.b2bwings.com/api/app/version/',
/** @description app版本管理url */
appAdminUrl: isBuildDebug ? 'http://app-admin-dev.b2bwings.com' : 'http://app-admin.b2bwings.com',
/** @public APP编码 */
APP_CODE: isBuildDebug ? '' : '',
/** @description 隐私政策链接 */
privacyLink: 'https://app-static.b2bwings.com/static/page/privacy-policy/PrivacyPolicy.html',
/** @description 是否首次安装进入app */
notFirstInstall: '_not_first_install'
}
export {
APP,
isBuildDebug
}