|
@@ -1,10 +1,18 @@
|
|
|
<template>
|
|
|
<div class="audiocon">
|
|
|
- <audio id="audioTag" class="noshow" autoplay :src="'http://gdbwg.4dage.com'+adata.filePath"></audio>
|
|
|
+ <audio
|
|
|
+ id="audioTag"
|
|
|
+ class="noshow"
|
|
|
+ autoplay
|
|
|
+ :src="'http://gdbwg.4dage.com' + adata.filePath"
|
|
|
+ ></audio>
|
|
|
<div class="audiotop">
|
|
|
<div class="img-con">
|
|
|
- <span>{{ adata.name }}</span>
|
|
|
- <p>{{ adata.description }}</p>
|
|
|
+ <div class="videoTxtInfo">
|
|
|
+ <span>{{ adata.name }}</span>
|
|
|
+ <p>{{ adata.description }}</p>
|
|
|
+ </div>
|
|
|
+
|
|
|
<!-- <img :src="require('@/assets/images/proj2022/icon/voice.png')" alt="" /> -->
|
|
|
</div>
|
|
|
</div>
|
|
@@ -15,18 +23,25 @@
|
|
|
<div :style="{ width: currentPosi + '%' }" class="dot"></div>
|
|
|
</div>
|
|
|
<div class="time">
|
|
|
- <span>{{ time }}</span><span> / {{ allTime }}</span>
|
|
|
+ <span>{{ time }}</span
|
|
|
+ ><span> / {{ allTime }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="bofang">
|
|
|
<!-- <img :src="require(`@/assets/images/icon/voice_back.png`)" alt=""> -->
|
|
|
- <img class="bf" @click="bofang" :src="require(`@/assets/images/icon/${isPlay ? 'voice_stop' : 'voice_play'}.png`)"
|
|
|
- alt="" />
|
|
|
+ <img
|
|
|
+ class="bf"
|
|
|
+ @click="bofang"
|
|
|
+ :src="
|
|
|
+ require(`@/assets/images/icon/${
|
|
|
+ isPlay ? 'voice_stop' : 'voice_play'
|
|
|
+ }.png`)
|
|
|
+ "
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
<!-- <img :src="require(`@/assets/images/icon/voice_next.png`)" alt=""> -->
|
|
|
-
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -72,7 +87,8 @@ export default {
|
|
|
return minute + isM0 + sec;
|
|
|
},
|
|
|
updateProgress() {
|
|
|
- this.currentPosi = (this.i_audio.currentTime / this.i_audio.duration) * 100;
|
|
|
+ this.currentPosi =
|
|
|
+ (this.i_audio.currentTime / this.i_audio.duration) * 100;
|
|
|
this.time = this.transTime(this.i_audio.currentTime);
|
|
|
},
|
|
|
|
|
@@ -139,18 +155,21 @@ export default {
|
|
|
.img-con {
|
|
|
align-items: center;
|
|
|
margin: 20px 0;
|
|
|
- >span {
|
|
|
- font-size: 22px;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
+ .videoTxtInfo {
|
|
|
+ > span {
|
|
|
+ font-size: 22px;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
|
|
|
- >p {
|
|
|
- margin-top: 12px;
|
|
|
- color: #D9D9D9;
|
|
|
+ > p {
|
|
|
+ word-break: break-all;
|
|
|
+ margin-top: 12px;
|
|
|
+ color: #d9d9d9;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- >img {
|
|
|
+ > img {
|
|
|
width: 18px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
@@ -161,7 +180,6 @@ export default {
|
|
|
height: 33%;
|
|
|
margin: 0 auto;
|
|
|
padding-left: 13px;
|
|
|
-
|
|
|
|
|
|
.barcon {
|
|
|
display: flex;
|
|
@@ -184,7 +202,7 @@ export default {
|
|
|
height: 100%;
|
|
|
overflow: hidden;
|
|
|
position: absolute;
|
|
|
- background: #EBEBEB;
|
|
|
+ background: #ebebeb;
|
|
|
top: 50%;
|
|
|
transform: translateY(-50%);
|
|
|
border-radius: 12px;
|
|
@@ -195,7 +213,7 @@ export default {
|
|
|
display: inline-block;
|
|
|
position: absolute;
|
|
|
z-index: 999;
|
|
|
- background-color: #B61E22;
|
|
|
+ background-color: #b61e22;
|
|
|
transform: translateY(-50%);
|
|
|
top: 50%;
|
|
|
left: 0;
|
|
@@ -203,28 +221,27 @@ export default {
|
|
|
height: 100%;
|
|
|
cursor: pointer;
|
|
|
pointer-events: none;
|
|
|
- &::after{
|
|
|
+ &::after {
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
transform: translateY(-50%);
|
|
|
right: -20px;
|
|
|
border-radius: 50%;
|
|
|
- content: '';
|
|
|
+ content: "";
|
|
|
width: 40px;
|
|
|
height: 40px;
|
|
|
- background: #EECC63;
|
|
|
- border: 5px solid #B61E22;
|
|
|
+ background: #eecc63;
|
|
|
+ border: 5px solid #b61e22;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
.time {
|
|
|
width: 100px;
|
|
|
text-align: center;
|
|
|
margin: 0 auto;
|
|
|
|
|
|
- >span {
|
|
|
+ > span {
|
|
|
font-size: 12px;
|
|
|
|
|
|
&:first-of-type {
|
|
@@ -238,20 +255,20 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .bofang{
|
|
|
+ .bofang {
|
|
|
justify-content: center;
|
|
|
width: 100%;
|
|
|
display: flex;
|
|
|
text-align: center;
|
|
|
align-items: center;
|
|
|
margin-top: 20px;
|
|
|
- >img{
|
|
|
+ > img {
|
|
|
width: 60px;
|
|
|
height: 60px;
|
|
|
margin: 0 20px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
- .bf{
|
|
|
+ .bf {
|
|
|
width: 80px;
|
|
|
height: 80px;
|
|
|
}
|
|
@@ -268,109 +285,107 @@ export default {
|
|
|
}
|
|
|
|
|
|
@media screen and (max-width: 1000px) {
|
|
|
- .audiocon{
|
|
|
+ .audiocon {
|
|
|
width: 100%;
|
|
|
.audiobtm {
|
|
|
- width: 100%;
|
|
|
- height: 33%;
|
|
|
- margin: 0 auto;
|
|
|
- padding-left: 13px;
|
|
|
-
|
|
|
-
|
|
|
- .barcon {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
width: 100%;
|
|
|
- margin: 20px 0;
|
|
|
- .bar {
|
|
|
- position: relative;
|
|
|
- background: none;
|
|
|
- display: flex;
|
|
|
- overflow: visible;
|
|
|
- height: 14px;
|
|
|
- border-radius: 4px;
|
|
|
- margin: 0 10px 0 16px;
|
|
|
- flex: auto;
|
|
|
-
|
|
|
- .activeLine {
|
|
|
- cursor: pointer;
|
|
|
- height: 100%;
|
|
|
- overflow: hidden;
|
|
|
- position: absolute;
|
|
|
- background: #EBEBEB;
|
|
|
- top: 50%;
|
|
|
- transform: translateY(-50%);
|
|
|
- border-radius: 12px;
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
+ height: 33%;
|
|
|
+ margin: 0 auto;
|
|
|
+ padding-left: 13px;
|
|
|
|
|
|
- .dot {
|
|
|
- display: inline-block;
|
|
|
- position: absolute;
|
|
|
- z-index: 999;
|
|
|
- background-color: #B61E22;
|
|
|
- transform: translateY(-50%);
|
|
|
- top: 50%;
|
|
|
- left: 0;
|
|
|
- border-radius: 12px;
|
|
|
- height: 100%;
|
|
|
- cursor: pointer;
|
|
|
- pointer-events: none;
|
|
|
- &::after{
|
|
|
+ .barcon {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ width: 100%;
|
|
|
+ margin: 20px 0;
|
|
|
+ .bar {
|
|
|
+ position: relative;
|
|
|
+ background: none;
|
|
|
+ display: flex;
|
|
|
+ overflow: visible;
|
|
|
+ height: 14px;
|
|
|
+ border-radius: 4px;
|
|
|
+ margin: 0 10px 0 16px;
|
|
|
+ flex: auto;
|
|
|
+
|
|
|
+ .activeLine {
|
|
|
+ cursor: pointer;
|
|
|
+ height: 100%;
|
|
|
+ overflow: hidden;
|
|
|
position: absolute;
|
|
|
+ background: #ebebeb;
|
|
|
top: 50%;
|
|
|
transform: translateY(-50%);
|
|
|
- right: -20px;
|
|
|
- border-radius: 50%;
|
|
|
- content: '';
|
|
|
- width: 40px;
|
|
|
- height: 40px;
|
|
|
- background: #EECC63;
|
|
|
- border: 5px solid #B61E22;
|
|
|
+ border-radius: 12px;
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
+ .dot {
|
|
|
+ display: inline-block;
|
|
|
+ position: absolute;
|
|
|
+ z-index: 999;
|
|
|
+ background-color: #b61e22;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ top: 50%;
|
|
|
+ left: 0;
|
|
|
+ border-radius: 12px;
|
|
|
+ height: 100%;
|
|
|
+ cursor: pointer;
|
|
|
+ pointer-events: none;
|
|
|
+ &::after {
|
|
|
+ position: absolute;
|
|
|
+ top: 50%;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ right: -20px;
|
|
|
+ border-radius: 50%;
|
|
|
+ content: "";
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ background: #eecc63;
|
|
|
+ border: 5px solid #b61e22;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- .time {
|
|
|
- width: 100px;
|
|
|
- text-align: center;
|
|
|
- margin: 0 auto;
|
|
|
+ .time {
|
|
|
+ width: 100px;
|
|
|
+ text-align: center;
|
|
|
+ margin: 0 auto;
|
|
|
|
|
|
- >span {
|
|
|
- font-size: 12px;
|
|
|
+ > span {
|
|
|
+ font-size: 12px;
|
|
|
|
|
|
- &:first-of-type {
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
+ &:first-of-type {
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
|
|
|
- &:last-of-type {
|
|
|
- color: #fff;
|
|
|
+ &:last-of-type {
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .bofang{
|
|
|
- justify-content: center;
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- text-align: center;
|
|
|
- align-items: center;
|
|
|
- margin-top: 20px;
|
|
|
- >img{
|
|
|
- width: 40px;
|
|
|
- height: 40px;
|
|
|
- margin: 0 20px;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
- .bf{
|
|
|
- width: 60px;
|
|
|
- height: 60px;
|
|
|
+ .bofang {
|
|
|
+ justify-content: center;
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ text-align: center;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 20px;
|
|
|
+ > img {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ margin: 0 20px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .bf {
|
|
|
+ width: 60px;
|
|
|
+ height: 60px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
}
|
|
|
</style>
|