C端小程序
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

46 linhas
941 B

  1. let config = require("./config/config.js");
  2. const Http = require("./utils/HttpBasics");
  3. App({
  4. data: {},
  5. onLaunch: function(options) {
  6. var that = this;
  7. that.globalData.sceneAddress = options.scene;
  8. },
  9. /**
  10. * 获取地址位置信息
  11. */
  12. getLocation: function() {
  13. var that = this
  14. wx.getLocation({
  15. type: "wgs84",
  16. success: function(res) {
  17. that.globalData.locationInfo = res;
  18. },
  19. fail: error => {
  20. console.log(error);
  21. }
  22. });
  23. },
  24. globalData: {
  25. // token
  26. token: null,
  27. // 渠道
  28. sceneAddress: null,
  29. // location info
  30. locationInfo: null,
  31. // 二维码参数
  32. scene: null,
  33. // 支持智慧停车, 用户名下有车
  34. phone: null,
  35. supportCar: false,
  36. parkVendor: 1, // 1: ETCP, 2: TJD
  37. // ETCP token
  38. etcpToken: null,
  39. carLogin: false,
  40. // 当前商场信息
  41. market: {
  42. name: "陕西大悦城"
  43. }
  44. }
  45. });