master
elf 2 years ago
parent 83ab98e43a
commit bcd29d1fab

@ -65,6 +65,9 @@
<a class="btn btn-primary btn-lg btn-enquiry" <?php echo WPCOM::url($enquiry_url);?>><?php echo $enquiry;?></a> <a class="btn btn-primary btn-lg btn-enquiry" <?php echo WPCOM::url($enquiry_url);?>><?php echo $enquiry;?></a>
<?php } elseif ($isImg && $enquiry) { ?> <?php } elseif ($isImg && $enquiry) { ?>
<a class="btn btn-primary btn-lg btn-enquiry btn-enquiry-img" href="javascript:;" data-url="<?php echo $enquiry_url;?>"> <a class="btn btn-primary btn-lg btn-enquiry btn-enquiry-img" href="javascript:;" data-url="<?php echo $enquiry_url;?>">
<div class="M-enquiry-url" style="display: none;">
<img src="<?php echo $enquiry_url;?>" alt="">
</div>
<?php echo $enquiry;?> <?php echo $enquiry;?>
</a> </a>
<?php } ?> <?php } ?>
@ -77,7 +80,7 @@ jQuery(function ($) {
type: 1, type: 1,
title: false, title: false,
area: ['auto'], //宽高 area: ['auto'], //宽高
content: '<img src="'+ $(this).data('url') + '" alt="">' content: $(this).children('.M-enquiry-url').html()
}); });
$(document).on('click', '.layui-layer-shade', function(){ $(document).on('click', '.layui-layer-shade', function(){
layer.close(index); layer.close(index);

Loading…
Cancel
Save