|
@@ -42,23 +42,30 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
<template v-else-if="data.property.answer_mode === 'select'">
|
|
|
- <span
|
|
|
- v-for="(itemc, indexc) in con_preview[0].item_con"
|
|
|
- :key="indexc"
|
|
|
- :class="[
|
|
|
- 'item-con',
|
|
|
- active_index_str === 0 + '-' + indexc ? 'active' : '',
|
|
|
- isJudgingRightWrong && !con_preview[0].user_answer[indexc].is_right ? 'error' : '',
|
|
|
- data.property.fun_type === 'show' ? 'item-con-in' : '',
|
|
|
- ]"
|
|
|
- @click="
|
|
|
- if (data.property.fun_type === 'show') return;
|
|
|
- con_preview[0].item_active_index = indexc;
|
|
|
- active_index_str = 0 + '-' + indexc;
|
|
|
- "
|
|
|
- >
|
|
|
- {{ itemc }}
|
|
|
- </span>
|
|
|
+ <template v-if="data.property.fun_type === 'show'">
|
|
|
+ <span v-for="(itemc, indexc) in data.matically_pinyin_str[data.mark]" :key="indexc" class="items-box">
|
|
|
+ <span v-for="(itemi, indexi) in itemc" :key="indexi" :class="['items-con']">{{ itemi }}</span>
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <span
|
|
|
+ v-for="(itemc, indexc) in con_preview[0].item_con"
|
|
|
+ :key="indexc"
|
|
|
+ :class="[
|
|
|
+ 'item-con',
|
|
|
+ active_index_str === 0 + '-' + indexc ? 'active' : '',
|
|
|
+ isJudgingRightWrong && !con_preview[0].user_answer[indexc].is_right ? 'error' : '',
|
|
|
+ data.property.fun_type === 'show' ? 'item-con-in' : '',
|
|
|
+ ]"
|
|
|
+ @click="
|
|
|
+ if (data.property.fun_type === 'show') return;
|
|
|
+ con_preview[0].item_active_index = indexc;
|
|
|
+ active_index_str = 0 + '-' + indexc;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ {{ itemc }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<span v-for="(itemc, indexc) in con_preview[0].item_con" :key="indexc" class="items-box">
|