|
@@ -10,10 +10,13 @@
|
|
|
</Teleport>
|
|
|
|
|
|
<video
|
|
|
+ ref="bgVideo"
|
|
|
src="@/assets/videos/bg-history.mp4"
|
|
|
class="bg"
|
|
|
autoplay
|
|
|
loop
|
|
|
+ webkit-playsinline="true"
|
|
|
+ playsinline="true"
|
|
|
/>
|
|
|
<button
|
|
|
class="back"
|
|
@@ -86,6 +89,8 @@
|
|
|
class="bg"
|
|
|
autoplay
|
|
|
loop
|
|
|
+ webkit-playsinline="true"
|
|
|
+ playsinline="true"
|
|
|
/>
|
|
|
<iframe
|
|
|
:src="`${prefix}/web-model/index.html#/relic-detail?model-path=${encodeURIComponent(item.filePath)}`"
|
|
@@ -119,6 +124,8 @@
|
|
|
class="bg"
|
|
|
autoplay
|
|
|
loop
|
|
|
+ webkit-playsinline="true"
|
|
|
+ playsinline="true"
|
|
|
/>
|
|
|
<video
|
|
|
:src="item.filePath"
|
|
@@ -151,6 +158,8 @@
|
|
|
class="bg"
|
|
|
autoplay
|
|
|
loop
|
|
|
+ webkit-playsinline="true"
|
|
|
+ playsinline="true"
|
|
|
/>
|
|
|
<img
|
|
|
draggable="false"
|
|
@@ -267,6 +276,14 @@ export default {
|
|
|
const route = useRoute()
|
|
|
|
|
|
/**
|
|
|
+ * 针对微信中背景视频无法自动播放的问题
|
|
|
+ */
|
|
|
+ const bgVideo = ref(null)
|
|
|
+ onMounted(() => {
|
|
|
+ bgVideo.value.play()
|
|
|
+ })
|
|
|
+
|
|
|
+ /**
|
|
|
* tab bar
|
|
|
*/
|
|
|
const activeTabIndex = ref(0)
|
|
@@ -402,6 +419,7 @@ export default {
|
|
|
return {
|
|
|
activeSwiperItemIndex,
|
|
|
activeTabIndex,
|
|
|
+ bgVideo,
|
|
|
bgAudio,
|
|
|
cancelFullScreen,
|
|
|
canRecord,
|