index.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import App from "./index.vue";
  2. import "@/assets/js/common";
  3. import { createApp } from "vue";
  4. import { getPageParameters, environment } from "../../config/pageConfig";
  5. // 判断环境
  6. environment();
  7. window.$originData = getPageParameters();
  8. console.log(window.$originData.orginParames);
  9. createApp(App).mount("#app")
  10. // 分享
  11. window.weixin_Share_Init(
  12. window.$originData.orginParames.title || "",
  13. "这是世界杯",
  14. "https://cxzx.smcic.net/topic/highSpeed/img/logo3.png",
  15. "https://cxzx.smcic.net/topic/activity/WorldCup.html?" + Date.now()
  16. );
  17. var SL = new window.SmcicLogger("special", "c6124e08");
  18. SL.Util.SetUrl("https://collect.smcic.net:8443/");
  19. SL.Systematic.Init({
  20. appid: "c6124e08",
  21. channel: "special",
  22. model: "",
  23. os: "",
  24. os_version: "",
  25. carrier: "",
  26. network_type: "",
  27. ip: "",
  28. app_name: "",
  29. app_version: "",
  30. build_version: "",
  31. platform_type: "",
  32. });
  33. SL.Content.CommodityDetail({
  34. commodity_detail_source: "活动",
  35. commodity_id: "",
  36. commodity_name: window.$originData.orginParames.title || "",
  37. publisher_name: "",
  38. publisher_id: "",
  39. review_count: 0,
  40. comment_count: 0,
  41. collect_count: 0,
  42. share_count: 0,
  43. like_count: 0,
  44. tag: [],
  45. });