indexLh.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="content">
  3. <view id="firstScreenPage">
  4. <view class="loader-inner ball-beat">
  5. <view></view> <view></view> <view></view>
  6. </view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. data() {
  13. return {
  14. title: 'Hello'
  15. }
  16. },
  17. onLoad() {
  18. if(navigator.userAgent.indexOf('UCBrowser') > -1) {
  19. uni.navigateTo({
  20. url:'../mobileLh/index'
  21. })
  22. }
  23. if (navigator.userAgent.indexOf('Mobile') === -1) {
  24. console.log("PC")
  25. uni.navigateTo({
  26. url:'../pcLh/indexNew'
  27. })
  28. } else{
  29. console.log("移动端")
  30. uni.navigateTo({
  31. url:'../mobileLh/index'
  32. })
  33. }
  34. },
  35. methods: {
  36. }
  37. }
  38. </script>
  39. <style>
  40. #firstScreenPage { top:50%; left:50%; position: absolute; -webkit-transform: translateY(-50%) translateX(-50%); transform: translateY(-50%) translateX(-50%); z-index:100; }
  41. @-webkit-keyframes ball-beat { 50% { opacity: 0.2; -webkit-transform: scale(0.75); transform: scale(0.75); } 100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } }
  42. @keyframes ball-beat { 50% { opacity: 0.2; -webkit-transform: scale(0.75); transform: scale(0.75); } 100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); } }
  43. .ball-beat > view { background-color: #279fcf; width: 15px; height: 15px; border-radius: 100% !important; margin: 2px; -webkit-animation-fill-mode: both; animation-fill-mode: both; display: inline-block; -webkit-animation: ball-beat 0.7s 0s infinite linear; animation: ball-beat 0.7s 0s infinite linear; }
  44. .ball-beat > view:nth-child(2n-1) { -webkit-animation-delay: 0.35s !important; animation-delay: 0.35s !important; }
  45. </style>