|
|
@@ -390,9 +390,7 @@ export default {
|
|
|
//点加号时增加花材补充userPrice字段 shish 20210728
|
|
|
list.forEach(function(product,index,array){
|
|
|
if(product.id == item.id){
|
|
|
- let ratio = product.ratio <= 0 ? 1 : product.ratio
|
|
|
- let smallUnitPrice = (product.price / ratio).toFixed(2)
|
|
|
- array[index].userPrice = ((product.bigCount*ratio + product.smallCount)*smallUnitPrice).toFixed(2)
|
|
|
+ array[index].userPrice = ((product.bigCount*Number(product.bigPrice) + product.smallCount*Number(product.smallPrice))).toFixed(2)
|
|
|
}
|
|
|
});
|
|
|
|