diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 26ecbe6..1469e44 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -75,7 +75,7 @@ <file leaf-file-name="video_detail.html" pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/application/home/view/goods/video_detail.html"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="308"> + <state relative-caret-position="322"> <caret line="475" column="52" lean-forward="true" selection-start-line="475" selection-start-column="52" selection-end-line="475" selection-end-column="52" /> <folding> <element signature="n#style#0;n#div#1;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" /> @@ -89,8 +89,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="509"> - <caret line="86" column="44" selection-start-line="86" selection-start-column="44" selection-end-line="86" selection-end-column="44" /> + <state relative-caret-position="696"> + <caret line="198" column="16" selection-start-line="198" selection-start-column="16" selection-end-line="202" selection-end-column="14" /> <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" /> @@ -142,7 +142,6 @@ </component> <component name="FindInProjectRecents"> <findStrings> - <find>money</find> <find>target_url</find> <find>sun_05</find> <find>collect_img</find> @@ -170,8 +169,9 @@ <find>showErr</find> <find>checkMore</find> <find>error_btn</find> - <find>submit</find> <find>end_day</find> + <find>submit</find> + <find>audio_time</find> </findStrings> <replaceStrings> <replace /> @@ -437,21 +437,7 @@ <workItem from="1572568391799" duration="24440000" /> <workItem from="1572668245063" duration="699000" /> <workItem from="1572827640492" duration="25475000" /> - <workItem from="1572914713443" duration="2907000" /> - </task> - <task id="LOCAL-00060" summary="广告详情"> - <created>1572519147942</created> - <option name="number" value="00060" /> - <option name="presentableId" value="LOCAL-00060" /> - <option name="project" value="LOCAL" /> - <updated>1572519147942</updated> - </task> - <task id="LOCAL-00061" summary="广告详情"> - <created>1572519181391</created> - <option name="number" value="00061" /> - <option name="presentableId" value="LOCAL-00061" /> - <option name="project" value="LOCAL" /> - <updated>1572519181391</updated> + <workItem from="1572914713443" duration="3719000" /> </task> <task id="LOCAL-00062" summary="广告详情"> <created>1572572088614</created> @@ -782,11 +768,25 @@ <option name="project" value="LOCAL" /> <updated>1572917469279</updated> </task> - <option name="localTasksCounter" value="109" /> + <task id="LOCAL-00109" summary="视频详情"> + <created>1572917631529</created> + <option name="number" value="00109" /> + <option name="presentableId" value="LOCAL-00109" /> + <option name="project" value="LOCAL" /> + <updated>1572917631529</updated> + </task> + <task id="LOCAL-00110" summary="视频详情"> + <created>1572917807857</created> + <option name="number" value="00110" /> + <option name="presentableId" value="LOCAL-00110" /> + <option name="project" value="LOCAL" /> + <updated>1572917807857</updated> + </task> + <option name="localTasksCounter" value="111" /> <servers /> </component> <component name="TimeTrackingManager"> - <option name="totallyTimeSpent" value="302485000" /> + <option name="totallyTimeSpent" value="303297000" /> </component> <component name="ToolWindowManager"> <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" /> @@ -1180,18 +1180,6 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/application/home/view/goods/video_detail.html"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="308"> - <caret line="475" column="52" lean-forward="true" selection-start-line="475" selection-start-column="52" selection-end-line="475" selection-end-column="52" /> - <folding> - <element signature="n#style#0;n#div#1;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" /> - <element signature="n#style#0;n#div#0;n#div#2;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#2;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" /> - </folding> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/application/home/model/Goods.php"> <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="357"> @@ -1206,10 +1194,22 @@ </state> </provider> </entry> + <entry file="file://$PROJECT_DIR$/application/home/view/goods/video_detail.html"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="322"> + <caret line="475" column="52" lean-forward="true" selection-start-line="475" selection-start-column="52" selection-end-line="475" selection-end-column="52" /> + <folding> + <element signature="n#style#0;n#div#1;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" /> + <element signature="n#style#0;n#div#0;n#div#2;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#2;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" /> + </folding> + </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="509"> - <caret line="86" column="44" selection-start-line="86" selection-start-column="44" selection-end-line="86" selection-end-column="44" /> + <state relative-caret-position="696"> + <caret line="198" column="16" selection-start-line="198" selection-start-column="16" selection-end-line="202" selection-end-column="14" /> <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" /> diff --git a/application/home/view/goods/audio_detail.html b/application/home/view/goods/audio_detail.html index c8c6448..35e424e 100644 --- a/application/home/view/goods/audio_detail.html +++ b/application/home/view/goods/audio_detail.html @@ -72,7 +72,7 @@ <div class="detail_date">截止日期:<i class="end_day">{:date('Y/m/d',$data['end_time']);}</i></div> <!-- 音频 --> {foreach name="$data.voice" item="v"} - <div class="detail_audio_wrap "> + <div class="detail_audio_wrap"> <div class="audio_single flex_row align_center layout"> <div class="audio_style"> <audio src="{$v}" class="audio"></audio> @@ -173,12 +173,13 @@ <script> $(function(){ // 音频 - var audio1 = document.getElementById("audio1"); + var audio = $(".audio"); // 音频时长 - let audioTime = parseInt(audio1.duration); - $(".audio_time").text(changeTime(audioTime)); + $(audio).each(function (key, vo) { + audio.eq(vo).parents('.detail_audio_wrap').find('.audio_time').text(changeTime(audio.eq(vo).duration)); + }); $(".audio_style").click(function() { - audio1.play(); + audio.play(); var audioTimer = setInterval(function() { audioTime--; if (audioTime % 2 == 0) { @@ -189,17 +190,17 @@ $(".b5").addClass("b_active"); } if (audioTime <= 0) { - audioTime = parseInt(audio1.duration); + audioTime = parseInt(audio.duration); $(".b3").siblings().removeClass("b_active") clearInterval(audioTimer) } }, 1000); }); - audio1.addEventListener("ended", function() { - $(".quest_box").removeClass("quest_ans"); - // 重新答题 - $(".error_btn").hide(); - }); + // audio.addEventListener("ended", function() { + // $(".quest_box").removeClass("quest_ans"); + // // 重新答题 + // $(".error_btn").hide(); + // }); //全局变量 var goods_id = "{$data.id}";//用户id