推广平台->管理中心--更新

master
chenxiaojun 5 years ago
parent 662eb93763
commit b84134c68d

@ -15,35 +15,34 @@
<span class="title_main">{$promoteTypeName}管理</span> <span class="title_main">{$promoteTypeName}管理</span>
</div> </div>
<div class="trunk-content article"> <div class="trunk-content article">
<div class="trunk-search clearfix"> <div class="trunk-search clearfix jssearch">
<form action="{:U('Promote/children',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data"> <input type="hidden" name="promote_type" value="{:I('promote_type', 0)}">
<input type="hidden" name="promote_type" value="{:I('promote_type', 0)}"> <div class="form-group fl normal_space">
<div class="form-group fl normal_space"> <a href="{:U('Promote/addPromote', ['promote_type' => I('promote_type', 0)])}" class="submit btn" style="line-height: 25px"><i class="add_qudao"></i><span>添加{$promoteTypeName}</span></a>
<a href="{:U('Promote/addPromote', ['promote_type' => I('promote_type', 0)])}" class="submit btn" style="line-height: 25px"><i class="add_qudao"></i><span>添加{$promoteTypeName}</span></a> </div>
</div> <div class="form-group fr">
<div class="form-group fr"> <input type="submit" class="submit" id='submit' url="{:U('Promote/children','model='.$model['name'],false)}"
<input type="submit" class="submit normal_space" value="查询"> value="查询">
</div> </div>
<div class="form-group fr normal_space"> <div class="form-group fr normal_space">
<select name="status" class="reselect select_gallery" style="width: 220px;" > <select name="status" class="reselect select_gallery" style="width: 220px;" >
<option value="all">请选择状态</option> <option value="all">请选择状态</option>
<option value="1" <if condition="I('status') === '1'">selected</if>>启用</option> <option value="1" <if condition="I('status') === '1'">selected</if>>启用</option>
<option value="2" <if condition="I('status') === '2'">selected</if>>冻结中</option> <option value="2" <if condition="I('status') === '2'">selected</if>>冻结中</option>
</select> </select>
</div> </div>
<div class="form-group fr normal_space"> <div class="form-group fr normal_space">
<input type="text" name="real_name" class="txt normal_txt" id="uid" placeholder="请输入姓名" value="{:I('real_name')}"> <input type="text" name="real_name" class="txt normal_txt" id="uid" placeholder="请输入姓名" value="{:I('real_name')}">
</div> </div>
<div class="form-group fr normal_space"> <div class="form-group fr normal_space">
<input type="text" name="mobile" class="txt normal_txt" id="uid" placeholder="请输入手机号" value="{:I('mobile')}"> <input type="text" name="mobile" class="txt normal_txt" id="uid" placeholder="请输入手机号" value="{:I('mobile')}">
</div> </div>
<div class="form-group fr normal_space"> <div class="form-group fr normal_space">
<input type="text" name="idcard" class="txt normal_txt" id="uid" placeholder="请输入身份证" value="{:I('idcard')}"> <input type="text" name="idcard" class="txt normal_txt" id="uid" placeholder="请输入身份证" value="{:I('idcard')}">
</div> </div>
<div class="form-group fr normal_space"> <div class="form-group fr normal_space">
<input type="text" name="account" class="txt normal_txt" id="uid" placeholder="请输入帐号" value="{:I('account')}"> <input type="text" name="account" class="txt normal_txt" id="uid" placeholder="请输入帐号" value="{:I('account')}">
</div> </div>
</form>
</div> </div>
<div class="trunk-list list_normal"> <div class="trunk-list list_normal">
<table class="table normal_table"> <table class="table normal_table">
@ -236,6 +235,21 @@ $(function(){
level = 3 level = 3
} }
$('#submit').click(function () {
var url = $(this).attr('url');
console.log(url);
var query = $('.jssearch').find('input').serialize();
query += "&" + $('.jssearch').find('select').serialize();
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
query = query.replace(/^&/g, '');
if (url.indexOf('?') > 0) {
url += '&' + query;
} else {
url += '?' + query;
}
window.location.href = url;
});
getSubPromotes({level: level}, function(response) { getSubPromotes({level: level}, function(response) {
var options = '<option value="0">请选择推广账号</option>' var options = '<option value="0">请选择推广账号</option>'
for (var i in response.data.promotes) { for (var i in response.data.promotes) {

Loading…
Cancel
Save