index.js 1.6 KB

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