mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 01:54:48 +00:00
[bugfix] Coupon: show undefined without unitDesc @rex-zsd (#2991)
This commit is contained in:
@@ -39,7 +39,7 @@ export default sfc({
|
||||
faceAmount() {
|
||||
const { coupon } = this;
|
||||
if (coupon.valueDesc) {
|
||||
return `${coupon.valueDesc}<span>${coupon.unitDesc}</span>`;
|
||||
return `${coupon.valueDesc}<span>${coupon.unitDesc || ''}</span>`;
|
||||
}
|
||||
return coupon.denominations
|
||||
? `<span>${this.currency}</span> ${formatAmount(this.coupon.denominations)}`
|
||||
|
@@ -48,7 +48,10 @@
|
||||
font-size: 24px;
|
||||
|
||||
span {
|
||||
margin-left: 2px;
|
||||
&:not(:empty) {
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
font-size: 50%;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user