Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
s_ibanshou
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋林
s_ibanshou
Commits
ce915cd5
Commit
ce915cd5
authored
Aug 31, 2018
by
陈曦
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' into dev
parents
7c31c835
e4258aec
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
885 additions
and
27 deletions
+885
-27
inviteRedpack.php
e/action/inviteRedpack.php
+2
-1
MemberRedpack.php
e/extend/internalApi/ucenter/MemberRedpack.php
+2
-2
indexloginstatus.php
e/member/login/indexloginstatus.php
+25
-20
index_dev.html
index_dev.html
+8
-4
index_prod.html
index_prod.html
+492
-0
index_test.html
index_test.html
+240
-0
style.css
skin/default/css/style.css
+116
-0
enter.png
skin/default/images/enter.png
+0
-0
No files found.
e/action/inviteRedpack.php
View file @
ce915cd5
...
@@ -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
e/extend/internalApi/ucenter/MemberRedpack.php
View file @
ce915cd5
...
@@ -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
e/member/login/indexloginstatus.php
View file @
ce915cd5
...
@@ -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
}
?>
bb
.html
→
index_dev
.html
View file @
ce915cd5
...
@@ -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
()
{
...
...
index_prod.html
0 → 100644
View file @
ce915cd5
This diff is collapsed.
Click to expand it.
aa
.html
→
index_test
.html
View file @
ce915cd5
This diff is collapsed.
Click to expand it.
skin/default/css/style.css
View file @
ce915cd5
...
@@ -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
View replaced file @
7c31c835
View file @
ce915cd5
141 KB
|
W:
|
H:
51.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment