Authored by yyq

fix video

... ... @@ -148,15 +148,18 @@ function videoInit() {
}
$('.video-bg').on('click', function() {
let v = $(this).nextAll('video')[0];
v.play();
if (isAndroid && !isWechat) {
$('.video').addClass('android');
$('.video-android-bg').removeClass('hide');
$('.video-android-close').removeClass('hide');
if (isAndroid) {
$(this).nextAll('.video').addClass('android');
$(this).nextAll('.video-android-bg').removeClass('hide');
$(this).nextAll('.video-android-close').removeClass('hide');
$('body').css('overflow', 'hidden').on('touchmove', cancelMove);
}
let v = $(this).nextAll('video')[0];
setTimeout(function() {
v.play();
}, 0);
});
$('.video-android-close').on('click', function() {
... ...
... ... @@ -21,7 +21,7 @@ class LinkHandle {
let $currentTarget = $(event.currentTarget);
let href = $currentTarget.attr('href');
if (!href) {
if (!href || href.indexOf('javascript') === 0) {
return;
}
... ...