HomeTop.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <div class="home_top">
  3. <!-- 顶部导航 -->
  4. <TopNav />
  5. <!-- 精品游戏榜 -->
  6. <HomeGames title="精品游戏榜" :gameList="$CONFIG.gameInfoJP" />
  7. <!-- H5游戏榜 -->
  8. <HomeGames title="H5游戏榜" :gameList="$CONFIG.gameInfoH5" />
  9. </div>
  10. </template>
  11. <script>
  12. // 顶部导航
  13. import TopNav from "@/components/TopNav/TopNav";
  14. // 游戏列表
  15. import HomeGames from "@/views/Home/HomeGames/HomeGames";
  16. export default {
  17. name: "HomeTop",
  18. components: {
  19. TopNav,
  20. HomeGames,
  21. },
  22. data() {
  23. return {};
  24. },
  25. computed: {},
  26. watch: {},
  27. created() {},
  28. mounted() {},
  29. methods: {},
  30. };
  31. </script>
  32. <style lang='less' scoped>
  33. .home_top {
  34. }
  35. // 正常横屏样式
  36. @media all and (orientation: landscape),
  37. /** 伪竖屏*/all and (orientation: portrait) and (min-width: 600px) and (min-height: 800px) {
  38. // 横屏最大高度
  39. // height: 260 / @rem;
  40. // overflow-y: auto;
  41. .home_top {
  42. font-size: 16 / @rem;
  43. }
  44. }
  45. // ipad 横屏
  46. @media /** 伪竖屏*/all and (orientation: portrait) and (min-width: 600px) and (min-height: 800px),
  47. /**ipad伪横屏 */ all and (orientation: landscape) and (min-width: 800px) and (min-height: 600px),
  48. all and (min-device-aspect-ratio: 3/4) and (max-device-aspect-ratio: 4/3),
  49. all and (device-aspect-ratio: 4/3) {
  50. }
  51. </style>