lsc 2 years ago
parent
commit
4e7ec38718
2 changed files with 77 additions and 71 deletions
  1. BIN
      src/assets/icon/fourthToolList/cocopi.png
  2. 77 71
      src/components/student/studyStudent.vue

BIN
src/assets/icon/fourthToolList/cocopi.png


+ 77 - 71
src/components/student/studyStudent.vue

@@ -48,13 +48,13 @@
       </div>
       <div class="body_student">
         <div class="new_top" style="
-              position: fixed;
-              top: 0;
-              left: 20.7%;
-              width: 80%;
-              z-index: 999;
-              box-shadow: 0px 9px 0 0 #f2f2f2;
-            ">
+                position: fixed;
+                top: 0;
+                left: 20.7%;
+                width: 80%;
+                z-index: 999;
+                box-shadow: 0px 9px 0 0 #f2f2f2;
+              ">
           <div class="courseIndex">
             <div>第{{ courseType - 0 + 1 }}阶段</div>
             <el-tooltip effect="light" :content="chapInfoList[courseType].dyName" placement="top">
@@ -205,26 +205,26 @@
                   .taskDetail != ''
               ">
                 <div style="
-                      display: flex;
-                      flex-wrap: nowrap;
-                      flex-direction: column;
-                      position: relative;
-                    ">
+                        display: flex;
+                        flex-wrap: nowrap;
+                        flex-direction: column;
+                        position: relative;
+                      ">
                   <div style="padding: 15px 10px 0">任务描述:</div>
 
                   <div style="
