登录页面

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
@@ -0,0 +1,49 @@
import { View, Text } from '@tarojs/components';
type RegionPickerProps = {
open: boolean;
valueLabel?: string;
onClose: () => void;
onConfirm?: (label: string) => void;
};
/**
* 区域选择弹层占位(门店/地址后续可接真实级联数据)。
* 当前提供「郑州市」确认交互,避免阻断主流程。
*/
export default function RegionPicker({
open,
valueLabel = '郑州市',
onClose,
onConfirm,
}: RegionPickerProps) {
if (!open) return null;
return (
<View className="region-picker-mask" onClick={onClose}>
<View className="region-picker-sheet" onClick={(e) => e.stopPropagation()}>
<View className="region-picker-head">
<Text className="region-picker-cancel" onClick={onClose}>
</Text>
<Text className="region-picker-title"></Text>
<Text
className="region-picker-ok"
onClick={() => {
onConfirm?.(valueLabel);
onClose();
}}
>
</Text>
</View>
<View className="region-picker-body">
<Text className="region-picker-item region-picker-item--active">{valueLabel}</Text>
<Text className="u-muted" style={{ display: 'block', marginTop: 12, textAlign: 'center' }}>
</Text>
</View>
</View>
</View>
);
}