1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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(
- window.$originData.orginParames.title,
- '',
- 'https://cxzx.smcic.net/topic/highSpeed/img/logo3.png',
- 'https://cxzx.smcic.net/topic/activity/chatGptChat.html?' + Date.now()
- );
- window.appLoginSuccess = () => {
- console.log("登录");
- window.location.reload();
- };
- // 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'));
- };
|