作者 刘晓艳
1 个管道 的构建 通过 耗费 2 秒

测试1

... ... @@ -176,6 +176,47 @@
</div>
</div>
<div class="info_item">
<div class="title" data-id="5">
<text>当前困惑</text>
<text class="iconfont icon-huatong voice_btn voice_btn5"></text>
<text class="iconfont icon-tianxie"></text>
</div>
<div class="textarea_box">
<textarea class="area textarea5" type="text" placeholder="请输入你的困惑" maxlength="1000"
id="confused"></textarea>
<p class="text_num"><span class="text-count">0</span>/1000</p>
</div>
<div id="voice_module5" class="voice_module" video-id="5">
<div class="voice_list" voiceitemid="5">
<div class="voice_box voice_third">
<div class="voice_item">
<text class="iconfont icon-luyin voice_icon"></text>
<text class="voice_font luyin">点击图标可播放 时长:<span class="timeLength">0</span></text>
</div>
<div class="voice_btn_box">
<text class="iconfont icon-quxiao cancle_voice"></text>
<text class="iconfont icon-tianjia add_voice"></text>
</div>
</div>
<div class="voice_box voice_first">
<div class="voice_item">
<text class="iconfont icon-huatong mike voice_icon"></text>
<text class="voice_font huatong">点击图标开始语音语音最长60秒</text>
</div>
<div class="voice_btn_box">
<text class="iconfont icon-quxiao icon_cancle cancle_voice"></text>
</div>
</div>
</div>
</div>
</div>
<!--专家提问显示内容-->
<div class="tab_content_box">
<div class="tab_info">
... ... @@ -545,9 +586,6 @@
' </div>\n' +
' </div>\n' +
'</div>'
// parent.append($('.voice_list').html());
parent.append(html)
})
... ... @@ -606,7 +644,6 @@
$('.pause').hide()
$('.start').show()
$('.stopping').hide()
})
//播放语音
... ... @@ -619,8 +656,6 @@
})
$('.voice_puse').click(function () {
mySound.pause();
// $('.voice_play').show()
// $('.voice_puse').hide()
$(this).hide()
$(this).siblings('.voice_play').show()
})
... ... @@ -641,34 +676,12 @@
//点击试听
$('.audition').click(function () {
// var videolist = $(".voice_module");
// for (var i = 0; i < videolist.length; i++) {
// var videoid = $(videolist[i]).attr("video-id");
// if (videoid == title_id) {
// $('.second').hide()
// $(videolist[i]).show();
// $(videolist[i]).children('.voice_list').hide()
// $(videolist[i]).children('.voice_third').show();
// }
// }
})
//我要发送
$('.submit_voice').click(function () {
// var videolist = $(".voice_module");
// console.log(videolist,videolist.length)
// for (var i = 0; i<videolist.length; i++) {
// videoid = $(videolist[i]).attr("video-id");
// if (videoid == title_id) {
// $('.second').hide()
// $(videolist[i]).children(".voice_list").children('.voice_first').hide()
// $(videolist[i]).children(".voice_list").children('.voice_third').show();
// }
// }
voiceBox.find('.voice_first').hide().siblings('.voice_third').show()
$('.second').hide()
... ...