-                        padding: 10px 10px 15px;
-                        word-break: break-word;
-                        line-height: 27px;
-                      " class="cont" v-html="
-                        chapInfoList[courseType].chapterInfo[0].taskJson[
-                          taskCount
-                        ].taskDetail
-                          ? chapInfoList[courseType].chapterInfo[0].taskJson[
+                          padding: 10px 10px 15px;
+                          word-break: break-word;
+                          line-height: 27px;
+                        " class="cont" v-html="
+                          chapInfoList[courseType].chapterInfo[0].taskJson[
                             taskCount
                           ].taskDetail
-                          : '暂无描述'
-                      "></div>
+                            ? chapInfoList[courseType].chapterInfo[0].taskJson[
+                              taskCount
+                            ].taskDetail
+                            : '暂无描述'
+                        "></div>
                 </div>
               </div>
               <div class="vedioTaskBox" v-if="false">
@@ -237,11 +237,11 @@
                     </div>
                   </div>
                   <div class="wheel" v-if="chapterlist[chapterIndex].type == 6" style="
-                        box-shadow: 0 0 6px 1px #f2f2f2;
-                        width: 95%;
-                        margin: 0 auto;
-                        background: #f1f1f1;
-                      ">
+                          box-shadow: 0 0 6px 1px #f2f2f2;
+                          width: 95%;
+                          margin: 0 auto;
+                          background: #f1f1f1;
+                        ">
                     <div class="title">查看文档</div>
                     <el-form class="textBox">
                       <el-form-item class="textTitle">
@@ -310,10 +310,10 @@
                 .toolArray.length
             ">
               <div class="queTop" style="
-                    font-size: 25px;
-                    padding: 15px 0 15px 30px;
-                    font-weight: bold;
-                  ">
+                      font-size: 25px;
+                      padding: 15px 0 15px 30px;
+                      font-weight: bold;
+                    ">
                 实施过程
               </div>
               <div class="toolHeng2" style="position: relative">
@@ -521,12 +521,15 @@
                       </div>
                     </div>
                   </div>
-                  <div class="homeWorkBox" v-else-if="tool.tool != 51">
+                  <div class="homeWorkBox" v-else-if="tool.tool != 51 && tool.tool != 57">
                     <div class="htitle">暂无内容</div>
                   </div>
                   <div class="homeWorkBox" v-if="tool.toolPhoto.length && tool.tool == 56">
                     <voteStatic :askJSON="tool.askJson" :checkJson="checkJson[toolIndex]"></voteStatic>
                   </div>
+                  <div class="homeWorkBox" v-if="tool.tool == 57">
+                    <iframe src="https://v.cocorobo.cn" frameborder="0" width="100%" height="650"></iframe>
+                  </div>
                   <div v-if="tool.tool == 51" style="margin-top: 20px">
                     <div class="vedioTaskBox">
                       <div class="box_course" :class="'box_course' + toolIndex" v-if="tool.toolData.length > 0">
@@ -538,11 +541,11 @@
                           </div>
                         </div>
                         <div class="wheel" v-if="tool.toolData[tool.sourceIndex].type == 6" style="
-                              box-shadow: 0 0 6px 1px #f2f2f2;
-                              width: 98%;
-                              background: #f1f1f1;
-                              height: 650px;
-                            ">
+                                box-shadow: 0 0 6px 1px #f2f2f2;
+                                width: 98%;
+                                background: #f1f1f1;
+                                height: 650px;
+                              ">
                           <div class="title">查看文档</div>
                           <el-form class="textBox">
                             <el-form-item class="textTitle">
@@ -713,9 +716,11 @@
                 :max="100"></el-input-number></div>
             <div><span>用户体验</span><el-input-number class="number" v-model="psJson.yhty" :controls="false" :min="0"
                 :max="100"></el-input-number></div>
-            <div><span>作品完成度与规范性</span><el-input-number class="number" v-model="psJson.zpwcdygfx" :controls="false" :min="0"
-                :max="100"></el-input-number></div>
-            <div style="border-top: 1px solid #eee;padding-top: 10px;"><span>总分</span><span class="number" style="font-size: 35px;color: #4b79ce;">{{ psJson.cxx + psJson.sjyyssm + psJson.jsygn + psJson.yhty + psJson.zpwcdygfx }}</span></div>
+            <div><span>作品完成度与规范性</span><el-input-number class="number" v-model="psJson.zpwcdygfx" :controls="false"
+                :min="0" :max="100"></el-input-number></div>
+            <div style="border-top: 1px solid #eee;padding-top: 10px;"><span>总分</span><span class="number"
+                style="font-size: 35px;color: #4b79ce;">{{ psJson.cxx + psJson.sjyyssm + psJson.jsygn + psJson.yhty +
+                  psJson.zpwcdygfx }}</span></div>
           </div>
           <div class="addPz" @click="addPs()">
             保存评分
@@ -755,12 +760,12 @@
       <div slot="title" class="header-title">
         <div style="color: #fff">查看文档</div>
         <div @click="fullDialogVisible = false" style="
-              cursor: pointer;
-              position: absolute;
-              top: 20px;
-              right: 20px;
-              color: #fff;
-            ">
+                cursor: pointer;
+                position: absolute;
+                top: 20px;
+                right: 20px;
+                color: #fff;
+              ">
           退出全屏
         </div>
       </div>
@@ -769,10 +774,10 @@
           sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"></iframe>
         <pdf v-else-if="fulltype == 9" :pdfUrl="fullUrl" style="width: 100%; height: 100%; overflow: auto"></pdf>
         <div class="wheel" v-if="fulltype == 6" style="
-              box-shadow: 0 0 6px 1px #f2f2f2;
-              width: 100%;
-              background: #f1f1f1;
-            ">
+                box-shadow: 0 0 6px 1px #f2f2f2;
+                width: 100%;
+                background: #f1f1f1;
+              ">
           <div class="title" style="width: 100%; box-sizing: border-box">
             查看文档
           </div>
@@ -838,11 +843,11 @@
       :before-close="handleClose" class="dialog_diy dialog_diy3">
       <div>
         <div class="a_add_title" style="
-              display: flex;
-              flex-direction: row;
-              align-items: center;
-              justify-content: center;
-            ">
+                display: flex;
+                flex-direction: row;
+                align-items: center;
+                justify-content: center;
+              ">
           <div style="margin-right: 20px; font-size: 20px">投票标题:</div>
           <div style="font-size: 20px">{{ askJson.askTitle }}</div>
         </div>
@@ -1320,7 +1325,7 @@ export default {
       this.ajax
         .get(this.$store.state.api + "getReview", params)
         .then((res) => {
-          if(res.data[0].length){
+          if (res.data[0].length) {
             this.psJson = JSON.parse(res.data[0][0].score)
           }
         })
@@ -1328,7 +1333,7 @@ export default {
           console.error(err);
         });
     },
-    addPs(){
+    addPs() {
       let params = [{
         uid: this.userid,
         cid: this.id,
@@ -1337,7 +1342,7 @@ export default {
       this.ajax
         .post(this.$store.state.api + "reviewCourse", params)
         .then((res) => {
-          if(res.data){
+          if (res.data) {
             this.$message.success('保存成功')
           }
         })
@@ -1566,7 +1571,7 @@ export default {
           if (type != 2) {
             loading.close();
             let _ctype = false
-            if(this.courseType != 0 && !this.courseType){
+            if (this.courseType != 0 && !this.courseType) {
               _ctype = true
             }
             if (this.tType == 5 && _ctype) {
@@ -1574,7 +1579,7 @@ export default {
             }
             var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
               .chapterInfo[0].taskJson;
-            if(this.tType == 5 && _ctype){
+            if (this.tType == 5 && _ctype) {
               this.taskCount = a.length - 1
             }
             this.courseDetail = res.data[0][0];
@@ -2511,7 +2516,7 @@ export default {
       const loading = _this.$loading.service({
         background: "rgba(255, 255, 255, 0.7)",
         target: document.body,
-        text:'文件加载中...'
+        text: '文件加载中...'
       });
       // _this.$message.success("文件下载中...");
       x.onload = function (e) {
@@ -5051,28 +5056,29 @@ export default {
   color: #afafaf;
 }
 
-.psBox{
+.psBox {
   margin-bottom: 50px;
 }
 
-.psBox > div{
+.psBox>div {
   display: flex;
   align-items: center;
   margin-top: 20px;
   padding: 0px 30px;
 }
 
-.psBox > div > span:nth-child(1){
- width: 180px;
- font-size: 15px;
- text-align: left;
- margin-right: 10px;
+.psBox>div>span:nth-child(1) {
+  width: 180px;
+  font-size: 15px;
+  text-align: left;
+  margin-right: 10px;
 }
 
-.psBox > div > .number{
- width: 100px;
- text-align: center;
+.psBox>div>.number {
+  width: 100px;
+  text-align: center;
 }
+
 .addPz {
   background: #4b79ce;
   width: 100px;