master
elf 2 years ago
parent 32f687accb
commit c1245ca611

@ -73,12 +73,15 @@
<script type="text/javascript">
jQuery(function ($) {
$('.btn-enquiry-img').on('click', function() {
layer.open({
var index = layer.open({
type: 1,
title: false,
area: ['auto'], //宽高
content: '<img src="'+ $(this).data('url') + '" alt="">'
});
$(document).on('click', '.layui-layer-shade', function(){
layer.close(index);
});
})
});
</script>
Loading…
Cancel
Save