|
|
<extend name="Public/tradebases" />
|
|
|
<block name="css">
|
|
|
|
|
|
<notempty name="nologin">
|
|
|
<link href="__CSS__/iconfont.css" rel="stylesheet" >
|
|
|
<link href="__CSS__/select2.min.css" rel="stylesheet" >
|
|
|
<link type="text/css" rel="stylesheet" href="__CSS__/swiper.min.css">
|
|
|
<link type="text/css" rel="stylesheet" href="__CSS__/base1.css" />
|
|
|
<link type="text/css" rel="stylesheet" href="__CSS__/public1.css" />
|
|
|
<link type="text/css" rel="stylesheet" href="__CSS__/main1.css">
|
|
|
<link href="__CSS__/common.css" rel="stylesheet" >
|
|
|
<script src="__JS__/lwx.js"></script>
|
|
|
<else />
|
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/xg_common.css">
|
|
|
<style>
|
|
|
html {
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.xg-main {
|
|
|
bottom: 0px;
|
|
|
overflow: auto;
|
|
|
max-width:640px;
|
|
|
margin:0 auto;
|
|
|
}
|
|
|
.bgcol_f2{background-color: #f2f2f2}
|
|
|
.xg-container {
|
|
|
margin-bottom: 0;
|
|
|
background-color: #fff;
|
|
|
}
|
|
|
.widthdrawal_num{
|
|
|
padding: 0.38rem;
|
|
|
background-color: #f2f2f2;}
|
|
|
.wd_numtxt{
|
|
|
padding: 0.4rem;
|
|
|
background-color: #fff;
|
|
|
border-radius: 10px;}
|
|
|
.wd_numtit{color: #656565;}
|
|
|
.wd_numcontainer{
|
|
|
font-size: 1rem;
|
|
|
color: #666;
|
|
|
margin: 0.8rem 0;}
|
|
|
.the_yuan{font-size: 0.4rem;
|
|
|
margin-right: 0.3rem;}
|
|
|
.poundage{margin-top: 0.38rem;
|
|
|
color: #d62b1a;}
|
|
|
.widthdrawal_desc{
|
|
|
padding: 0 0 0 .4rem;}
|
|
|
.desc_li{padding: 0.6rem 0;
|
|
|
font-weight: bold;
|
|
|
color: #676767;}
|
|
|
.desc_li~.desc_li{border-top:2px solid #f5f5f5;}
|
|
|
.bgcol_fff{background-color: #fff}
|
|
|
.wd_descr{float: right;
|
|
|
margin-right: 0.4rem;}
|
|
|
.col_blu{color: #4798f1}
|
|
|
.wd_account{font-weight: 500;
|
|
|
color: #5a5a5a;}
|
|
|
.wd_numdesc{
|
|
|
color: #999;}
|
|
|
.wd_num{color:#666;}
|
|
|
.wd_goband{font-weight: 500;
|
|
|
color: #db4536;}
|
|
|
.icon-go{
|
|
|
display: inline-block;
|
|
|
margin-left: 0.12rem;
|
|
|
vertical-align: sub;
|
|
|
height: 0.45rem;
|
|
|
width: 0.3rem;
|
|
|
background: url(__IMG__/trade1/icon_xiala2.png) no-repeat center center;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
.pop-window {
|
|
|
display:none;
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
overflow:hidden;
|
|
|
position:fixed;
|
|
|
top:0;
|
|
|
left:0;
|
|
|
bottom:0;
|
|
|
right:0;
|
|
|
width:100vw;
|
|
|
height:100vh;
|
|
|
z-index:999;
|
|
|
background:rgba(0,0,0,.2);
|
|
|
}
|
|
|
|
|
|
.pop-window .pop-box {
|
|
|
position:relative;
|
|
|
top:26%;
|
|
|
margin:0 auto 0;
|
|
|
width:80vw;
|
|
|
background:#FFF;
|
|
|
border-radius:3vw;
|
|
|
max-width:293px;
|
|
|
}
|
|
|
.pop-window .pop-page {position:relative;margin:0 auto;width:100%;height:100%;background:#FFF;}
|
|
|
.pop-window .pop-page .pop-wrap, .pop-window .pop-page .pop-wrap>div {
|
|
|
height: 100%;max-width:640px;width:100%;position:relative;top:0;margin:0 auto;left:auto;right:auto;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap {
|
|
|
padding:5vw 7vw;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-title {
|
|
|
position:relative;
|
|
|
margin:0;
|
|
|
color:#707070;
|
|
|
font-size:2.7rem;
|
|
|
font-weight:normal;
|
|
|
text-align:center;
|
|
|
}
|
|
|
/* .pop-window .pop-box .pop-wrap .pop-title span {
|
|
|
color:#18B1EA;
|
|
|
}*/
|
|
|
.pop-window .pop-box .pop-wrap .pop-close {
|
|
|
position:absolute;
|
|
|
right:-1rem;
|
|
|
top:-1rem;
|
|
|
font-size:2.2rem;
|
|
|
color:#999;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-content {
|
|
|
color:#999;
|
|
|
font-size:1.8rem;
|
|
|
position:relative;
|
|
|
margin-top:.2rem;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-content .des {
|
|
|
color:#666;
|
|
|
display:block;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-btnbox {
|
|
|
overflow:hidden;
|
|
|
clear:both;
|
|
|
position:relative;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-btnbox .pop-btn {
|
|
|
width:45%;
|
|
|
text-align:center;
|
|
|
padding:.4rem 0;
|
|
|
font-size:2.6rem;
|
|
|
border-radius:4rem;
|
|
|
display:block;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-btnbox .pop-cancel {
|
|
|
color:#707070;
|
|
|
border:1px solid #F1F1F1;
|
|
|
float:left;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-btnbox .pop-confirm {
|
|
|
color:#FFF;
|
|
|
background:#18B1EA;
|
|
|
border:1px solid #18B1EA;
|
|
|
float:right;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-btnbox .pop-confirm.disabled {
|
|
|
background:#CCC;
|
|
|
border-color:#CCC;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-btnbox .pop-input {
|
|
|
padding:.8rem 0rem .8rem 8rem;
|
|
|
width:100%;
|
|
|
box-sizing:border-box;
|
|
|
-webkit-box-sizing:border-box;
|
|
|
color:#18B1EA;
|
|
|
border:none;
|
|
|
border-radius:2rem;
|
|
|
font-size:3rem;
|
|
|
line-height:1;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-btnbox .pop-span {
|
|
|
width: 205px;
|
|
|
box-sizing: border-box;
|
|
|
-webkit-box-sizing: border-box;
|
|
|
color: #18B1EA;
|
|
|
font-size: 2rem;
|
|
|
line-height: 3rem;
|
|
|
vertical-align: middle;
|
|
|
overflow-x: scroll;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-btnbox .prefix {
|
|
|
position:absolute;
|
|
|
left:.5rem;
|
|
|
top:0rem;
|
|
|
font-size:1.6rem;
|
|
|
display:block;
|
|
|
text-align: left;
|
|
|
vertical-align:middle;
|
|
|
line-height: 3rem;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-btnbox .pop-copy {
|
|
|
background:#18B1EA;
|
|
|
color:#FFF;
|
|
|
box-sizing:border-box;
|
|
|
-webkit-box-sizing:border-box;
|
|
|
position:absolute;
|
|
|
top:0;
|
|
|
right:0;
|
|
|
height:100%;
|
|
|
width:7rem;
|
|
|
font-size:2rem;
|
|
|
text-align:center;
|
|
|
padding-top:.8rem;
|
|
|
border-top-right-radius:2rem;
|
|
|
border-bottom-right-radius:2rem;
|
|
|
}
|
|
|
.pop-window .pop-box .pop-wrap .pop-textarea {
|
|
|
width:100%;
|
|
|
height:26vh;
|
|
|
padding:.4rem;
|
|
|
font-size:1.5rem;
|
|
|
border:1px solid #DCDCDC;
|
|
|
box-sizing:border-box;
|
|
|
-webkit-box-sizing:border-box;
|
|
|
}
|
|
|
.totalnum {
|
|
|
position:absolute;
|
|
|
bottom:-1.2rem;
|
|
|
right:.3rem;
|
|
|
font-size:1.2rem;
|
|
|
}
|
|
|
.pop-dialog {
|
|
|
display:none;
|
|
|
position:fixed;
|
|
|
z-index:1999;
|
|
|
top:0;
|
|
|
left:0;
|
|
|
right:0;
|
|
|
text-align:center;
|
|
|
width:100vw;
|
|
|
height:100vh;
|
|
|
}
|
|
|
.pop-dialog span {
|
|
|
background:rgba(0,0,0,.6);
|
|
|
top:40%;
|
|
|
color:#FFF;
|
|
|
display:inline-block;
|
|
|
line-height:2;
|
|
|
position:relative;
|
|
|
padding:.5rem 2rem;
|
|
|
word-break:break-all;
|
|
|
max-width:60vw;
|
|
|
}
|
|
|
.pop-table {
|
|
|
display:table;
|
|
|
width:100%;
|
|
|
position:relative;
|
|
|
}
|
|
|
.pop-row {
|
|
|
display:table-row;
|
|
|
position:relative;
|
|
|
}
|
|
|
.pop-cell {
|
|
|
display:table-cell;
|
|
|
position:relative;
|
|
|
vertical-align:middle;
|
|
|
}
|
|
|
.pop-cell.pop-mark{
|
|
|
width:24%;
|
|
|
}
|
|
|
.pop-form {
|
|
|
display:none;
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
overflow:hidden;
|
|
|
position:fixed;
|
|
|
top:0;
|
|
|
left:0;
|
|
|
bottom:0;
|
|
|
right:0;
|
|
|
width:100vw;
|
|
|
height:100vh;
|
|
|
z-index:999;
|
|
|
background:rgba(0,0,0,.5);
|
|
|
}
|
|
|
.pop-form .pop-box {
|
|
|
position:relative;
|
|
|
top:28%;
|
|
|
margin:0 auto 0;
|
|
|
width:90vw;
|
|
|
background:#FFF;
|
|
|
border-radius:3vw;
|
|
|
}
|
|
|
.pop-form .pop-box .pop-wrap {
|
|
|
padding:4vw 6vw 6vw;
|
|
|
}
|
|
|
.pop-form .pop-box .pop-wrap form {
|
|
|
padding:1px;
|
|
|
}
|
|
|
.pop-form .pop-box .pop-wrap .pop-content {
|
|
|
position:relative;
|
|
|
width:100%;
|
|
|
}
|
|
|
.pop-form .pop-title {
|
|
|
position:relative;
|
|
|
margin:0;
|
|
|
color:#707070;
|
|
|
font-size:3.4rem;
|
|
|
font-weight:100;
|
|
|
text-align:center;
|
|
|
}
|
|
|
.pop-form .pop-box .pop-wrap .pop-close {
|
|
|
position:absolute;
|
|
|
right:0rem;
|
|
|
top:0rem;
|
|
|
font-size:2.2rem;
|
|
|
color:#999;
|
|
|
}
|
|
|
.pop-form .pop-table-wrap {
|
|
|
padding-top:1.7rem;
|
|
|
width:100%;
|
|
|
position:relative;
|
|
|
overflow:hidden;
|
|
|
}
|
|
|
.pop-form .pop-table-wrap .pop-table {
|
|
|
}
|
|
|
.pop-form .pop-table-wrap .pop-table .pop-cell {
|
|
|
height:6rem;
|
|
|
font-size:2.2rem;
|
|
|
}
|
|
|
.pop-form .pop-table-wrap .pop-table .pop-cell:first-child {
|
|
|
width:3.5rem;
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
.pop-form .pop-table-wrap .pop-table .pop-cell:last-child {
|
|
|
text-align:right;
|
|
|
}
|
|
|
.pop-form .pop-table-wrap .pop-table .pop-cell .pgood {
|
|
|
}
|
|
|
.pop-form .pop-table-wrap .pop-table .pop-cell p {
|
|
|
margin:0;
|
|
|
}
|
|
|
.pop-form .pop-table-wrap .pop-table .pop-row~.pop-row {
|
|
|
border-top:1px solid rgba(231,231,231,.5);
|
|
|
}
|
|
|
.pop-form .pop-table-wrap .pop-table .paddress {
|
|
|
font-size:0.48rem;
|
|
|
width:88%;
|
|
|
}
|
|
|
.pop-form .pop-table-wrap .pop-table .paddress {
|
|
|
text-align: left;
|
|
|
float: right;
|
|
|
}
|
|
|
.pop-form .pop-table-wrap .pop-table .paddress span {
|
|
|
display:block;
|
|
|
text-overflow:ellipsis;
|
|
|
overflow:hidden;
|
|
|
}
|
|
|
.pop-form .pop-table-wrap .pop-table .pop-cell .icon-right {
|
|
|
position:absolute;
|
|
|
top:34.3%;
|
|
|
right:0.2rem;
|
|
|
width:0.3rem;
|
|
|
height:0.54rem;
|
|
|
display:block;
|
|
|
}
|
|
|
.pop-form .pop-butn-box {
|
|
|
padding-top:0.58rem;
|
|
|
}
|
|
|
.pop-form .pop-butn-box .butn {
|
|
|
width:100%;
|
|
|
-webkit-appearance:none;
|
|
|
font-size:3rem;
|
|
|
color:#FFF;
|
|
|
display:inline-block;
|
|
|
padding:0.6rem 0;
|
|
|
background:#18B1EA;
|
|
|
border-radius:3rem;
|
|
|
border:none;
|
|
|
margin:0;
|
|
|
}
|
|
|
.pop-message,.pop-cue,.pop-notice,.pop-hint,.pop-share,.pop-prompt,.pop-prompt2,.pop-form,.pop-bind,.pop-login,.pop-pay,.pop-pay-temp,.pop-partir,.pop-bookmark,.pop-load {display:none;position:fixed;z-index:1999;top:0;left:0;right:0;text-align:center;width:100vw;height:100vh;}
|
|
|
.pop-message .pop-box {background:rgba(0,0,0,.84);position:relative;color:#FFF;display:inline-block;position:relative;word-break:break-all;border-radius:0.2rem;width:4.64rem;height:4.64rem;}
|
|
|
.pop-message .pop-box .pop-image {width:1.94rem;height:1.4rem;margin-top:1.12rem;}
|
|
|
.pop-message .pop-box .pop-text {margin:0.76rem 0 0;font-size:0.52rem;color:#FFF;}
|
|
|
.pop-info {background-color:rgba(0,0,0,0);}
|
|
|
.pop-info .pop-page {display:table;background:transparent;}
|
|
|
.pop-info .pop-wrap {display:table-cell;vertical-align:middle;}
|
|
|
.pop-info .publishing {width:4.5rem;height:3rem;margin:0 auto;background:#333;border-radius:0.4rem;}
|
|
|
.pop-info .publishing img {margin:0 auto;display:block;width:1.5rem;padding:0.5rem 0 0.1rem;}
|
|
|
.pop-info .publishing span{font-size:.38rem;color:#FFF;text-align:center;display:block;}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
</notempty>
|
|
|
|
|
|
|
|
|
</block>
|
|
|
<block name="body">
|
|
|
|
|
|
|
|
|
<notempty name="nologin">
|
|
|
|
|
|
{$nologin}
|
|
|
|
|
|
<else />
|
|
|
|
|
|
<script src="__JS__/xg_mobile.js"></script>
|
|
|
<script src="__JS__/ajaxload.js"></script>
|
|
|
<script src="__JS__/pop.lwx.min.js"></script>
|
|
|
<header class="header">
|
|
|
<if condition="$issdk eq 1">
|
|
|
<a class="xg-back" href="{:U('User/index')}"></a>
|
|
|
<else/>
|
|
|
<a class="xg-back" href="javascript:history.go(-1);"></a>
|
|
|
</if>
|
|
|
<h1 class="xg-title">提现</h1>
|
|
|
</header>
|
|
|
<main class="xg-main bgcol_f2">
|
|
|
<div class="xg-container">
|
|
|
<div class="widthdrawal_num" style="padding: 0.38rem;background-color: #f2f2f2">
|
|
|
<div class="wd_numtxt" style="padding: 0.4rem;background-color: #fff;border-radius: 10px;">
|
|
|
<p class="wd_numtit">提取现金</p>
|
|
|
<div class="wd_numcontainer">
|
|
|
<span class="the_yuan">¥</span><input type="text" data-all="{$user.gold_coin|default=0}" data-rate="{:set_zero_on_number(C('withdraw.widthdraw_rate'))}" data-coin="{:set_zero_on_number(C('withdraw.coin'))}" data-poundage="{:set_zero_on_number(C('withdraw.poundage'))}" style="width:80%;border:none;outline:none;" placeholder="请输入要提现的金币数量" id="coin" value="" >
|
|
|
</div>
|
|
|
<p class="wd_numdesc">可提取现金<span class="wd_num">{$user.gold_coin|default=0}</span>,<span class="col_blu" id="all_gold">全部提取</span></p>
|
|
|
</div>
|
|
|
<p class="poundage">交易手续费{:set_zero_on_number(C('withdraw.widthdraw_rate'))}%,实际到帐金额<span id="real_money">0</span>元</p>
|
|
|
</div>
|
|
|
<div class="widthdrawal_desc">
|
|
|
<ul>
|
|
|
<li class="desc_li">
|
|
|
<span class="wd_descl">到帐时间</span>
|
|
|
<span class="wd_descr col_blu">5个工作日内到帐</span>
|
|
|
</li>
|
|
|
<li class="desc_li" id="get_money_box">
|
|
|
<span class="wd_descl">收款信息</span>
|
|
|
<notempty name="user.alipay">
|
|
|
<notempty name="user.alipay_real_name">
|
|
|
<!--已经绑定支付宝状态 begin!-->
|
|
|
<span class="wd_descr wd_account">{:str_replace(substr($user['alipay'],3,-3),'*****',$user['alipay'])},{:mb_substr($user['alipay_real_name'],0,1,'utf-8').'**'}</span>
|
|
|
<!--end! 已经绑定支付宝状态-->
|
|
|
<else />
|
|
|
<!--未绑定支付宝状态 begin!-->
|
|
|
<a class="wd_descr wd_goband" id="bind_alipay" href="javascript:;">未绑定支付宝,去绑定<i class="icon-go"></i></a>
|
|
|
<!--end 未绑定支付宝状态-->
|
|
|
</notempty>
|
|
|
<else />
|
|
|
<!--未绑定支付宝状态 begin!-->
|
|
|
<a class="wd_descr wd_goband" id="bind_alipay" href="javascript:;">未绑定支付宝,去绑定<i class="icon-go"></i></a>
|
|
|
<!--end 未绑定支付宝状态-->
|
|
|
</notempty>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
</main>
|
|
|
<footer class="footer bgcol_fff" id="confirm_withdraw">
|
|
|
<!-- 在class左后面添加xg-btn-disabled是未有选中的样式 -->
|
|
|
<input type="hidden" class="syql" name="coin" value="">
|
|
|
<input type="hidden" class="syql" name="poundage" value="">
|
|
|
<input type="hidden" class="syql" name="money" value="">
|
|
|
<input type="hidden" class="syql" name="gold_coin_balance" value="">
|
|
|
<input type="hidden" name="alipay" value="{$user['alipay']}">
|
|
|
<input type="hidden" name="alipay_real_name" value="{$user['alipay_real_name']}">
|
|
|
<button type="button" id="confirm_withdraw_btn" class="xg-btn xg-btn-submit xg-btn-primary">确认提现</button>
|
|
|
</footer>
|
|
|
<div class="popmsg pop-dialog"></div>
|
|
|
<div class="popwin pop-window" style="background:#FFF;"><div class="pop-page"><div class="pop-wrap"></div></div></div>
|
|
|
|
|
|
|
|
|
</notempty>
|
|
|
|
|
|
</block>
|
|
|
<block name="script">
|
|
|
<empty name="nologin">
|
|
|
<script>
|
|
|
$(function() {
|
|
|
var pmsg = $(".popmsg").pop();
|
|
|
var popwin = $(".popwin").pop();
|
|
|
|
|
|
$('#all_gold').click(function() {
|
|
|
var input = $('#coin');
|
|
|
var all = parseFloat(input.attr('data-all'));
|
|
|
var rate = parseFloat(input.attr('data-rate'));
|
|
|
var coin = parseFloat(input.attr('data-coin'));
|
|
|
var low = parseFloat(input.attr('data-poundage'));
|
|
|
if(all*100>=(coin*100+low*100)) {
|
|
|
input.val(all);
|
|
|
var poundage = (all*rate/100).toFixed(2);
|
|
|
var widthdraw = 0;
|
|
|
//if(poundage*100<100){poundage*=1;widthdraw=all-poundage;}else{widthdraw = (all*(100-rate)/100).toFixed(2)}
|
|
|
widthdraw = (all*(100-rate)/100).toFixed(2);
|
|
|
var cw = $('#confirm_withdraw');
|
|
|
cw.find('input[name="coin"]').val(all);
|
|
|
cw.find('input[name="money"]').val(widthdraw);
|
|
|
cw.find('input[name="poundage"]').val(poundage);
|
|
|
cw.find('input[name="gold_coin_balance"]').val(all);
|
|
|
$('#real_money').text(widthdraw);
|
|
|
} else {
|
|
|
pmsg.msg('可提取金币不足');
|
|
|
}
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
$('#coin').keyup(function() {
|
|
|
var that = $(this);
|
|
|
if(!$.trim(that.val())) {return false;}
|
|
|
if(!/^[1-9]\d*(\.([0-9]{0,2})?)?$/.test(that.val())) {pmsg.msg('请输入数字');that.val('');return false;}
|
|
|
var val = parseFloat($.trim(that.val())).toFixed(2);
|
|
|
var all = parseFloat(that.attr('data-all'));
|
|
|
var rate = parseFloat(that.attr('data-rate'));
|
|
|
var coin = parseFloat(that.attr('data-coin'));
|
|
|
var low = parseFloat(that.attr('data-poundage'));
|
|
|
var cw = $('#confirm_withdraw');
|
|
|
|
|
|
if(all*100>=val*100) {
|
|
|
if(val*100<(coin*100+low*100)) {cw.find('input.syql').val('');$('#real_money').text(0);pmsg.msg('提现金币不少于'+(coin*100+low*100)/100);return false;}
|
|
|
var poundage = (val*rate/100).toFixed(2);
|
|
|
var widthdraw = 0;
|
|
|
//if(poundage*100<100){poundage=poundage*1;widthdraw=val-poundage;}else{widthdraw = (val*(100-rate)/100).toFixed(2)}
|
|
|
widthdraw = (all*(100-rate)/100).toFixed(2);
|
|
|
cw.find('input[name="coin"]').val(val);
|
|
|
cw.find('input[name="money"]').val(widthdraw);
|
|
|
cw.find('input[name="poundage"]').val(poundage);
|
|
|
cw.find('input[name="gold_coin_balance"]').val(all);
|
|
|
$('#real_money').text(widthdraw);
|
|
|
} else {
|
|
|
cw.find('input.syql').val('');that.val('');
|
|
|
$('#real_money').text(0);
|
|
|
pmsg.msg('可提取金币不足');
|
|
|
}
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
$('#bind_alipay').click(function() {
|
|
|
var that = $(this);
|
|
|
$.ajax({
|
|
|
type:'post',
|
|
|
dataType:'json',
|
|
|
url:'{:U("alipay")}',
|
|
|
data:{},
|
|
|
success:function(data){
|
|
|
popwin.open(800,data.html);
|
|
|
},
|
|
|
error:function(){pmsg.msg('服务器故障,请稍后再试');},
|
|
|
});
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
|
|
|
$('#confirm_withdraw_btn').click(function() {
|
|
|
var that = $(this);parent = that.closest('#confirm_withdraw');
|
|
|
var cw = $('#confirm_withdraw');
|
|
|
if(!$.trim(cw.find('input[name="coin"]').val())) {pmsg.msg('提现金币不能为空');return false;}
|
|
|
if(!$.trim(cw.find('input[name="poundage"]').val())) {pmsg.msg('手续费不能为空');return false;}
|
|
|
if(!$.trim(cw.find('input[name="money"]').val())) {pmsg.msg('到账金额不能为空');return false;}
|
|
|
if(!$.trim(cw.find('input[name="gold_coin_balance"]').val())) {pmsg.msg('账户余额不能为空');return false;}
|
|
|
if(!$.trim(cw.find('input[name="alipay"]').val())) {pmsg.msg('支付宝不能为空');return false;}
|
|
|
if(!$.trim(cw.find('input[name="alipay_real_name"]').val())) {pmsg.msg('支付宝真实姓名不能为空');return false;}
|
|
|
|
|
|
if(that.hasClass('disabled')) {return false;}
|
|
|
that.addClass('disabled');
|
|
|
var query = parent.find('input').serialize();
|
|
|
$.ajax({
|
|
|
type:'post',
|
|
|
dataType:'json',
|
|
|
url:'{:U("withdraw_gold")}',
|
|
|
data:query,
|
|
|
success:function(data){
|
|
|
if(parseInt(data.status)==1) {
|
|
|
pmsg.msg(data.info);
|
|
|
setTimeout(function(){
|
|
|
window.location.href="{:U('Trade/withdraw',array('is_app'=>I('is_app'),'token'=>I('token')))}";
|
|
|
},2000);
|
|
|
} else {
|
|
|
pmsg.msg(data.info);
|
|
|
that.removeClass('disabled');
|
|
|
}
|
|
|
},
|
|
|
error:function(){
|
|
|
pmsg.msg('服务器故障,请稍后再试');that.removeClass('disabled');
|
|
|
},
|
|
|
});
|
|
|
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
});
|
|
|
</script>
|
|
|
</empty>
|
|
|
</block> |