Files
dukang/apps/mini-user/src/components/CouponBadge.tsx
T
2026-07-12 14:45:57 +08:00

17 lines
376 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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>
);
}