12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import App from "./index.vue";
- import "@/assets/js/common";
- import { createApp } from "vue";
- import { getUser } from "@/utils/tool.js";
- import { getPageParameters, environment } from "../../config/pageConfig";
- // 判断环境
- environment();
- window.$originData = getPageParameters();
- document.title = window.$originData.orginParames.title || "";
- // 分享
- window.weixin_Share_Init(
- "世界杯",
- "这是世界杯",
- "https://cxzx.smcic.net/topic/highSpeed/img/logo3.png"
- );
- var SL = new window.SmcicLogger("shanshipin", "c6124d95");
- SL.Util.SetUrl("https://collect.smcic.net:8443/");
- SL.Systematic.Init({
- appid: "c6124d95",
- channel: "shanshipin",
- model: "",
- os: "",
- os_version: "",
- carrier: "",
- network_type: "",
- ip: "",
- app_name: "",
- app_version: "",
- build_version: "",
- platform_type: "",
- });
- SL.Content.CommodityDetail({
- commodity_detail_source: "活动",
- commodity_id: "",
- commodity_name: document.title,
- publisher_name: "",
- publisher_id: "",
- review_count: 0,
- comment_count: 0,
- collect_count: 0,
- share_count: 0,
- like_count: 0,
- tag: [],
- });
- !window.$shanshipin || !window.$shanshipin.Phone
- ? getUser(() => createApp(App).mount("#app"))
- : createApp(App).mount("#app");
- window.setUserSession = () => {
- console.log("登录");
- getUser(() => createApp(App).mount("#app"));
- };
|