feat: 修改样式
This commit is contained in:
@@ -182,14 +182,17 @@ export default function Affiliate() {
|
||||
const MONTHLY_PRICE = proPlan?.unit_price;
|
||||
const discountItem = proPlan?.discount?.find((v) => v.quantity === 12);
|
||||
const YEARLY_PRICE = proPlan?.unit_price * ((discountItem?.discount || 100) / 100) * 12;
|
||||
|
||||
const {
|
||||
common: { invite },
|
||||
} = useGlobalStore();
|
||||
const [count, setCount] = useState<number>(10);
|
||||
const clamp = (n: number) => Math.max(0, Math.min(10000, Math.floor(n)));
|
||||
|
||||
const firstMonth = count * MONTHLY_PRICE * 0.5; // 50%
|
||||
const firstYear = count * YEARLY_PRICE * 0.3; // 30%
|
||||
const recurMonth = count * MONTHLY_PRICE * 0.2; // 20%
|
||||
const recurYear = count * YEARLY_PRICE * 0.2; // 20%
|
||||
const firstMonth = count * MONTHLY_PRICE * (invite.first_purchase_percentage / 100); // 50%
|
||||
const firstYear =
|
||||
count * YEARLY_PRICE * (invite.first_yearly_purchase_percentage / 100); // 30%
|
||||
const recurMonth = count * MONTHLY_PRICE * (invite.non_first_purchase_percentage / 100); // 20%
|
||||
const recurYear = count * YEARLY_PRICE * (invite.non_first_purchase_percentage / 100); // 20%
|
||||
|
||||
return (
|
||||
<div className='space-y-4'>
|
||||
|
||||
Reference in New Issue
Block a user