<!--录音转文字-->
|
<van-button bind:click="_handleOpenRecording" block color="#F2F2F2" custom-style="color:rgba(0,0,0,85)" type="primary">语音录入</van-button>
|
<van-overlay bind:click="_handleHiddenRecording" show="{{ overlayShow }}" z-index="999">
|
<view catchtap="_catchtop" class="recording">
|
<!-- 语音动画 -->
|
<block wx:if="{{ recordVisible }}">
|
<view class="time-box">
|
<view class="time-box-top">
|
<view class="hr hr1" />
|
<view class="hr hr2" />
|
<view class="hr hr3" />
|
<view class="hr hr4" />
|
<view class="hr hr5" />
|
<view class="hr hr6" />
|
<view class="hr hr7" />
|
<view class="hr hr8" />
|
<view class="hr hr9" />
|
<view class="hr hr10" />
|
</view>
|
<view class="time-box-bottom">
|
<view class="hr hr1" />
|
<view class="hr hr2" />
|
<view class="hr hr3" />
|
<view class="hr hr4" />
|
<view class="hr hr5" />
|
<view class="hr hr6" />
|
<view class="hr hr7" />
|
<view class="hr hr8" />
|
<view class="hr hr9" />
|
<view class="hr hr10" />
|
</view>
|
</view>
|
<view class="recording-title">点击下方按钮后结束说话</view>
|
<view>(还可以说{{ second }}秒)</view>
|
</block>
|
<block wx:else>
|
<image class="recording-img" src="{{ imgUrl }}recording.png" />
|
<view class="recording-title">点击下方按钮后开始说话</view>
|
<view>(最长支持60秒)</view>
|
</block>
|
</view>
|
<view catchtap="_catchtop" class="recording-button-bg">
|
<van-button bind:click="_handleStartOrEnd" block color="#ffffff" custom-class="recording-button" plain>{{ recordVisible ? '结束说话' : '开始说话' }}</van-button>
|
</view>
|
</van-overlay>
|
<van-popup bind:close="_handleClosePopup" closeable position="bottom" round show="{{ popup.visible }}" title="调解请说" z-index="999">
|
<view class="recording-content">
|
<tooltip content="点击文字可进行修改" visible="{{ tooltipVisible }}" />
|
<van-field
|
autosize="{{ { maxHeight: 400, minHeight: 50 } }}"
|
bind:change="_handleChangeWords"
|
border="{{ false }}"
|
custom-style="padding:0"
|
placeholder="无转写可直接编辑"
|
type="textarea"
|
value="{{ popup.content }}"
|
/>
|
</view>
|
<view class="recording-popup-button">
|
<van-button bind:click="_handleUseWords" block data-type="next" type="primary">使用文字</van-button>
|
</view>
|
</van-popup>
|