feat(coupon): 添加优惠券领取中心功能

- 新增优惠券领取中心页面,包含热门优惠券轮播、优惠券列表、筛选功能等
- 实现优惠券数据加载、搜索、下拉刷新、加载更多等功能
- 添加优惠券领取逻辑,支持用户领取优惠券
- 优化邀请小程序码生成和分享功能
-调整首页和用户订单组件的样式
This commit is contained in:
2025-08-22 11:46:12 +08:00
parent 40e282cf8f
commit 46761bdacd
14 changed files with 695 additions and 162 deletions

View File

@@ -31,7 +31,7 @@ const PaymentCountdown: React.FC<PaymentCountdownProps> = ({
createTime,
payStatus = false,
realTime = false,
timeoutHours = 24,
timeoutHours = 1,
showSeconds = false,
className = '',
onExpired,
@@ -47,17 +47,10 @@ const PaymentCountdown: React.FC<PaymentCountdownProps> = ({
// 如果已过期,触发回调并显示过期状态
if (timeLeft.isExpired) {
onExpired?.();
if (mode === 'text') {
return (
<Text className={`payment-countdown-text expired ${className}`}>
</Text>
);
}
return (
<View className={`payment-countdown-badge expired ${className}`}>
<Text className="countdown-text"></Text>
</View>
<Text className={`payment-countdown-text expired ${className}`}>
</Text>
);
}