Przeglądaj źródła

对话课文拼音句首大写控制

natasha 2 miesięcy temu
rodzic
commit
06a1112289

+ 6 - 1
src/views/book/courseware/preview/components/dialogue_article/NormalModelChs.vue

@@ -700,7 +700,12 @@ export default {
               sentIndex: sIndex, //在段落中句子索引
               articleSentIndex: asIndex, //在文章中句子索引
               wordIndex: wIndex, //单词的索引
-              pinyin: wItem.pinyin,
+              pinyin:
+                curQue.pinyin_type === 'pinyin'
+                  ? curQue.property.is_enable_sentence_case && wIndex === 0
+                    ? wItem.pinyin_up
+                    : wItem.pinyin
+                  : wItem.pinyin_tone,
               chs: wItem.chs,
               padding: true, //wItem.padding,
               className: wItem.className,

+ 6 - 1
src/views/book/courseware/preview/components/dialogue_article/PhraseModelChs.vue

@@ -610,7 +610,12 @@ export default {
               paraIndex: dIndex, //段落索引
               sentIndex: sIndex, //在段落中句子索引
               wordIndex: wIndex, //单词的索引
-              pinyin: wItem.pinyin,
+              pinyin:
+                curQue.pinyin_type === 'pinyin'
+                  ? curQue.property.is_enable_sentence_case && wIndex === 0
+                    ? wItem.pinyin_up
+                    : wItem.pinyin
+                  : wItem.pinyin_tone,
               chs: wItem.chs,
               padding: true, //wItem.padding,
               className: wItem.className,

+ 6 - 1
src/views/book/courseware/preview/components/dialogue_article/Practicechs.vue

@@ -776,7 +776,12 @@ export default {
               paraIndex: dIndex, //段落索引
               sentIndex: sIndex, //在段落中句子索引
               wordIndex: wIndex, //单词的索引
-              pinyin: wItem.pinyin,
+              pinyin:
+                curQue.pinyin_type === 'pinyin'
+                  ? curQue.property.is_enable_sentence_case && wIndex === 0
+                    ? wItem.pinyin_up
+                    : wItem.pinyin
+                  : wItem.pinyin_tone,
               chs: wItem.chs,
               padding: true,
               className: wItem.className,

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

@@ -570,7 +570,12 @@ export default {
               paraIndex: dIndex, //段落索引
               sentIndex: sIndex, //在段落中句子索引
               wordIndex: wIndex, //单词的索引
-              pinyin: wItem.pinyin,
+              pinyin:
+                curQue.pinyin_type === 'pinyin'
+                  ? curQue.property.is_enable_sentence_case && wIndex === 0
+                    ? wItem.pinyin_up
+                    : wItem.pinyin
+                  : wItem.pinyin_tone,
               chs: wItem.chs,
               padding: true,
               className: wItem.className,