|
@@ -59,7 +59,7 @@
|
|
|
|
|
|
<button
|
|
|
class="bofang-button"
|
|
|
- @click="onVideoCanPlayThrough"
|
|
|
+ @click="playVideo"
|
|
|
v-if="isNeedToBofang"
|
|
|
>
|
|
|
<img :src="bofangImg" alt="" draggable="false">
|
|
@@ -78,7 +78,7 @@
|
|
|
@ended="onFadeInVideoEnd"
|
|
|
@mousedown.passive.stop
|
|
|
@touchstart.passive.stop
|
|
|
- @canplaythrough="onVideoCanPlayThrough"
|
|
|
+ @load="playVideo"
|
|
|
@wheel.passive.stop
|
|
|
/>
|
|
|
</div>
|
|
@@ -180,11 +180,13 @@ const videoPostImg = utils.getImageUrl(`videobg.jpg`)
|
|
|
const isLongImageVideo = ref(true)
|
|
|
const isNeedToBofang = ref(true)
|
|
|
const isShowSkip = ref(false)
|
|
|
-const onVideoCanPlayThrough = () => {
|
|
|
- if (video$.value) {
|
|
|
- video$.value.play()
|
|
|
- isNeedToBofang.value = false
|
|
|
- }
|
|
|
+const playVideo = () => {
|
|
|
+ setTimeout(() => {
|
|
|
+ if (video$.value) {
|
|
|
+ video$.value.play()
|
|
|
+ isNeedToBofang.value = false
|
|
|
+ }
|
|
|
+ }, 500);
|
|
|
}
|
|
|
const onSkipClick = () => {
|
|
|
isShowGuide.value = true
|
|
@@ -431,7 +433,7 @@ onMounted(() => {
|
|
|
|
|
|
>img {
|
|
|
margin: 1.63rem 0 1rem;
|
|
|
- width: 80%;
|
|
|
+ width: 7.25rem;
|
|
|
}
|
|
|
|
|
|
>div {
|