index.vue 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <script setup lang="ts">
  2. import left_top_logo from '@/static/image/shouye/lt_logo.png'
  3. import Rectangle from '@/static/image/shouye/Rectangle.png'
  4. const videoSrc = ref(
  5. 'https://test-cos-1308655658.cos.ap-shanghai.myqcloud.com/bright-intro-video.mp4',
  6. )
  7. function startFiling() {
  8. uni.navigateTo({ url: '/pages/start-filing/index' })
  9. }
  10. </script>
  11. <template>
  12. <view
  13. class="flex flex-col bg-[#F5F6F7] overflow-y-auto"
  14. >
  15. <view class="container">
  16. <video
  17. class="absolute top-0 left-0 w-screen h-screen"
  18. :src="videoSrc"
  19. autoplay
  20. loop
  21. object-fit="cover"
  22. muted
  23. :controls="false"
  24. />
  25. <view class="content absolute box-border top-0 left-0 w-full h-full p-[23px]">
  26. <image :src="left_top_logo" class="left-3 w-48 h-6" />
  27. <view
  28. class="content_text flex justify-between flex-col w-full h-full items-center "
  29. >
  30. <view
  31. class="flex justify-center flex-col text-[29px] w-full items-center mt-[100px]
  32. tracking-[5.45px] text-[#FFF] leading-[37px]"
  33. >
  34. <view>为你的爱宠建档</view>
  35. <view>制定专业喂养方案</view>
  36. <view class="mt-[15px] text-[12px] text-center font-normal tracking-[1.45px] leading-[16px]">
  37. 科学喂养专业有爱
  38. </view>
  39. </view>
  40. <view class="flex justify-center flex-col w-full items-center h-full mt-[200px] text-[#FFF]">
  41. <view
  42. class="content_botton flex w-[176px] h-[47px] justify-center
  43. items-center bg-[#4545E5] rounded-[69px]"
  44. >
  45. <button
  46. class=" text-[18px] font-normal
  47. tracking-[.36px] leading-[37px] shrink-0" hover-class="bg-[#4545E5]"
  48. @tap="startFiling"
  49. >
  50. 开始建档
  51. </button>
  52. </view>
  53. <view class="content_details tracking-[1.8px] mt-[40px] text-[12px] font-normal ">
  54. 下拉了解详情
  55. </view>
  56. <view class="content_img mt-[15px]">
  57. <image :src="Rectangle" class="w-[15px] h-[8.485px] shrink-0 stroke-[2px] fill-white stroke-white" />
  58. <image :src="Rectangle" class="w-[15px] h-[8.485px] shrink-0 stroke-[2px] fill-white stroke-white" />
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </template>
  66. <style lang="sass" scoped>
  67. .container
  68. position: relative
  69. width: 100%
  70. height: 650px
  71. overflow: hidden
  72. padding-top: calc(100% / (16 / 9))
  73. .video-player
  74. position: absolute
  75. top: 0
  76. left: 0
  77. width: 100%
  78. height: 100%
  79. controlslist: none
  80. aspect-ratio: 16 / 9
  81. object-fit: cover
  82. </style>