index.js 1.4 KB

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