|
@@ -93,44 +93,73 @@
|
|
|
<h5 :style="{ textAlign: data.fontAlign }">{{ data.headerCon }}</h5>
|
|
|
<label :style="{ background: data.borderColor }">{{ data.label }}</label>
|
|
|
</div>
|
|
|
- <div style="width: max-content">
|
|
|
- <AudioPlay
|
|
|
- :style="{ background: data.borderColor }"
|
|
|
- :file-id="data.right.audio_file"
|
|
|
- v-if="data.right.audio_file"
|
|
|
- />
|
|
|
- <div class="hz-box">
|
|
|
- <div class="hz-item" v-for="(itemh, indexh) in data.right.hz_info" :key="indexh">
|
|
|
- <p :style="{ color: data.borderColor }">
|
|
|
- {{ data.right.pinyin.split(' ')[indexh] ? data.right.pinyin.split(' ')[indexh] : '' }}
|
|
|
- </p>
|
|
|
- <Strockplay
|
|
|
- className="adult-strockplay"
|
|
|
- :Book_text="itemh.con"
|
|
|
- :playStorkes="true"
|
|
|
- :strokePlayColor="data.borderColor"
|
|
|
- :strokeColor="'#000000'"
|
|
|
- :palyWidth="'18px'"
|
|
|
- :BoxbgType="'0'"
|
|
|
- :curItem="itemh.hzDetail.hz_json"
|
|
|
- :targetDiv="'writeTops-item-' + pageNumber + '-' + indexh + '-' + itemh.con"
|
|
|
- :class="[indexh !== 0 ? 'writeTop-item-noLeft' : '']"
|
|
|
- class="writeTop-item"
|
|
|
- :style="{ borderColor: data.borderColor }"
|
|
|
- />
|
|
|
+ <div
|
|
|
+ :style="{
|
|
|
+ display: 'flex',
|
|
|
+ justifyContent: !(data.right.collocation && data.right.exampleSent) ? 'center' : 'auto',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <div style="width: max-content">
|
|
|
+ <AudioPlay
|
|
|
+ :style="{ background: data.borderColor }"
|
|
|
+ :file-id="data.right.audio_file"
|
|
|
+ v-if="data.right.audio_file"
|
|
|
+ />
|
|
|
+ <div class="hz-box">
|
|
|
+ <div class="hz-item" v-for="(itemh, indexh) in data.right.hz_info" :key="indexh">
|
|
|
+ <p :style="{ color: data.borderColor }">
|
|
|
+ {{ data.right.pinyin.split(' ')[indexh] ? data.right.pinyin.split(' ')[indexh] : '' }}
|
|
|
+ </p>
|
|
|
+ <Strockplay
|
|
|
+ className="adult-strockplay"
|
|
|
+ :Book_text="itemh.con"
|
|
|
+ :playStorkes="true"
|
|
|
+ :strokePlayColor="data.borderColor"
|
|
|
+ :strokeColor="'#000000'"
|
|
|
+ :palyWidth="'18px'"
|
|
|
+ :BoxbgType="'0'"
|
|
|
+ :curItem="itemh.hzDetail.hz_json"
|
|
|
+ :targetDiv="'writeTops-item-' + pageNumber + '-' + indexh + '-' + itemh.con"
|
|
|
+ :class="[indexh !== 0 ? 'writeTop-item-noLeft' : '']"
|
|
|
+ class="writeTop-item"
|
|
|
+ :style="{ borderColor: data.borderColor }"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="definition-box">
|
|
|
- <div v-if="data.right.cixing">
|
|
|
- <label class="card-label">词性:</label>
|
|
|
- <p>{{ data.right.cixing }}</p>
|
|
|
- </div>
|
|
|
- <div v-if="data.right.definition">
|
|
|
- <label class="card-label">释义:</label>
|
|
|
- <p>{{ data.right.definition }}</p>
|
|
|
+ <div
|
|
|
+ class="definition-box"
|
|
|
+ v-if="data.right.collocation || data.right.exampleSent"
|
|
|
+ style="flex: 1; margin: 100px 0 0 16px"
|
|
|
+ >
|
|
|
+ <div v-if="data.right.cixing">
|
|
|
+ <label class="card-label">词性:</label>
|
|
|
+ <p>{{ data.right.cixing }}</p>
|
|
|
+ </div>
|
|
|
+ <div v-if="data.right.definition">
|
|
|
+ <label class="card-label">释义:</label>
|
|
|
+ <p>{{ data.right.definition }}</p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="definition-box"
|
|
|
+ :style="{
|
|
|
+ width: !(data.right.collocation && data.right.exampleSent) ? data.right.hz_info.length * 98 + 'px' : '',
|
|
|
+ margin: !(data.right.collocation && data.right.exampleSent) ? '16px auto 0 auto' : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <template v-if="!(data.right.collocation && data.right.exampleSent)">
|
|
|
+ <div v-if="data.right.cixing">
|
|
|
+ <label class="card-label">词性:</label>
|
|
|
+ <p>{{ data.right.cixing }}</p>
|
|
|
+ </div>
|
|
|
+ <div v-if="data.right.definition">
|
|
|
+ <label class="card-label">释义:</label>
|
|
|
+ <p>{{ data.right.definition }}</p>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<div v-if="data.right.collocation">
|
|
|
<label class="card-label">搭配:</label>
|
|
|
<p>{{ data.right.collocation }}</p>
|