| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- //app.js
- App({
- onLaunch: function (options) {
- this.getSystemInfo();
- if (options && options.scene) {
- //console.log("scene:" + options.scene);
- this.globalData.userSource = options.scene;
- }
- },
- getSystemInfo: function () {
- this.globalData.systemInfo = wx.getSystemInfoSync();
- if (this.globalData.systemInfo.system.indexOf("Android") >= 0) {
- this.globalData.IsIOS = false;
- this.globalData.IsAndroid = true;
- }
- else if (this.globalData.systemInfo.system.indexOf("iOS") >= 0) {
- this.globalData.IsIOS = true;
- this.globalData.IsAndroid = false;
- }
- if (this.globalData.systemInfo.model.indexOf("iPad") >= 0) {
- this.globalData.IsIPad = true;
- }
- },
- globalData: {
- Version: "1.2.7",
- IsProduction: true,
- ProgramID: 106,
- AppID: "wx313a8f2c0741efe1",
- ProgramName: "语文识字",
- ShareTitle:"赢在阅读起跑线",
- SharePath: "pages/index/index",
- ShareImage: "../../pages/images/07001.png",
- userInfo: null,
- fileUrl: "https://www.kylx365.com/",
- serverUrl: "https://www.kylx365.com/apiData/",
- serverUrlServer: "https://www.kylx365.com/apiData/",
- serverUrlLocalhost: "http://localhost:3020/apiData/",
- imageUrl: "https://hanzi-1253256735.file.myqcloud.com",
- audioUrl: "https://pinyin.kylx365.com",
- audioUrlBaidu: "https://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=[token]&tex=[word]&vol=9&per=0&spd=3&pit=5",
- Key: "kylx365_chengjie",
- IV: "kylx365hongliren",
- systemInfo: null,
- userInfo: null,
- SourceID: 0,//来源ID
- DayNumber: 0,//使用天数
- PayMoney: 19.8,//产品销售价
- BaiduToken:"",//百度开发平台token
- IsShow: 0,
- IsLocked: 0,
- IsIOS: true,
- IsAndroid: false,
- IsIPad: false,
- NewUserNumberMax:6,//邀请新用户最大值
- IsSaveCustom:false,//是否保存了定制
- goto:"",//用于服务直达的跳转
- IsRefresh: false,
- }
- })
|