|
@@ -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(() => {
|