From f77e02b69e4512f00251929b14888f3e6bbac37f Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期一, 09 九月 2024 10:41:19 +0800 Subject: [PATCH] 艺术戏剧(bug解决) --- src/books/artAndDance/view/components/chapter002.vue | 76 +++++++++++++++++++++++++++---------- 1 files changed, 55 insertions(+), 21 deletions(-) diff --git a/src/books/artAndDance/view/components/chapter002.vue b/src/books/artAndDance/view/components/chapter002.vue index 6efca5f..8357ff8 100644 --- a/src/books/artAndDance/view/components/chapter002.vue +++ b/src/books/artAndDance/view/components/chapter002.vue @@ -1,8 +1,9 @@ <template> <div class="chapter" num="3"> - <div class="page-box" page="8" style="min-height: auto;"> + <div class="page-box" page="8"> <div v-if="showPageList.indexOf(8) > -1"> <img class="img-0" alt="" src="../../assets/images/dy2.jpg" /> + <img src="../../assets/images/03-2.gif" alt="" style="width: 55%;" class="cover-gif"> </div> </div> <div class="page-box" page="9"> @@ -16,14 +17,17 @@ <p class="center"> <img class="img-b" alt="" src="../../assets/images/04-2.gif" /> </p> - <ul class="fl al-cn ju-bt img-state " style="margin-top: 100px;"> + <ul class="fl al-cn ju-bt img-state " style="min-height: 370px" > <li style="width: 45%;"> - <img src="../../assets/images/05.gif" alt="" class="w100" :style="{opacity:(10 - num) / 10}"> + <img @click="clickImg" title="鐐瑰嚮姝ゅ鏌ョ湅鍥剧墖" src="../../assets/images/05.gif" alt="" class="w100" style="cursor:pointer" > </li> - <li style="width: 35%;"> - <img src="../../assets/images/girl.png" alt="" class="w100" :style="{opacity: num / 10}"> + <li style="width: 35%;" v-if="appearsImg"> + <img src="../../assets/images/girl.png" alt="" class="w100" > </li> </ul> + <!-- <p class="center"> + <img :src="num >= 0 ? shape : girl" alt="" :style="{opacity:num >= 0 ? num / 10 : (-num) / 10 , width:num >= 0 ? '80%' : '34%'}"> + </p> --> <p class="img">鈥滅緤瑙掑紡鈥濊垶濮�</p> </div> <ul class="pb-box"> @@ -31,7 +35,7 @@ <img src="../../assets/images/icon/tree.jpg" /> <span class="dl-ib"> 6 </span> </li> - <li> + <li class="fl"> <img class="img-0" alt="" src="../../assets/images/ym.jpg" /> </li> </ul> @@ -61,10 +65,22 @@ <h2 class="lefth2" id="b006"> <img class="img-gn" alt="" src="../../assets/images/xsyty.jpg" /> </h2> + <ul class="fl fl-cl al-cn audio-box"> + <li class="fl al-cn"> + <span class="wh-nr auido-text mr-8">鐢风闊�</span> + <audio :src="auidoPathOne" controls controlslist="noplaybackrate nodownload" class="audio" ></audio> + </li> + <li class="fl al-cn mt-20"> + <span class="wh-nr auido-text mr-8"> + 濂崇闊� + </span> + <audio :src="auidoPathTwo" controls controlslist="noplaybackrate nodownload" class="audio" ></audio> + </li> + </ul> <h3 id="c006">浜$緤琛ョ墷</h3> - <p class="block2">甯竴鍏�</p> - <p class="block2">缇婂晩缇婂晩鍜╁挬鍙紝鏈夊彧灏忕緤涓嶈浜嗐��</p> - <p class="block2">澧欏晩澧欏晩鍨掗珮楂橈紝澧欎笂鏈変釜澶х獰绐裤��</p> + <p class="block2 fm-son">甯竴鍏�</p> + <p class="block2 m16-0">缇婂晩缇婂晩鍜╁挬鍙紝鏈夊彧灏忕緤涓嶈浜嗐��</p> + <p class="block2 m16-0">澧欏晩澧欏晩鍨掗珮楂橈紝澧欎笂鏈変釜澶х獰绐裤��</p> </div> <ul> <li class="fl ju-end mr-40"> @@ -73,7 +89,7 @@ <img src="../../assets/images/icon/tree.jpg" /> </div> </li> - <li> + <li class="fl"> <img class="img-0" alt="" src="../../assets/images/ym.jpg" /> </li> </ul> @@ -87,8 +103,8 @@ class="w100 mb-40" /> <div class="padding-96"> - <p class="block2">缇婂晩缇婂晩鍜╁挬鍙紝缇婂効鍏ㄩ兘鍚撳潖浜嗐��</p> - <p class="block2">绐熺绐熺榛戞礊娲烇紝蹇揩琛ヤ笂鎵嶅畨蹇冦��</p> + <p class="block2 m16-0">缇婂晩缇婂晩鍜╁挬鍙紝缇婂効鍏ㄩ兘鍚撳潖浜嗐��</p> + <p class="block2 m16-0">绐熺绐熺榛戞礊娲烇紝蹇揩琛ヤ笂鎵嶅畨蹇冦��</p> <p class="center"> <!-- <img class="img-g" alt="" src="../../assets/images/i0012-1.jpg" /> --> </p> @@ -101,7 +117,9 @@ x5-video-player-fullscreen="true" x5-playsinline="" controls - class="w100" + controlslist="nodownload" + class="w100 video" + style="margin-top: 40px;" ></video> <h2 class="lefth2 mt-40" id="b007"> <img class="img-gn" alt="" src="../../assets/images/czysj.jpg" /> @@ -133,12 +151,12 @@ </div> <!-- <p class="center"><img class="img-0" alt="" src="../../assets/images/ym.jpg" /></p> --> </div> - <ul class="pb-box"> + <ul style="margin-top: 20px"> <li class="ml-40"> <img src="../../assets/images/icon/tree.jpg" /> <span class="dl-ib"> 8 </span> </li> - <li> + <li class="fl"> <img class="img-0" alt="" src="../../assets/images/ym.jpg" /> </li> </ul> @@ -148,7 +166,7 @@ </template> <script> -import getResourcePath from "@/assets/methods/resources"; +import {getResourcePath} from "@/assets/methods/resources"; export default { name: "chapterTwo", props: { @@ -173,12 +191,19 @@ videoPathOne: "", num:0, addTimer:null, - cutTimer:null + cutTimer:null, + auidoPathOne:"", + auidoPathTwo:"", + appearsImg: false, + shape:require("../../assets/images/05.gif"), + girl:require("../../assets/images/girl.png") }; }, methods: { - getVidoePath() { - this.videoPathOne = getResourcePath("f6aaaed901868114d948031615250bed"); + async getVidoePath() { + this.videoPathOne = await getResourcePath("f6aaaed901868114d948031615250bed"); + this.auidoPathOne = await getResourcePath("39fd9a021904ed3de1b8b9e036777ea3"); + this.auidoPathTwo = await getResourcePath("a143777eff52ee24e53521d16afc85d9"); }, addNum() { this.addTimer = setInterval(() => { @@ -192,17 +217,26 @@ }, cutNum() { this.cutTimer = setInterval(() => { - if(this.num > 0) { + if(this.num > -10) { this.num -- } else { clearInterval(this.cutTimer) this.addNum() } },200) - } + }, + clickImg(){ + this.appearsImg = !this.appearsImg + }, }, }; </script> <style lang="less" scoped> +.cover-gif { + position: absolute; + top: 33%; + left: 23%; + +} </style> -- Gitblit v1.9.1