|
|
@@ -1,22 +1,22 @@
|
|
|
<template>
|
|
|
<div v-if="curRole" class="role-rItem">
|
|
|
- <span v-if="curRole.color" class="adult-book-input-roleText" :style="{ background: curRole.color }">{{
|
|
|
- curRole.name
|
|
|
- }}</span>
|
|
|
<img
|
|
|
- v-else-if="curRole.img_list.length > 0"
|
|
|
- :src="curRole.img_list[0] && curRole.img_list[0].id"
|
|
|
+ v-if="type === 'upload'"
|
|
|
+ :src="curRole.img_list[0] && curRole.img_list[0].file_url"
|
|
|
class="adult-book-input-roleImg"
|
|
|
/>
|
|
|
- <div
|
|
|
- v-else-if="curRole.simpleHead !== ''"
|
|
|
+ <img
|
|
|
+ v-else-if="type === 'simple' && curRole.simpleHead !== ''"
|
|
|
class="adult-book-input-roleImg"
|
|
|
- :class="['adult-book-input-roleImg' + curRole.simpleHead]"
|
|
|
- ></div>
|
|
|
- <template v-if="type != 1 && curRole.detail.wordsList.length > 0">
|
|
|
- <span class="pinyin" :style="{ color: wordColor }">{{ curRole.detail.wordsList | handlePinyin }}</span>
|
|
|
- <span class="chs" :style="{ color: wordColor }">{{ curRole.detail.wordsList | handleChs }}</span>
|
|
|
- </template>
|
|
|
+ :src="require('@/assets/simple' + curRole.simpleHead + '.png')"
|
|
|
+ />
|
|
|
+ <span v-else class="adult-book-input-roleText" :style="{ background: curRole.color }">{{
|
|
|
+ curRole.fullName || curRole.name
|
|
|
+ }}</span>
|
|
|
+ <!-- <template>
|
|
|
+ <span class="pinyin" :style="{ color: wordColor }">{{ curRole.fullName }}</span>
|
|
|
+ <span class="chs" :style="{ color: wordColor }">{{ curRole.fullPinyin }}</span>
|
|
|
+ </template> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -101,6 +101,8 @@ export default {
|
|
|
&-roleImg {
|
|
|
width: 36px;
|
|
|
height: 36px;
|
|
|
+ overflow: hidden;
|
|
|
+ border-radius: 50%;
|
|
|
}
|
|
|
}
|
|
|
|