withdrawals.html
6.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>-000个人信息-{$tpshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
<meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
<link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
<link rel="stylesheet" href="__STATIC__/css/page.css" type="text/css">
<script src="__STATIC__/js/jquery-1.10.2.min.js"></script>
<script src="__STATIC__/js/slider.js"></script>
<style>.pagination{margin-right: 16px}</style>
</head>
<body>
<!--------头部开始-------------->
<include file="public/header" />
<!--------头部结束-------------->
<div class="layout ov-hi">
<div class="breadcrumb-area">
<foreach name="navigate_user" key="k" item="v">
<if condition="$k neq '首页'"> > </if>
<a href="{$v}">{$k}</a>
</foreach>
</div>
</div>
<div class="layout pa-to-10 fo-fa-ar">
<!--菜单-->
<include file="user/menu" />
<!--菜单-->
<div class="fr wi940">
<div class="xgzl-w" style="overflow: hidden;">
<form action="" method="post" enctype="multipart/form-data" name="distribut_form" id="distribut_form">
<dl>
<dd class="te-al po-re wi230 fl">
</dd>
<dd class="fl ta-tldf">
<table style="width:700px;">
<tbody>
<tr>
<td class="cl_left">提现金额:</td>
<td>
<div class="dv_cell_left">
<input type="text" id="money" name="money" class="imput_text vam" placeholder="最少提现额度{$tpshop_config['basic_min']}" onpaste="this.value=this.value.replace(/[^\d.]/g,'')" onKeyUp="this.value=this.value.replace(/[^\d.]/g,'')"/>
</div>
</td>
</tr>
<tr>
<td class="cl_left">银行名称:</td>
<td>
<div class="dv_cell_left">
<input type="text" id="bank_name" name="bank_name" class="imput_text vam" placeholder="如:支付宝,农业银行,工商银行等..."/>
</div>
</td>
</tr>
<tr>
<td class="cl_left">收款账号:</td>
<td>
<div class="dv_cell_left">
<input type="text" id="account_bank" name="account_bank" class="imput_text vam" placeholder="如:支付宝账号,建设银行账号"/>
</div>
</td>
</tr>
<tr>
<td class="cl_left">开户名:</td>
<td>
<div class="dv_cell_left">
<input type="text" id="account_name" name="account_name" class="imput_text vam" placeholder="开户人姓名"/>
</div>
</td>
</tr>
<tr>
<td class="cl_left">验证码:</td>
<td>
<div class="dv_cell_left">
<input type="text" name="verify_code" class="imput_text vam" id="verify_code" placeholder="请输入下面的验证码" style="width:200px;" />
<img class="yzm_code" id="verify_code_img" width="100" height="30" src="{:U('User/verify',array('type'=>'withdrawals'))}" onclick="verify(this)" />
</div>
</td>
</tr>
<tr>
<td colspan="2" align="left">
<input type="button" onClick="checkSubmit();" value="提交" class="btn_midefy" id="btn_midefy">
</td>
</tr>
</tbody></table>
</dd>
</dl>
</form>
</div>
<div class="cash_num mt20">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>编号</th>
<th>申请日期</th>
<th>金额</th>
<th>状态</th>
</tr>
<foreach name="list" item="v" >
<tr>
<td>{$v['id']}</td>
<td>{$v['create_time']|date="Y-m-d",###}</td>
<td>{$v['money']}</td>
<td>
<if condition="$v[status] eq 0">申请中</if>
<if condition="$v[status] eq 1">申请成功</if>
<if condition="$v[status] eq 2">申请失败</if>
</td>
</tr>
</foreach>
</table>
</div>
{$show}
</div>
</div>
<div class="he80"></div>
<!--------footer-开始-------------->
<include file="public/footer2" />
<!--------footer-结束-------------->
</body>
<script>
// 表单验证提交
function checkSubmit(){
var money = $.trim($('#money').val());
var bank_name = $.trim($('#bank_name').val());
var account_bank = $.trim($('#account_bank').val());
var account_name = $.trim($('#account_name').val());
var verify_code = $.trim($('#verify_code').val());
if(money == '')
{
alert('提现金额必填');
return false;
}
if(money < {$tpshop_config['basic_min']} || money > {$user['user_money']})
{
//alert("每次最少提现额度{$tpshop_config['distribut_min']},你的账户余额{$user['user_money']}");
//return false;
}
if(bank_name == '')
{
alert('银行名称必填');
return false;
}
if(account_bank == '')
{
alert('收款账号必填');
return false;
}
if(account_name == '')
{
alert('开户名必填');
return false;
}
if(verify_code == '')
{
alert('验证码必填');
return false;
}
$('#distribut_form').submit();
}
// 验证码切换
function verify(){
$('#verify_code_img').attr('src','/index.php?m=Home&c=User&a=verify&type=withdrawals&r='+Math.random());
}
</script>
</html>