|
|
@@ -571,7 +571,7 @@
|
|
|
</template>
|
|
|
|
|
|
<p
|
|
|
- v-if="item.pinyin && item.pinyin.split(' ').length === 1"
|
|
|
+ v-if="item.pinyin && !item.pyhz"
|
|
|
:style="{
|
|
|
color:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color
|
|
|
@@ -585,7 +585,7 @@
|
|
|
<div class="hz-box">
|
|
|
<div v-for="(itemh, indexh) in item.hz_info" :key="indexh" class="hz-item">
|
|
|
<p
|
|
|
- v-if="item.pinyin && item.pinyin.split(' ').length > 1"
|
|
|
+ v-if="item.pinyin && item.pyhz"
|
|
|
:style="{
|
|
|
color:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color
|
|
|
@@ -593,7 +593,7 @@
|
|
|
: '',
|
|
|
}"
|
|
|
>
|
|
|
- {{ item.pinyin.split(' ')[indexh] ? item.pinyin.split(' ')[indexh] : '' }}
|
|
|
+ {{ item.pinyin.split(' ')[indexh] ? item.pinyin.split(' ')[indexh] : ' ' }}
|
|
|
</p>
|
|
|
<Strockplay
|
|
|
class-name="adult-strockplay"
|
|
|
@@ -739,7 +739,6 @@ import writeTableZoom from './components/writeTableZoom.vue';
|
|
|
|
|
|
export default {
|
|
|
name: 'NewWordPreview',
|
|
|
-
|
|
|
components: {
|
|
|
SoundRecord,
|
|
|
AudioLine,
|
|
|
@@ -754,6 +753,10 @@ export default {
|
|
|
type: Object,
|
|
|
default: null,
|
|
|
},
|
|
|
+ isMobile: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false,
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -960,9 +963,15 @@ export default {
|
|
|
// this.$set(item, 'pic_url', url_map[item.file_list[0]]);
|
|
|
// });
|
|
|
// }
|
|
|
+ let flag = false;
|
|
|
+ if (item.pinyin) {
|
|
|
+ flag = item.pinyin.split(' ').length === item.new_word.length;
|
|
|
+ }
|
|
|
this.$set(item, 'show_left', true);
|
|
|
this.$set(item, 'isFlipped', false);
|
|
|
+ this.$set(item, 'pyhz', flag);
|
|
|
});
|
|
|
+ console.log(this.data.new_word_list);
|
|
|
option_list.forEach((item, index) => {
|
|
|
optionRes = optionRes.concat(item);
|
|
|
Bookanswer.push([]);
|
|
|
@@ -1568,7 +1577,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
p {
|
|
|
- margin: 0;
|
|
|
+ margin: 0 0 8px;
|
|
|
font-family: 'League';
|
|
|
font-size: 14px;
|
|
|
font-feature-settings: 'cv01' on;
|