Merge branches 'dev' and 'dev' of https://github.com/youzan/vant into dev

This commit is contained in:
chenjiahan 2020-07-28 23:02:38 +08:00
commit 01d1f05e15
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ function formatValue(props: CouponCellProps) {
if (coupon) {
const value = coupon.value || coupon.denominations || 0;
return `-${currency}${(value / 100).toFixed(2)}`;
return `-${currency} ${(value / 100).toFixed(2)}`;
}
return coupons.length === 0 ? t('tips') : t('count', coupons.length);

View File

@ -49,7 +49,7 @@ exports[`render coupon cell 1`] = `
exports[`render coupon cell with coupon 1`] = `
<div role="button" tabindex="0" class="van-cell van-cell--clickable van-coupon-cell">
<div class="van-cell__title"><span>优惠券</span></div>
<div class="van-cell__value van-coupon-cell--selected"><span>-¥1.00</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<div class="van-cell__value van-coupon-cell--selected"><span>-¥ 1.00</span></div><i class="van-icon van-icon-arrow van-cell__right-icon">
<!----></i>
</div>
`;