|
|
@@ -1,7 +1,17 @@
|
|
|
<template>
|
|
|
<div class="record">
|
|
|
<template v-if="type === 'normal' || type === 'mini'">
|
|
|
- <div :class="['record', microphoneStatus ? 'active' : '']" @click="microphone"></div>
|
|
|
+ <div :class="['record', microphoneStatus ? 'active' : '']" @click="microphone">
|
|
|
+ <img src="@/assets/voice_matrix/luyin-active.png" v-if="microphoneStatus" />
|
|
|
+ <SvgIcon
|
|
|
+ v-else
|
|
|
+ icon-class="luyin-radio-button"
|
|
|
+ size="24"
|
|
|
+ :style="{
|
|
|
+ color: attrib && attrib.topic_color ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<span
|
|
|
v-if="type && type == 'normal'"
|
|
|
:class="[
|
|
|
@@ -10,34 +20,74 @@
|
|
|
selectIndex || selectIndex == 0 ? 'record-black' : '',
|
|
|
type && type == 'normal' ? 'record-time-flex' : '',
|
|
|
]"
|
|
|
+ :style="{
|
|
|
+ fontSize: attrib && attrib.font_size ? attrib.font_size : '',
|
|
|
+ color: microphoneStatus && attrib && attrib.topic_color ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
>{{ isPlaying ? '-' : '' }}{{ handleDateTime(recordtime) }}</span
|
|
|
>
|
|
|
<div
|
|
|
:class="['playBack', hasMicro]"
|
|
|
@click="playmicrophone(selectIndex || selectIndex == 0 ? recordList[selectIndex].toltime : '')"
|
|
|
- ></div>
|
|
|
+ >
|
|
|
+ <!-- <SvgIcon icon-class="luyin-paly-back" size="24" /> -->
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<template v-else-if="type === 'pro'">
|
|
|
- <div :class="['record', microphoneStatus ? 'active' : '']" @click="microphone"></div>
|
|
|
+ <div :class="['record', microphoneStatus ? 'active' : '']" @click="microphone">
|
|
|
+ <img src="@/assets/voice_matrix/luyin-active.png" v-if="microphoneStatus" />
|
|
|
+ <SvgIcon
|
|
|
+ v-else
|
|
|
+ icon-class="luyin-radio-button"
|
|
|
+ size="24"
|
|
|
+ :style="{
|
|
|
+ color: attrib && attrib.topic_color ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<el-select v-model="selectIndex" placeholder="无录音" class="proSelect" @change="handleChangeRecord">
|
|
|
<el-option v-for="(item, i) in recordList" :key="i + item.id" :label="item.name" :value="i" />
|
|
|
</el-select>
|
|
|
<div
|
|
|
:class="['playBack', hasMicro]"
|
|
|
@click="playmicrophone(selectIndex || selectIndex == 0 ? recordList[selectIndex].toltime : '')"
|
|
|
- ></div>
|
|
|
- <a :class="['record-delete', hasMicro ? 'record-delete-has' : '']" @click="handleDelete"></a>
|
|
|
+ >
|
|
|
+ <!-- <SvgIcon icon-class="luyin-paly-back" size="24" /> -->
|
|
|
+ </div>
|
|
|
+ <a
|
|
|
+ :class="['record-delete', hasMicro ? 'record-delete-has' : '']"
|
|
|
+ @click="handleDelete"
|
|
|
+ :style="{
|
|
|
+ color: hasMicro && attrib && attrib.topic_color ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <SvgIcon icon-class="luyin-delete" size="24" />
|
|
|
+ </a>
|
|
|
</template>
|
|
|
|
|
|
<template v-else>
|
|
|
- <div :class="['record', microphoneStatus ? 'active' : '']" @click="microphone"></div>
|
|
|
+ <div :class="['record', microphoneStatus ? 'active' : '']" @click="microphone">
|
|
|
+ <img src="@/assets/voice_matrix/luyin-active.png" v-if="microphoneStatus" />
|
|
|
+ <SvgIcon
|
|
|
+ v-else
|
|
|
+ icon-class="luyin-radio-button"
|
|
|
+ size="24"
|
|
|
+ :style="{
|
|
|
+ color: attrib && attrib.topic_color ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<span
|
|
|
:class="[
|
|
|
'record-time',
|
|
|
microphoneStatus ? 'record-ing' : '',
|
|
|
selectIndex || selectIndex == 0 ? 'record-black' : '',
|
|
|
]"
|
|
|
+ :style="{
|
|
|
+ fontSize: attrib && attrib.font_size ? attrib.font_size : '',
|
|
|
+ color: microphoneStatus && attrib && attrib.topic_color ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
>{{ isPlaying ? '-' : '' }}{{ handleDateTime(recordtime) }}</span
|
|
|
>
|
|
|
<el-select v-model="selectIndex" placeholder="无录音" @change="handleChangeRecord">
|
|
|
@@ -46,8 +96,18 @@
|
|
|
<div
|
|
|
:class="['playBack', hasMicro]"
|
|
|
@click="playmicrophone(selectIndex || selectIndex == 0 ? recordList[selectIndex].toltime : '')"
|
|
|
- ></div>
|
|
|
- <a :class="['record-delete', hasMicro ? 'record-delete-has' : '']" @click="handleDelete"></a>
|
|
|
+ >
|
|
|
+ <!-- <SvgIcon icon-class="luyin-paly-back" size="24" /> -->
|
|
|
+ </div>
|
|
|
+ <a
|
|
|
+ :class="['record-delete', hasMicro ? 'record-delete-has' : '']"
|
|
|
+ @click="handleDelete"
|
|
|
+ :style="{
|
|
|
+ color: hasMicro && attrib && attrib.topic_color ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <SvgIcon icon-class="luyin-delete" size="24" />
|
|
|
+ </a>
|
|
|
</template>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -331,8 +391,8 @@ export default {
|
|
|
height: 32px;
|
|
|
|
|
|
.playBack {
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
margin-left: 8px;
|
|
|
cursor: pointer;
|
|
|
background: url('@/assets/voice_matrix/luyin-play.png') center no-repeat;
|
|
|
@@ -358,21 +418,27 @@ export default {
|
|
|
}
|
|
|
|
|
|
.record {
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
cursor: pointer;
|
|
|
- background: url('@/assets/voice_matrix/luyin.png') center no-repeat;
|
|
|
- background-size: 100%;
|
|
|
|
|
|
- &.active {
|
|
|
- background: url('@/assets/voice_matrix/luyin-active.png') center no-repeat;
|
|
|
- background-size: 100%;
|
|
|
+ img {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
}
|
|
|
|
|
|
- &.active:hover {
|
|
|
- background: url('@/assets/voice_matrix/luyin-stop.png') center no-repeat;
|
|
|
- background-size: 100%;
|
|
|
- }
|
|
|
+ // background: url('@/assets/voice_matrix/luyin.png') center no-repeat;
|
|
|
+ // background-size: 100%;
|
|
|
+
|
|
|
+ // &.active {
|
|
|
+ // background: url('@/assets/voice_matrix/luyin-active.png') center no-repeat;
|
|
|
+ // background-size: 100%;
|
|
|
+ // }
|
|
|
+
|
|
|
+ // &.active:hover {
|
|
|
+ // background: url('@/assets/voice_matrix/luyin-stop.png') center no-repeat;
|
|
|
+ // background-size: 100%;
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
.record-time {
|
|
|
@@ -401,17 +467,19 @@ export default {
|
|
|
|
|
|
.record-delete {
|
|
|
display: block;
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
margin-left: 8px;
|
|
|
- background: url('@/assets/voice_matrix/luyin-delete.png') center no-repeat;
|
|
|
- background-size: 100%;
|
|
|
+ color: #000;
|
|
|
+
|
|
|
+ // background: url('@/assets/voice_matrix/luyin-delete.png') center no-repeat;
|
|
|
+ // background-size: 100%;
|
|
|
|
|
|
&.record-delete-has {
|
|
|
- &:hover {
|
|
|
- background: url('@/assets/voice_matrix/luyin-delete-active.png') center no-repeat;
|
|
|
- background-size: 100%;
|
|
|
- }
|
|
|
+ // &:hover {
|
|
|
+ // background: url('@/assets/voice_matrix/luyin-delete-active.png') center no-repeat;
|
|
|
+ // background-size: 100%;
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
}
|