layui.extend({
    common    :   'js/common'
}).use(['jquery','form','common','laydate','layer','util'],function(){
    var $ = layui.jquery;
    var pageData = {
        taskId      :   $('#l_task_id').val(),
        pushType    :   $('#i_push_type').val()
    };
    //  获取发布范围
    $.ajax({
        url     :   '/device/time/strategy/task/getPushRange/' + pageData.taskId + '/' + pageData.pushType,
        success :   function (result) {
            result.list.forEach(function (item) {
                $('#push_region').append('<span>' + item + '</span>');
            });
        }
    });
});