-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.js
68 lines (67 loc) · 1.15 KB
/
app.js
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
// app.js
App({
onLaunch() {
// 展示本地存储能力
const logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
// 登录
wx.login({
success: res => {
// 发送 res.code 到后台换取 openId, sessionKey, unionId
}
})
},
globalData: {
userInfo: null,
authkey: "",
jsc: {
sum: 0,
start: "无数据",
end: "无数据",
r5_info: [],
r5_info_wq: [],
r5_info_js: [],
r5_js_sum: 0,
r5_wq_sum: 0,
r5_sum: 0,
r4_js: 0,
r4_wq: 0,
lj: 0,
avg: 0,
counter: 0
},
wqc: {
sum: 0,
start: "",
end: "",
r5_info_wq: [],
r5_info_js: [],
r5_info: [],
r5_js_sum: 0,
r5_wq_sum: 0,
r5_sum: 0,
r4_js: 0,
r4_wq: 0,
lj: 0,
avg: 0,
counter: 0
},
czc: {
sum: 0,
start: "",
end: "",
r5_info: [],
r5_info_wq: [],
r5_info_js: [],
r5_js_sum: 0,
r5_wq_sum: 0,
r5_sum: 0,
r4_js: 0,
r4_wq: 0,
lj: 0,
avg: 0,
counter: 0
},
}
})