-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
153 lines (152 loc) · 3.98 KB
/
config.js
File metadata and controls
153 lines (152 loc) · 3.98 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
var data = {
//云开发环境id
// env: 'cloud1-9ghjmre334cee3d0',
// //分享配置
// share_title: '二手书交易平台',
// share_img: '/images/poster.jpg', //可以是网络地址,本地文件路径要填绝对位置
// share_poster:'https://mmbiz.qpic.cn/mmbiz_jpg/nJPznPUZbhpA064Cl78xxvzBYTDa6O1Kl7RY1K6TerBaXcUf5AoN6x7s8q7xHgeu0Cl5qarPzE6ibbQZasWRErg/640',//必须为网络地址
// //客服联系方式
// kefu: {
// weixin: 'xuhuai66',
// qq: '1604026596',
// gzh: 'https://mmbiz.qpic.cn/mmbiz_png/nJPznPUZbhpKCwnibUUqnt7BQXr3MbNsasCfsBd0ATY8udkWPUtWjBTtiaaib6rTREWHnPYNVRZYgAesG9yjYOG7Q/640', //公众号二维码必须为网络地址
// phone: '' //如果你不设置电话客服,就留空
// },
// //默认启动页背景图,防止请求失败完全空白
// //可以是网络地址,本地文件路径要填绝对位置
// bgurl: '/images/startBg.jpg',
// //校区
// campus: [{
// name: '重大A区',
// id: 0
// },
// {
// name: '重大B区',
// id: 1
// },
// {
// name: '重大C区',
// id: 2
// },
// {
// name: '虎溪校区',
// id: 3
// },
// ],
//配置学院,建议不要添加太多,不然前端不好看
college: [
{
name: '占位',
id: -2
},
{
name: '通用',
id: -1
},
{
name: '机械',
id: 0
},
{
name: '经管',
id: 1
},
{
name: '土木',
id: 2
},
{
name: '新闻',
id: 3
},
{
name: '数统',
id: 4
},
{
name: '物理',
id: 5
},
{
name: '化工',
id: 6
},
{
name: '生物',
id: 7
},
{
name: '电气',
id: 8
},
{
name: '机械',
id: 9
},
{
name: '动力',
id: 10
},
{
name: '计算机',
id: 11
},
{
name: '材料',
id: 12
},
{
name: '建筑',
id: 13
},
{
name: '其它',
id: 14
},
],
}
//下面的就别动了
function formTime(creatTime) {
let date = new Date(creatTime),
Y = date.getFullYear(),
M = date.getMonth() + 1,
D = date.getDate(),
H = date.getHours(),
m = date.getMinutes(),
s = date.getSeconds();
if (M < 10) {
M = '0' + M;
}
if (D < 10) {
D = '0' + D;
}
if (H < 10) {
H = '0' + H;
}
if (m < 10) {
m = '0' + m;
}
if (s < 10) {
s = '0' + s;
}
return Y + '-' + M + '-' + D + ' ' + H + ':' + m + ':' + s;
}
function days() {
let now = new Date();
let year = now.getFullYear();
let month = now.getMonth() + 1;
let day = now.getDate();
if (month < 10) {
month = '0' + month;
}
if (day < 10) {
day = '0' + day;
}
let date = year + "" + month + day;
return date;
}
module.exports = {
data: JSON.stringify(data),
formTime: formTime,
days: days
}