|
|
|
@ -78,6 +78,21 @@
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="input-list search_item input-list-gamenoticestatus">
|
|
|
|
|
<select name="promote_level" style="color:#444" class="select_gallery" id="promote_level">
|
|
|
|
|
<option value="">请选择推广员等级</option>
|
|
|
|
|
<option value="1" <?php if ($_POST['promote_level'] == 1):?>selected<?php endif;?>>会长</option>
|
|
|
|
|
<option value="2" <?php if ($_POST['promote_level'] == 2):?>selected<?php endif;?>>部门长</option>
|
|
|
|
|
<option value="3" <?php if ($_POST['promote_level'] == 3):?>selected<?php endif;?>>组长</option>
|
|
|
|
|
<option value="4" <?php if ($_POST['promote_level'] == 4):?>selected<?php endif;?>>组员</option>
|
|
|
|
|
</select>
|
|
|
|
|
-
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list search_item input-list-gamenoticestatus">
|
|
|
|
|
<select name="promote_id" style="color:#444" class="select_gallery" id="promote_id">
|
|
|
|
|
<option value="">请选择推广员</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="" value="" class="sortBy">
|
|
|
|
|
<div class="input-list">
|
|
|
|
@ -328,6 +343,35 @@
|
|
|
|
|
that.siblings('.hiddenvalue').val(val);
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var promote_id = "{:I('promote_id')}";
|
|
|
|
|
$("#promote_level").change(function(){
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:"{:U('Ajax/getPromotersByLevelOther')}",
|
|
|
|
|
type:"get",
|
|
|
|
|
data:{level:$("#promote_level option:selected").val()},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
success:function(response){
|
|
|
|
|
str = '<option value="">请选择推广员</option>' +
|
|
|
|
|
// '<option value="0"'+(promote_id && 0 == promote_id?'selected':'')+'>官方渠道</option>' +
|
|
|
|
|
// '<option value="UC"'+(promote_id && 'UC' == promote_id?'selected':'')+'>UC渠道</option>' +
|
|
|
|
|
'';
|
|
|
|
|
// $.each(response.data, function(index, item){
|
|
|
|
|
// console.log(item.id);
|
|
|
|
|
// str += '<option value="'+item.id+' '+(promote_id && item.id == promote_id?'selected':'')+'">'+item.nickname+'</option>';
|
|
|
|
|
// });
|
|
|
|
|
data = response.data;
|
|
|
|
|
for (var i in data){
|
|
|
|
|
str += "<option value='"+data[i].id+"' "+(promote_id && data[i].id == promote_id?'selected':'')+">"+data[i].nickname+"</option>"
|
|
|
|
|
}
|
|
|
|
|
$("#promote_id").empty();
|
|
|
|
|
$("#promote_id").append(str);
|
|
|
|
|
$("#promote_id").select2();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
$("#promote_level").change();
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|