adds alipay

This commit is contained in:
Zixin Zhou 2025-09-09 22:27:25 +08:00
parent f8b2ec2d4b
commit bd3d8ea33a

View File

@ -389,21 +389,21 @@ export function TopBar({ collapsed, isDesktop=true }: { collapsed: boolean, isDe
{/* Purchase Credits 按钮 */} {/* Purchase Credits 按钮 */}
<div className="flex flex-wrap gap-1 justify-center mb-1"> <div className="flex flex-wrap gap-1 justify-center mb-1">
<button <button
className="px-2 py-1 text-xs bg-blue-600 text-white rounded hover:bg-blue-700 transition-colors disabled:opacity-50" className="px-2 py-1 text-xs bg-gray-600 text-white rounded hover:bg-gray-700 transition-colors disabled:opacity-50"
onClick={() => handleBuyTokens(100)} onClick={() => handleBuyTokens(100)}
disabled={isBuyingTokens} disabled={isBuyingTokens}
> >
+100 ($1) +100 ($1)
</button> </button>
<button <button
className="px-2 py-1 text-xs bg-blue-600 text-white rounded hover:bg-blue-700 transition-colors disabled:opacity-50" className="px-2 py-1 text-xs bg-gray-600 text-white rounded hover:bg-gray-700 transition-colors disabled:opacity-50"
onClick={() => handleBuyTokens(500)} onClick={() => handleBuyTokens(500)}
disabled={isBuyingTokens} disabled={isBuyingTokens}
> >
+500 ($5) +500 ($5)
</button> </button>
<button <button
className="px-2 py-1 text-xs bg-blue-600 text-white rounded hover:bg-blue-700 transition-colors disabled:opacity-50" className="px-2 py-1 text-xs bg-gray-600 text-white rounded hover:bg-gray-700 transition-colors disabled:opacity-50"
onClick={() => handleBuyTokens(1000)} onClick={() => handleBuyTokens(1000)}
disabled={isBuyingTokens} disabled={isBuyingTokens}
> >
@ -423,7 +423,7 @@ export function TopBar({ collapsed, isDesktop=true }: { collapsed: boolean, isDe
disabled={isBuyingTokens} disabled={isBuyingTokens}
/> />
<button <button
className="px-2 py-1 text-xs bg-green-600 text-white rounded hover:bg-green-700 transition-colors disabled:opacity-50" className="px-2 py-1 text-xs bg-gray-600 text-white rounded hover:bg-gray-700 transition-colors disabled:opacity-50"
onClick={handleCustomAmountBuy} onClick={handleCustomAmountBuy}
disabled={isBuyingTokens || !customAmount || parseInt(customAmount) <= 0} disabled={isBuyingTokens || !customAmount || parseInt(customAmount) <= 0}
> >