index.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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/jrhwm2023.jpg',
  15. 'https://cxzx.smcic.net/topic/activity/AEROSPACE2023.html?' + Date.now(),
  16. wx => {
  17. wx.checkJsApi({
  18. jsApiList: [ 'openLocation'],
  19. success: () => {
  20. //打开指定位置
  21. wx.openLocation({
  22. latitude: 34.140384, // 纬度,浮点数,范围为90 ~ -90
  23. longitude: 108.98944, // 经度,浮点数,范围为180 ~ -180。
  24. name: '航天基地京东大道和少陵路十字西北角西安航天国际会议中心东方红会议厅', // 位置名
  25. address: '', // 地址详情说明
  26. scale: 18, // 地图缩放级别,整型值,范围从1~28。默认为最大
  27. infoUrl: '', // 在查看位置界面底部显示的超链接,可点击跳转
  28. });
  29. },
  30. });
  31. }
  32. );
  33. // var SL = new window.SmcicLogger("shanshipin", "c6124d95");
  34. // SL.Util.SetUrl("https://collect.smcic.net:8443/");
  35. // SL.Systematic.Init({
  36. // appid: "c6124d95",
  37. // channel: "shanshipin",
  38. // model: "",
  39. // os: "",
  40. // os_version: "",
  41. // carrier: "",
  42. // network_type: "",
  43. // ip: "",
  44. // app_name: "",
  45. // app_version: "",
  46. // build_version: "",
  47. // platform_type: "",
  48. // });
  49. // SL.Content.CommodityDetail({
  50. // commodity_detail_source: "活动",
  51. // commodity_id: "",
  52. // commodity_name: document.title,
  53. // publisher_name: "",
  54. // publisher_id: "",
  55. // review_count: 0,
  56. // comment_count: 0,
  57. // collect_count: 0,
  58. // share_count: 0,
  59. // like_count: 0,
  60. // tag: [],
  61. // });
  62. // !window.$shanshipin || !window.$shanshipin.Phone
  63. // ? getUser(() => createApp(App).mount("#app"))
  64. // : createApp(App).mount("#app");
  65. // window.setUserSession = () => {
  66. // console.log("登录");
  67. // getUser(() => createApp(App).mount("#app"));
  68. // };
  69. createApp(App).mount('#app');