xusd
7 days ago 998218675eb243d43912c203174a6b72b299c0f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!--录音转文字-->
<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>