Browse Source

视频不自动播放

master
jiazhipeng 6 months ago
parent
commit
43c7573c81
  1. 2
      app.js
  2. 2
      pages/index/index.js
  3. 2
      pages/index/index.wxss
  4. 2
      pages/info/foodProductInfo/index.wxml
  5. 2
      pages/info/postProductInfo/index.wxml
  6. 2
      pages/info/sceneProductInfo/index.wxml
  7. 2
      subPackages/foodNew/index.wxml
  8. 2
      subPackages/goods/memberCard/index.wxml

2
app.js

@ -38,7 +38,7 @@ App({
// 获取前端配置文件
commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => {
let data = JSON.parse(res.data);
data.isTest = data.isTest144? true : false;
data.isTest = data.isTest145? true : false;
data.indexSeason = null
this.globalData.configJson = data
}).then(() => {

2
pages/index/index.js

@ -485,7 +485,7 @@ Page({
if (i>str.length) {
clearInterval(timer)
}
},100)
},125)
},
showImg (img) {

2
pages/index/index.wxss

@ -1042,7 +1042,7 @@
}
.ai-box{
margin: 30rpx 0 30rpx;
margin: 15rpx 0 40rpx;
width: 100%;
position: relative;
}

2
pages/info/foodProductInfo/index.wxml

@ -10,7 +10,7 @@
<block wx:if="{{info.videourl}}" wx:key="*this">
<swiper-item>
<scroll-view>
<video bindplay="playVideo" src="{{info.videourl}}" autoplay="{{true}}" muted="{{true}}"
<video bindplay="playVideo" src="{{info.videourl}}" autoplay="{{false}}" muted="{{true}}"
show-mute-btn="{{true}}" show-background-playback-button="{{false}}"
show-progress="{{false}}" enable-progress-gesture="{{false}}"></video>
<!-- <image lazy-load src="{{info.headimg}}" mode="aspectFill"></image> -->

2
pages/info/postProductInfo/index.wxml

@ -10,7 +10,7 @@
<block wx:if="{{info.videourl}}" wx:key="*this">
<swiper-item>
<scroll-view>
<video bindplay="playVideo" src="{{info.videourl}}" autoplay="{{true}}" muted="{{true}}"
<video bindplay="playVideo" src="{{info.videourl}}" autoplay="{{false}}" muted="{{true}}"
show-mute-btn="{{true}}" show-background-playback-button="{{false}}"
show-progress="{{false}}" enable-progress-gesture="{{false}}"></video>
</scroll-view>

2
pages/info/sceneProductInfo/index.wxml

@ -6,7 +6,7 @@
<swiper class="swiper" indicator-dots="{{true}}" wx:if="{{info}}" autoplay="{{false}}" interval="{{2000}}" duration="{{300}}">
<block wx:if="{{info.videourl}}" wx:key="*this">
<swiper-item>
<video bindplay="playVideo" src="{{info.videourl}}" autoplay="{{true}}" muted="{{true}}"
<video bindplay="playVideo" src="{{info.videourl}}" autoplay="{{false}}" muted="{{true}}"
show-mute-btn="{{true}}" show-background-playback-button="{{false}}"
></video>
</swiper-item>

2
subPackages/foodNew/index.wxml

@ -40,7 +40,7 @@
<block wx:if="{{info.videourl}}" wx:key="*this">
<swiper-item>
<scroll-view>
<video bindplay="playVideo" src="{{info.videourl}}" autoplay="{{true}}" muted="{{true}}"
<video bindplay="playVideo" src="{{info.videourl}}" autoplay="{{false}}" muted="{{true}}"
show-mute-btn="{{true}}" show-background-playback-button="{{false}}"
show-progress="{{false}}" enable-progress-gesture="{{false}}"></video>
<!-- <image lazy-load src="{{info.headimg}}" mode="aspectFill"></image> -->

2
subPackages/goods/memberCard/index.wxml

@ -10,7 +10,7 @@
<block wx:if="{{info.videourl}}" wx:key="*this">
<swiper-item>
<scroll-view>
<video bindplay="playVideo" src="{{info.videourl}}" autoplay="{{true}}" muted="{{true}}"
<video bindplay="playVideo" src="{{info.videourl}}" autoplay="{{false}}" muted="{{true}}"
show-mute-btn="{{true}}" show-background-playback-button="{{false}}"
show-progress="{{false}}" enable-progress-gesture="{{false}}"></video>
</scroll-view>

Loading…
Cancel
Save