Parcourir la source

修改ai通识课

11wqe1 il y a 1 semaine
Parent
commit
87e574019b
2 fichiers modifiés avec 12 ajouts et 3 suppressions
  1. 8 2
      src/components/sidebarL.vue
  2. 4 1
      src/components/topPage.vue

+ 8 - 2
src/components/sidebarL.vue

@@ -285,7 +285,10 @@ import { myMixin } from "@/mixins/mixin.js"
                 let _url = ''
                 if (val.toolId == "futureClass") {
                     _url = url + queryString +'&ly=1'
-                }else{
+                } else if (val.toolId == "AIPopCourse") {
+                    // 为了隐藏侧边栏与顶部 
+                    _url = url + queryString +'&gotype=1'
+                } else{
                     _url = url + queryString
                 }
                 if(val.toolId == 'study' && this.roleUser.type == 2){
@@ -389,7 +392,10 @@ import { myMixin } from "@/mixins/mixin.js"
                 let _url = ''
                 if (val.toolId == "futureClass") {
                     _url = url + queryString +'&ly=1'
-                }else{
+                } else if (val.toolId == "AIPopCourse") {
+                    // 为了隐藏侧边栏与顶部 
+                    _url = url + queryString +'&gotype=1'
+                } else{
                     _url = url + queryString
                 }
 

+ 4 - 1
src/components/topPage.vue

@@ -460,7 +460,7 @@ import { myMixin } from "@/mixins/mixin.js"
             // 打开平台应用
             async openApp(val){
                 console.log('val',val);
-                if(val.toolId == 'AIPopCourse') return this.$message.info('开发中,敬请期待')
+                // if(val.toolId == 'AIPopCourse') return this.$message.info('开发中,敬请期待')
                 // 点击相同应用不刷新
                 if (this.appSign == val.toolId) return
                 // 更新标识
@@ -502,6 +502,9 @@ import { myMixin } from "@/mixins/mixin.js"
                 let _url = url + queryString
                 if(val.toolId == 'study' && this.roleUser.type == 2){
                     _url = _url.replace(/([?&])classId=([^&]*)/, '$1cid=$2');
+                }else if (val.toolId == "AIPopCourse") {
+                    // 为了隐藏侧边栏与顶部 
+                    _url = url +'&gotype=1'
                 }
                 console.log('_url',_url);