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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!--pages/speechToText/index.wxml-->
<block class="card">
  <view class="speechToText-main">
    <block wx:if="{{key==='caseDes'}}">
      <view class="cell-item">
        <view class="cell-title"><text><text class="cell-required">*</text>事项概况</text></view>
        <van-field custom-style="padding:0 20rpx;line-height:90rpx; margin-bottom:32rpx" autosize="{{ { maxHeight: 470, minHeight: 470 } }}" bind:change="handleChange" border="{{ false }}" maxlength='2000' data-key="number" placeholder="请完整描述事项概况,应具备5要素:发生时间+发生地点+人物情况+事项起因+事项经过" type="textarea" value="{{ value }}" />
      </view>
      <view class="textarea-foot">
        <view class="textarea-limit">{{number||0}}/2000字</view>
        <view class="textarea-ability">
          <!-- <view bindtouchstart="touchStart" bindtouchend="touchEnd" class="textarea-img"> -->
          <view bindtouchstart="touchStart" bindtouchend="touchEnd" class="textarea-img">
            <image src="{{imgUrl}}voiceOcr.png" mode="" />按住说话
          </view>
        </view>
      </view>
    </block>
    <block wx:else>
      <view class="cell-item">
        <view class="cell-title"><text><text class="cell-required">*</text>事项申请</text></view>
        <van-field custom-style="padding:0 20rpx;line-height:90rpx" autosize="{{ { maxHeight: 470, minHeight: 470 } }}" bind:change="handleChange" border="{{ false }}" maxlength='500' data-key="number" placeholder="希望相关部门如何处理,建议分条描述,如请求1,请求2..." type="textarea" value="{{ value }}" />
      </view>
      <view class="textarea-foot">
        <view class="textarea-limit">{{number||0}}/500字</view>
        <view class="textarea-ability">
          <view bindtouchstart="touchStart" bindtouchend="touchEnd" class="textarea-img">
            <image src="{{imgUrl}}voiceOcr.png" mode="" />按住说话
          </view>
        </view>
      </view>
    </block>
    <view wx:if="{{showModal}}" class="modal-card">
      <!-- <image class="modal-img" src="{{imgUrl}}speechToText.png" mode="" /> -->
      <view class="recording">
        <!-- 语音动画 -->
        <block>
          <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>
        </block>
      </view>
    </view>
  </view>
  <view class="submitButton" catch:tap="">
    <view style="flex: 1;">
      <van-button bind:click="handleNext" block data-type="next" type="primary">保存</van-button>
      <view class="safeHeight" />
    </view>
  </view>
 
  <view class="modal">
 
  </view>
</block>