From 7ddc66911e5b488f14b66431e29dd1aafc0d1816 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Wed, 11 Jun 2025 17:32:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20pc=E4=BA=A7=E5=93=81=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/view/pc/product/detail.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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 显示对应的预览