template.wxml
3.6 KB
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
80
81
82
83
84
85
<!--音频组件模板-->
<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>