团队积分V2

This commit is contained in:
2026-08-14 15:32:55 +08:00
parent 1fb75676fc
commit c2971f828f
7 changed files with 859 additions and 834 deletions
@@ -900,7 +900,7 @@ const AppLayout: React.FC = () => {
const qrCode = order.qrUrl || order.codeUrl || order.qr_code || order.code_url;
const finalPrice = Number(order.amount ?? product.currentPrice ?? product.price ?? 0);
const credits = Number(product.grantCredits || product.monthlyGrantCredits || 0) * (product.productType === 'team_subscription' ? purchaseQuantity : 1);
const originalPrice = product.regularPrice ?? product.originalPrice;
const originalPrice = product.regularPrice;
const cycleMap: Record<string, string> = { monthly: '月套餐', quarterly: '季套餐', yearly: '年套餐' };
const isSubscription = !!product.billingCycle;
const periodLabel = product.billingCycle ? cycleMap[product.billingCycle] : '';