master
elf 2 years ago
parent 5caac5fc6f
commit 929d0e0fa1

@ -70,12 +70,14 @@
<?php } ?> <?php } ?>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
$('.btn-enquiry-img').on('click', function() { jQuery(function ($) {
layer.open({ $('.btn-enquiry-img').on('click', function() {
type: 1, layer.open({
skin: 'layui-layer-rim', //加上边框 type: 1,
area: ['420px', '240px'], //宽高 skin: 'layui-layer-rim', //加上边框
content: '<img src="'+ $(this).data('url') + '" alt="">' area: ['420px', '240px'], //宽高
}); content: '<img src="'+ $(this).data('url') + '" alt="">'
}) });
})
});
</script> </script>
Loading…
Cancel
Save