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
dfa019f8
Commit
dfa019f8
authored
Apr 17, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抽奖提现的pc版本
parent
e934b2dd
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
230 additions
and
356 deletions
+230
-356
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+43
-0
recordList.html
app/Tpl/Vip/Index/recordList.html
+0
-213
withdraw.html
app/Tpl/Vip/Index/withdraw.html
+187
-143
No files found.
app/Lib/Action/Vip/IndexAction.class.php
View file @
dfa019f8
...
...
@@ -1344,6 +1344,49 @@ class IndexAction extends IdentityAction {
// $this->assign('myData',$myData);
}
//提现页面
public
function
withdraw
(){
$userId
=
$this
->
user
[
'userID'
];
$userName
=
$this
->
user
[
'userName'
];
if
(
IS_POST
){
$where
=
[
'user_id'
=>
$userId
,
'status'
=>
0
,
'item_money'
=>
[
'lt'
,
0
]];
$old
=
M
(
'WalletItem'
)
->
where
(
$where
)
->
find
();
if
(
empty
(
$old
)){
$result
=
uc_get_user
([
'userId'
=>
$userId
,
'type'
=>
3
]);
$mobile
=
$result
[
'data'
][
'mobile'
];
$wallet
=
M
(
'Wallet'
)
->
where
([
'user_id'
=>
$userId
])
->
find
();
$addData
=
[
'user_id'
=>
$userId
,
'user_name'
=>
$userName
,
'mobile'
=>
$mobile
,
'item_money'
=>-
$wallet
[
'money'
],
'item_time'
=>
time
()];
M
(
'WalletItem'
)
->
add
(
$addData
);
}
$this
->
ajaxReturn
([
'status'
=>
1
,
empty
(
$old
)
?
'插入成功'
:
'有未审核的旧数据'
]);
}
//钱包余额
$wallet
=
M
(
'Wallet'
)
->
where
([
'user_id'
=>
$userId
])
->
find
();
$this
->
assign
(
'wallet'
,
$wallet
);
//充值和提现流水
$itemList1
=
$itemList2
=
[];
$items
=
M
(
'WalletItem'
)
->
where
([
'user_id'
=>
$userId
])
->
order
(
'item_time desc'
)
->
select
();
foreach
(
$items
as
$key
=>&
$value
){
$value
[
"item_time"
]
=
date
(
'Y.m.d'
,
$value
[
'item_time'
]);
if
(
$value
[
'item_money'
]
>
0
){
$group
=
D
(
'Group'
)
->
getGroup
(
$value
[
'source'
]);
// var_dump($group);exit;
$value
[
'gName'
]
=
$group
[
'name'
];
$itemList1
[]
=
$value
;
}
else
{
$itemList2
[]
=
$value
;
}
}
$this
->
assign
(
'itemList1'
,
$itemList1
);
$this
->
assign
(
'itemList2'
,
$itemList2
);
$this
->
display
();
}
}
...
...
app/Tpl/Vip/Index/recordList.html
deleted
100644 → 0
View file @
e934b2dd
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"
>
<meta
name=
"referrer"
content=
"origin"
>
<title>
2023模拟炒股大赛,叩富全民炼股有奖大赛赛程及奖项安排-叩富简投
</title>
<meta
name=
"description"
content=
"叩富简投全民炼股2023模拟炒股大赛,赢10万现金大奖。自2007年开赛以来,已累积举办200多期模拟炒股大奖赛。每周、每月都有现金大奖。软件、手机APP、网页同步参赛"
>
<meta
name=
"keywords"
content=
"2023模拟炒股大赛,模拟炒股大赛,模拟炒股,模拟股票大赛,炒股大赛,模拟炒股有奖大赛,模拟股市大赛,股票模拟大赛,股票大赛,腾讯A股大赛,凤凰炒股大赛"
>
<link
rel=
"stylesheet"
href=
"__PUBLIC__/Home/css/g2023.css{$Think.config.css_version}"
>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery-1.8.2.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/layer/layer.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/clipboard.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/slider/js/jquery.bxslider.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/pk.js{$Think.config.js_version}323233"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery.cookie.js"
></script>
<link
rel=
"stylesheet"
href=
"__PUBLIC__/css/h5/foot2023.css{$Think.config.css_version}"
>
</head>
<body>
<div
class=
"new-index-container"
>
<div
class=
"i-banner"
>
<div
style=
"position: relative;width: 1200px;margin: 0 auto;min-height: 548px;"
><p
class=
"cs-num"
>
· {$userNum}人参赛 ·
</p></div>
</div>
<div
class=
"new-main-cont"
>
<div
class=
"withdraw-data marginB30"
>
<div
class=
"data-user"
>
<span
class=
"user-img"
>
{:getPortraitPath($user['userID'],'middle',FALSE,65,65)}
</span>
<p
class=
"user-t"
>
185551322
</p>
</div>
<div
class=
"data-num"
>
<p
class=
"info-num"
>
¥
<span
class=
"num"
>
15.70
</span></p>
<p
class=
"info-t"
>
我的奖金钱包(元)
</p>
<a
href=
"javascript:;"
class=
"withdraw-btn-a"
>
提现
</a>
</div>
</div>
<div
class=
"withdraw-cont"
>
<div
class=
"cont-title"
>
<a
href=
"javascript:;"
class=
"title-a active"
>
奖金明细
</a>
<a
href=
"javascript:;"
class=
"title-a"
>
提现记录
</a>
</div>
<div
class=
"withdraw-panel"
>
<table>
<thead>
<tr>
<th>
奖金来源
</th>
<th>
金额
</th>
<th>
时间
</th>
<th>
状态
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
中金分赛场
</td>
<td
class=
"withdraw-num"
>
+
<span
class=
"num"
>
¥125元
</span></td>
<td>
2023.02.14
</td>
<td>
已到钱包
</td>
</tr>
<tr>
<td>
中金分赛场
</td>
<td
class=
"withdraw-num"
>
+
<span
class=
"num"
>
¥125元
</span></td>
<td>
2023.02.14
</td>
<td>
已到钱包
</td>
</tr>
<tr>
<td>
中金分赛场
</td>
<td
class=
"withdraw-num"
>
+
<span
class=
"num"
>
¥125元
</span></td>
<td>
2023.02.14
</td>
<td>
已到钱包
</td>
</tr>
</tbody>
</table>
<div
class=
"no-data-c"
>
<img
src=
"__PUBLIC__/Home/images/g2023/no-data.png"
alt=
""
>
<p>
您当前没有获得奖金
</p>
<a
href=
"javascript:;"
class=
"btn"
>
参加更多比赛,赢取奖金
</a>
</div>
</div>
<div
class=
"withdraw-panel"
style=
"display: none;"
>
<table>
<thead>
<tr>
<th>
奖金来源
</th>
<th>
金额
</th>
<th>
时间
</th>
<th>
状态
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
提现
</td>
<td
class=
"withdraw-num green"
>
-
<span
class=
"num"
>
¥125元
</span></td>
<td>
2023.02.14
</td>
<td>
已完成
</td>
</tr>
<tr>
<td>
提现
</td>
<td
class=
"withdraw-num green"
>
-
<span
class=
"num"
>
¥125元
</span></td>
<td>
2023.02.14
</td>
<td>
已完成
</td>
</tr>
</tbody>
</table>
<div
class=
"no-data-c"
>
<img
src=
"__PUBLIC__/Home/images/g2023/no-data.png"
alt=
""
>
<p>
您还没有提现过奖金
</p>
<a
href=
"javascript:;"
class=
"btn"
>
参加更多比赛,赢取奖金
</a>
</div>
</div>
</div>
</div>
</div>
<div
class=
"mask"
style=
"display: none;"
></div>
<div
class=
"camp-apply-pop pops"
style=
"display: none;"
id=
"popTixianNull"
>
<div
class=
"pop-main"
>
<p
style=
"text-align: center;font-weight: bold;font-size: 18px;color: #ff2336;margin-top: 5px;"
>
您的钱包还未开启
</p>
<p
class=
"main-msg-i okTxt"
style=
"color: #333333;margin-bottom: 15px;"
>
报名参赛即可开启钱包
</p>
<p
style=
"margin-left: 29%;"
><img
style=
"width: 60%;"
src=
"__PUBLIC__/Home/images/2023ewm/jiangWx.jpg"
/></p>
<p
class=
"pop-sub1 inWx"
style=
"font-size: 14px;"
>
(微信扫一扫,添加客服)
</p>
<p
class=
"pop-sub1"
>
<!--<button class="camp-copyBtn jumpWx" weixinUrl="{$weixinUrl}">进入微信一键添加</button>-->
</p>
</div>
<span
class=
"t-pop-close"
><img
src=
"__PUBLIC__/Home/images/g2020/trade-close.png"
alt=
""
></span>
</div>
<div
class=
"camp-apply-pop pops"
style=
"display: none;"
id=
"popTixian1"
>
<div
class=
"pop-main"
>
<p
style=
"text-align: center;font-weight: bold;font-size: 18px;color: #ff2336;margin-top: 5px;"
>
您当前奖金不足20元
</p>
<p
class=
"main-msg-i okTxt"
style=
"color: #333333;margin-bottom: 15px;"
>
累计奖金超过20元可提现
</p>
<p
style=
"margin-left: 29%;"
><img
style=
"width: 60%;"
src=
"__PUBLIC__/Home/images/2023ewm/jiangWx.jpg"
/></p>
<p
class=
"pop-sub1 inWx"
style=
"font-size: 14px;"
>
(微信扫一扫,添加客服)
</p>
<p
class=
"pop-sub1"
>
<!--<button class="camp-copyBtn jumpWx" weixinUrl="{$weixinUrl}">进入微信一键添加</button>-->
</p>
</div>
<span
class=
"t-pop-close"
><img
src=
"__PUBLIC__/Home/images/g2020/trade-close.png"
alt=
""
></span>
</div>
<div
class=
"camp-apply-pop pops"
style=
"display: none;"
id=
"popTixian2"
>
<div
class=
"pop-main"
>
<p
class=
"main-msg-i okTxt"
style=
"color: #333333;"
>
提现申请已发起
</p>
<p
style=
"text-align: center;font-weight: bold;font-size: 18px;color: #ff2336;margin-top: 5px;margin-bottom: 15px;"
>
奖金由官方客服给您发微信红包
</p>
<p
style=
"margin-left: 29%;"
><img
style=
"width: 60%;"
src=
"__PUBLIC__/Home/images/2023ewm/jiangWx.jpg"
/></p>
<p
class=
"pop-sub1 inWx"
style=
"font-size: 14px;"
>
(微信扫一扫,添加客服)
</p>
<p
class=
"pop-sub1"
>
<!--<button class="camp-copyBtn jumpWx" weixinUrl="{$weixinUrl}">进入微信一键添加</button>-->
</p>
</div>
<span
class=
"t-pop-close"
><img
src=
"__PUBLIC__/Home/images/g2020/trade-close.png"
alt=
""
></span>
</div>
<div
class=
"camp-apply-pop pops"
style=
"display: none;"
id=
"popZixun"
>
<div
class=
"pop-main"
>
<p
style=
"text-align: center;font-weight: bold;font-size: 18px;color: #ff2336;margin-top: 5px;"
>
大赛福利及参赛问题咨询
</p>
<p
class=
"main-msg-i okTxt"
style=
"color: #333333;margin-bottom: 15px"
>
加微信免费领取参赛权益、进大赛高手交流群
</p>
<p
style=
"margin-left: 29%;"
><img
style=
"width: 60%;"
src=
"__PUBLIC__/Home/images/2023ewm/jiangWx.jpg"
/></p>
<p
class=
"pop-sub1"
>
<!--<button class="camp-copyBtn jumpWx" weixinUrl="{$weixinUrl}">进入微信一键添加</button>-->
</p>
</div>
<span
class=
"t-pop-close"
><img
src=
"__PUBLIC__/Home/images/g2020/trade-close.png"
alt=
""
></span>
</div>
<include
file=
"newPop"
/>
<include
file=
"footer"
/>
</body>
<script>
$
(
function
(){
$
(
'.cont-title .title-a'
).
each
(
function
(
i
,
obj
){
$
(
obj
).
click
(
function
(){
$
(
'.cont-title .title-a'
).
removeClass
(
'active'
);
$
(
obj
).
addClass
(
'active'
);
$
(
'.withdraw-panel'
).
hide
();
$
(
$
(
'.withdraw-panel'
)[
i
]).
show
();
})
})
//提现按钮
$
(
'.withdraw-btn-a'
).
click
(
function
()
{
var
tj
=
'{$user.userID}'
==
''
;
if
(
tj
)
{
$
(
".mask"
).
show
();
$
(
"#popLogin"
).
show
();
}
else
{
if
(
'{$wallet.money}'
==
''
){
$
(
".mask"
).
show
();
$
(
"#popTixianNull"
).
show
();
}
else
if
(
Number
(
'{$wallet.money}'
)
<
20
){
$
(
".mask"
).
show
();
$
(
"#popTixian1"
).
show
();
}
else
{
$
(
".mask"
).
show
();
$
(
"#popTixian2"
).
show
();
}
}
});
//关闭弹窗
$
(
".t-pop-close,.pop-close"
).
click
(
function
()
{
$
(
".mask"
).
hide
();
$
(
this
).
parents
(
'.pops'
).
hide
();
});
});
</script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/popad_mini_jiang.js{$Think.config.js_version}111"
></script>
</html>
<!--userId:{$user.userID}-userName:{$user.userName}-->
\ No newline at end of file
app/Tpl/Vip/Index/withdraw.html
View file @
dfa019f8
This diff is collapsed.
Click to expand it.
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