Loading.jsx 868B

12345678910111213141516171819202122232425262728293031323334
  1. import { View } from '@tarojs/components'
  2. import Spin from '@/components/Spin'
  3. import logo from '@/assets/icons/comm/logo_small.png'
  4. import './style.less'
  5. export default (props) => {
  6. const { width = '64px', logoVisible } = props
  7. const height = width
  8. return (
  9. <view className='loading' style={{ width, height }}>
  10. <Spin size={width} />
  11. {
  12. logoVisible !== false &&
  13. (<image className='loading-logo' src={logo} style={{ width, height }} />)
  14. }
  15. <View
  16. style={{
  17. width: '30vw',
  18. color: '#4D4D4D',
  19. padding: '12px',
  20. position: 'absolute',
  21. left: '-5vh',
  22. textAlign: 'center',
  23. opacity: '0.8',
  24. animation: ' logo-opacity 2s linear infinite',
  25. fontSize: '4.3vw',
  26. }}
  27. >
  28. 收集人间美好
  29. </View>
  30. </view>
  31. )
  32. }