// 所属顾问
$search.find(“.broker_id”).select2({
ajax: {
url: “<?php echo ymmAdminUrl(‘ajax/members’); ?>”,
dataType: ‘json’,
processResults: function (result) {
var data = $.map(result, function (obj) {
obj.id = obj.id || obj.pk;
obj.text = obj.text || obj.name;
return obj;
});
return {
results: data
};
},
},
<?php echo $broker_id>0?’data:[{“id”:”‘.$broker_id.'”, “text”:”‘.$broker_name.'”}]’:”; ?>
});
<?php if($broker_id>0) { ?>
$search.find(“.broker_id”).val(“<?php echo $broker_id; ?>”).trigger(“change”);
<?php } ?>

 

作者 admin

百度广告效果展示