| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //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.0.0",
- IsProduction: false,
- ProgramID: 105,
- AppID: "wx313a8f2c0741efe1",
- ShareTitle: "认真练习,告别粗心",
- ShareImageUrl: '../../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=1&spd=6&pit=5",
- Key: "kylx365_chengjie",
- IV: "kylx365hongliren",
-
- systemInfo: null,
- userInfo: null,
- SourceID: 0,//来源ID
- DayNumber: 0,//使用天数
- PayMoney: 9.8,//产品销售价
- BaiduToken: "",//百度开发平台token
- IsShow: 0,
- NewUserNumberMax: 6,//邀请新用户最大值
- IsSaveCustom: false,//是否保存了定制
- }
- })
|