app.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. if (options && options.shareTicket) {
  10. this.globalData.shareTicket = options.shareTicket;
  11. }
  12. },
  13. getSystemInfo: function () {
  14. this.globalData.systemInfo = wx.getSystemInfoSync();
  15. },
  16. globalData: {
  17. version: "1.1.5",
  18. IsProduction: true,
  19. ProgramID: 105,
  20. AppID: "wx1fef080f74481cbd",
  21. ProgramName: "数学计算题",
  22. ShareTitle: "认真练习,告别粗心",
  23. SharePath: "pages/index/index",
  24. ShareImage: '../../pages/images/programsystem_screenshot_pic01.png',
  25. fileUrl: "https://math-1253256735.file.myqcloud.com/",
  26. serverUrl: "https://www.kylx365.com/apiData/",
  27. serverUrlServer: "https://www.kylx365.com/apiData/",
  28. serverUrlLocalhost: "http://localhost:3020/apiData/",
  29. audioUrlBaidu: "https://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=[token]&tex=[word]&vol=9&per=4&spd=6&pit=5",
  30. Key: "kylx365_chengjie",
  31. IV: "kylx365hongliren",
  32. systemInfo: null,
  33. userInfo: null,
  34. SourceID: 0,//来源ID
  35. DayNumber: 0,//使用天数
  36. BaiduToken: "",//百度开发平台token
  37. IsShow: 0,
  38. NewUserNumberMax: 6,//邀请新用户最大值
  39. IsSaveCustom: false,//是否保存了定制
  40. IsRefresh: false,
  41. }
  42. })