diff --git a/app/index/view/product/detail.html b/app/index/view/product/detail.html
index 1a826528..30d57490 100644
--- a/app/index/view/product/detail.html
+++ b/app/index/view/product/detail.html
@@ -304,8 +304,15 @@
}
});
/*图片放大效果*/
- $(".bigImg").click(function () {
- $(".enlarge-img").show();
+ $(".bigImg").click(function() {
+ // 判断容器内是否存在视频元素
+ if ($(this).find("video").length > 0) {
+ // 若存在视频,不执行任何操作
+ return;
+ } else if ($(this).find("img").length > 0) {
+ // 若存在图片,显示放大图片层
+ $(".enlarge-img").show();
+ }
});
$(".enlarge-img .close").click(function () {
$(".enlarge-img").hide();