Browse Source

修改附文本问题及打包

zengyicheng 3 years ago
parent
commit
b80a48bab2

+ 1 - 1
dist/index.html

@@ -1 +1 @@
-<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>pbl-student</title><link href=./static/css/app.bda2c7577a328ceee23f17da03788c30.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.deec116227fdc82db9e5.js></script><script type=text/javascript src=./static/js/app.cc0dfd03c7cd53cc786b.js></script></body></html>
+<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>pbl-student</title><link href=./static/css/app.cfae28d010539bfce27999338172e2a2.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.deec116227fdc82db9e5.js></script><script type=text/javascript src=./static/js/app.8b0dd6f7ace42d3a7f93.js></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.cfae28d010539bfce27999338172e2a2.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.cfae28d010539bfce27999338172e2a2.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.8b0dd6f7ace42d3a7f93.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.8b0dd6f7ace42d3a7f93.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.cc0dfd03c7cd53cc786b.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.cc0dfd03c7cd53cc786b.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 18 - 8
src/components/study.vue

@@ -144,7 +144,10 @@
                   <div class="vedioName">{{ media.name }}</div>
                 </div>
               </div>
-              <div style="height: 250px; overflow: auto" v-if="text.length > 0">
+              <div
+                style="height: 250px; overflow: auto"
+                v-if="textList.length > 0"
+              >
                 <div class="vedioNav">附文本列表</div>
                 <div
                   style="width: 160px; margin: 10px auto; position: relative"
@@ -161,8 +164,13 @@
                     alt=""
                     @click="lookVedio(media.url)"
                   /> -->
-                  <div style="cursor: pointer" @click="lookText">
-                    {{ text.length > 0 ? text[0].name : '' }}.doc
+                  <div
+                    v-for="(text, textIndex) in textList"
+                    :key="textIndex"
+                    style="cursor: pointer; margin-bottom: 10px"
+                    @click="lookText(textIndex)"
+                  >
+                    {{ textList.length > 0 ? text.name : "" }}.doc
                   </div>
                 </div>
               </div>
@@ -752,13 +760,13 @@
     >
       <el-form style="font-size: 20px">
         <el-form-item label="文本标题" class="textTitle">
-          <div style="font-size: 20px">{{ text.length > 0 ? text[0].name : '' }}</div>
+          <div style="font-size: 20px">{{ text.name }}</div>
           <!-- <el-input v-model="AttText.title" auto-complete="off" placeholder="请输入文本标题..."></el-input> -->
         </el-form-item>
         <div>附文本内容</div>
         <!-- <editor-bar v-model="AttText.text" @change="change"></editor-bar> -->
         <div
-          v-html="text.length > 0 ? text[0].url : '' "
+          v-html="text.url"
           style="font-size: 18px; padding: 40px 0 0 0"
         ></div>
       </el-form>
@@ -798,6 +806,7 @@ export default {
       type: 1,
       vedio: [],
       text: [],
+      textList: [],
       file: [],
       rateList: {
         ca: 0,
@@ -1138,7 +1147,7 @@ export default {
         "OGM",
       ];
       this.vedio = [];
-      this.text = [];
+      this.textList = [];
       this.file = [];
       var c = a.chapterData;
       for (var j = 0; j < c.length; j++) {
@@ -1154,7 +1163,7 @@ export default {
           this.file.push(c[j]);
         }
         if (c[j].type == 6) {
-          this.text.push(c[j]);
+          this.textList.push(c[j]);
         }
       }
 
@@ -1315,7 +1324,8 @@ export default {
       this.playerOptions.sources[0].src = u;
       this.playerO = this.playerOptions;
     },
-    lookText() {
+    lookText(i) {
+      this.text = this.textList[i];
       this.dialogVisible1 = true;
     },
     downFile(i) {

Some files were not shown because too many files changed in this diff