diff --git a/app/index/view/pc/product/detail.html b/app/index/view/pc/product/detail.html index 1a696642..fdabe10d 100644 --- a/app/index/view/pc/product/detail.html +++ b/app/index/view/pc/product/detail.html @@ -89,15 +89,17 @@ @@ -237,7 +239,7 @@ // 切换图册 $('.prcolors .dowebok a').click(function() { // 移除所有 .on 类 - $(this).addClass('on').siblings('a').removeClass('on'); + $(this).addClass('on').parent('li').siblings('li').find('a').removeClass('on'); // 获取当前点击的元素的 data-sku_id 值 var skuId = $(this).data('sku_id'); // 根据 skuId 显示对应的预览