index.tsx 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. import { Image, Swiper, Button } from "@nutui/nutui-react-taro";
  2. import { Video, View } from "@tarojs/components";
  3. const GameIntro = () => {
  4. return (
  5. <View className="absolute w-[100%] h-[100vh] left-[0px] top-[0px] bg-[#606cd2] relative">
  6. <Swiper indicator>
  7. <Swiper.Item>
  8. <Video
  9. autoplay={true}
  10. loop={true}
  11. showFullscreenBtn={false}
  12. showPlayBtn={false}
  13. showCenterPlayBtn={false}
  14. enableProgressGesture={false}
  15. showMuteBtn={false}
  16. muted={true}
  17. showProgress={false}
  18. controls={false}
  19. poster="https://upload.yunfanyouxi.com/nbc/nativeMaterial/32/936a44ec19d63d6640b78cdba5be365a281de8.mp4"
  20. src="https://upload.yunfanyouxi.com/nbc/nativeMaterial/32/936a44ec19d63d6640b78cdba5be365a281de8.mp4"
  21. />
  22. </Swiper.Item>
  23. <Swiper.Item>
  24. <Image
  25. mode="scaleToFill"
  26. src="https://storage.360buyimg.com/jdc-article/NutUItaro34.jpg"
  27. />
  28. </Swiper.Item>
  29. </Swiper>
  30. <View className="w-[94%] p-[10px] mx-auto mt-[-10px] rounded-[5px] relative z-10 left-[0px] top-[0px] bg-[#fff]">
  31. <View className="flex items-center">
  32. <View className="w-[100px] h-[100px] rounded-[10px] overflow-hidden">
  33. <Image
  34. mode="scaleToFill"
  35. src="https://nie.res.netease.com/r/pic/20250724/10d06793-87aa-48c5-a51f-1bd9934f5705.png"
  36. />
  37. </View>
  38. <View className="ml-[10px] text-[16px] font-[800] text-[#333]">
  39. <View>美丽大冒险</View>
  40. <View className="text-[12px] text-[#999]">
  41. 美丽大冒险,是一款全名抑制游戏
  42. </View>
  43. </View>
  44. </View>
  45. <View className="flex items-center text-[12px] mt-[10px] flex-wrap">
  46. <View className="p-[4px] bg-[#e8ebff] text-[#333] rounded-[5px] mr-[10px] mb-[10px]">
  47. 万众期待
  48. </View>
  49. <View className="p-[4px] bg-[#f8f8f8] text-[#333] rounded-[5px] mr-[10px] mb-[10px]">
  50. 角色模拟
  51. </View>
  52. <View className="p-[4px] bg-[#f8f8f8] text-[#333] rounded-[5px] mr-[10px] mb-[10px]">
  53. 角色模拟
  54. </View>
  55. <View className="p-[4px] bg-[#f8f8f8] text-[#333] rounded-[5px] mr-[10px] mb-[10px]">
  56. 角色模拟
  57. </View>
  58. <View className="p-[4px] bg-[#f8f8f8] text-[#333] rounded-[5px] mr-[10px] mb-[10px]">
  59. 角色模拟
  60. </View>
  61. <View className="p-[4px] bg-[#f8f8f8] text-[#333] rounded-[5px] mr-[10px] mb-[10px]">
  62. 角色模拟
  63. </View>
  64. <View className="p-[4px] bg-[#f8f8f8] text-[#333] rounded-[5px] mr-[10px] mb-[10px]">
  65. 角色模拟
  66. </View>
  67. <View className="p-[4px] bg-[#f8f8f8] text-[#333] rounded-[5px] mr-[10px] mb-[10px]">
  68. 角色模拟
  69. </View>
  70. </View>
  71. <Button size="large" type="primary" block className="mt-[80px]">
  72. 下载游戏
  73. </Button>
  74. </View>
  75. </View>
  76. );
  77. };
  78. export default GameIntro;