template.wxml 3.6 KB
<!--音频组件模板-->
<template name="audio_group">
    <view class='audioCon'>
        <view class='audioContop'>
            <view class='audioContoptxt'>语音录制</view>
            <view class='audio_botsBg' bindtap='audioBi'>
                <text class='iconfont icon-icon-test3'></text>
            </view>
        </view>
        <view class='audioCons'>
            <view class='audioTime'>还可以录制
                <text>{{showTime}}</text>的时长
            </view>
            <view class='audio_bot'>
                <view class='audio_play'>
                    <!-- <text class='iconfont icon-bofang11' ></text> -->
                    <view class='audio_playImg' wx:if="{{mytype=='start'}}" bindtap='audioPlay'><image src='/image/luyin.png' ></image></view>
                    <text class='iconfont icon-tingzhi' wx:if="{{mytype=='stop'}}" bindtap='audio_stop'></text>
                    <view class="recordIng"></view>
                </view>
            </view>
            <!-- <view class='audio_next' bindtap='nextFun'>
                <view class='audio_nextTxt'>下一步</view>
            </view> -->
        </view>
    </view>
</template>
<template name="up_audio">
    <view class='up_audioCon'>
        <view class='audioContop'>
            <view class='audioContoptxt'>语音上传</view>
            <view class='audio_botsBg' bindtap='audioBi2'>
                <text class='iconfont icon-icon-test3'></text>
            </view>
        </view>
        <view class='audioCons'>
            <!-- <view class='upaudioShi' bindtap='trylisten' wx:if="{{trylisten}}">点击试听</view>
            <view class='upaudioShi' wx:if="{{!trylisten}}">正在试听</view> -->
            <view class='upaudioTime'>时长:{{audioTime}}</view>

            <view class='up_audioBtn'>
              <view class='up_audioLi' >
                    <view bindtap='trylisten' wx:if="{{trylisten}}">
                      <view class='up_audioLiBg'>
                        <image src="/image/play_icon.png" class="image_icon"></image>
                      </view>
                      <view class='up_audioLiTxt'>播放</view>
                    </view>
                    <view bindtap='trylisten' wx:else>
                      <view class='up_audioLiBg'>
                        <image src="/image/puse.png" class="pasue_icon"></image>
                      </view>
                      <view class='up_audioLiTxt'>停止</view>
                    </view>
                    
                </view>
                <view class='up_audioLi' bindtap='againFun'>
                    <view class='up_audioLiBg'>
                        <text class='iconfont icon-icon-test1'></text>
                    </view>
                    <view class='up_audioLiTxt'>重新录制</view>
                </view>
                <view class='up_audioLi' bindtap='uploadFun'>
                    <view class='up_audioLiBg'>
                        <text class='iconfont icon-icon--'></text>
                    </view>
                    <view class='up_audioLiTxt'>确认上传</view>
                </view>
            </view>
        </view>
    </view>
</template>

<!-- 音频展示模块 -->
<template name="audio_module">
    <view class='voice'>
        <view class='voiceLi' bindtap='playaudio'>
            <view class='voiceImg'>
                <image src='/image/87.gif' class='shengyins' wx:if='{{qid}}'></image>            
                <image src='/image/86.png' wx:else></image>
            </view>
            <view class='voiceTxt'>{{duration}}</view>
        </view>
    </view>
</template>