Commit 0adf0565 authored by wangjj's avatar wangjj

调用红包接口

parent a8b53bb2
...@@ -6,36 +6,29 @@ require(__DIR__ . "/../../class/q_functions.php"); ...@@ -6,36 +6,29 @@ 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 = false;
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");-->
<!-- $(".books").attr("href", "/e/member/login");--> <?php if ($isShow) { ?>
<?php if (time() > 1525104000) { ?> showRedpack();$("#invite-main").attr("style", "display:block;");
showRedpack(); <?php } ?>
$("#invite-main").attr("style", "display:block;"); $("#loginGits").attr("style", "display:block;");});
<?php } ?> <?php } else { ?><?php if ($isShow) { ?>
$("#loginGits").attr("style", "display:block;"); showRedpack("<?=$ucid?>");$("#invite-main").attr("style", "display:block;");
}); <?php } ?>
<?php } else { ?>
<?php if (time() > 1525104000) { ?>
showRedpack("<?= $ucid ?>");
$("#invite-main").attr("style", "display:block;");
<?php } ?>
var zhugeCheckRunHandler = false; var zhugeCheckRunHandler = false;function zhugeCheckRun(){if(!window.zhuge){zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500);}else{clearTimeout(zhugeCheckRunHandler);window.zhuge.identify("<?=$ucid?>");}}zhugeCheckRun();
function zhugeCheckRun(){
if(!window.zhuge){
zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500);
}else{
clearTimeout(zhugeCheckRunHandler);
window.zhuge.identify("<?= $ucid ?>");
}
}
zhugeCheckRun();
<?php } ?> <?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