Ver código fonte

课文音频主题色

natasha 2 semanas atrás
pai
commit
633fa4c8c4

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

@@ -23,6 +23,7 @@
             :ed="ed"
             type="audioLine"
             @emptyEd="emptyEd"
+            :attrib="attrib"
           />
         </template>
       </div>
@@ -910,6 +911,7 @@
             :ed="ed"
             type="audioLine"
             @emptyEd="emptyEd"
+            :attrib="attrib"
           />
         </template>
       </div>

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

@@ -19,6 +19,7 @@
             :get-cur-time="getCurTime"
             :mp3-source="curQue.mp3_list[0].source"
             :width="colLength == 2 ? 200 : 700"
+            :attrib="attrib"
           />
         </template>
       </div>
@@ -613,6 +614,7 @@
             :get-cur-time="getCurTime"
             :mp3-source="curQue.mp3_list[0].source"
             :width="colLength == 2 ? 200 : 700"
+            :attrib="attrib"
           />
         </template>
       </div>

+ 3 - 0
src/views/book/courseware/preview/components/article/Practicechs.vue

@@ -25,6 +25,7 @@
             type="audioLine"
             @handleChangeStopAudio="handleChangeStopAudio"
             @emptyEd="emptyEd"
+            :attrib="attrib"
           />
         </template>
       </div>
@@ -403,6 +404,7 @@
                   :is-record="isRecord"
                   :handle-change-stop-audio="handleChangeStopAudio"
                   :get-play-status="getPlayStatus"
+                  :attrib="attrib"
                 />
               </div>
             </div>
@@ -450,6 +452,7 @@
             type="audioLine"
             @handleChangeStopAudio="handleChangeStopAudio"
             @emptyEd="emptyEd"
+            :attrib="attrib"
           />
         </template>
       </div>

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

@@ -19,6 +19,7 @@
             :get-cur-time="getCurTime"
             :mp3-source="curQue.mp3_list[0].source"
             :width="colLength == 2 ? 200 : 700"
+            :attrib="attrib"
           />
         </template>
       </div>
@@ -585,6 +586,7 @@
             :get-cur-time="getCurTime"
             :mp3-source="curQue.mp3_list[0].source"
             :width="colLength == 2 ? 200 : 700"
+            :attrib="attrib"
           />
         </template>
       </div>

+ 3 - 0
src/views/book/courseware/preview/components/article/components/AudioCompare.vue

@@ -17,6 +17,7 @@
           @handleChangeStopAudio="handleChangeStopAudio"
           @sentPause="sentPause"
           @playChange="getPlayStatus"
+          :attrib="attrib"
         />
       </div>
       <div v-else :class="type == 'full' ? 'compare-box-big' : 'compare-box'">
@@ -28,6 +29,7 @@
           :type="type"
           @sentPause="sentPause"
           @getPlayStatus="getPlayStatus"
+          :attrib="attrib"
         />
       </div>
     </template>
@@ -67,6 +69,7 @@ export default {
     'themeColor',
     'type',
     'getPlayStatus',
+    'attrib',
   ],
   data() {
     return {

+ 2 - 0
src/views/book/courseware/preview/components/dialogue_article/NormalModelChs.vue

@@ -22,6 +22,7 @@
             type="audioLine"
             ref="audioLine"
             @emptyEd="emptyEd"
+            :attrib="attrib"
           />
         </template>
       </div>
@@ -516,6 +517,7 @@
             type="audioLine"
             ref="audioLine"
             @emptyEd="emptyEd"
+            :attrib="attrib"
           />
         </template>
       </div>

+ 2 - 0
src/views/book/courseware/preview/components/dialogue_article/PhraseModelChs.vue

@@ -19,6 +19,7 @@
             :get-cur-time="getCurTime"
             :mp3-source="curQue.mp3_list[0].source"
             :width="colLength == 2 ? 200 : isPhone ? 200 : 790"
+            :attrib="attrib"
           />
         </template>
       </div>
@@ -366,6 +367,7 @@
             :get-cur-time="getCurTime"
             :mp3-source="curQue.mp3_list[0].source"
             :width="colLength == 2 ? 200 : isPhone ? 200 : 790"
+            :attrib="attrib"
           />
         </template>
       </div>

+ 3 - 0
src/views/book/courseware/preview/components/dialogue_article/Practicechs.vue

@@ -26,6 +26,7 @@
             type="audioLine"
             @handleChangeStopAudio="handleChangeStopAudio"
             @emptyEd="emptyEd"
+            :attrib="attrib"
           />
         </template>
       </div>
@@ -491,6 +492,7 @@
                   :isRecord="isRecord"
                   :handleChangeStopAudio="handleChangeStopAudio"
                   :getPlayStatus="getPlayStatus"
+                  :attrib="attrib"
                 />
               </div>
             </div>
@@ -541,6 +543,7 @@
             type="audioLine"
             @handleChangeStopAudio="handleChangeStopAudio"
             @emptyEd="emptyEd"
+            :attrib="attrib"
           />
         </template>
       </div>

+ 1 - 0
src/views/book/courseware/preview/components/dialogue_article/WordModelChs.vue

@@ -19,6 +19,7 @@
             :get-cur-time="getCurTime"
             :mp3-source="curQue.mp3_list[0].source"
             :width="colLength == 2 ? 200 : isPhone ? 200 : 790"
+            :attrib="attrib"
           />
         </template>
       </div>

+ 1 - 0
src/views/book/courseware/preview/components/image_text/ImageTextPreview.vue

@@ -14,6 +14,7 @@
         :ed="ed"
         type="audioLine"
         @emptyEd="emptyEd"
+        :attrib="data.unified_attrib"
       />
     </template>
     <div

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

@@ -906,7 +906,8 @@ export default {
   mounted() {
     this.width =
       document.querySelector('.preview-main').offsetWidth -
-      73 -
+      200 -
+      20 -
       (this.data.property.sn_display_mode === 'true' ? 15 : 0) -
       (this.newData ? 16 : 0) +
       'px';