Commit dfa019f8 authored by houdong's avatar houdong

抽奖提现的pc版本

parent e934b2dd
......@@ -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();
}
}
......
<!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
......@@ -5,162 +5,206 @@
<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>{$title}PK晋级_2021模拟炒股大赛_叩富简投</title>
<meta name="description" content="叩富简投2022模拟炒股大赛之股王争霸赛,赢10万现金大奖。自2007年开赛以来,已累积举办200多期模拟炒股大奖赛。每周、每月都有现金大奖。软件、手机APP、网页同步参赛"/>
<meta name="keywords" content="2021模拟炒股大赛,模拟炒股大赛,模拟炒股,模拟股票大赛,炒股大赛,模拟炒股有奖大赛,模拟股市大赛,股票模拟大赛,股票大赛,腾讯A股大赛,凤凰炒股大赛"/>
<link rel="stylesheet" href="__PUBLIC__/css/h5/g2021.css{$Think.config.css_version}">
<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>
<style type="text/css">
.page{float: right;margin-right:30px;margin-top: 20px;margin-bottom: 10px; }
.page span{ background:url(__PUBLIC__/images/h5/g2020/page_bg.jpg) no-repeat; width:37px; height:37px; line-height:37px; text-align:center; font-weight:bold; color:#fff; display:inline-block; margin-right:12px; font-size:14px; float:left;}
.page .omitted{ background:none; width:25px;}
.page .next{ padding-top:11px; height:26px;}
.page .current{background: #FF9707;margin-right: 6px;font-size: 14px;border-radius: 2px;border: 1px solid #FF766A;color:#fff;}
.page a{color:#fff;background: #DD2726;;font-size: 14px;border-radius: 2px;border: 1px solid #FF766A;; width:37px; height:37px; line-height:37px; text-align:center; font-weight:bold; display:inline-block; margin-right:12px; float:left;}
.page a:hover{background: #FF9707;color: #fff;}
.newpage input{border: 1px solid #FF766A!important;height: 37px!important;padding: 4px 5px!important;color: #FFF!important;font-size: 14px!important;}
.page a#go{width: 50px;}
</style>
<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 class="redBg">
<php>$viewFlag=2;</php>
<include file="top" />
<div class="championship-pk-cont paddingRelr">
<span class="circle-span2 n3"></span>
<span class="circle-span1 n2"></span>
<div class="pk-new-cont">
<div class="pk-tab-l two">
<ul>
<li class="tab-li line-b <eq name='flag' value='1'>active</eq>"><a href="/index/withdraw?flag=1">提现挑战金</a></li>
<li class="tab-li <eq name='flag' value='2'>active</eq> "><a href="/index/withdraw?flag=2">挑战金记录</a></li>
</ul>
<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="pk-panel-r">
<eq name="flag" value="1">
<div class="panel-withdraw-block">
<div class="block-main">
<div class="block-t"> <span class="t-span"></span> 支付宝账号 </div>
<div class="block-input">
<input type="text" placeholder="请输入您的提现支付宝账号" maxlength="30" id="alipayAccount"
autocomplete="on" value="{$cashout_log.Alipay}" >
<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 class="block-t"> <span class="t-span"></span> 提现金额(元)</div>
<div class="block-input">
<span class="unit-span">¥</span>
<input onkeyup="checknum(this);" class="money-input" placeholder="请输入提现金额" maxlength="6"
oninput="if( this.value.length>6) this.value = this.value.slice(0,6)" id="money">
</div>
<p class="can-tip-p">可提现金额(元) <span class="money-num">{$money|default=0}</span></p>
<input type="button" value="提现" class="withdraw-btn">
<!--<div class="withdraw-tip">-->
<!--<p class="zhu">注:</p> <p class="zhu-tip">提现次数为每周1次,当次提现金额不提可取累计叠加</p>-->
<!--</div>-->
<div class="withdraw-tip">
<p class="zhu">到账时间:</p>
<p class="zhu-tip">银行提现时间段为,9:00 、11:30 、16:30,最快10分钟可到账,如发起后2个工作日内未到账或其它问题</p>
<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="contact-d">
<img src="__PUBLIC__/images/h5/g2020/kfcg-code.png" alt="">
<p class="contact-d-sao">扫一扫添加客服微信</p>
<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>
</eq>
<eq name="flag" value="2">
<div class="money-record-cont">
<ul>
<notempty name="moneyList">
<foreach name="moneyList" item="vo">
<li class="record-li">
<eq name="vo.type" value="5">
挑战胜利,返还 <span class="y">¥66</span>
<else/>
{$vo.content}
</eq>
<span class="time">{$vo.add_time|date='Y-m-d H:i:s',###}</span>
</li>
</foreach>
<else/><p style="text-align: center;font-size: 14px;color: #fff;padding: 10vh 10px;">您还没有挑战金!</p>
</notempty>
</ul>
<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>
<br>
<div class="page" style="float:none;margin:0 auto;width:870px;height:37px;color:#fff">
<div class="newpage" style="float:right;"> {$_page} </div>
</div>
</eq>
</div>
</div>
</div>
<div class="mask" style="display: none;"></div>
<div class="pk-result-pop pops" style="display: none;" id="pop1">
<span class="t-pop-close"><img src="__PUBLIC__/images/h5/g2020/pop-close.png" alt=""></span>
<div class="result-icon">
<img src="__PUBLIC__/images/h5/g2020/red-tick.png" alt="">
<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>
<p class="result-msg-m paddingB5">提现申请提交成功</p>
<p class="result-msg-s">您可添加下方客服微信,领取挑战金</p>
<p class="result-msg-code"><img src="__PUBLIC__/images/h5/g2020/kfcg-code.png" alt=""></p>
<!--<p class="result-msg-w">您可添加下方客服微信,领取挑战金</p>-->
<span class="t-pop-close"><img src="__PUBLIC__/Home/images/g2020/trade-close.png" alt=""></span>
</div>
<include file="pop" />
<include file="footer" />
</body>
<script>
$(function () {
<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>
//点提现按钮
$(".withdraw-btn").click(function () {
var alipayAccount=$('#alipayAccount').val();
var money=$('#money').val();
if(alipayAccount==''){layer.alert('请输入支付宝账号!', 8);return;}
if(money==''){layer.alert('请输入提现金额!', 8);return;}
<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>
if($('.money-num').html()=='0'){layer.alert('您没有可提现的挑战金!', 8);return;}
<include file="newPop" />
<include file="footer" />
if(money<=0){layer.alert('提现金额有误!', 8);return;}
if(money>Number($('.money-num').html())){layer.alert('提现金额不能大于当前余额!', 8);return;}
$.post('/index/withdraw', {alipayAccount:alipayAccount,money:money,'flag':1}, function (data) {
if (data.status == 1) {$(".mask").show();$("#pop1").show();}
if (data.status == 2) {$(".mask").show();$("#pop2").show();}
if (data.status == 3) {layer.alert(data.info)}
});
</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").click(function () {
//关闭弹窗
$(".t-pop-close,.pop-close").click(function () {
$(".mask").hide();
$("#pop1").hide();
$(this).parents('.pops').hide();
});
baoming('{$user.userID}','{$Think.config.WWW_URL}');
submitBaoming(userType,'{$Think.config.WWW_URL}');
});
function checknum(obj) {
obj.value = obj.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符
obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是数字
obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个, 清除多余的
obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");
obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数
}
//进入交易
$('.pk-cont-info').click(function(){
location.href="{$Think.config.WWW_URL}/Trade/Stock/index/gid/{$Think.config.PRIZE_GROUP_2021}";
});
</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}-popType:{$popType}->
\ No newline at end of file
<!--userId:{$user.userID}-userName:{$user.userName}-->
\ No newline at end of file
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