公会统计

master
chenzhi 5 years ago
parent a7838bb552
commit eaa51463e5

@ -192,7 +192,7 @@
// console.log(str); // console.log(str);
$("#game_name").empty(); $("#game_name").empty();
$("#game_name").append(str); $("#game_name").append(str);
// $("#server_id").select2(); $("#game_name").select2();
} }
}) })

@ -105,7 +105,7 @@
<div class="input-list search_item input-list-gamenoticestatus"> <div class="input-list search_item input-list-gamenoticestatus">
<select name="promote_id" style="color:#444" class="select_gallery" id="promote_id"> <select name="promote_id" style="color:#444" class="select_gallery" id="promote_id">
<option value="">请选择会长</option> <option value="">请选择会长</option>
<option value="0" <?php if ($_POST['promote_id'] == 0):?>selected<?php endif;?>>官方渠道</option> <option value="0" <?php if ($_POST['promote_id'] == 0):?>selected<?php endif;?>>123</option>
<option value="UC" <?php if ($_POST['promote_id'] == 'UC'):?>selected<?php endif;?>>UC用户</option> <option value="UC" <?php if ($_POST['promote_id'] == 'UC'):?>selected<?php endif;?>>UC用户</option>
</select> </select>
</div> </div>
@ -443,9 +443,6 @@
dataType: 'json', dataType: 'json',
success: function (response) { success: function (response) {
str = '<option value="">请选择会长</option>'; str = '<option value="">请选择会长</option>';
if(company_id == 0 || company_id ==-1){
str +='<option value="0"' + (promote_id && 0 == promote_id ? 'selected' : '') + '>官方渠道</option>';
}
data = response.data; data = response.data;
for (var i in data) { for (var i in data) {
str += "<option value='" + data[i].id + "' " + (promote_id && data[i].id == promote_id ? 'selected' : '') + ">" + data[i].nickname + "</option>" str += "<option value='" + data[i].id + "' " + (promote_id && data[i].id == promote_id ? 'selected' : '') + ">" + data[i].nickname + "</option>"

Loading…
Cancel
Save