app.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.3",
  15. IsProduction: true,
  16. ProgramID: 106,
  17. AppID: "wx313a8f2c0741efe1",
  18. ProgramName: "语文识字",
  19. ShareTitle:"赢在阅读起跑线",
  20. SharePath: "pages/index/index",
  21. ShareImage: "../../pages/images/07001.png",
  22. userInfo: null,
  23. fileUrl: "https://www.kylx365.com/",
  24. serverUrl: "https://www.kylx365.com/apiData/",
  25. serverUrlServer: "https://www.kylx365.com/apiData/",
  26. serverUrlLocalhost: "http://localhost:3020/apiData/",
  27. imageUrl: "https://hanzi-1253256735.file.myqcloud.com",
  28. audioUrl: "https://pinyin.kylx365.com",
  29. audioUrlBaidu: "https://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=[token]&tex=[word]&vol=9&per=0&spd=3&pit=5",
  30. Key: "kylx365_chengjie",
  31. IV: "kylx365hongliren",
  32. systemInfo: null,
  33. userInfo: null,
  34. SourceID: 0,//来源ID
  35. DayNumber: 0,//使用天数
  36. PayMoney: 19.8,//产品销售价
  37. BaiduToken:"",//百度开发平台token
  38. IsShow: 0,
  39. IsLocked: 0,
  40. NewUserNumberMax:6,//邀请新用户最大值
  41. IsSaveCustom:false,//是否保存了定制
  42. goto:"",//用于服务直达的跳转
  43. IsRefresh: false,
  44. }
  45. })