diff --git a/src/app.css b/src/app.css index 1ee8fce..885903b 100644 --- a/src/app.css +++ b/src/app.css @@ -26,7 +26,7 @@ html, body { .app-content { flex: 1; - overflow: hidden; + overflow-y: auto; padding-bottom: 60px; /* 为底部导航留出空间 */ } diff --git a/src/pages/friends-photo/index.css b/src/pages/friends-photo/index.css index 3585c63..67edfbb 100644 --- a/src/pages/friends-photo/index.css +++ b/src/pages/friends-photo/index.css @@ -52,28 +52,14 @@ } .submit-button.disabled { - background-color: #ccc; cursor: not-allowed; border: none; outline: none; } -/* 加载动画 */ -.loading-spinner { - width: 16px; - height: 16px; - border: 2px solid rgb(255 255 255 / 30%); - border-top: 2px solid white; - border-radius: 50%; - animation: spin 1s linear infinite; -} - -@keyframes spin { - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } +.loading-container { + display: flex; + align-items: center; + justify-content: center; + gap: 8px; } diff --git a/src/pages/friends-photo/index.tsx b/src/pages/friends-photo/index.tsx index 9a1f92f..ad19f3c 100644 --- a/src/pages/friends-photo/index.tsx +++ b/src/pages/friends-photo/index.tsx @@ -8,7 +8,6 @@ import { i18nManager } from '../../i18n/manager'; // 导入组件 import UploadCard from './components/UploadCard'; - import './index.css'; export default function FriendsPhoto() { @@ -56,19 +55,17 @@ export default function FriendsPhoto() { try { // 将两个图片URL用逗号分隔 const { hostname, protocol, port } = window.location; - let baseUrl = `${protocol}//${hostname}` + let baseUrl = `${protocol}//${hostname}`; if (hostname === 'localhost') { - baseUrl = `${protocol}//${hostname}:${port}` + baseUrl = `${protocol}//${hostname}:${port}`; } - const cbUrl = `${baseUrl}/result` + const cbUrl = `${baseUrl}/result`; const checkout = await serverSdk.createCheckoutSession({ templateCode: templateCode, metadata: { cb_url: cbUrl, - imageUrls: [ - image1, image2 - ] - } + imageUrls: [image1, image2], + }, }); if (checkout && checkout.url) { window.location.href = checkout.url; @@ -100,8 +97,7 @@ export default function FriendsPhoto() { > {loading ? ( <> -
-