let app = getApp() Page({ data: { appId: app.getAppid() }, onLoad() { }, onLogin: function() { console.log("登陆"); } })