Commit 0adf0565 authored by wangjj's avatar wangjj

调用红包接口

parent a8b53bb2
......@@ -6,36 +6,29 @@ require(__DIR__ . "/../../class/q_functions.php");
$iscas = getcvar('mlcas');
if ($iscas) {
$link = db_connect();
$empire = new mysqlquery();
$user = islogin();
$ucid = $user['ucid'];
$link = db_connect();
$empire = new mysqlquery();
$user = islogin();
$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) { ?>
$(function(){
<!-- $(".books").attr("href", "/e/member/login");-->
<?php if (time() > 1525104000) { ?>
showRedpack();
$("#invite-main").attr("style", "display:block;");
<?php } ?>
$("#loginGits").attr("style", "display:block;");
});
<?php } else { ?>
<?php if (time() > 1525104000) { ?>
showRedpack("<?= $ucid ?>");
$("#invite-main").attr("style", "display:block;");
<?php } ?>
$(function(){<!-- $(".books").attr("href", "/e/member/login");-->
<?php if ($isShow) { ?>
showRedpack();$("#invite-main").attr("style", "display:block;");
<?php } ?>
$("#loginGits").attr("style", "display:block;");});
<?php } else { ?><?php if ($isShow) { ?>
showRedpack("<?=$ucid?>");$("#invite-main").attr("style", "display:block;");
<?php } ?>
var zhugeCheckRunHandler = false;
function zhugeCheckRun(){
if(!window.zhuge){
zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500);
}else{
clearTimeout(zhugeCheckRunHandler);
window.zhuge.identify("<?= $ucid ?>");
}
}
zhugeCheckRun();
var zhugeCheckRunHandler = false;function zhugeCheckRun(){if(!window.zhuge){zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500);}else{clearTimeout(zhugeCheckRunHandler);window.zhuge.identify("<?=$ucid?>");}}zhugeCheckRun();
<?php } ?>
......@@ -49,7 +49,7 @@
</div>
<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 class="recommend-info">
......@@ -213,8 +213,7 @@
}
</style>
<div class="red-packet" id="redpack" style="display: none">
</div>
<div class="red-packet" id="redpack" style="display: none"></div>
<script src="[!--news.url--]e/member/login/logincas.php"></script>
<script type='text/javascript' src="[!--news.url--]skin/default/js/swiper.min.js"></script>
......@@ -378,7 +377,12 @@
};
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 () {
......
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