|
@@ -68,12 +68,17 @@
|
|
|
|
|
|
var isapp = <?php echo session_helper::isapp() ? 'true' : 'false'; ?>;
|
|
|
if(!isapp) {
|
|
|
- document.getElementsByClassName('container')[0].setAttribute('style','padding-bottom:140px');
|
|
|
+ document.getElementsByClassName('bonus_content')[0].setAttribute('style','padding-bottom:120px');
|
|
|
}
|
|
|
- if(document.getElementsByClassName('open_bouns_link').length <= 0) {
|
|
|
+
|
|
|
+ if(document.getElementsByClassName('open_bouns_link').length <= 0 && isapp) {
|
|
|
document.getElementsByClassName('bonus_content')[0].setAttribute('style','background-color:#fff');
|
|
|
}
|
|
|
|
|
|
+ if(document.getElementsByClassName('open_bouns_link').length <= 0 && !isapp) {
|
|
|
+ document.getElementsByClassName('bonus_content')[0].setAttribute('style','background-color:#fff;padding-bottom:120px');
|
|
|
+ }
|
|
|
+
|
|
|
window.addEventListener('pageshow', function () {
|
|
|
if (window.sessionStorage.getItem('Already_received')) {
|
|
|
window.sessionStorage.removeItem('Already_received');
|
|
@@ -104,6 +109,11 @@
|
|
|
window.location.href=grab_url;
|
|
|
},300);
|
|
|
});
|
|
|
+ document.getElementById('fixed_close').addEventListener('touchend',function(e){
|
|
|
+ e.preventDefault();
|
|
|
+ document.getElementsByClassName('fixed_bottom')[0].style.display = 'none';
|
|
|
+ document.getElementsByClassName('container')[0].setAttribute('style','padding-bottom:20px');
|
|
|
+ });
|
|
|
}
|
|
|
</script>
|
|
|
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js?<?php echo bonus_version(); ?>"></script>
|
|
@@ -112,10 +122,6 @@
|
|
|
|
|
|
<script>
|
|
|
|
|
|
- (function() {
|
|
|
- $('#h5_mshop').attr('href',document.location.protocol+'//'+document.domain+'/mshop');
|
|
|
- })();
|
|
|
-
|
|
|
if(isMobile.iOS()) {
|
|
|
init_ios_bridge(function(bridge) { });
|
|
|
$('#download_app').attr('href','itms-apps://itunes.apple.com/app/id945609424');
|