app.js 807 B

12345678910111213141516171819202122232425262728
  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: "0.1.3",
  18. IsProduction: true,
  19. ProgramID: 105,
  20. StartSecond: 4,
  21. fileUrl: "https://kylx365-1253256735.file.myqcloud.com/",
  22. serverUrl: "https://www.kylx365.com/apiData/",
  23. serverUrlServer: "https://www.kylx365.com/apiData/",
  24. serverUrlLocalhost: "http://localhost:3020/apiData/",
  25. Key: "kylx365_chengjie",
  26. IV: "kylx365hongliren",
  27. }
  28. })