Initial commit

This commit is contained in:
fzw
2025-12-17 14:21:57 +08:00
commit 39a9d4b9c4
10 changed files with 461 additions and 0 deletions

21
app.js Normal file
View File

@@ -0,0 +1,21 @@
// app.js
App({
onLaunch: function() {
// 展示本地存储能力
const logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
// 登录
wx.login({
success: res => {
// 发送 res.code 到后台换取 openId, sessionKey, unionId
console.log('登录code:', res.code)
}
})
},
globalData: {
userInfo: null,
openid: null
}
})