正在显示
71 个修改的文件
包含
170 行增加
和
0 行删除
app.js
0 → 100644
1 | +//app.js | ||
2 | +App({ | ||
3 | + onLaunch: function () { | ||
4 | + // 展示本地存储能力 | ||
5 | + var logs = wx.getStorageSync('logs') || [] | ||
6 | + logs.unshift(Date.now()) | ||
7 | + wx.setStorageSync('logs', logs) | ||
8 | + | ||
9 | + // 登录 | ||
10 | + wx.login({ | ||
11 | + success: res => { | ||
12 | + // 发送 res.code 到后台换取 openId, sessionKey, unionId | ||
13 | + } | ||
14 | + }) | ||
15 | + // 获取用户信息 | ||
16 | + wx.getSetting({ | ||
17 | + success: res => { | ||
18 | + if (res.authSetting['scope.userInfo']) { | ||
19 | + // 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框 | ||
20 | + wx.getUserInfo({ | ||
21 | + success: res => { | ||
22 | + // 可以将 res 发送给后台解码出 unionId | ||
23 | + this.globalData.userInfo = res.userInfo | ||
24 | + | ||
25 | + // 由于 getUserInfo 是网络请求,可能会在 Page.onLoad 之后才返回 | ||
26 | + // 所以此处加入 callback 以防止这种情况 | ||
27 | + if (this.userInfoReadyCallback) { | ||
28 | + this.userInfoReadyCallback(res) | ||
29 | + } | ||
30 | + } | ||
31 | + }) | ||
32 | + } | ||
33 | + } | ||
34 | + }) | ||
35 | + }, | ||
36 | + globalData: { | ||
37 | + userInfo: null, | ||
38 | + baseUrl: '../../img/' | ||
39 | + } | ||
40 | +}) |
img/aicon_01@2x.png
0 → 100644
1.1 KB
img/aicon_02@2x.png
0 → 100644
1.5 KB
img/aicon_03@2x.png
0 → 100644
8.3 KB
img/aicon_04@2x.png
0 → 100644
8.3 KB
img/aicon_05@2x.png
0 → 100644
7.6 KB
img/aicon_06@2x.png
0 → 100644
7.2 KB
img/aicon_07@2x.png
0 → 100644
117.1 KB
img/aicon_08@2x.png
0 → 100644
2.2 KB
img/aicon_09@2x.png
0 → 100644
1.3 KB
img/aicon_10@2x.png
0 → 100644
1.2 KB
img/aicon_11@2x.png
0 → 100644
1.0 KB
img/aicon_12@2x.png
0 → 100644
1.1 KB
img/aicon_13@2x.png
0 → 100644
3.8 KB
img/aicon_14@2x.png
0 → 100644
3.7 KB
img/aicon_15@2x.png
0 → 100644
3.7 KB
img/aicon_16@2x.png
0 → 100644
4.9 KB
img/aicon_17@2x.png
0 → 100644
1.3 KB
img/aicon_18@2x.png
0 → 100644
468.6 KB
img/aicon_19@2x.png
0 → 100644
85.8 KB
img/aicon_20@2x.png
0 → 100644
1.5 KB
img/aicon_21@2x.png
0 → 100644
1.9 KB
img/aicon_22@2x.png
0 → 100644
1.5 KB
img/aicon_23@2x.png
0 → 100644
2.1 KB
img/aicon_24@2x.png
0 → 100644
2.5 KB
img/aicon_25@2x.png
0 → 100644
83.4 KB
img/aicon_26@2x.png
0 → 100644
1.1 KB
img/aicon_27@2x.png
0 → 100644
1.5 KB
img/aicon_28@2x.png
0 → 100644
1.3 KB
img/aicon_29@2x.png
0 → 100644
1.3 KB
img/aicon_30@2x.png
0 → 100644
1.4 KB
img/aicon_31@2x.png
0 → 100644
59.9 KB
img/aicon_32@2x.png
0 → 100644
1.3 KB
img/aicon_33@2x.png
0 → 100644
1.2 KB
img/aicon_34@2x.png
0 → 100644
1.1 KB
img/aicon_35@2x.png
0 → 100644
53.4 KB
img/aicon_36@2x.png
0 → 100644
3.1 KB
img/aicon_37@2x.png
0 → 100644
2.7 KB
img/aicon_38@2x.png
0 → 100644
2.8 KB
img/aicon_39@2x.png
0 → 100644
2.8 KB
img/aicon_40@2x.png
0 → 100644
3.0 KB
img/aicon_41@2x.png
0 → 100644
2.6 KB
img/aicon_42@2x.png
0 → 100644
2.9 KB
img/aicon_43@2x.png
0 → 100644
2.8 KB
img/aicon_44@2x.png
0 → 100644
3.6 KB
img/aicon_45@2x.png
0 → 100644
3.1 KB
img/aicon_46@2x.png
0 → 100644
10.1 KB
img/aicon_47@2x.png
0 → 100644
1.2 KB
img/aicon_48@2x.png
0 → 100644
3.1 KB
img/aicon_49@2x.png
0 → 100644
11.5 KB
img/aicon_50@2x.png
0 → 100644
1.3 KB
img/aicon_51@2x.png
0 → 100644
223.0 KB
img/aicon_52@2x.png
0 → 100644
4.0 KB
img/aicon_53@2x.png
0 → 100644
4.7 KB
img/aicon_54@2x.png
0 → 100644
2.6 KB
img/aicon_55@2x.png
0 → 100644
2.7 KB
img/aicon_56@2x.png
0 → 100644
5.7 KB
img/aicon_57@2x.png
0 → 100644
3.4 KB
img/aicon_58@2x.png
0 → 100644
19.7 KB
img/aicon_59@2x.png
0 → 100644
1.0 KB
img/nav_01@2x.png
0 → 100644
1.6 KB
img/nav_02@2x.png
0 → 100644
1.4 KB
img/nav_03@2x.png
0 → 100644
3.7 KB
img/nav_04@2x.png
0 → 100644
1.5 KB
img/nav_05@2x.png
0 → 100644
1.7 KB
pages/index/index.js
0 → 100644
1 | +// pages/index/index.js | ||
2 | +Page({ | ||
3 | + | ||
4 | + /** | ||
5 | + * 页面的初始数据 | ||
6 | + */ | ||
7 | + data: { | ||
8 | + | ||
9 | + }, | ||
10 | + | ||
11 | + /** | ||
12 | + * 生命周期函数--监听页面加载 | ||
13 | + */ | ||
14 | + onLoad: function (options) { | ||
15 | + | ||
16 | + }, | ||
17 | + | ||
18 | + /** | ||
19 | + * 生命周期函数--监听页面初次渲染完成 | ||
20 | + */ | ||
21 | + onReady: function () { | ||
22 | + | ||
23 | + }, | ||
24 | + | ||
25 | + /** | ||
26 | + * 生命周期函数--监听页面显示 | ||
27 | + */ | ||
28 | + onShow: function () { | ||
29 | + | ||
30 | + }, | ||
31 | + | ||
32 | + /** | ||
33 | + * 生命周期函数--监听页面隐藏 | ||
34 | + */ | ||
35 | + onHide: function () { | ||
36 | + | ||
37 | + }, | ||
38 | + | ||
39 | + /** | ||
40 | + * 生命周期函数--监听页面卸载 | ||
41 | + */ | ||
42 | + onUnload: function () { | ||
43 | + | ||
44 | + }, | ||
45 | + | ||
46 | + /** | ||
47 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
48 | + */ | ||
49 | + onPullDownRefresh: function () { | ||
50 | + | ||
51 | + }, | ||
52 | + | ||
53 | + /** | ||
54 | + * 页面上拉触底事件的处理函数 | ||
55 | + */ | ||
56 | + onReachBottom: function () { | ||
57 | + | ||
58 | + }, | ||
59 | + | ||
60 | + /** | ||
61 | + * 用户点击右上角分享 | ||
62 | + */ | ||
63 | + onShareAppMessage: function () { | ||
64 | + | ||
65 | + } | ||
66 | +}) |
pages/index/index.json
0 → 100644
pages/index/index.wxml
0 → 100644
pages/index/index.wxss
0 → 100644
project.config.json
0 → 100644
1 | +{ | ||
2 | + "description": "项目配置文件", | ||
3 | + "packOptions": { | ||
4 | + "ignore": [] | ||
5 | + }, | ||
6 | + "setting": { | ||
7 | + "urlCheck": true, | ||
8 | + "es6": true, | ||
9 | + "postcss": true, | ||
10 | + "minified": true, | ||
11 | + "newFeature": true, | ||
12 | + "autoAudits": false | ||
13 | + }, | ||
14 | + "compileType": "miniprogram", | ||
15 | + "libVersion": "2.6.2", | ||
16 | + "appid": "wx532ecca400eb93a8", | ||
17 | + "projectname": "Jobs", | ||
18 | + "debugOptions": { | ||
19 | + "hidedInDevtools": [] | ||
20 | + }, | ||
21 | + "isGameTourist": false, | ||
22 | + "condition": { | ||
23 | + "search": { | ||
24 | + "current": -1, | ||
25 | + "list": [] | ||
26 | + }, | ||
27 | + "conversation": { | ||
28 | + "current": -1, | ||
29 | + "list": [] | ||
30 | + }, | ||
31 | + "game": { | ||
32 | + "currentL": -1, | ||
33 | + "list": [] | ||
34 | + }, | ||
35 | + "miniprogram": { | ||
36 | + "current": -1, | ||
37 | + "list": [] | ||
38 | + } | ||
39 | + } | ||
40 | +} |
-
请 注册 或 登录 后发表评论