App.vue 740 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <script>
  2. import { getStatusBar } from '@/utils/index';
  3. export default {
  4. onLaunch: function() {
  5. console.log('App Launch')
  6. getStatusBar();
  7. },
  8. onShow: function() {
  9. console.log('App Show')
  10. },
  11. onHide: function() {
  12. console.log('App Hide')
  13. }
  14. }
  15. </script>
  16. <style>
  17. .skeleton-line{
  18. background: linear-gradient(90deg, #f1f2f4 25%, #e6e6e6 37%, #f1f2f4 50%);
  19. background-size: 400% 100%;
  20. border-radius: 3px;
  21. height: 30upx;
  22. width: 100%;
  23. margin-top: 20upx;
  24. }
  25. .skeleton-line.short{
  26. width: 60%;
  27. }
  28. .skeleton-line.max{
  29. height: 80upx;
  30. }
  31. .animate {
  32. animation: skeleton 1.8s ease infinite
  33. }
  34. @keyframes skeleton {
  35. 0% {
  36. background-position: 100% 50%
  37. }
  38. 100% {
  39. background-position: 0 50%
  40. }
  41. }
  42. </style>