Procházet zdrojové kódy

添加荔园进入的样式,隐藏侧边,修改面包屑

11wqe1 před 2 měsíci
rodič
revize
e1dc69000f
3 změnil soubory, kde provedl 26 přidání a 18 odebrání
  1. 12 12
      src/components/main/AIexploration.vue
  2. 3 2
      src/views/Details.vue
  3. 11 4
      src/views/main.vue

+ 12 - 12
src/components/main/AIexploration.vue

@@ -66,22 +66,22 @@ const Tips = ref('')
 const router = useRouter();
 const listData = ref([
 	{
-		name: "智能台灯设计模拟器",
-		url: "https://v0.cocorobo.cn/SmartDeskLamp/%E6%99%BA%E8%83%BD%E5%8F%B0%E7%81%AF%E8%AE%BE%E8%AE%A1%E6%A8%A1%E6%8B%9F%E5%99%A8.html",
-		img: taideng,
-		courselink: "8ba49e1a-87f0-11f0-9c7b-005056924926"
+		name: "CNN卷积神经网络模拟器",
+		url: "https://v0.cocorobo.cn/2/out/index.html",
+		img: 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/default%2F8+CNN%E5%8D%B7%E7%A7%AF%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9C%E6%A8%A1%E6%8B%9F%E5%99%A81761284591830.png',
+		courselink: "02346267-888f-11f0-9c7b-005056924926"
 	},
 	{
-		name: "校园里的智能眼睛",
-		url: "https://v0.cocorobo.cn/sensor-learning/out/index.html",
-		img: esy,
-		courselink: "c9c76a3e-87e1-11f0-9c7b-005056924926"
+		name: "AI绘画",
+		url: "https://v0.cocorobo.cn/ai-painting-tutorial/out/index.html",
+		img: 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/default%2F12+AI%E7%BB%98%E7%94%BB1761284591835.png',
+		courselink: "60575080-87d7-11f0-9c7b-005056924926"
 	},
 	{
-		name: "智慧校园路灯系统",
-		url: "https://v0.cocorobo.cn/smart-streetlight-system/out/index.html",
-		img: ludeng,
-		courselink: "5948e83d-87da-11f0-9c7b-005056924926"
+		name: "AI训练师:教AI识别肺癌!",
+		url: "https://v0.cocorobo.cn/1/out/index.html",
+		img: 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/default%2F14+%E6%95%99AI%E8%AF%86%E5%88%AB%E8%82%BA%E7%99%8C1761284591837.png',
+		courselink: "e85a21cc-8870-11f0-9c7b-005056924926"
 	},
 ]);
 const handleClose = (done) => {

+ 3 - 2
src/views/Details.vue

@@ -1,10 +1,10 @@
 <template>
-    <Header></Header>
+    <Header v-if="!gotype"></Header>
     <el-page-header>
         <template #breadcrumb>
             <el-breadcrumb separator="/">
                 <el-breadcrumb-item :to="{ path: '/' }">
-                    首页
+                    AI通识课
                 </el-breadcrumb-item>
                 <el-breadcrumb-item>{{ params.title }}</el-breadcrumb-item>
             </el-breadcrumb>
@@ -34,6 +34,7 @@ const { query, params } = useRoute()
 console.log(query, params)
 
 const detailsTitle = ref('')
+const gotype = ref((window.topU && window.topU.gotype2) ? window.topU.gotype2 :'')
 onMounted(()=>{
     detailsTitle.value = params.title
 })

+ 11 - 4
src/views/main.vue

@@ -1,8 +1,8 @@
 <template>
   <div style="height:100%">
-    <Header></Header>
+    <Header v-if="!gotype"></Header>
     <div class="container">
-      <div class="container-left" :style="leftShow ? { width: 0 } : { width: '240px' }">
+      <div class="container-left" :style="leftShow ? { width: 0 } : { width: '240px' }" v-if="!gotype">
         <div class="container-left-top" @click="dialogVisible1 = !dialogVisible1">
           <span>
             <img class="icon-img" :src="img11" alt="AI 应用" />AI通识课
@@ -63,7 +63,7 @@
           <span v-else><el-icon><ArrowLeft /></el-icon></span>
         </div>
       </div>
-      <div class="main" :style="leftShow ? { width: '100%' } : ''" v-if="activeIndex == 0">
+      <div class="main" :style="leftShow ? { width: '100%' } : ''" v-if="activeIndex == 0" :class="[gotype ? 'liyuan' : '']">
         <!-- <BannerVue></BannerVue> -->
         <CourseSelect></CourseSelect>
         <AIExperience></AIExperience>
@@ -150,8 +150,11 @@ const iframeRef1Url4 = ref('')
 const iframeRef2Dialog = ref(false)
 const leftShow = ref(false)
 const admin = ref(false)
+const gotype = ref((window.topU && window.topU.gotype2) ?  window.topU.gotype2 : '')
 
 onMounted(() => {
+  console.log('gotype',gotype.value);
+  console.log('gotype',sessionStorage.getItem('gotype2'));
   // let timer = setInterval(() => {
   //   if (JSON.stringify(user.user) != "{}") {
   //     clickSwitch(1)
@@ -346,7 +349,11 @@ const show = () => {
     height: calc(100vh - 60px);
     overflow: auto;
   }
-
+  .liyuan{
+    width: 100% !important;
+    height: 100vh !important;
+    padding: 20px 15% !important;
+  }
   .iframe {
     width: calc(100% - 240px);
     height: calc(100vh - 60px);