app.js 986 B

12345678910111213141516171819202122232425262728293031323334
  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.0.0",
  15. IsProduction: true,
  16. userInfo: null,
  17. fileUrl: "https://www.kylx365.com/",
  18. serverUrl: "https://www.kylx365.com/apiData/",
  19. serverUrlServer: "https://www.kylx365.com/apiData/",
  20. serverUrlLocalhost: "http://localhost:3020/apiData/",
  21. imageUrl: "https://hanzi-1253256735.file.myqcloud.com",
  22. audioUrl: "https://pinyin.kylx365.com",
  23. Key: "kylx365_chengjie",
  24. IV: "kylx365hongliren",
  25. systemInfo: null,
  26. userInfo: null,
  27. SourceID: 0,//来源ID
  28. IsRefreshFinished: true,
  29. DayNumber: 0,//使用天数
  30. PayMoney: 9.8,//产品销售价
  31. TestScoreMax: 0,//测试最高分
  32. IsShow: 0,
  33. }
  34. })