course.vue 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <section class="Course-container">
  3. <Xcx >
  4. <div class="tabs">
  5. <img src="http://res.training.luojigou.vip/FhHOYFM_rwtBGKZ9OCDgGs0PvGNw?imageView2/0/q/50|imageslim" alt="">
  6. <div class="tags-box">
  7. <div class="tabs-item" v-for="tab in tabsData" :key="tab.id">
  8. <img class="" :src="tab.imgUrl" alt="">
  9. <section>
  10. {{tab.label}}
  11. </section>
  12. </div>
  13. </div>
  14. </div>
  15. </Xcx>
  16. </section>
  17. </template>
  18. <script>
  19. import Xcx from '@/components/products/xcx.vue'
  20. const tabsData = Object.freeze([
  21. {
  22. id: 0,
  23. imgUrl: 'http://res.training.luojigou.vip/FnzQdBDxbMr-Ek5HlcWCQ_Dk12zn?imageView2/0/q/50|imageslim',
  24. label: '小程序课堂'
  25. },
  26. {
  27. id: 1,
  28. imgUrl: 'http://res.training.luojigou.vip/FuV6EjLrPYoiFII0iLYQlW51Bemq?imageView2/0/q/50|imageslim',
  29. label: '微信H5课堂'
  30. },
  31. {
  32. id: 2,
  33. imgUrl: 'http://res.training.luojigou.vip/FsVRp9Lk4Cyp5O_JNBe49kfz7vZh?imageView2/0/q/50|imageslim',
  34. label: 'PC端独立课堂'
  35. },
  36. {
  37. id: 3,
  38. imgUrl: 'http://res.training.luojigou.vip/FsGTOeaPqx7Ipow75LJYM8ETlKew?imageView2/0/q/50|imageslim',
  39. label: '家长端APP'
  40. },
  41. {
  42. id: 4,
  43. imgUrl: 'http://res.training.luojigou.vip/FgoA_S33kLvcoMktbN4ORQO9Kfc8?imageView2/0/q/50|imageslim',
  44. label: '教师端APP'
  45. },
  46. ])
  47. export default {
  48. name: 'CoursePage',
  49. components: {
  50. Xcx
  51. },
  52. data () {
  53. return {
  54. tabsData,
  55. }
  56. }
  57. }
  58. </script>
  59. <style scoped lang="scss">
  60. .Course-container {
  61. .tabs {
  62. display: flex;
  63. justify-content: center;
  64. position: relative;
  65. img {
  66. width: 1200px;
  67. height: 179px;
  68. }
  69. .tags-box {
  70. width: 1070px;
  71. position: absolute;
  72. top: 50%;
  73. left: 50%;
  74. transform: translate(-50%, -50%);
  75. display: flex;
  76. justify-content: space-between;
  77. align-items: center;
  78. .tabs-item {
  79. display: flex;
  80. flex-direction: column;
  81. justify-content: space-between;
  82. align-items: center;
  83. img {
  84. width: 50px;
  85. height: 50px;
  86. object-fit: fill;
  87. margin-bottom: 30px;
  88. }
  89. }
  90. }
  91. }
  92. }
  93. </style>