Commit ce915cd5 authored by 陈曦's avatar 陈曦

Merge branch 'test' into dev

parents 7c31c835 e4258aec
...@@ -8,4 +8,5 @@ ...@@ -8,4 +8,5 @@
require(__DIR__ . '/../extend/internalApi/autoload.php'); require(__DIR__ . '/../extend/internalApi/autoload.php');
require(__DIR__ . '/../config/config_ibanshou.php'); require(__DIR__ . '/../config/config_ibanshou.php');
\internalApi\base\Client::config($config['wxh.internal']['client']); \internalApi\base\Client::config($config['wxh.internal']['client']);
echo json_encode(\internalApi\ucenter\MemberRedpack::getFirstRedpack()); $uid = $_GET['uid'];
\ No newline at end of file echo json_encode(\internalApi\ucenter\MemberRedpack::getFirstRedpack($uid));
\ No newline at end of file
...@@ -11,8 +11,8 @@ use internalApi\base\Client; ...@@ -11,8 +11,8 @@ use internalApi\base\Client;
class MemberRedpack extends Client class MemberRedpack extends Client
{ {
public static function getFirstRedpack() public static function getFirstRedpack($userId)
{ {
return self::call('memberRedpack.firstRedpack'); return self::call('memberRedpack.firstRedpack',compact('userId'));
} }
} }
\ No newline at end of file
...@@ -4,29 +4,34 @@ require(__DIR__ . "/../../class/db_sql.php"); ...@@ -4,29 +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(){
$(".books").attr("href", "/e/member/login"); <?php if ($isShow) { ?>
$("#loginGits").attr("style", "display:block;"); showRedpack();
}); $("#invite-main").attr("style", "display:block;");
<?php }else { ?> <?php } ?>
var zhugeCheckRunHandler = false; <!-- $(".books").attr("href", "/e/member/login");--> $("#loginGits").attr("style", "display:block;");
function zhugeCheckRun(){ <?php } else { ?>
if(!window.zhuge){
zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500); <?php if ($isShow) { ?>
}else{ showRedpack("<?=$ucid?>");$("#invite-main").attr("style", "display:block;");
clearTimeout(zhugeCheckRunHandler); <?php } ?>
window.zhuge.identify("<?=$ucid?>"); var zhugeCheckRunHandler = false; function zhugeCheckRun(){ if(!window.zhuge){ zhugeCheckRunHandler = setTimeout(zhugeCheckRun,500); }else{ clearTimeout(zhugeCheckRunHandler); window.zhuge.identify("<?=$ucid?>"); } } zhugeCheckRun();
}
}
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.
...@@ -1021,6 +1021,122 @@ ...@@ -1021,6 +1021,122 @@
vertical-align: top; vertical-align: top;
} }
/*邀请领红包*/
.enter-img {
background: #fff;
}
.enter-img a {
display: inline-block;
width: 100%;
text-align: center;
padding: 15px 0 0;
}
.enter-img img {
width: 100%;
}
.red-packet {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: rgba(0,0,0,.5);
z-index: 11;
}
.red-packet .info {
position: absolute;
left: 50%;
margin-left: -150px;
top: 50%;
width: 300px;
transform:translateY(-50%);
}
.red-packet .info img {
width: 100%;
}
.red-packet .info .text {
position: absolute;
top: 0;
left: 0;
width: 100%;
text-align: center;
color: #fff;
}
.red-packet .info .text h3 {
height: 140px;
line-height: 145px;
}
.red-packet .info .text p {
font-size: 48px;
font-family: arial, sans-serif;
padding: 0 0 20px;
}
.red-packet .info .text b {
font-weight: normal;
font-size: 14px;
font-family: "Helvetica Neue", Helvetica, "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
}
.red-packet .info .text button {
position: relative;
width: 80px;
height: 80px;
display: inline-block;
border: 0;
margin-left: 7px;
outline: none;
border-radius: 100%;
background-color: #fff259;
color: red;
font-size: 24px;
box-shadow: 0 0 1px 0 rgba(0,0,0,0.3), 0 0 30px 2px rgba(0,0,0,0.15);
}
.red-packet .info .text button:after {
content: '';
position: absolute;
top: 5px;
left: 5px;
width: 70px;
height: 70px;
border-radius: 100%;
border: 2px dotted rgba(0,0,0,.2);
box-sizing: border-box;
}
.red-packet .info .text button span {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 50px;
line-height: 40px;
display: inline-block;
text-align: center;
color: #ec2661;
font-weight: bold;
font-size: 16px;
}
.my-redpacket {
display: block;
margin-top: 10px;
color: #fff;
font-size: 14px;
}
.red-packet .info .close {
position: absolute;
left: 50%;
bottom: -40px;
text-align: center;
display: inline-block;
margin-left: -21px;
width: 40px;
height: 40px;
line-height: 36px;
border: 1px solid #fff;
border-radius: 100%;
font-size: 24px;
color: #fff;
}
/*适配电脑端*/ /*适配电脑端*/
@media screen and (min-width: 900px){ @media screen and (min-width: 900px){
html { html {
......
skin/default/images/enter.png

141 KB | W: | H:

skin/default/images/enter.png

51.9 KB | W: | H:

skin/default/images/enter.png
skin/default/images/enter.png
skin/default/images/enter.png
skin/default/images/enter.png
  • 2-up
  • Swipe
  • Onion skin
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