登录页面

This commit is contained in:
2026-07-12 15:17:54 +08:00
parent becf91da52
commit bfac6c6663
63 changed files with 4662 additions and 431 deletions
+47
View File
@@ -0,0 +1,47 @@
import { View, Text } from '@tarojs/components';
import Taro, { useRouter } from '@tarojs/taro';
import PageShell from '../../components/PageShell';
import SubPageHeader from '../../components/SubPageHeader';
import { toast } from '../../lib/api';
export default function PayPage() {
const router = useRouter();
const amount = router.params.amount ?? '0.00';
function mockPay() {
toast('支付成功(Mock', 'success');
setTimeout(() => {
Taro.redirectTo({ url: '/pages/orders/index?tab=paid' });
}, 800);
}
return (
<PageShell variant="sub" className="pay-page" hasFixedFooter>
<SubPageHeader title="收银台" />
<View className="sub-page-body">
<View className="pay-status">
<View className="pay-status-icon">
<Text>¥</Text>
</View>
<Text className="pay-status-title"></Text>
<Text className="pay-status-amount">¥{amount}</Text>
</View>
<View className="order-card">
<View className="order-row">
<Text className="order-row-label"></Text>
<Text className="order-row-value"></Text>
</View>
<View className="order-row">
<Text className="order-row-label"></Text>
<Text className="order-row-value"></Text>
</View>
</View>
</View>
<View className="pay-bar">
<View className="order-confirm-submit" style={{ flex: 1 }} onClick={mockPay}>
<Text></Text>
</View>
</View>
</PageShell>
);
}