app.js 1.3 KB

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