Prechádzať zdrojové kódy

例句获取课件id

natasha 1 týždeň pred
rodič
commit
c58d09a375

+ 2 - 2
src/views/book/courseware/preview/components/article/components/WordPhraseDetail.vue

@@ -192,7 +192,6 @@
                   v-if="CurrentList.length === 0"
                   :style="{
                     textAlign: 'center',
-                    fontSize: baseSizePhone - 2 + 'px',
                     margin: '0',
                     padding: ' 16px 0 0 24px',
                   }"
@@ -301,6 +300,7 @@ export default {
     Strockplayredline,
     Audio,
   },
+  inject: ['getSelectId'],
   props: [
     'data',
     'changeDetailIndex',
@@ -476,7 +476,7 @@ export default {
       this.loading1 = true;
       this.loading2 = true;
       this.loading3 = true;
-      let currentTreeID = this.$route.params.id;
+      let currentTreeID = this.$route.params.id || this.getSelectId();
       // 获取本课的 本教材的 本套的 的例句
       getCoursewareWordExampleSentenceList({
         courseware_id: currentTreeID, // 课件id

+ 2 - 2
src/views/book/courseware/preview/components/new_word/components/WordPhraseDetail.vue

@@ -201,7 +201,6 @@
                   v-if="CurrentList.length === 0"
                   :style="{
                     textAlign: 'center',
-                    fontSize: baseSizePhone - 2 + 'px',
                     margin: '0',
                     padding: ' 16px 0 0 24px',
                   }"
@@ -229,6 +228,7 @@ export default {
     Strockplayredline,
     Audio,
   },
+  inject: ['getSelectId'],
   props: [
     'data',
     'changeDetailIndex',
@@ -372,7 +372,7 @@ export default {
       this.loading1 = true;
       this.loading2 = true;
       this.loading3 = true;
-      let currentTreeID = this.$route.params.id;
+      let currentTreeID = this.$route.params.id || this.getSelectId();
       // 获取本课的 本教材的 本套的 的例句
       getCoursewareWordExampleSentenceList({
         courseware_id: currentTreeID, // 课件id