瀏覽代碼

修改全屏功能

zengyicheng 2 年之前
父節點
當前提交
3ac1f77903
共有 3 個文件被更改,包括 18 次插入15 次删除
  1. 11 12
      src/components/courseDetail.vue
  2. 4 1
      src/components/index.vue
  3. 3 2
      src/components/study.vue

+ 11 - 12
src/components/courseDetail.vue

@@ -14,7 +14,9 @@
                   '&cid=' +
                   classId +
                   '&tType=' +
-                  tType
+                  tType +
+                  '&screenType=' +
+                  screenType
               )
             "
           >
@@ -46,12 +48,7 @@
                   v-for="(item, index) in courseType"
                   :key="index"
                 >
-                  <span
-                    style="
-                       color: #6c6c6c;
-                    "
-                    >{{ item + ":" }}</span
-                  >
+                  <span style="color: #6c6c6c">{{ item + ":" }}</span>
                   <span
                     class="type_children"
                     v-for="(item2, index2) in courseTypeJson[item]"
@@ -60,9 +57,9 @@
                   >
                 </div>
               </div>
-              <div class="cType" style="font-size: 18px;color: #6c6c6c;">
+              <div class="cType" style="font-size: 18px; color: #6c6c6c">
                 <div>
-                  创建者:<span style="color:#000;">{{
+                  创建者:<span style="color: #000">{{
                     courseDetail.username
                   }}</span>
                 </div>
@@ -70,7 +67,7 @@
                   协同人员:<span
                     v-for="(tname, tIndex) in Tname"
                     :key="tIndex"
-                    style="margin: 0 5px;color:#000;"
+                    style="margin: 0 5px; color: #000"
                     >{{ tname }}</span
                   >
                 </div>
@@ -163,6 +160,7 @@ export default {
       oid: this.$route.query.oid,
       classId: this.$route.query.cid,
       tType: this.$route.query.tType,
+      screenType: this.$route.query.screenType,
       courseDetail: {},
       aStudentName: [],
       chapInfo: [],
@@ -229,7 +227,9 @@ export default {
               "&cid=" +
               this.classId +
               "&tType=" +
-              this.tType
+              this.tType +
+              "&screenType=" +
+              this.screenType
           );
         })
         .catch((err) => {
@@ -648,5 +648,4 @@ export default {
 .Tname {
   margin-left: 40px;
 }
-
 </style>

+ 4 - 1
src/components/index.vue

@@ -130,7 +130,9 @@
                       '&cid=' +
                       classId +
                       '&tType=' +
-                      tType
+                      tType +
+                      '&screenType=' +
+                      screenType
                   )
                 "
               >
@@ -186,6 +188,7 @@ export default {
       oid: this.$route.query.oid,
       classId: this.$route.query.cid,
       tType: this.$route.query.tType,
+      screenType: this.$route.query.screenType,
       CourseType: [],
       CourseTypeJson: {},
       courseTypeId: {},

+ 3 - 2
src/components/study.vue

@@ -90,7 +90,7 @@
                     '&courseId=' +
                     id +
                     '&tType=' +
-                    tType
+                    tType + '&screenType=' + screenType
                 )
               "
             >
@@ -1922,6 +1922,7 @@ export default {
       oid: this.$route.query.oid,
       tType: this.$route.query.tType,
       courseType: this.$route.query.type,
+      screenType: this.$route.query.screenType,
       pptImgUrl: "",
       pptImgUrl1: "",
       type: 1,
@@ -2527,7 +2528,7 @@ export default {
       }
     },
     allScrell() {
-      window.parent.postMessage({ allScreen: "1" }, "*");
+      window.parent.postMessage({ allScreen: this.screenType }, "*");
     },
     nextOrpreSteps(t) {
       this.showType = 0;