mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 12:18:43 +08:00 
			
		
		
		
	@@ -16,6 +16,7 @@ export interface CombinationActivityVO {
 | 
				
			|||||||
  virtualGroup?: number
 | 
					  virtualGroup?: number
 | 
				
			||||||
  status?: number
 | 
					  status?: number
 | 
				
			||||||
  limitDuration?: number
 | 
					  limitDuration?: number
 | 
				
			||||||
 | 
					  combinationPrice?: number
 | 
				
			||||||
  products: CombinationProductVO[]
 | 
					  products: CombinationProductVO[]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -152,13 +152,12 @@ watch(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        // 更新 SPU 的最低价格
 | 
					        // 更新 SPU 的最低价格
 | 
				
			||||||
        combinationActivityList.value.forEach((activity) => {
 | 
					        combinationActivityList.value.forEach((activity) => {
 | 
				
			||||||
          activity.products.forEach((product) => {
 | 
					          // 匹配spuId
 | 
				
			||||||
            const spu = spuList.value.find((spu) => spu.id === product.spuId)
 | 
					          const spu = spuList.value.find((spu) => spu.id === activity.spuId)
 | 
				
			||||||
            if (spu) {
 | 
					          if (spu) {
 | 
				
			||||||
              // 哪个最便宜就赋值哪个
 | 
					            // 赋值活动价格,哪个最便宜就赋值哪个
 | 
				
			||||||
              spu.price = Math.min(product.combinationPrice || Infinity, spu.price || Infinity)
 | 
					            spu.price = Math.min(activity.combinationPrice || Infinity, spu.price || Infinity)
 | 
				
			||||||
            }
 | 
					          }
 | 
				
			||||||
          })
 | 
					 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    } catch (error) {
 | 
					    } catch (error) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user