chao 3 months ago
parent
commit
47e2de02b6

File diff suppressed because it is too large
+ 0 - 0
dist/assets/Details-OdMZdnyG.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/admin-SKTu7kRB.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-gG63zsD0.css


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-yOZvO5UO.js


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-ocwXaO2D.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-x4IBk6WM.css">
+    <script type="module" crossorigin src="./assets/index-yOZvO5UO.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-gG63zsD0.css">
   </head>
   <body>
     <div id="app"></div>

+ 18 - 7
src/views/main.vue

@@ -7,12 +7,10 @@
           <img class="icon-img" :src="activeIndex == 0 ? img1 : img11" alt="教学中心" />教学中心
         </div>
         <div class="container-left-top">
-          <span>
+          <span @click="dialogVisible = !dialogVisible">
             <img class="icon-img" :src="img2" alt="AI 应用" />AI 应用
-            <transition name="fade">
-              <img v-if="dialogVisible" class="up" :src="img3" alt="up" @click="dialogVisible = fa" />
-              <img v-else class="up" :src="down" alt="down" @click="dialogVisible = true" />
-            </transition>
+            <img v-if="dialogVisible" class="up" :src="img3" alt="up" />
+            <img v-else class="up" :src="down" alt="down" />
           </span>
         </div>
         <transition name="fade">
@@ -38,8 +36,11 @@
         <Edu v-if="isLogin"></Edu>
         <Feedback></Feedback>
       </div>
+      <div class="iframe" v-else-if="activeIndex == 1" v-loading="loading">
+        <iframe ref="iframeRef1" :src="iframeRef1Url" frameborder="0"></iframe>
+      </div>
       <div class="iframe" v-else-if="activeIndex == 3" v-loading="loading">
-        <iframe ref="iframeRef" src="https://beta.app.cocorobo.cn/#/appSelection" frameborder="0"></iframe>
+        <iframe ref="iframeRef" src="//app.cocorobo.cn/#/appSelection" frameborder="0"></iframe>
       </div>
     </div>
   </div>
@@ -68,7 +69,9 @@ const isLogin = ref(false)
 const activeIndex = ref(0)
 const dialogVisible = ref(true)
 const iframeRef = ref(null)
+const iframeRef1 = ref(null)
 const loading = ref(false)
+const iframeRef1Url = ref('')
 
 watchEffect(() => {
   // console.log('111111111111',CurrentRole, user.user)
@@ -83,7 +86,15 @@ watchEffect(() => {
 const clickSwitch = (index) => {
   activeIndex.value = index
   if (index == 1) {
-    top.U.MD.D.I.openApplication('appStore')
+    loading.value = true
+    iframeRef1Url.value = `//app.cocorobo.cn/#/?userid=${user.user.userId}&oid=${user.user.oid}&org=${user.user.org}&role=${user.user.role}`
+    console.log(iframeRef1Url.value)
+    setTimeout(() => {
+      iframeRef1.value.onload = () => {
+        loading.value = false
+        console.log('iframe loaded')
+      }
+    }, 10)
   } else if (index == 3) {
     loading.value = true
     setTimeout(() => {

Some files were not shown because too many files changed in this diff