layui.extend({
    common    :   'js/common',
}).use(['jquery','common'], function () {
    var $ = layui.jquery;
    //  引入表单插件
    var form = layui.form;
    var common = layui.common;
    //  弹窗插件
    var layer = layui.layer;

    //图片查询
    $(document).on("click",".img-select",function (elem) {
        var t = $(this).find("img");
        //页面层
        layer.open({
            title:"图片",
            type: 1,
            area: ['80%', '80%'], //宽高
            shadeClose: true, //开启遮罩关闭
            end: function (index, layero) {
                return false;
            },
            content: '<div style="text-align:center"><img src="' + $(t).attr('src') + '" /></div>'
        });
    });
});


