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