liyongli 2 vuotta sitten
vanhempi
commit
ca0df142c8

+ 10 - 0
src/view/CalligraphyAndPaintingCompetition/index.js

@@ -1,6 +1,7 @@
 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();
@@ -16,3 +17,12 @@ window.weixin_Share_Init(
     Date.now()
 );
 createApp(App).mount('#app')
+
+!window.$shanshipin || !window.$shanshipin.Phone
+  ? getUser(() => createApp(App).mount('#app'), true)
+  : createApp(App).mount('#app');
+
+window.setUserSession = () => {
+  console.log('登录');
+  getUser(() => createApp(App).mount('#app'), true);
+};

+ 1 - 0
src/view/CalligraphyAndPaintingCompetition/index.vue

@@ -132,6 +132,7 @@ function toShanshipinFunc() {
 }
 
 function tougao() {
+    console.log(window.$shanshipin)
   if (!window.$shanshipin) return (toShanshipin.value = true);
   const url =
       'https://ssp-api.sxtvs.com.cn/tapi/form/index.html?ChannelID=20441',

+ 1 - 0
src/view/chatGptChat/index.js

@@ -4,6 +4,7 @@ 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 || '';