discover.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <div class="page-discover">
  3. <div class="dis-box box-game">
  4. <h2 class="box-hd">热门游戏</h2>
  5. <div class="box-bd">
  6. <hot-game :hotGame="hotGameList"></hot-game>
  7. </div>
  8. </div>
  9. <div class="dis-box box-group">
  10. <h2 class="box-hd">热门群组推荐</h2>
  11. <div class="box-bd">
  12. <hot-group></hot-group>
  13. </div>
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. import hotGame from '@/components/hotGame/hotGame'
  19. import hotGroup from '@/components/hotGroup/hotGroup'
  20. export default {
  21. name: 'searchH5',
  22. components: {
  23. hotGame,
  24. hotGroup
  25. },
  26. data () {
  27. return {
  28. hotGameList: []
  29. }
  30. },
  31. computed: {},
  32. methods: {
  33. },
  34. created () {
  35. this.$store.dispatch('getDiscovery')
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .dis-box {
  41. background: #fff;
  42. overflow: hidden;
  43. margin-bottom: px2rem(21);
  44. border-bottom: 1px solid #d8d8d8;
  45. &.box-game{
  46. .box-bd{
  47. padding-top: px2rem(24);
  48. }
  49. }
  50. }
  51. .box-hd {
  52. color: #333;
  53. font-size: px2rem(33);
  54. text-align: center;
  55. line-height: px2rem(87);
  56. border-bottom: 1px solid #eeeeee;
  57. }
  58. </style>