From 4e7769ebeeae622c1347f926bd67db5ab3c6297b Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Mon, 17 Aug 2020 20:23:15 +0800 Subject: [PATCH] fix(Coupon): failed to render face amount --- src/coupon/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/coupon/index.js b/src/coupon/index.js index 4152f6b5c..d57e5ecca 100644 --- a/src/coupon/index.js +++ b/src/coupon/index.js @@ -43,12 +43,12 @@ export default createComponent({ const { coupon } = this; if (coupon.valueDesc) { - return `${coupon.valueDesc}${coupon.unitDesc || ''}`; + return [coupon.valueDesc, {coupon.unitDesc || ''}]; } if (coupon.denominations) { const denominations = formatAmount(coupon.denominations); - return `${this.currency} ${denominations}`; + return [{this.currency}, ` ${denominations}`]; } if (coupon.discount) { @@ -72,7 +72,7 @@ export default createComponent({
-

+

{this.faceAmount}

{this.coupon.condition || this.conditionMessage}