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