修复:视频在ios未自动播放的问题

This commit is contained in:
wuhui_zzw 2023-12-02 15:15:20 +08:00
parent ca96b7ea7a
commit 3bf999b707
1 changed files with 10 additions and 7 deletions

View File

@ -51,7 +51,7 @@
<div class="g-price">价值 ¥ {{ item.goods_price }}</div>
<div class="g-footer">
<div class="g-f-left">
<div class="sale">7613人已兑换</div>
<div class="sale">{{ item.exchange_num }}人已兑换</div>
<div class="need-legumes">
<span class="need-num">¥{{ item.legumes_exchange_price }}</span>
</div>
@ -385,10 +385,11 @@ export default {
if(_this.task_type == 'video'){
//
_this.is_video_show = true;
if(_this.videoTime) {
_this.videoTime.currentTime = 0;
_this.videoTime.play();
}
setTimeout(function() {
let videoTime = document.getElementById('taskMedia');
videoTime.currentTime = 0;
videoTime.play();
},300); //
} else {
//
_this.$dialog.alert({message: "请点击右上角微信分享"});
@ -519,7 +520,8 @@ export default {
.then((response) => {
if (response.result === 1) {
_this.$dialog.alert({ message:'提交成功,审核开户中...' }).then(()=>{
_this.thirdPartyBankCardInfo(false);
_this.getAccountInfo();
_this.thirdPartyBankCardInfo();
});
}else{
_this.$dialog.alert({ message: response.msg }).then(()=>{
@ -539,7 +541,7 @@ export default {
if (response.result === 1) {
_this.is_show_signing = true;
// _this.signing_url = response.data.sign_url;
window.location.href = response.sign_url;
if(response.sign_url) window.location.href = response.sign_url;
}else{
_this.$dialog.alert({ message: response.msg }).then(()=>{
_this.thirdPartyBankCardInfo();
@ -959,6 +961,7 @@ export default {
}
.task-video-content {
position: relative;
#taskMedia {
width: 100vw;
height: 100vh;