|
|
|
@ -104,7 +104,7 @@ $(function () {
|
|
|
|
|
$(window.coupons).each(function () {
|
|
|
|
|
price = this.handleDiscount(price, dataCache.price, dataCache.discounts, dataCache.coupons);
|
|
|
|
|
});
|
|
|
|
|
dataCache.customSurcharge = new Decimal(price).sub(realPrice).toFixed(2,Decimal.ROUND_HALF_UP);
|
|
|
|
|
dataCache.customSurcharge = new Decimal(price).sub(realPrice).toFixed(2, Decimal.ROUND_HALF_UP);
|
|
|
|
|
dataCache.finalPrice = new Decimal(price).toFixed(2, Decimal.ROUND_FLOOR);
|
|
|
|
|
var rate = 'CNY' == window.currency ? 1 : exchangeRate;
|
|
|
|
|
var cnyVal = Decimal.mul(price, rate).toFixed(2, Decimal.ROUND_HALF_UP);
|
|
|
|
@ -205,6 +205,7 @@ $(function () {
|
|
|
|
|
$('<p></p>').html('Input Price 输入金额:' + currencySymbol + dataCache.price).appendTo(bd);
|
|
|
|
|
if (parseFloat(dataCache.customSurcharge) > 0) {
|
|
|
|
|
$('<p></p>').html('Surcharge 手续费(' + window.rateValue + '%):+' + currencySymbol + dataCache.customSurcharge).appendTo(bd);
|
|
|
|
|
$('<p></p>').addClass('warning-sm').html('温馨提示:商户将向您收取本次消费手续费' + window.rateValue + '%').appendTo(bd);
|
|
|
|
|
}
|
|
|
|
|
$(dataCache.discounts).each(function () {
|
|
|
|
|
$('<p></p>').html(this.title + ':-' + currencySymbol + this.amount).appendTo(bd);
|
|
|
|
|