yujialong 9 months ago
parent 2887d41dec
commit ed5bca0c80
  1. 7
      src/pages/column/index.vue
  2. 2
      src/pages/deviceIntroLinear/index.vue

@ -351,6 +351,9 @@
<video v-if="Util.isVideo(item.fileList[0].fileName.substring(item.fileList[0].fileName.lastIndexOf('.') + 1))" <video v-if="Util.isVideo(item.fileList[0].fileName.substring(item.fileList[0].fileName.lastIndexOf('.') + 1))"
class="media-video" class="media-video"
controls controls
x5-playsinline
x5-video-player-type="h5"
:poster="isIphone ? 'http://10.10.11.7/images/about/12.png' : ''"
preload> preload>
<source :src="item.fileList[0].filePath" <source :src="item.fileList[0].filePath"
type="video/mp4"> type="video/mp4">
@ -493,6 +496,7 @@ export default {
Util, Util,
loaded: false, loaded: false,
fromColumn: this.$route.query.column, fromColumn: this.$route.query.column,
isIphone: false,
columnId: '', columnId: '',
info: {}, info: {},
columnBanner: '', columnBanner: '',
@ -547,6 +551,8 @@ export default {
} }
}, },
mounted () { mounted () {
const u = navigator.userAgent;
this.isIphone = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios
this.convokeTypes = [ this.convokeTypes = [
{ {
id: null, id: null,
@ -562,6 +568,7 @@ export default {
} }
]; ];
this.init(); this.init();
}, },
methods: { methods: {
init () { init () {

@ -241,7 +241,7 @@ $banner-height: 21.6rem;
img { img {
width: 100%; width: 100%;
height: 85%; object-fit: cover;
} }
} }

Loading…
Cancel
Save