"use strict";var _require=require("./formatInfo.js"),setSystemInfo=_require.setSystemInfo,setUserInfo=_require.setUserInfo,setAuthInfo=_require.setAuthInfo;Component({data:{systemInfo:[],accountInfo:[],userInfo:[],authInfo:[]},lifetimes:{created:function(){},attached:function(){this.onGetSystemInfo(),this.onGetAccountInfo(),this.onGetUserInfo(),this.onGetAuthInfo()},detached:function(){}},methods:{onGetSystemInfo:function(){var e=this;wx.getSystemInfo({success:function(t){var n=setSystemInfo(t);e.setData({systemInfo:n})}})},onGetAccountInfo:function(){var t=[{name:"小程序appid",value:wx.getAccountInfoSync().miniProgram.appId}];this.setData({accountInfo:t})},onGetUserInfo:function(){var e=this;wx.getUserInfo({success:function(t){var n=setUserInfo(t.userInfo);e.setData({userInfo:n})}})},onGetAuthInfo:function(){var e=this;wx.getSetting({success:function(t){var n=setAuthInfo(t.authSetting);e.setData({authInfo:n})}})},onGoBack:function(){this.triggerEvent("toggle",{componentType:"dokit"})}}});