Browse Source

liveproject

lsc 3 years ago
parent
commit
e40e23f6f3
1 changed files with 32 additions and 55 deletions
  1. 32 55
      src/components/liveProjectDetail.vue

+ 32 - 55
src/components/liveProjectDetail.vue

@@ -153,44 +153,23 @@
             </div>
           </div>
           <div class="answerBox" style="height: 90%" v-if="isBlock == 2">
-            <div
-              v-if="toolsList[0].tools.length == 1"
-              style="height: 100%; width: 100%"
-            >
-              <div
-                v-if="toolsList[0].tools[0] == 9"
-                style="height: 90%; width: 100%"
-              >
+            <div v-if="toolsList[0].tools.length == 1" style="height: 100%; width: 100%">
+              <div v-if="toolsList[0].tools[0] == 9" style="height: 90%; width: 100%">
                 选择题
               </div>
-              <div
-                v-if="toolsList[0].tools[0] == 10"
-                style="height: 90%; width: 100%"
-              >
+              <div v-if="toolsList[0].tools[0] == 10" style="height: 90%; width: 100%">
                 倒计时
               </div>
-              <div
-                v-if="toolsList[0].tools[0] == 11"
-                style="height: 90%; width: 100%"
-              >
+              <div v-if="toolsList[0].tools[0] == 11" style="height: 90%; width: 100%">
                 问答题
               </div>
-              <div
-                v-if="toolsList[0].tools[0] == 12"
-                style="height: 90%; width: 100%"
-              >
+              <div v-if="toolsList[0].tools[0] == 12" style="height: 90%; width: 100%">
                 选人回答
               </div>
-              <div
-                v-if="toolsList[0].tools[0] == 13"
-                style="height: 90%; width: 100%"
-              >
+              <div v-if="toolsList[0].tools[0] == 13" style="height: 90%; width: 100%">
                 分小组
               </div>
-              <div
-                v-if="toolsList[0].tools[0] == 14"
-                style="height: 90%; width: 100%"
-              >
+              <div v-if="toolsList[0].tools[0] == 14" style="height: 90%; width: 100%">
                 作业评价
               </div>
               <div class="nextStepOne" @click="isBlock = 0">关闭</div>
@@ -451,9 +430,7 @@
     <div class="blackBottomB"></div>
     <div v-if="proVisible" class="mask">
       <div class="progressBox">
-        <div class="lbox">
-          <img src="../assets/loading.gif" />上传中,请稍后
-        </div>
+        <div class="lbox"><img src="../assets/loading.gif" />上传中,请稍后</div>
         <el-progress
           :text-inside="true"
           :stroke-width="20"
@@ -589,14 +566,11 @@ export default {
     },
     //uuid生成
     guid() {
-      return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
-        /[xy]/g,
-        function (c) {
-          var r = (Math.random() * 16) | 0,
-            v = c == "x" ? r : (r & 0x3) | 0x8;
-          return v.toString(16);
-        }
-      );
+      return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
+        var r = (Math.random() * 16) | 0,
+          v = c == "x" ? r : (r & 0x3) | 0x8;
+        return v.toString(16);
+      });
     },
     time() {
       if (!this.now) {
@@ -831,25 +805,28 @@ export default {
         .get(this.$store.state.api + "selectPptPage", "")
         .then((res) => {
           if (res.data[0].length > 0) {
-            this.ppage = res.data[0][0].page;
             if (this.ppage == res.data[0][0].page) {
               return;
             } else {
-              if (this.ppage == 3) {
-                this.isBlock = 1;
-              } else if (this.ppage == 4) {
-                this.howPage(this.ppage);
-              } else if (this.ppage == 5) {
-                this.howPage(this.ppage);
-              } else if (this.ppage == 6) {
-                this.howPage(this.ppage);
-              } else if (this.ppage == 7) {
-                this.howPage(this.ppage);
-              } else if (this.ppage == 9) {
-                this.howPage(this.ppage);
-              } else if (this.ppage == 10) {
-                this.howPage(this.ppage);
-              }
+              this.ppage = res.data[0][0].page;
+              console.log(1);
+              this.isBlock = 1;
+              this.howPage(this.ppage);
+              // if (this.ppage == 3) {
+              //   this.isBlock = 1;
+              // } else if (this.ppage == 4) {
+              //   this.howPage(this.ppage);
+              // } else if (this.ppage == 5) {
+              //   this.howPage(this.ppage);
+              // } else if (this.ppage == 6) {
+              //   this.howPage(this.ppage);
+              // } else if (this.ppage == 7) {
+              //   this.howPage(this.ppage);
+              // } else if (this.ppage == 9) {
+              //   this.howPage(this.ppage);
+              // } else if (this.ppage == 10) {
+              //   this.howPage(this.ppage);
+              // }
             }
           }
         })