|
|
|
@ -42,11 +42,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="home">
|
|
|
|
|
|
|
|
|
|
<div class="home-fiexd" <?php if (empty($game['flooring_page_video'])):?> style="height: 0" <?php endif;?> >
|
|
|
|
|
<div class="home-fiexdBox">
|
|
|
|
|
|
|
|
|
|
<?php if (!empty($game['flooring_page_video'])):?>
|
|
|
|
|
<div class="home-video">
|
|
|
|
|
<video id="shakeVideo" src="{$game['flooring_page_video']}" autoplay controls muted webkit-playsinline="true" playsinline="true"></video>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif;?>
|
|
|
|
|
|
|
|
|
|
<div class="fiexd-heard">
|
|
|
|
|
<div class="fiexd-heardBox" style="display: none;">
|
|
|
|
|
<!-- <div>完成</div>-->
|
|
|
|
|
<img src="" alt="">
|
|
|
|
|
<div class="fiexd-pay">
|
|
|
|
|
<span>App购买</span>
|
|
|
|
|
<div class="download">下载</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="home-box">
|
|
|
|
|
<div class="heard">
|
|
|
|
|
<div style="height: 2.5rem;width: 2.5rem">
|
|
|
|
@ -304,7 +324,26 @@
|
|
|
|
|
</html>
|
|
|
|
|
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
|
|
|
|
|
<script>
|
|
|
|
|
<?php if (!empty($game['flooring_page_video'])):?>
|
|
|
|
|
$(window).scroll(function () {
|
|
|
|
|
var v = ($(this).scrollTop()) / 100;
|
|
|
|
|
//为什么除以100是因为我希望当$(this).scrollTop()为100的过程中,
|
|
|
|
|
//透明度由0变为1,$(this).scrollTop()/100得到的值正好与opacity的范围[0,1]相符合。
|
|
|
|
|
$(".fiexd-heardBox").show();
|
|
|
|
|
$('.fiexd-heard').css('backgroundColor', 'rgba(255, 255, 255,' + v + ')');
|
|
|
|
|
|
|
|
|
|
var t = $(window).scrollTop();
|
|
|
|
|
if (t < 10) {
|
|
|
|
|
console.log(111)
|
|
|
|
|
$(".fiexd-heardBox").hide();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php if(!empty($game['flooring_page_video'])):?>
|
|
|
|
|
var video = document.getElementById("shakeVideo");
|
|
|
|
|
video.play();
|
|
|
|
|
document.addEventListener('WeixinJSBridgeReady',function(){
|
|
|
|
@ -567,3 +606,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|