Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproject.auth.js
More file actions
Latest commit
97 lines (92 loc) · 2.26 KB
/
Copy pathproject.auth.js
File metadata and controls
97 lines (92 loc) · 2.26 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
// 单独存储包含管理后台信息的js配置,未登录状态可看到此文件会被恶意攻击者知道管理后台的菜单项
// TA.m._find("skuType", 1).label // "虚拟"
TA.enum.skuType=[
{
key: 'digit',
value: 1,
label: '虚拟',
},
{
key: 'object',
value: 2,
label: '实物',
},
]
// url
TA.m.url_logout=function(){
return"/admin/logout"
}
TA.m.url_manager_message=function(){
return"/admin/manager/message"
}
TA.m.url_demo_list=function(){
varvalue=TA.m._encodeJSONQuery({
daterange: [
TA.dayjs().subtract(6,'day').format("YYYY-MM-DD"),
TA.dayjs().format("YYYY-MM-DD")
]
})
return"/admin/demo_list?json="+value
}
TA.m.url_demo_update=function(id){
return"/admin/demo_update?id="+id
}
TA.m.url_demo_create=function(){
return"/admin/demo_create"
}
TA.m.url_mobile_home=function(){
return"/mobile/home"
}
TA.nav={
// 头部
top: {
logo: '',
title: "内部管理后台",
},
manager: {
avatar: "",
name: "admin",
unreadMessage: 3,
},
// 消息
messageURL: TA.m.url_manager_message(),
// 退出登录
logoutURL: TA.m.url_logout(),
// 导航
items: [
{
url: TA.m.url_home(),
// 可在 https://icon.2type.cn/ 中寻找 icon 或者直接填写 https://icon.2type.cn/logo.svg
icon: '',
title: "首页",
},
{
url: TA.m.url_area_stat(),
icon: '',
title: "地图统计",
},
{
icon: '',
title: "演示",
items: [
{
// 可在 http://www.fontawesome.com.cn/faicons/ 中寻找fontawesome
fontawesome: 'list-alt',
url: TA.m.url_demo_list(),
title: '列表',
},
{
fontawesome: 'pencil-square-o',
url: TA.m.url_demo_create(),
title: '创建',
},
]
},
]
}
TA.footer={
link: {
text: "@2type/admin",
href: "https://github.com/2type/admin",
}
}