voice.wxml 1.7 KB

1
  1. <view class="voice data-v-79a30d7a"><block wx:if="{{$root.g0.length===0}}"><button data-event-opts="{{[['tap',[['open']]]]}}" class="adjunction dir-left-nowrap cross-center data-v-79a30d7a" bindtap="__e"><view class="recording data-v-79a30d7a"></view><view class="text data-v-79a30d7a">添加语音祝福</view></button></block><block wx:else><view class="audio dir-left-nowrap cross-center data-v-79a30d7a"><view data-event-opts="{{[['tap',[['playaudio',['$event']]]]]}}" class="{{['btn','data-v-79a30d7a',is_play?'btn-pause':'btn-play']}}" bindtap="__e"></view><view class="duration data-v-79a30d7a">{{voice_i+"″"}}</view><view data-event-opts="{{[['tap',[['close']]]]}}" class="close data-v-79a30d7a" bindtap="__e"></view></view></block><block wx:if="{{start_tran}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="black data-v-79a30d7a" catchtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="mouldboard dir-top-nowrap cross-center data-v-79a30d7a" catchtap="__e"><view class="voice-num data-v-79a30d7a">{{$root.f0}}</view><view data-event-opts="{{[['touchstart',[['start',['$event']]]],['touchend',[['end',['$event']]]]]}}" class="{{['transcription','data-v-79a30d7a',theme+'-background']}}" bindtouchstart="__e" bindtouchend="__e"><image class="image data-v-79a30d7a" src="{{animationStatus?'../../image/transcriptioning.png':'../../image/transcription.png'}}"></image><view class="{{['ripple','data-v-79a30d7a',theme+'-border']}}" animation="{{animationData1}}"></view><view class="{{['ripple','data-v-79a30d7a',theme+'-border']}}" animation="{{animationData2}}"></view></view><view class="active-text data-v-79a30d7a">{{animationStatus?'松开停止录音':'长按开始录音'}}</view></view></view></block></view>