作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

视频详情

... ... @@ -2,6 +2,7 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/application/home/view/goods/audio_detail.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/view/goods/audio_detail.html" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
... ... @@ -79,8 +80,8 @@
<file leaf-file-name="audio_detail.html" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/home/view/goods/audio_detail.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="577">
<caret line="206" column="55" selection-start-line="206" selection-start-column="55" selection-end-line="206" selection-end-column="55" />
<state relative-caret-position="424">
<caret line="218" column="55" lean-forward="true" selection-start-line="218" selection-start-column="55" selection-end-line="218" selection-end-column="55" />
<folding>
<element signature="n#style#0;n#div#0;n#div#1;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" />
<element signature="n#style#0;n#div#4;n#div#0;n#div#1;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" />
... ... @@ -92,8 +93,8 @@
<file leaf-file-name="audioDetail.html" pinned="false" current-in-tab="false">
<entry file="file://$USER_HOME$/Desktop/userShopping/audioDetail.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="286">
<caret line="194" column="12" selection-start-line="194" selection-start-column="12" selection-end-line="209" selection-end-column="21" />
<state relative-caret-position="235">
<caret line="191" column="21" selection-start-line="191" selection-start-column="12" selection-end-line="191" selection-end-column="21" />
</state>
</provider>
</entry>
... ... @@ -436,42 +437,7 @@
<workItem from="1572568391799" duration="24440000" />
<workItem from="1572668245063" duration="699000" />
<workItem from="1572827640492" duration="25475000" />
<workItem from="1572914713443" duration="7489000" />
</task>
<task id="LOCAL-00093" summary="视频详情">
<created>1572860252481</created>
<option name="number" value="00093" />
<option name="presentableId" value="LOCAL-00093" />
<option name="project" value="LOCAL" />
<updated>1572860252481</updated>
</task>
<task id="LOCAL-00094" summary="视频详情">
<created>1572860384007</created>
<option name="number" value="00094" />
<option name="presentableId" value="LOCAL-00094" />
<option name="project" value="LOCAL" />
<updated>1572860384007</updated>
</task>
<task id="LOCAL-00095" summary="视频详情">
<created>1572860445483</created>
<option name="number" value="00095" />
<option name="presentableId" value="LOCAL-00095" />
<option name="project" value="LOCAL" />
<updated>1572860445483</updated>
</task>
<task id="LOCAL-00096" summary="视频详情">
<created>1572860543038</created>
<option name="number" value="00096" />
<option name="presentableId" value="LOCAL-00096" />
<option name="project" value="LOCAL" />
<updated>1572860543038</updated>
</task>
<task id="LOCAL-00097" summary="视频详情">
<created>1572860646307</created>
<option name="number" value="00097" />
<option name="presentableId" value="LOCAL-00097" />
<option name="project" value="LOCAL" />
<updated>1572860646307</updated>
<workItem from="1572914713443" duration="8691000" />
</task>
<task id="LOCAL-00098" summary="视频详情">
<created>1572861657991</created>
... ... @@ -781,11 +747,46 @@
<option name="project" value="LOCAL" />
<updated>1572922128656</updated>
</task>
<option name="localTasksCounter" value="142" />
<task id="LOCAL-00142" summary="视频详情">
<created>1572922215490</created>
<option name="number" value="00142" />
<option name="presentableId" value="LOCAL-00142" />
<option name="project" value="LOCAL" />
<updated>1572922215490</updated>
</task>
<task id="LOCAL-00143" summary="视频详情">
<created>1572922283144</created>
<option name="number" value="00143" />
<option name="presentableId" value="LOCAL-00143" />
<option name="project" value="LOCAL" />
<updated>1572922283144</updated>
</task>
<task id="LOCAL-00144" summary="视频详情">
<created>1572922316859</created>
<option name="number" value="00144" />
<option name="presentableId" value="LOCAL-00144" />
<option name="project" value="LOCAL" />
<updated>1572922316859</updated>
</task>
<task id="LOCAL-00145" summary="视频详情">
<created>1572922520145</created>
<option name="number" value="00145" />
<option name="presentableId" value="LOCAL-00145" />
<option name="project" value="LOCAL" />
<updated>1572922520145</updated>
</task>
<task id="LOCAL-00146" summary="视频详情">
<created>1572922529468</created>
<option name="number" value="00146" />
<option name="presentableId" value="LOCAL-00146" />
<option name="project" value="LOCAL" />
<updated>1572922529468</updated>
</task>
<option name="localTasksCounter" value="147" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="307067000" />
<option name="totallyTimeSpent" value="308269000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
... ... @@ -1200,15 +1201,15 @@
</entry>
<entry file="file://$USER_HOME$/Desktop/userShopping/audioDetail.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="286">
<caret line="194" column="12" selection-start-line="194" selection-start-column="12" selection-end-line="209" selection-end-column="21" />
<state relative-caret-position="235">
<caret line="191" column="21" selection-start-line="191" selection-start-column="12" selection-end-line="191" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/home/view/goods/audio_detail.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="577">
<caret line="206" column="55" selection-start-line="206" selection-start-column="55" selection-end-line="206" selection-end-column="55" />
<state relative-caret-position="424">
<caret line="218" column="55" lean-forward="true" selection-start-line="218" selection-start-column="55" selection-end-line="218" selection-end-column="55" />
<folding>
<element signature="n#style#0;n#div#0;n#div#1;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" />
<element signature="n#style#0;n#div#4;n#div#0;n#div#1;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" />
... ...
... ... @@ -186,9 +186,13 @@
// 音频
var audio = $(".audio");
// 音频时长
var begin = [];
$(audio).each(function (key, vo) {
getDuration(audio.eq(key),vo)
begin.push(key);
});
console.log(begin);
var over = [];
$(".audio_style").click(function() {
var index = $('.audio_style').index(this);
$(audio).each(function (key, vo) {
... ... @@ -205,6 +209,15 @@
audio.eq(key).parents('.detail_audio_wrap').find(".b5").addClass("b_active");
}
if (audioTime <= 0) {
if(!over.indexOf(key)){
over.push(key)
}
console.log(over);
if(over.length == begin.length){
$(".quest_box").removeClass("quest_ans");
// 重新答题
$(".error_btn").hide();
}
audioTime = parseInt(vo.duration);
console.log(audioTime);
audio.eq(key).parents('.detail_audio_wrap').find(".b3").siblings().removeClass("b_active");
... ... @@ -214,12 +227,6 @@
}
});
});
// audio.addEventListener("ended", function() {
// $(".quest_box").removeClass("quest_ans");
// // 重新答题
// $(".error_btn").hide();
// });
//全局变量
var goods_id = "{$data.id}";//用户id
var user_id = "{$user.id}";//广告id
... ...