123456789101112131415161718192021222324252627282930 |
- // 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,
- pictures:{
- background:'/static_file/background.png',
- logo:'/static_file/logo.png',
- phone:'/static_file/phone.png',
- water:'/static_file/water.png',
- tzd:'/static_file/tzd.png',
- hh:'/static_file/hh.png',
- card:'/static_file/card.png',
- location:'/static_file/location.png',
- location:'/static_file/yl.png',
- }
- }
- })
|