app.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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: false,
  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. audioUrlBaidu: "https://tsn.baidu.com/text2audio?lan=zh&ctp=1&cuid=abcdxxx&tok=[token]&tex=[word]&vol=9&per=0&spd=3&pit=5",
  24. Key: "kylx365_chengjie",
  25. IV: "kylx365hongliren",
  26. systemInfo: null,
  27. userInfo: null,
  28. SourceID: 0,//来源ID
  29. IsRefreshFinished: true,
  30. DayNumber: 0,//使用天数
  31. PayMoney: 9.8,//产品销售价
  32. TestScoreMax: 0,//测试最高分
  33. BaiduToken:"",//百度开发平台token
  34. IsShow: 0,
  35. }
  36. })