Commit d17d3626 authored by 汪波's avatar 汪波

Merge remote-tracking branch 'origin/test' into test

parents b42ada3b 794f53b9
...@@ -4,31 +4,34 @@ require(__DIR__ . "/../../class/db_sql.php"); ...@@ -4,31 +4,34 @@ require(__DIR__ . "/../../class/db_sql.php");
require(__DIR__ . "/../../member/class/user.php"); require(__DIR__ . "/../../member/class/user.php");
require(__DIR__ . "/../../class/q_functions.php"); require(__DIR__ . "/../../class/q_functions.php");
$iscas = getcvar('mlcas'); $iscas = getcvar('mlcas');
if($iscas){ if ($iscas) {
$link=db_connect(); $link = db_connect();
$empire=new mysqlquery(); $empire = new mysqlquery();
$user = islogin(); $user = islogin();
$ucid = $user['ucid']; $ucid = $user['ucid'];
}
?>
<?php
$isShow = true;
if (time() > strtotime('2018-05-01 00:00:00') && time() <= strtotime('2018-05-10 23:59:59')) {
$isShow = true;
} }
?> ?>
<?php if (!$iscas) { ?> <?php if (!$iscas) { ?>
$(function(){ $(function(){
<!-- $(".books").attr("href", "/e/member/login");--> <?php if ($isShow) { ?>
showRedpack(); showRedpack();$("#invite-main").attr("style", "display:block;");
$("#loginGits").attr("style", "display:block;"); <?php } ?>
}); <!-- $(".books").attr("href", "/e/member/login");--> $("#loginGits").attr("style", "display:block;"); });
<?php }else { ?> <?php } else { ?>
showRedpack("<?=$ucid?>");
var zhugeCheckRunHandler = false; <?php if ($isShow) { ?>
function zhugeCheckRun(){ showRedpack("<?=$ucid?>");$("#invite-main").attr("style", "display:block;");
if(!window.zhuge){ <?php } ?>
zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500);
}else{ var zhugeCheckRunHandler = false; function zhugeCheckRun(){ if(!window.zhuge){ zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500); }else{ clearTimeout(zhugeCheckRunHandler); window.zhuge.identify("<?=$ucid?>"); } } zhugeCheckRun();
clearTimeout(zhugeCheckRunHandler); <?php } ?>
window.zhuge.identify("<?=$ucid?>"); \ No newline at end of file
}
}
zhugeCheckRun();
<?php } ?>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</div> </div>
<div class="enter-img"> <div class="enter-img">
<a href="[!--temp.ucenterurl--]invite-redpack/index"><img src="/skin/default/images/enter.png"></a> <a href="[!--temp.ucenterurl--]invite-redpack/index" id="invite-redpack"><img src="/skin/default/images/enter.png"></a>
</div> </div>
<div class="recommend-info"> <div class="recommend-info">
...@@ -213,8 +213,7 @@ ...@@ -213,8 +213,7 @@
} }
</style> </style>
<div class="red-packet" id="redpack" style="display: none"> <div class="red-packet" id="redpack" style="display: none"></div>
</div>
<script src="[!--news.url--]e/member/login/logincas.php"></script> <script src="[!--news.url--]e/member/login/logincas.php"></script>
<script type='text/javascript' src="[!--news.url--]skin/default/js/swiper.min.js"></script> <script type='text/javascript' src="[!--news.url--]skin/default/js/swiper.min.js"></script>
...@@ -378,7 +377,12 @@ ...@@ -378,7 +377,12 @@
}; };
function inviteRedpack() { function inviteRedpack() {
window.location.href = "[!--temp.ucenterurl--]invite-redpack/index"; if(!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){
window.location.href = "http://a.app.qq.com/o/simple.jsp?pkgname=com.wxhkj.weixiuhui&ckey=CK1391535911216";
}else {
window.location.href = "[!--temp.ucenterurl--]invite-redpack/index";
}
} }
$(function () { $(function () {
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment