course.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <template>
  2. <view>
  3. <view class="head">
  4. <u-search placeholder="搜索课程" :show-action="false" height="80"></u-search>
  5. </view>
  6. <view class="main">
  7. <u-swiper :list="list"></u-swiper>
  8. <view class="content">
  9. <view class="classify">
  10. <view class="item ">
  11. 推荐
  12. </view>
  13. <view class="item chosen">
  14. 体育
  15. </view>
  16. <view class="item ">
  17. 声乐
  18. </view>
  19. <view class="item">
  20. 器乐
  21. </view>
  22. <view class="item">
  23. 书画
  24. </view>
  25. <view class="item">
  26. 舞蹈
  27. </view>
  28. <view class="item ">
  29. 智力
  30. </view>
  31. <view class="item">
  32. 茶艺
  33. </view>
  34. </view>
  35. <view class="details">
  36. <view class="title">
  37. 系列全部课程
  38. </view>
  39. <view class="details-box">
  40. <view class="item">
  41. 跆拳道
  42. </view>
  43. <view class="item">
  44. 围棋
  45. </view>
  46. <view class="item">
  47. 象棋
  48. </view>
  49. <view class="item">
  50. 乒乓球
  51. </view>
  52. <view class="item">
  53. 篮球
  54. </view>
  55. <view class="item">
  56. 足球
  57. </view>
  58. <view class="item">
  59. 花式跳绳
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <ParentsTabbar :current="1" ref="tabbarMain"></ParentsTabbar>
  66. </view>
  67. </template>
  68. <script>
  69. import ParentsTabbar from '@/components/ParentsTabbar.vue'
  70. export default {
  71. components:{
  72. ParentsTabbar
  73. },
  74. data() {
  75. return {
  76. list: [{
  77. image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
  78. }, ],
  79. }
  80. },
  81. methods: {
  82. }
  83. }
  84. </script>
  85. <style lang="scss" scoped>
  86. .head{
  87. padding: 20px 16px 40px 16px;
  88. background-color: rgba(13, 186, 199, 1);
  89. }
  90. .main{
  91. background-color: rgba(244, 246, 246, 1);
  92. border-radius: 20px 20px 0px 0px;
  93. padding: 20px 16px;
  94. margin-top: -16px;
  95. .content{
  96. display: flex;
  97. margin-top: 12px;
  98. .classify{
  99. background-color: #ffffff;
  100. border-radius: 12px;
  101. width: 28%;
  102. text-align: center;
  103. padding-bottom: 84px;
  104. .item{
  105. line-height: 32px;
  106. margin-top: 14px;
  107. font-size: 16px
  108. }
  109. .chosen{
  110. width: 66.7%;
  111. margin:14px auto 0;
  112. border-radius: 50px;
  113. background-color: rgba(13, 186, 199, 1);
  114. color: #ffffff;
  115. }
  116. }
  117. .details{
  118. margin-left: 12px;
  119. width: 68.3%;
  120. .title{
  121. color: rgba(51, 51, 51, 1);
  122. font-size: 16px;
  123. line-height: 44px;
  124. border-radius: 12px;
  125. background-color: rgba(255, 255, 255, 1);
  126. text-align: center;
  127. font-weight: bold;
  128. }
  129. .details-box{
  130. display: flex;
  131. flex-wrap: wrap;
  132. justify-content: space-between;
  133. .item{
  134. width: 44%;
  135. line-height: 44px;
  136. border-radius: 12px;
  137. background-color: rgba(255, 255, 255, 1);
  138. color: rgba(51, 51, 51, 1);
  139. margin-top: 12px;
  140. text-align: center;
  141. }
  142. }
  143. }
  144. }
  145. }
  146. </style>