app.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //app.js
  2. App({
  3. onLaunch: function (options) {
  4. this.getSystemInfo();
  5. if (options && options.scene) {
  6. //console.log("scene:" + options.scene);
  7. this.globalData.userSource = options.scene;
  8. }
  9. },
  10. getSystemInfo: function () {
  11. this.globalData.systemInfo = wx.getSystemInfoSync();
  12. },
  13. globalData: {
  14. Version: "1.2.0",
  15. IsProduction: true,
  16. ProgramID: 106,
  17. AppID: "wx313a8f2c0741efe1",
  18. ProgramName: "语文识字",
  19. ShareTitle:"赢在阅读起跑线",
  20. ShareImage: "../../pages/images/07001.png",
  21. userInfo: null,
  22. fileUrl: "https://www.kylx365.com/",
  23. serverUrl: "https://www.kylx365.com/apiData/",
  24. serverUrlServer: "https://www.kylx365.com/apiData/",
  25. serverUrlLocalhost: "http://localhost:3020/apiData/",
  26. imageUrl: "https://hanzi-1253256735.file.myqcloud.com",
  27. audioUrl: "https://pinyin.kylx365.com",
  28. audioUrlBaidu: "https://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=[token]&tex=[word]&vol=9&per=0&spd=3&pit=5",
  29. Key: "kylx365_chengjie",
  30. IV: "kylx365hongliren",
  31. systemInfo: null,
  32. userInfo: null,
  33. SourceID: 0,//来源ID
  34. DayNumber: 0,//使用天数
  35. PayMoney: 19.8,//产品销售价
  36. BaiduToken:"",//百度开发平台token
  37. IsShow: 0,
  38. IsLocked: 0,
  39. NewUserNumberMax:6,//邀请新用户最大值
  40. IsSaveCustom:false,//是否保存了定制
  41. goto:"",//用于服务直达的跳转
  42. }
  43. })