|
|
|
@ -105,8 +105,12 @@ |
|
|
|
computed: { |
|
|
|
total(){ |
|
|
|
return function(num, price){ |
|
|
|
let new_num = Number(num); |
|
|
|
if(Object.is(new_num, NaN)){ |
|
|
|
return 0; |
|
|
|
}; |
|
|
|
let big_price = new bigc(Number(price)); |
|
|
|
big_price = big_price.times(Number(num)); |
|
|
|
big_price = big_price.times(new_num); |
|
|
|
return big_price.round(2, 0).toString(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|