|
|
|
@ -10,8 +10,12 @@ var num = function (obj) {
|
|
|
|
|
|
|
|
|
|
var surchargeData = calculateSurcharge(obj.value - 0);
|
|
|
|
|
var surchargeAmount = Decimal.add(surchargeData.surcharge, surchargeData.tax);
|
|
|
|
|
$('#surchargeAmount').html(surchargeAmount + '');
|
|
|
|
|
$('#totalAmount').html(surchargeData.newPrice + '');
|
|
|
|
|
var currency = '$';
|
|
|
|
|
if($('#select_currency').val()=='CNY'){
|
|
|
|
|
currency = '¥';
|
|
|
|
|
}
|
|
|
|
|
$('#surchargeAmount').html(currency+surchargeAmount+'');
|
|
|
|
|
$('#totalAmount').html(currency+surchargeData.newPrice+'');
|
|
|
|
|
if (surchargeAmount - 0 === 0 || !window.c4surcharge) {
|
|
|
|
|
$('.surcharge').hide();
|
|
|
|
|
} else {
|
|
|
|
|