|
|
@ -45,6 +45,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="home">
|
|
|
|
<div class="home">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--落地页视频置顶-->
|
|
|
|
|
|
|
|
<?php if ($game['ios_video_top'] == 1):?>
|
|
|
|
<div class="home-fiexd" <?php if (empty($game['flooring_page_video'])):?> style="height: 0" <?php endif;?> >
|
|
|
|
<div class="home-fiexd" <?php if (empty($game['flooring_page_video'])):?> style="height: 0" <?php endif;?> >
|
|
|
|
<div class="home-fiexdBox">
|
|
|
|
<div class="home-fiexdBox">
|
|
|
|
|
|
|
|
|
|
|
@ -57,17 +59,29 @@
|
|
|
|
<div class="fiexd-heard">
|
|
|
|
<div class="fiexd-heard">
|
|
|
|
<div class="fiexd-heardBox" style="display: none;">
|
|
|
|
<div class="fiexd-heardBox" style="display: none;">
|
|
|
|
<!-- <div>完成</div>-->
|
|
|
|
<!-- <div>完成</div>-->
|
|
|
|
<img src="{$game['icon']}" alt="" style="ma">
|
|
|
|
<img src="{$game['icon']}" alt="" style="">
|
|
|
|
<div class="fiexd-pay">
|
|
|
|
<div class="download">下载</div>
|
|
|
|
<!-- <span>App购买</span>-->
|
|
|
|
|
|
|
|
<div class="download">下载</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--落地页视频不置顶-->
|
|
|
|
|
|
|
|
<?php else:?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="home-fiexd-two" style="background: #fff;width: 100%;height: 4.22rem;">
|
|
|
|
|
|
|
|
<div class="home-video">
|
|
|
|
|
|
|
|
<video id="shakeVideo" src="{$game['flooring_page_video']}" autoplay controls muted webkit-playsinline="true" playsinline="true"></video>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fiexd-heard" style="width: 100%;position: fixed;top: 0; left: 0;background: rgba(255, 255, 255,0);display: none;">
|
|
|
|
|
|
|
|
<div class="fiexd-heardBox">
|
|
|
|
|
|
|
|
<img src="{$game['icon']}" alt="" style="">
|
|
|
|
|
|
|
|
<div class="download">下载</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="home-box">
|
|
|
|
<div class="home-box">
|
|
|
|
<div class="heard">
|
|
|
|
<div class="heard">
|
|
|
@ -335,17 +349,30 @@
|
|
|
|
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
|
|
|
|
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
$(window).scroll(function () {
|
|
|
|
$(window).scroll(function () {
|
|
|
|
var v = ($(this).scrollTop()) / 100;
|
|
|
|
<?php if ($game['ios_video_top'] == 1):?>
|
|
|
|
//为什么除以100是因为我希望当$(this).scrollTop()为100的过程中,
|
|
|
|
var v=($(this).scrollTop())/100;
|
|
|
|
//透明度由0变为1,$(this).scrollTop()/100得到的值正好与opacity的范围[0,1]相符合。
|
|
|
|
$(".fiexd-heardBox").show();
|
|
|
|
$(".fiexd-heardBox").show();
|
|
|
|
$('.home-fiexd .fiexd-heard').css('backgroundColor','rgba(255, 255, 255,'+v+')');
|
|
|
|
$('.fiexd-heard').css('backgroundColor', 'rgba(255, 255, 255,' + v + ')');
|
|
|
|
|
|
|
|
|
|
|
|
var t = $(window).scrollTop();
|
|
|
|
var t = $(window).scrollTop();
|
|
|
|
if(t<10){
|
|
|
|
if (t < 10) {
|
|
|
|
$(".home-fiexd .fiexd-heardBox").hide();
|
|
|
|
console.log(111)
|
|
|
|
}
|
|
|
|
$(".fiexd-heardBox").hide();
|
|
|
|
<?php else:?>
|
|
|
|
}
|
|
|
|
var t = $(window).scrollTop();
|
|
|
|
|
|
|
|
var h=$('.home-video').height();
|
|
|
|
|
|
|
|
if(t>h){
|
|
|
|
|
|
|
|
var v=($(this).scrollTop())/100;
|
|
|
|
|
|
|
|
$(".home-fiexd-two .fiexd-heard").show();
|
|
|
|
|
|
|
|
$('.home-fiexd-two .fiexd-heard').css('backgroundColor','rgba(255, 255, 255,'+v+')');
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
if(t<h){
|
|
|
|
|
|
|
|
$(".home-fiexd-two .fiexd-heard").hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
@ -355,6 +382,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<?php if(!empty($game['flooring_page_video'])):?>
|
|
|
|
<?php if(!empty($game['flooring_page_video'])):?>
|
|
|
|
var video = document.getElementById("shakeVideo");
|
|
|
|
var video = document.getElementById("shakeVideo");
|
|
|
|
|
|
|
|
console.log(video)
|
|
|
|
video.play();
|
|
|
|
video.play();
|
|
|
|
document.addEventListener('WeixinJSBridgeReady',function(){
|
|
|
|
document.addEventListener('WeixinJSBridgeReady',function(){
|
|
|
|
video.play();
|
|
|
|
video.play();
|
|
|
|