index.jsx 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import {Popup, Button} from '@antmjs/vantui';
  2. import {Input, View} from '@tarojs/components';
  3. import classNames from 'classnames';
  4. export default function Login({visible, onClose}) {
  5. return (
  6. <Popup
  7. show={visible}
  8. position='bottom'
  9. closeable
  10. round
  11. className='px-4 py-5 !pb-10'
  12. onClose={onClose}
  13. >
  14. <View className='pt-9'>
  15. <Input
  16. className={classNames(
  17. 'border border-gray-300 border-solid rounded-lg',
  18. 'p-2 text-sm',
  19. )}
  20. placeholder='请输入用户名'
  21. />
  22. <Input
  23. className={classNames(
  24. 'border border-gray-300 border-solid rounded-lg',
  25. 'p-2 mt-4 text-sm',
  26. )}
  27. placeholder='请输入密码'
  28. password
  29. />
  30. <View className='mt-12'>
  31. <Button
  32. className='py-4 !border-none !text-base !h-12 !rounded-md'
  33. block
  34. color='#58C6EA'
  35. >
  36. 登录
  37. </Button>
  38. </View>
  39. </View>
  40. </Popup>
  41. );
  42. }