//app.js App({ onLaunch: function (options) { this.getSystemInfo(); if (options && options.scene) { console.log("scene:" + options.scene); this.globalData.userSource = options.scene; } if (options && options.shareTicket) { this.globalData.shareTicket = options.shareTicket; } }, getSystemInfo: function () { this.globalData.systemInfo = wx.getSystemInfoSync(); }, globalData: { version: "1.1.1", IsProduction: true, ProgramID: 105, AppID: "wx1fef080f74481cbd", ProgramName: "数学计算题", ShareTitle: "认真练习,告别粗心", SharePath: "pages/index/index", ShareImageUrl: '../../pages/images/programsystem_screenshot_pic01.png', fileUrl: "https://math-1253256735.file.myqcloud.com/", serverUrl: "https://www.kylx365.com/apiData/", serverUrlServer: "https://www.kylx365.com/apiData/", serverUrlLocalhost: "http://localhost:3020/apiData/", audioUrlBaidu: "https://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=[token]&tex=[word]&vol=9&per=4&spd=6&pit=5", Key: "kylx365_chengjie", IV: "kylx365hongliren", systemInfo: null, userInfo: null, SourceID: 0,//来源ID DayNumber: 0,//使用天数 BaiduToken: "",//百度开发平台token IsShow: 0, NewUserNumberMax: 6,//邀请新用户最大值 IsSaveCustom: false,//是否保存了定制 IsRefresh: false, } })