|
@@ -11,10 +11,13 @@
|
|
@touchcancel="onTouchCancel"
|
|
@touchcancel="onTouchCancel"
|
|
>
|
|
>
|
|
<video
|
|
<video
|
|
|
|
+ ref="bgVideo"
|
|
src="@/assets/videos/bg-history.mp4"
|
|
src="@/assets/videos/bg-history.mp4"
|
|
class="bg"
|
|
class="bg"
|
|
autoplay
|
|
autoplay
|
|
loop
|
|
loop
|
|
|
|
+ webkit-playsinline="true"
|
|
|
|
+ playsinline="true"
|
|
/>
|
|
/>
|
|
<div
|
|
<div
|
|
class="gear-wrap"
|
|
class="gear-wrap"
|
|
@@ -120,6 +123,14 @@ export default {
|
|
|
|
|
|
const spaceEachPerson = 220
|
|
const spaceEachPerson = 220
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 针对微信中背景视频无法自动播放的问题
|
|
|
|
+ */
|
|
|
|
+ const bgVideo = ref(null)
|
|
|
|
+ onMounted(() => {
|
|
|
|
+ bgVideo.value.play()
|
|
|
|
+ })
|
|
|
|
+
|
|
// mask相关
|
|
// mask相关
|
|
const isShowLoadingMask = ref(true)
|
|
const isShowLoadingMask = ref(true)
|
|
onBeforeMount(() => {
|
|
onBeforeMount(() => {
|
|
@@ -499,6 +510,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
|
+ bgVideo,
|
|
computeTimeAxisScaleOpacity,
|
|
computeTimeAxisScaleOpacity,
|
|
currentTimeIdx,
|
|
currentTimeIdx,
|
|
gearFrameIdx,
|
|
gearFrameIdx,
|