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

master
chenxiaojun 5 years ago
commit 76d8a88ea3

@ -15,14 +15,14 @@
<span class="title_main">{$promoteTypeName}管理</span>
</div>
<div class="trunk-content article">
<div class="trunk-search clearfix">
<form action="{:U('Promote/children',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data">
<div class="trunk-search clearfix jssearch">
<input type="hidden" name="promote_type" value="{:I('promote_type', 0)}">
<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>
</div>
<div class="form-group fr">
<input type="submit" class="submit normal_space" value="查询">
<input type="submit" class="submit" id='submit' url="{:U('Promote/children','model='.$model['name'],false)}"
value="查询">
</div>
<div class="form-group fr normal_space">
<select name="status" class="reselect select_gallery" style="width: 220px;" >
@ -43,7 +43,6 @@
<div class="form-group fr normal_space">
<input type="text" name="account" class="txt normal_txt" id="uid" placeholder="请输入帐号" value="{:I('account')}">
</div>
</form>
</div>
<div class="trunk-list list_normal">
<table class="table normal_table">
@ -236,6 +235,21 @@ $(function(){
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) {
var options = '<option value="0">请选择推广账号</option>'
for (var i in response.data.promotes) {

Loading…
Cancel
Save