dlfinance.html
12.3 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_cjdianc/template/public/ygcsslist.css">
<style type="text/css">
.store_td1{height: 45px;}
.yg5_tabel{border-color: #e5e5e5;outline: 1px solid #e5e5e5;}
.yg5_tabel th{height: 45px;padding: 0 20px;font-weight: normal;}
.yg5_tr2>td{padding: 15px;border: 1px solid #e5e5e5;text-align: center;background-color: white;}
.yg5_tr1>td{
border: 1px solid #e5e5e5;
background-color: #FAFAFA;
font-weight: bold;
text-align: center;
}
.yghuise{background: #caad42;}
.input-group{margin-top: 20px;}
.reset_box{background: #fff;padding: 20px;overflow: hidden;margin-top: 20px}
.reset_tip{font-size: 14px;}
.reset_tip b{font-size: 26px;margin:0 5px 0 40px;color: #FFB025}
.reset_tip span{font-size: 16px;font-weight: normal;color: #FFB025}
.reset_tip a{color: #2589ff;background: #fff;border-color: #2589ff;margin-top: -15px;margin-left: 20px}
.reset_tip a:hover{color: #fff;background: #2589ff}
.reset_detail{margin-top: 20px}
.reset_detail ul li{margin-top: 10px}
.reset_detail ul li a{color: #2589ff}
.modal_tip{margin-top:10px;}
.modal_tip label{font-weight: normal;text-align: right;}
.modal_tip label i{color:#ff5050;}
.modal_tip input{border:1px solid #888;}
.tip_msg{color:#ff5050;font-weight: normal;margin-top: 5px}
</style>
<ul class="nav nav-tabs">
<span class="ygxian"></span>
<div class="ygdangq">当前位置:</div>
<li class="active"><a href="javascript:;">财务管理</a></li>
</ul>
<div class="ygrow reset">
<div class="reset_box">
<div class="reset_tip">可提现余额<b>{$ktxcost}</b><span>元</span><a href="javascript:;" class="btn btn-default reset_btn" data-toggle="modal" data-target="#myModal">申请提现</a></div>
<div class="reset_detail">
<ul>
<li class="col-md-4">未入账: {$wrz_money}</li>
<li class="col-md-4">提现中: {$shtxz}</li>
<li class="col-md-4">已提现: {$shytx}</li>
<!-- <li class="col-md-4"><a href="javascript:;">提现明细</a></li>
--> </ul>
</div>
</div>
</div>
<div class="row ygrow">
<div class="col-lg-12">
<form action="" method="get" class="col-md-4">
<input type="hidden" name="c" value="site" />
<input type="hidden" name="a" value="entry" />
<input type="hidden" name="m" value="zh_cjdianc" />
<input type="hidden" name="do" value="dlfinance" />
<div class="input-group" style="width: 100px">
{php echo tpl_form_field_daterange('time',$_GPC['time']);}
<span class="input-group-btn">
<input type="submit" class="btn btn-default" name="submit2" value="查找"/>
</span>
</div><!-- /input-group -->
<input type="hidden" name="token" value="{$_W['token']}"/>
</form>
</div><!-- /.col-lg-6 -->
</div>
<div class="main">
<div class="panel panel-default">
<div class="panel-body" style="padding: 0px 15px;">
<div class="row">
<table class="yg5_tabel col-md-12">
<tr class="yg5_tr1">
<th colspan="7">提现记录</th>
</tr>
<tr class="yg5_tr1">
<td class="store_td1 col-md-2">
<!-- <input type="checkbox" class="allcheck" />
<span class="store_inp">全选</span> -->
提现单号
</td>
<td class="col-md-1">申请时间</td>
<td class="col-md-1">商户实收</td>
<td class="col-md-1">提现金额</td>
<!-- <td class="col-md-1">收款人</td> -->
<td class="col-md-1">付款时间</td>
<td class="col-md-1">状态</td>
<!-- <td class="col-md-2">操作</td> -->
</tr>
{loop $list $key $item}
<tr class="yg5_tr2">
<td class="col-md-1 cainame{$item['id']}">
{$item['id']}
</td>
<td class="col-md-1"> {$item['time']}</td>
<td class="col-md-1 money{$item['id']}">
{$item['sj_cost']}
</td>
<td class="col-md-1 dn_money{$item['id']}">
{$item['tx_cost']}
<!--
</td>
<td class="col-md-1 box_money{$item['id']}">
</td> -->
<td class="col-md-1 num{$item['id']}">
{$item['sh_time']}
</td>
{if $item['state']==1}
<td >
<span class="label storered">待审核</span>
</td >
{elseif $item['state']==2}
<td >
<span class="label storeblue">已提现</span>
</td>
{elseif $item['state']==3}
<td >
<span class="label yghuise">已拒绝</span>
</td>
{/if}
<!-- <td >
{if $item['state']==1}
{if $item['user_id'] and $item['type']==2}
<a class="btn btn-info btn-xs" href="{php echo $this->createWebUrl('finance',array('id'=>$item['id'],'op'=>'adopt2'))}" >打款通过</a>
{/if}
<a class="btn ygyouhui2 btn-xs" href="{php echo $this->createWebUrl('finance',array('id'=>$item['id'],'op'=>'adopt'))}" >通过</a>
<a class="btn ygshouqian2 btn-xs" href="{php echo $this->createWebUrl('finance', array('id' => $item['id'],'op'=>'reject'))}" title="拒绝">拒绝</a>
{/if}
</td> -->
</tr>
{/loop}
{if empty($list)}
<tr class="yg5_tr2">
<td colspan="7">
暂无提现信息
</td>
</tr>
{/if}
</table>
</div>
</div>
</div>
</div>
<!-- 模态框(Modal) -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title" id="myModalLabel">
提现
</h4>
</div>
<form name="js_form" method="post" action="">
<div class="modal-body">
<div class="col-md-12 modal_tip">
<label for="" class="col-md-3">可提现金额</label>
<p class="col-md-6"><span class="tatal">{$ktxcost}</span>元</p>
</div>
<div class="form-group">
<label style="width: 25%;text-align: right;" class="col-xs-12 col-sm-3 col-md-2 control-label">提现方式 </label>
<div class="col-sm-9">
{if $system['is_yhk']==1}
<span class="radio-inline">
<input id="is_psxx2" type="radio" name="is_brand" value="2" checked />
<label for="is_psxx2">银行卡</label>
</span>
{/if}
{if $system['is_wx']==1}
<span class="radio-inline">
<input id="is_psxx1" type="radio" name="is_brand" value="1" checked />
<label for="is_psxx1">微信</label>
</span>
{/if}
<span class="help-block">*必须选择一种提现方式</span>
</div>
</div>
<div class="col-md-12 modal_tip">
<label for="" class="col-md-3">收款人<i>*</i></label>
<input type="text" class="col-md-6" name="name">
</div>
<div class="col-md-12 modal_tip">
<label for="" class="col-md-3">提现金额<i>*</i></label>
<input type="number" class="col-md-6 js_con" name="tx_cost">
</div>
<span class="help-block hide_0" style="margin-left:25%;">*选择银行卡以下必须填写</span>
<div class="col-md-12 modal_tip hide_0">
<label for="" class="col-md-3">手机号<i>*</i></label>
<input type="number" class="col-md-6" name="tel">
</div>
<div class="col-md-12 modal_tip hide_0">
<label for="" class="col-md-3">银行卡号<i>*</i></label>
<input type="number" class="col-md-6" name="yhk_num">
</div>
<div class="col-md-12 modal_tip hide_0">
<label for="" class="col-md-3">开户行信息<i>*</i></label>
<input type="text" class="col-md-6" name="yh_info">
</div>
<div class="col-md-12">
<label class="col-md-3"></label>
<strong class="tip_msg"></strong>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<input type="submit" value="确定" class="btn btn-primary js_submit" name="submit2">
<input type="hidden" name="token" value="{$_W['token']}"/>
<!-- <button type="button" class="btn btn-primary">
提交
</button> -->
</div>
</form>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<div class="text-right we7-margin-top">{$pager}</div>
<script type="text/javascript">
$(function(){
// $("#frame-2").addClass("in");
$("#frame-6").show();
$("#yframe-6").addClass("wyactive");
var rdoValue = $('.col-sm-9').find(':radio:checked').val();
if(rdoValue==null){
console.log('没有选中')
$(".help-block").html('请在设置中开启提现方式')
}
if(rdoValue==2){
$(".hide_0").show();
}else{
$(".hide_0").hide();
}
console.log('这是选中的input值'+rdoValue);
$(".radio-inline").click(function(){
var rdoValue = $('.col-sm-9').find(':radio:checked').val();
if(rdoValue==2){
$(".hide_0").show();
}else{
$(".hide_0").hide();
}
console.log('这是选中的input值'+rdoValue);
});
//表单验证
$(".js_submit").click(function(){
var num=$(".js_con").val();
var tatal=Number($(".tatal").html());
console.log(typeof(num))
console.log("提现金额"+tatal)
if(num==""){
$(".tip_msg").html("请输入提现金额!")
return false;
}else if(num>tatal){
$(".tip_msg").html("提现金额大于可提现金额!")
return false;
}
$(".tip_msg").html("")
})
})
</script>
{template 'common/footer'}