init
This commit is contained in:
1
wx49a18253b90a02d2/app.js
Normal file
1
wx49a18253b90a02d2/app.js
Normal file
@@ -0,0 +1 @@
|
||||
App({onLaunch:function(){var t=wx.getStorageSync("logs")||[];t.unshift(Date.now()),wx.setStorageSync("logs",t)},getUserInfo:function(t){var n=this;this.globalData.userInfo?"function"==typeof t&&t(this.globalData.userInfo):wx.getUserInfo({withCredentials:!1,success:function(o){n.globalData.userInfo=o.userInfo,"function"==typeof t&&t(n.globalData.userInfo)}})},globalData:{userInfo:null}});
|
||||
Reference in New Issue
Block a user