Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cof_vip
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
houdong
cof_vip
Commits
89d77bcc
Commit
89d77bcc
authored
Jul 07, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面左上角加关闭按钮
parent
e25b4580
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
76 additions
and
127 deletions
+76
-127
app_h5.js
Public/js/app_h5.js
+6
-0
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+2
-2
PkTopAction.class.php
app/Lib/Action/Vip/PkTopAction.class.php
+3
-2
PublicAction.class.php
app/Lib/Action/Vip/PublicAction.class.php
+13
-3
jiang.html
app/Tpl/Vip/Index/jiang.html
+1
-1
pop.html
app/Tpl/Vip/Index/pop.html
+1
-1
choujiang.html
app/Tpl/Vip/PkTop/choujiang.html
+1
-23
head.html
app/Tpl/Vip/PkTop/head.html
+38
-0
index.html
app/Tpl/Vip/PkTop/index.html
+1
-25
itemTrade.html
app/Tpl/Vip/PkTop/itemTrade.html
+1
-1
phbOther.html
app/Tpl/Vip/PkTop/phbOther.html
+4
-23
phbTrade.html
app/Tpl/Vip/PkTop/phbTrade.html
+4
-23
phbWeek.html
app/Tpl/Vip/PkTop/phbWeek.html
+1
-23
No files found.
Public/js/app_h5.js
View file @
89d77bcc
...
...
@@ -772,6 +772,12 @@ var AppBridge = {
var
oUrl
=
url
||
""
;
var
obj
=
el
||
".header-close"
;
var
num
=
step
||
-
2
;
if
(
_this
.
version
==
0
){
$
(
obj
).
hide
();
return
;
}
$
(
obj
).
click
(
function
()
{
console
.
log
(
oUrl
);
console
.
log
(
_this
.
device
);
...
...
app/Lib/Action/Vip/IndexAction.class.php
View file @
89d77bcc
...
...
@@ -390,7 +390,7 @@ class IndexAction extends IdentityAction {
}
//已登录
if
(
$userId
){
$uc
=
uc_get_user
(
array
(
'userId'
=>
$userId
)
);
$uc
=
uc_get_user
(
[
'userId'
=>
$userId
,
'type'
=>
3
]
);
if
(
$uc
[
'status'
]
==
0
&&!
empty
(
$uc
[
'data'
])){
$ucData
=
$uc
[
'data'
];
}
...
...
@@ -406,7 +406,7 @@ class IndexAction extends IdentityAction {
$this
->
ajaxReturn
(
array
(
'status'
=>
0
,
'info'
=>
'验证码失效或者错误!'
));
}
$uc
=
uc_get_user
([
'token'
=>
$mobile
]);
$uc
=
uc_get_user
([
'token'
=>
$mobile
,
'type'
=>
3
]);
$ucData
=
$uc
[
'data'
];
// var_dump($uc);exit;
//没有该用户,开始注册,status0有该用户,111表示用户不存在
...
...
app/Lib/Action/Vip/PkTopAction.class.php
View file @
89d77bcc
...
...
@@ -434,8 +434,9 @@ class PkTopAction extends IdentityAction{
$this
->
ajaxReturn
([
'status'
=>
0
,
'info'
=>
'请登录!'
]);
}
$uc
=
uc_get_user
(
array
(
'userId'
=>
$userId
)
);
$uc
=
uc_get_user
(
[
'userId'
=>
$userId
,
'type'
=>
3
]
);
$ucData
=
$uc
[
'data'
];
$mobile
=
$ucData
[
'mobile'
];
}
//自动登录
...
...
@@ -1333,7 +1334,7 @@ class PkTopAction extends IdentityAction{
foreach
(
$wtList
as
&
$n
)
{
$nick_name
=
$nick_name_arry
[
$n
[
'CD'
]];
$n
[
'username'
]
=
$nick_name
;
$n
[
'cj_time'
]
=
substr
(
$n
[
'cj_time'
],
0
,
16
);
$n
[
'cj_time'
]
=
substr
(
$n
[
'cj_time'
],
11
,
8
);
$n
[
'entrust_bs'
]
=
$n
[
'entrust_bs'
]
==
'r'
?
'买入'
:
'卖出'
;
$n
[
'price'
]
=
number_format
(
$n
[
'price'
],
2
,
'.'
,
''
);
$n
[
'cj_price'
]
=
number_format
(
$n
[
'cj_price'
],
2
,
'.'
,
''
);
...
...
app/Lib/Action/Vip/PublicAction.class.php
View file @
89d77bcc
...
...
@@ -122,15 +122,20 @@ class PublicAction extends IdentityAction {
if
(
$userId
==
0
){
$this
->
ajaxReturn
([
'status'
=>
0
,
'info'
=>
'请登录后再操作'
,
'uid'
=>
''
]);
}
//
每人每个月只能抽一次奖,改成只能抽一次奖
//
加抽奖次数
$oldDog
=
M
(
'PktopLuckydog'
)
->
where
([
'user_id'
=>
$userId
,
'group_id'
=>
PRIZE_GROUP_2021
])
->
order
(
'add_time desc'
)
->
find
();
// if(!empty($oldDog)){
// $this->ajaxReturn(['status' =>2,'info'=>'您已经抽过奖了','uid'=>$userId]);
// }
if
(
!
empty
(
$oldDog
)){
$oldKaihu
=
M
(
'PktopKaihu'
)
->
where
([
'user_id'
=>
$userId
])
->
find
();
if
(
!
empty
(
$oldDog
)
&&
$oldKaihu
[
'left_num'
]
==
0
){
$this
->
ajaxReturn
([
'status'
=>
2
,
'info'
=>
'您已经抽过奖了'
,
'uid'
=>
$userId
]);
}
//检查是否开户
$kaihuStatus
=
M
(
'PktopKaihu'
)
->
where
([
'user_id'
=>
$userId
])
->
find
();
// $kaihuStatus=M('PktopKaihu')->where(['user_id'=>$userId])->find();
$kaihuStatus
=
M
(
'PktopKaihu'
)
->
where
([
'user_id'
=>
$userId
,
'left_num'
=>
[
'gt'
,
0
]])
->
find
();
if
(
empty
(
$kaihuStatus
)){
// $this->ajaxReturn(['status' =>0,'info'=>'您还未开户,不能抽奖,请点击链接开户']);
$this
->
ajaxReturn
([
'status'
=>
2
,
'info'
=>
'请联系管理员获取抽奖机会'
,
'uid'
=>
$userId
]);
...
...
@@ -162,6 +167,8 @@ class PublicAction extends IdentityAction {
$prizeName
=
$prizeList
[
$prizeId
][
'name'
];
$insertData
=
[
'user_id'
=>
$userId
,
'user_name'
=>
$userName
,
'prize'
=>
$prizeName
,
'add_time'
=>
time
(),
'group_id'
=>
PRIZE_GROUP_2021
];
M
(
'PktopLuckydog'
)
->
add
(
$insertData
);
//抽奖次数-1
M
(
'PktopKaihu'
)
->
where
([
'user_id'
=>
$userId
])
->
setDec
(
'left_num'
);
//加入流水表
$addMoney
=
35
;
...
...
@@ -187,6 +194,9 @@ class PublicAction extends IdentityAction {
if
(
empty
(
$kaihuStatus
)){
return
0
;
}
return
$kaihuStatus
[
'left_num'
]
?
1
:
0
;
//下面的不用了
// $where=['user_id'=>$userId];
$where
=
[
'user_id'
=>
$userId
,
'group_id'
=>
PRIZE_GROUP_2021
];
$oldDog
=
M
()
->
db
(
1
,
C
(
'DB_CONFIG_DEMO'
))
->
table
(
'cofool_pktop_luckydog'
)
->
where
(
$where
)
->
order
(
'add_time desc'
)
->
find
();
...
...
app/Tpl/Vip/Index/jiang.html
View file @
89d77bcc
...
...
@@ -337,7 +337,7 @@
});
//点击右侧的 邀请好友分钱 图片
$
(
".right4"
).
click
(
function
()
{
location
.
href
=
"{:M_URL}/
Zjds/invite
"
;
location
.
href
=
"{:M_URL}/
Match/yaoqing
"
;
});
//点击 进入交流圈/课程 出现弹窗
$
(
'.popTip'
).
click
(
function
()
{
...
...
app/Tpl/Vip/Index/pop.html
View file @
89d77bcc
...
...
@@ -156,7 +156,7 @@
//点击右侧的 邀请好友分钱 图片
$
(
".right4"
).
click
(
function
()
{
location
.
href
=
"{:M_URL}/
Zjds/invite
"
;
location
.
href
=
"{:M_URL}/
Match/yaoqing
"
;
});
$
(
".code-btn"
).
click
(
function
()
{
...
...
app/Tpl/Vip/PkTop/choujiang.html
View file @
89d77bcc
...
...
@@ -52,29 +52,7 @@
</script>
</head>
<body
style=
"min-height: 100%;background-color: #C60000;"
>
<if
condition=
"isH5Head() lt 1"
>
<div
class=
"header-top"
>
<div
class=
"header-hei"
></div>
<div
class=
"header-h"
>
<a
href=
"javascript:;"
class=
"header-h-a"
><span
class=
"back-btn back-btn-a"
></span></a>
<span
class=
"header-share"
></span>
<ul
class=
"header-title"
>
<li
class=
"one-li overHide"
>
叩富全民炼股有奖大赛全民分赛场瓜分十万-2023年模拟炒股大赛-叩富简投
</li></ul>
</div>
</div>
<div
class=
"head-fit"
></div>
<script>
//为了加载效果提前
//点后退按钮
var
ourl
=
''
;
if
(
"{$_GET.key}"
!=
''
||
"{$_GET.is_head}"
!=
''
||
"{$_GET.key2}"
!=
''
){
// if(!window.localStorage.getItem('TradeQueryPageUid')){
ourl
=
'close'
;
// }
}
AppBridge
.
go_back
(
ourl
);
AppBridge
.
head_fit
();
</script>
</if>
<include
file=
"head"
/>
<div
class=
"championship-cont warp-container"
>
<include
file=
"nav"
/>
<div
class=
"contest-body-detail"
>
...
...
app/Tpl/Vip/PkTop/head.html
0 → 100644
View file @
89d77bcc
<if
condition=
"isH5Head() lt 1"
>
<div
class=
"header-top"
>
<div
class=
"header-hei"
></div>
<div
class=
"header-h"
>
<a
href=
"javascript:;"
class=
"header-h-a"
><span
class=
"back-btn back-btn-a"
></span></a>
<a
href=
"javascript:;"
class=
"header-close"
style=
"position: absolute;line-height: 48px;color: #666;left: 35px;"
>
关闭
</a>
<span
class=
"header-share"
></span>
<ul
class=
"header-title"
style=
"width: 193px"
>
<in
name=
"ACTION_NAME"
value=
"index"
>
<li
class=
"one-li overHide"
>
叩富全民炼股有奖大赛全民分赛场赛程及奖项安排-2023年模拟炒股大赛-叩富简投
</li>
</in>
<in
name=
"ACTION_NAME"
value=
"choujiang"
>
<li
class=
"one-li overHide"
>
叩富全民炼股有奖大赛全民分赛场瓜分十万-2023年模拟炒股大赛-叩富简投
</li>
</in>
<in
name=
"ACTION_NAME"
value=
"phbWeek,phbOther,phbTrade"
>
<li
class=
"one-li overHide"
>
叩富全民炼股有奖大赛全民分赛场获奖榜-2023年模拟炒股大赛-叩富简投
</li>
</in>
</ul>
</div>
</div>
<div
class=
"head-fit"
></div>
<script>
//为了加载效果提前
//点后退按钮
var
ourl
=
''
;
if
(
"{$_GET.key}"
!=
''
||
"{$_GET.is_head}"
!=
''
||
"{$_GET.key2}"
!=
''
){
// if(!window.localStorage.getItem('TradeQueryPageUid')){
ourl
=
'close'
;
// }
}
AppBridge
.
go_back
(
ourl
);
AppBridge
.
go_close
(
'close'
);
AppBridge
.
head_fit
();
</script>
</if>
\ No newline at end of file
app/Tpl/Vip/PkTop/index.html
View file @
89d77bcc
...
...
@@ -46,31 +46,7 @@
</script>
</head>
<body
style=
"min-height: 100%;background-color: #C60000;"
>
<if
condition=
"isH5Head() lt 1"
>
<div
class=
"header-top"
>
<div
class=
"header-hei"
></div>
<div
class=
"header-h"
>
<a
href=
"javascript:;"
class=
"header-h-a"
><span
class=
"back-btn back-btn-a"
></span></a>
<span
class=
"header-share"
></span>
<ul
class=
"header-title"
>
<li
class=
"one-li overHide"
>
叩富全民炼股有奖大赛全民分赛场赛程及奖项安排-2023年模拟炒股大赛-叩富简投
</li></ul>
</div>
</div>
<div
class=
"head-fit"
></div>
<script>
//为了加载效果提前
//点后退按钮
var
ourl
=
''
;
if
(
"{$_GET.key}"
!=
''
||
"{$_GET.is_head}"
!=
''
||
"{$_GET.key2}"
!=
''
){
// if(!window.localStorage.getItem('TradeQueryPageUid')){
ourl
=
'close'
;
// }
}
AppBridge
.
go_back
(
ourl
);
AppBridge
.
head_fit
();
</script>
</if>
<include
file=
"head"
/>
<div
class=
"championship-cont warp-container"
>
<include
file=
"nav"
/>
<div
class=
"contest-body-detail"
>
...
...
app/Tpl/Vip/PkTop/itemTrade.html
View file @
89d77bcc
...
...
@@ -7,7 +7,7 @@
<span
class=
"out username"
goTradeInfo=
'{$vo.goTradeInfo}'
>
{$vo.username}
</span>
<eq
name=
"vo.entrust_bs"
value=
"r"
>
买入
<else/>
卖出
</eq>
<span
class=
"out stock_name"
goStockDetails=
'{$vo.StockTrade}'
>
{$vo.stock_name}
</span>
<span
class=
"item-b1-time"
>
{$vo.cjtime}
</span>
<span
class=
"item-b1-time"
>
{$vo.cj
_
time}
</span>
</p>
<table
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
...
...
app/Tpl/Vip/PkTop/phbOther.html
View file @
89d77bcc
...
...
@@ -45,29 +45,7 @@
</script>
</head>
<body
style=
"min-height: 100%;background-color: #C60000;"
>
<if
condition=
"isH5Head() lt 1"
>
<div
class=
"header-top"
>
<div
class=
"header-hei"
></div>
<div
class=
"header-h"
>
<a
href=
"javascript:;"
class=
"header-h-a"
><span
class=
"back-btn back-btn-a"
></span></a>
<span
class=
"header-share"
></span>
<ul
class=
"header-title"
>
<li
class=
"one-li overHide"
>
叩富全民炼股有奖大赛全民分赛场获奖榜-2023年模拟炒股大赛-叩富简投
</li></ul>
</div>
</div>
<div
class=
"head-fit"
></div>
<script>
//为了加载效果提前
//点后退按钮
var
ourl
=
''
;
if
(
"{$_GET.key}"
!=
''
||
"{$_GET.is_head}"
!=
''
||
"{$_GET.key2}"
!=
''
){
// if(!window.localStorage.getItem('TradeQueryPageUid')){
ourl
=
'close'
;
// }
}
AppBridge
.
go_back
(
ourl
);
AppBridge
.
head_fit
();
</script>
</if>
<include
file=
"head"
/>
<div
class=
"championship-cont warp-container"
>
<include
file=
"nav"
/>
<div
class=
"contest-body-detail"
>
...
...
@@ -165,6 +143,9 @@
var
nextPage
=
parseInt
(
currPage
)
+
1
;
if
(
nextPage
>
parseInt
(
totalPage
))
{
$
(
".l_1"
).
hide
();
$
(
".l_2"
).
hide
();
$
(
".l_3"
).
show
();
return
;
}
else
{
...
...
app/Tpl/Vip/PkTop/phbTrade.html
View file @
89d77bcc
...
...
@@ -45,29 +45,7 @@
</script>
</head>
<body
style=
"min-height: 100%;background-color: #C60000;"
>
<if
condition=
"isH5Head() lt 1"
>
<div
class=
"header-top"
>
<div
class=
"header-hei"
></div>
<div
class=
"header-h"
>
<a
href=
"javascript:;"
class=
"header-h-a"
><span
class=
"back-btn back-btn-a"
></span></a>
<span
class=
"header-share"
></span>
<ul
class=
"header-title"
>
<li
class=
"one-li overHide"
>
叩富全民炼股有奖大赛全民分赛场获奖榜-2023年模拟炒股大赛-叩富简投
</li></ul>
</div>
</div>
<div
class=
"head-fit"
></div>
<script>
//为了加载效果提前
//点后退按钮
var
ourl
=
''
;
if
(
"{$_GET.key}"
!=
''
||
"{$_GET.is_head}"
!=
''
||
"{$_GET.key2}"
!=
''
){
// if(!window.localStorage.getItem('TradeQueryPageUid')){
ourl
=
'close'
;
// }
}
AppBridge
.
go_back
(
ourl
);
AppBridge
.
head_fit
();
</script>
</if>
<include
file=
"head"
/>
<div
class=
"championship-cont warp-container"
>
<include
file=
"nav"
/>
<div
class=
"contest-body-detail"
>
...
...
@@ -148,6 +126,9 @@
var
nextPage
=
parseInt
(
currPage
)
+
1
;
if
(
nextPage
>
parseInt
(
totalPage
))
{
$
(
".l_1"
).
hide
();
$
(
".l_2"
).
hide
();
$
(
".l_3"
).
show
();
return
;
}
else
{
...
...
app/Tpl/Vip/PkTop/phbWeek.html
View file @
89d77bcc
...
...
@@ -44,29 +44,7 @@
</script>
</head>
<body
style=
"min-height: 100%;background-color: #C60000;"
>
<if
condition=
"isH5Head() lt 1"
>
<div
class=
"header-top"
>
<div
class=
"header-hei"
></div>
<div
class=
"header-h"
>
<a
href=
"javascript:;"
class=
"header-h-a"
><span
class=
"back-btn back-btn-a"
></span></a>
<span
class=
"header-share"
></span>
<ul
class=
"header-title"
>
<li
class=
"one-li overHide"
>
叩富全民炼股有奖大赛全民分赛场获奖榜-2023年模拟炒股大赛-叩富简投
</li></ul>
</div>
</div>
<div
class=
"head-fit"
></div>
<script>
//为了加载效果提前
//点后退按钮
var
ourl
=
''
;
if
(
"{$_GET.key}"
!=
''
||
"{$_GET.is_head}"
!=
''
||
"{$_GET.key2}"
!=
''
){
// if(!window.localStorage.getItem('TradeQueryPageUid')){
ourl
=
'close'
;
// }
}
AppBridge
.
go_back
(
ourl
);
AppBridge
.
head_fit
();
</script>
</if>
<include
file=
"head"
/>
<div
class=
"championship-cont warp-container"
>
<include
file=
"nav"
/>
<div
class=
"contest-body-detail"
>
...
...
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