diff --git a/src/main/ui/static/templates/alipay/v1/payment.js b/src/main/ui/static/templates/alipay/v1/payment.js index 9c78ea26e..f9597c703 100644 --- a/src/main/ui/static/templates/alipay/v1/payment.js +++ b/src/main/ui/static/templates/alipay/v1/payment.js @@ -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 () { $('
').html('Input Price 输入金额:' + currencySymbol + dataCache.price).appendTo(bd); if (parseFloat(dataCache.customSurcharge) > 0) { $('').html('Surcharge 手续费(' + window.rateValue + '%):+' + currencySymbol + dataCache.customSurcharge).appendTo(bd); + $('').addClass('warning-sm').html('温馨提示:商户将向您收取本次消费手续费' + window.rateValue + '%').appendTo(bd); } $(dataCache.discounts).each(function () { $('').html(this.title + ':-' + currencySymbol + this.amount).appendTo(bd); diff --git a/src/main/ui/static/templates/payment/payment.css b/src/main/ui/static/templates/payment/payment.css index 9d13e26d0..ad4a54769 100644 --- a/src/main/ui/static/templates/payment/payment.css +++ b/src/main/ui/static/templates/payment/payment.css @@ -12,7 +12,12 @@ body { div, span, p, ul, li { box-sizing: border-box; } - +.warning-sm{ + color:red; + font-size:10px; + transform-origin: left; + transform: scale(0.8); +} .ff.key { position: relative; } diff --git a/src/main/ui/static/templates/payment/v1/payment.css b/src/main/ui/static/templates/payment/v1/payment.css index 73c482eed..cfd6a7e78 100644 --- a/src/main/ui/static/templates/payment/v1/payment.css +++ b/src/main/ui/static/templates/payment/v1/payment.css @@ -13,7 +13,12 @@ body { div, span, p, ul, li { box-sizing: border-box; } - +.warning-sm{ + color:red; + font-size:10px; + transform-origin: left; + transform: scale(0.8); +} .weui_grid { padding: 7px; height: 53px; diff --git a/src/main/ui/static/templates/payment/v2/payment.css b/src/main/ui/static/templates/payment/v2/payment.css index 9564c3027..96b4cd7d4 100644 --- a/src/main/ui/static/templates/payment/v2/payment.css +++ b/src/main/ui/static/templates/payment/v2/payment.css @@ -13,7 +13,12 @@ body { div, span, p, ul, li { box-sizing: border-box; } - +.warning-sm{ + color:red; + font-size:10px; + transform-origin: left; + transform: scale(0.8); +} .ff.key { position: relative; }