fix(SkuSelector): 修正价格显示逻辑避免价格错误

- 调整fakeSku中price字段优先使用product.price,确保价格正确显示
- 修改currentPrice计算顺序,使price优先于salePrice,符合实际售价需求
- 统一价格逻辑,避免SKU弹窗和商品详情页价格不一致问题
- 添加注释说明ShopGoods和ShopGoodsSku中price与salePrice的区别及优先级规则
This commit is contained in:
2026-06-27 01:08:04 +08:00
parent 9f1c50b7a4
commit cdab04de21
6 changed files with 32 additions and 83 deletions

View File

@@ -14,7 +14,7 @@ definePageConfig({
// 支付方式映射
const PAY_TYPE_MAP: Record<number, string> = {
0: '余额支付',
0: '货到付款',
1: '微信支付',
2: '会员卡支付',
3: '支付宝',