app.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.0.7",
  18. IsProduction: true,
  19. ProgramID: 105,
  20. AppID: "wx1fef080f74481cbd",
  21. ShareTitle: "认真练习,告别粗心",
  22. ShareImageUrl: '../../images/programsystem_screenshot_pic01.png',
  23. fileUrl: "https://math-1253256735.file.myqcloud.com/",
  24. serverUrl: "https://www.kylx365.com/apiData/",
  25. serverUrlServer: "https://www.kylx365.com/apiData/",
  26. serverUrlLocalhost: "http://localhost:3020/apiData/",
  27. audioUrlBaidu: "https://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=[token]&tex=[word]&vol=9&per=4&spd=6&pit=5",
  28. Key: "kylx365_chengjie",
  29. IV: "kylx365hongliren",
  30. systemInfo: null,
  31. userInfo: null,
  32. SourceID: 0,//来源ID
  33. DayNumber: 0,//使用天数
  34. PayMoney: 9.8,//产品销售价
  35. BaiduToken: "",//百度开发平台token
  36. IsShow: 0,
  37. NewUserNumberMax: 6,//邀请新用户最大值
  38. IsSaveCustom: false,//是否保存了定制
  39. }
  40. })