17 lines
376 B
TypeScript
17 lines
376 B
TypeScript
import { Text } from '@tarojs/components';
|
||
|
||
type CouponBadgeProps = {
|
||
amount: number | string;
|
||
label?: string;
|
||
};
|
||
|
||
/** Taro 友好版权益角标(对齐 shared-ui CouponBadge) */
|
||
export default function CouponBadge({ amount, label = '好客权益' }: CouponBadgeProps) {
|
||
return (
|
||
<Text className="coupon-badge">
|
||
¥{amount}
|
||
{label}
|
||
</Text>
|
||
);
|
||
}
|