//app.js App({ onLaunch: function (options) { this.getSystemInfo(); if (options && options.scene) { this.globalData.userSource = options.scene; } if (options && options.shareTicket) { this.globalData.shareTicket = options.shareTicket; } }, 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.0.0.20", IsProduction: true, ShareTitle: "可以用来记忆一切的工具", SharePath: "pages/index/index", ShareImage: '', ProgramID: 166, ProgramName:"秒过学习", 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=0&spd=3&pit=5", audioUrlYoudao: "https://dict.youdao.com/dictvoice?rate=5&le=auto&audio=", pinyinUrl: "https://pinyin.kylx365.com/sounds/[pinyin].m4a", uploadImageUrl:"https://miaguo-1253256735.file.myqcloud.com/", BaiduToken: "",//百度开发平台token IsIOS:true, IsAndroid:false, IsIPad:false, systemInfo: null, userInfo: null, SourceID: 0,//来源ID shareTicket: null, userSource: null,//用户来源方式 Key: "kylx365_chengjie", IV: "kylx365hongliren", IsEnter: true,//是否是刚进来 CardList:[],//卡列表变量 TaskToday:[],//今天任务列表 TempMiaoguoCardID:0,//临时题卡ID,用于资料选取时用 } })