feat: streamline paid intake conversion
All checks were successful
CI and Production Smoke / smoke (push) Successful in 8s
All checks were successful
CI and Production Smoke / smoke (push) Successful in 8s
This commit is contained in:
@@ -90,8 +90,8 @@ export default async function ProposePage({ searchParams }: { searchParams?: Sea
|
||||
const preferredPaymentMethod = stripePaymentAvailable ? "stripe" : "wallet";
|
||||
const quickPaymentLabel = stripePaymentAvailable
|
||||
? `${quickPackage.label} 立即刷卡付款`
|
||||
: `快速取得 ${quickPackage.label} USDC 付款指示`;
|
||||
const quickPaymentButton = stripePaymentAvailable ? "前往安全刷卡付款" : "直接進入錢包付款";
|
||||
: `${quickPackage.label} 直接啟動付費 review`;
|
||||
const quickPaymentButton = stripePaymentAvailable ? "前往安全刷卡付款" : "取得 Base USDC 付款 QR";
|
||||
|
||||
if (referralAgent) {
|
||||
const requestHeaders = await headers();
|
||||
@@ -195,9 +195,14 @@ export default async function ProposePage({ searchParams }: { searchParams?: Sea
|
||||
<p className="text-sm font-semibold text-emerald-50">{quickPaymentLabel}</p>
|
||||
<p className="mt-1 text-xs leading-5 text-emerald-100/80">
|
||||
{stripePaymentAvailable
|
||||
? "最短路徑:留下 email 後直接進入 Stripe checkout。"
|
||||
: "目前正式環境未啟用 Stripe,先使用 Base USDC wallet checkout。"}
|
||||
? "30 秒路徑:留下 email 後直接進入 Stripe checkout。"
|
||||
: "30 秒路徑:留下 email 後直接看到 Base USDC QR、錢包連結與 receipt 表單。"}
|
||||
</p>
|
||||
<div className="mt-3 flex flex-wrap gap-2 text-xs text-emerald-50/80">
|
||||
<span className="rounded-md border border-emerald-300/20 bg-zinc-950/60 px-2 py-1">不需先寫完整規格</span>
|
||||
<span className="rounded-md border border-emerald-300/20 bg-zinc-950/60 px-2 py-1">付款後再補 scope</span>
|
||||
<span className="rounded-md border border-emerald-300/20 bg-zinc-950/60 px-2 py-1">避免貼密碼或私鑰</span>
|
||||
</div>
|
||||
<label className="mt-3 grid gap-2 text-sm font-medium text-emerald-50">
|
||||
Email
|
||||
<input
|
||||
@@ -221,6 +226,11 @@ export default async function ProposePage({ searchParams }: { searchParams?: Sea
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<details open={hasPrefill} className="group">
|
||||
<summary className="mb-3 cursor-pointer rounded-md border border-zinc-800 bg-zinc-900/70 px-4 py-3 text-sm font-semibold text-sky-200 hover:border-sky-400">
|
||||
已經有完整需求,展開填寫詳細 proposal
|
||||
</summary>
|
||||
|
||||
<form action={createDemandProposal} className="rounded-lg border border-zinc-800 bg-zinc-900/80 p-5 shadow-2xl shadow-black/30 md:p-6">
|
||||
<input type="hidden" name="refAgent" value={referralAgent} />
|
||||
<input type="hidden" name="campaign" value={campaign} />
|
||||
@@ -393,6 +403,7 @@ export default async function ProposePage({ searchParams }: { searchParams?: Sea
|
||||
<ArrowRight className="h-4 w-4" />
|
||||
</button>
|
||||
</form>
|
||||
</details>
|
||||
</section>
|
||||
|
||||
<aside className="lg:sticky lg:top-24">
|
||||
|
||||
Reference in New Issue
Block a user