|
@@ -62,6 +62,8 @@ export default {
|
|
|
if (itemInfo && !this.$util.isEmpty(itemInfo.bigPrice) && !this.$util.isEmpty(itemInfo.smallPrice)) {
|
|
if (itemInfo && !this.$util.isEmpty(itemInfo.bigPrice) && !this.$util.isEmpty(itemInfo.smallPrice)) {
|
|
|
if(item.userPrice>0){
|
|
if(item.userPrice>0){
|
|
|
price += Number(item.bigCount) * Number(itemInfo.userPrice);
|
|
price += Number(item.bigCount) * Number(itemInfo.userPrice);
|
|
|
|
|
+ let currentSmallPrice = (itemInfo.userPrice/itemInfo.ratio).toFixed(2)
|
|
|
|
|
+ price += Number(item.smallCount)*Number(currentSmallPrice)
|
|
|
}else{
|
|
}else{
|
|
|
price += item.bigCount * Number(itemInfo.bigPrice);
|
|
price += item.bigCount * Number(itemInfo.bigPrice);
|
|
|
price += item.smallCount * Number(itemInfo.smallPrice);
|
|
price += item.smallCount * Number(itemInfo.smallPrice);
|