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.

87 lines
3.0 KiB
HTML

<extend name="Public/promote_base"/>
<block name="css">
<link href="__CSS__/20180207/account.css" rel="stylesheet" >
</block>
<block name="body">
<div class="page-list normal_list promote-add_chlid-form">
<div class="trunk-title">
<div class="location">
<div class="location-container">当前位置:<span>扶持管理></span><span>扶持申请></span><span>申请后续</span></div>
</div>
<img src="__IMG__/20180207/icon_chongzhi.png">
<span class="title_main">申请后续</span>
<span class="details">说明:申请后续</span>
</div>
<div class="trunk-content article">
<div class="trunk-list list_normal">
<form action="{:U('apply')}" novalidate="novalidate" method="post" class="base_info" id="form_reg">
<table class="table2">
<tr>
<td class="l">扶持数量:</td>
<td class="r">
<input type="text" class="name input-txt txt" name="support_num" id="support_num" placeholder="扶持数量" onkeyup = "value=value.replace(/[^\d]/g,'')">
<p id="account_tip"></p>
</td>
</tr>
<tr>
<td class="l">备注:</td>
<td class="r">
<input type="text" class="name txt" name="remarks" id="remarks" placeholder="备注">
<span id="password_tip"></span>
</td>
</tr>
<tr>
<td class="l"></td>
<td class="r">
<input type="hidden" name="id" value="{$_GET['id']}" id="support_id"></input>
<input type="button" class="tj btn ajax-post" onclick="check()" value="确认添加" title="" target-form="base_info">
<a class="back_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back();">返回</a>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
</block>
<block name="script">
<script type="text/javascript">
function check() {
var support_num = $('#support_num').val();
var remarks = $('#remarks').val();
var support_id = $('#support_id').val();
if(support_num == '' || support_num ==0){
layer.msg('扶持数量不能为空');
return false;
}
$.ajax({
type:"POST",
url:"{:U('batch_apply')}",
data:{support_num:support_num,
remarks:remarks,
support_id:support_id
},
dataType:"json",
success:function(res){
if(res.status == 1){
layer.msg(res.msg);
setTimeout(function(){
window.location.href="{:U('index')}";
},1000);
}else{
layer.msg(res.msg);
}
}
});
}
</script>
</block>