|
|
@@ -1,6 +1,6 @@
|
|
|
import {Popup, Button} from '@antmjs/vantui';
|
|
|
-import {Input, View} from '@tarojs/components';
|
|
|
-import classNames from 'classnames';
|
|
|
+import {View} from '@tarojs/components';
|
|
|
+import Field from './field';
|
|
|
|
|
|
export default function Login({visible, onClose}) {
|
|
|
return (
|
|
|
@@ -9,31 +9,20 @@ export default function Login({visible, onClose}) {
|
|
|
position='bottom'
|
|
|
closeable
|
|
|
round
|
|
|
- className='px-4 py-5 !pb-10'
|
|
|
+ className='px-4 py-5'
|
|
|
onClose={onClose}
|
|
|
+ style={{height: '60vh'}}
|
|
|
>
|
|
|
- <View className='pt-9'>
|
|
|
- <Input
|
|
|
- className={classNames(
|
|
|
- 'border border-gray-300 border-solid rounded-lg',
|
|
|
- 'p-2 text-sm',
|
|
|
- )}
|
|
|
- placeholder='请输入用户名'
|
|
|
- />
|
|
|
+ <View className='pt-9 pb-5 flex flex-col h-full'>
|
|
|
+ <Field label='用户名' />
|
|
|
+ <Field label='密码' />
|
|
|
|
|
|
- <Input
|
|
|
- className={classNames(
|
|
|
- 'border border-gray-300 border-solid rounded-lg',
|
|
|
- 'p-2 mt-4 text-sm',
|
|
|
- )}
|
|
|
- placeholder='请输入密码'
|
|
|
- password
|
|
|
- />
|
|
|
- <View className='mt-12'>
|
|
|
+ <View className='mt-auto'>
|
|
|
<Button
|
|
|
- className='py-4 !border-none !text-base !h-12 !rounded-md'
|
|
|
+ className='py-4 !border-none !text-base !h-12 '
|
|
|
block
|
|
|
color='#58C6EA'
|
|
|
+ round
|
|
|
>
|
|
|
登录
|
|
|
</Button>
|