提交 4b151987 编写于 作者: zhaosheng.zhang's avatar zhaosheng.zhang

feat: 语音转文字及上传音频放开mp4格式

上级 699f4622
......@@ -26,7 +26,7 @@
slot="tip"
class="el-upload__tip"
>
音频格式:mp3
音频格式:mp3、mp4
</p>
<ul
slot="tip"
......@@ -72,7 +72,7 @@
token: localStorage.getItem('token'),
},
loading: false,
accept: '.mp3,.mpeg',
accept: '.mp3,.mpeg,.mp4',
};
},
watch: {
......
......@@ -828,7 +828,10 @@
show-word-limit
/>
</el-form-item>
<el-form-item label="系统录音/录像">
<el-form-item
v-if="formData.vodList.length > 0"
label="系统录音/录像"
>
<el-form-item
v-for="item in formData.vodList"
:key="item.url"
......@@ -848,6 +851,20 @@
'.mp4'
}}
</el-link>
<el-popover
trigger="hover"
placement="top"
width="1000"
>
<p>{{ item.text }}</p>
<div
slot="reference"
class="vod"
>
<span class="vod-txt">语音转文字:</span>
<span class="vod-text">{{ item.text }}</span>
</div>
</el-popover>
</el-form-item>
</el-form-item>
<el-form-item label="音频">
......@@ -1222,6 +1239,7 @@ export default {
vodList: {
name: '',
url: '',
text: ''
},
additionPrice: null, // 诊疗费
orderTotalPrice: null,
......@@ -1394,10 +1412,7 @@ export default {
this.formData = res.data;
this.formData.price = this.priceFilter(this.formData.price);
this.formData.additionPrice = this.priceFilter(this.formData.additionPrice);
console.log('问诊价格=====', this.formData.price);
console.log('诊疗费价格=====', this.formData.additionPrice);
this.formData.orderTotalPrice = this.formData.price + this.formData.additionPrice;
console.log('订单总金额=====', this.formData.additionPrice);
this.formData.serviceFee = this.priceFilter(
this.formData.serviceFee
);
......@@ -1654,6 +1669,27 @@ export default {
.log-info-pagin {
margin: 0 15px;
}
.vod {
display: flex;
flex-direction: row;
align-items: center;
&-txt {
width: 90px;
}
&-text {
width: 100%;
background: #ccc;
line-height: 20px;
-webkit-line-clamp: 5;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
white-space: normal;
}
}
}
.btn-wrap {
padding: 40px 0 60px;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册