goodsTopic.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <template>
  2. <view class="goods_topic">
  3. <nav-bar title="选课中心"></nav-bar>
  4. <view class="banner_header">
  5. <image class="ban_img" src="../static/topic/banner_bg.png"></image>
  6. <view class="selects">
  7. <view class="titles">
  8. 考前培训:二级建造师
  9. </view>
  10. <view class="icons">
  11. <u-icon name="arrow-right" color="#3E4055" size="26"></u-icon>
  12. </view>
  13. </view>
  14. <view class="imgs">
  15. <image class="banner" src="../static/topic/banner.png"></image>
  16. </view>
  17. </view>
  18. <view class="mains">
  19. <view class="titles">
  20. <image class="code" src="@/static/learn/act_icon.png" ></image>
  21. <text class="title">免费试听</text>
  22. </view>
  23. <view class="pictures">
  24. <view class="pic_imgs">
  25. <image class="basic_img" src="../static/topic/basic.png" ></image>
  26. </view>
  27. <view class="pic_title">建筑全科 2022年二建精华班建筑知识全系列课程</view>
  28. </view>
  29. <view class="titles">
  30. <image class="code" src="@/static/learn/act_icon.png" ></image>
  31. <text class="title">推荐课程</text>
  32. </view>
  33. <view class="courses">
  34. <view v-for="(item, index) in courseName" :key="index" class="cou_items" :class="{nactive: courseNum == index}">{{ item.name }}</view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. name: 'goodsTopic',
  42. data() {
  43. return {
  44. courseName: [
  45. {
  46. name: '黄金基础班',
  47. type: 1
  48. },
  49. {
  50. name: '钻石强化班',
  51. type: 2
  52. },
  53. {
  54. name: '至尊私塾班',
  55. type: 3
  56. }
  57. ],
  58. courseNum: 0,
  59. }
  60. },
  61. }
  62. </script>
  63. <style>
  64. page {
  65. width: 100%;
  66. /* background: linear-gradient(180deg, rgba(223,236,253,0) 0%, #DFECFD 100%); */
  67. }
  68. </style>
  69. <style lang="scss" scoped>
  70. @mixin dis_center {
  71. display: flex;
  72. align-items: center;
  73. justify-content: center;
  74. }
  75. @mixin dis_around {
  76. display: flex;
  77. align-items: center;
  78. justify-content: space-around;
  79. }
  80. .goods_topic {
  81. width: 100%;
  82. height: 100%;
  83. background: linear-gradient(180deg, rgba(223,236,253,0) 0%, #DFECFD 100%);
  84. .banner_header {
  85. height: 378rpx;
  86. position: relative;
  87. top: 0rpx;
  88. left: 0rpx;
  89. .ban_img {
  90. width: 100%;
  91. height: 378rpx;
  92. position: absolute;
  93. top: 0rpx;
  94. left: 0rpx;
  95. z-index: 99;
  96. }
  97. .selects {
  98. margin: 32rpx 0rpx 0rpx 40rpx;
  99. width: 370rpx;
  100. height: 64rpx;
  101. background: rgba(255,255,255,0.6);
  102. border-radius: 160rpx;
  103. // opacity: 0.6;
  104. @include dis_around();
  105. position: absolute;
  106. top: 0rpx;
  107. left: 0rpx;
  108. z-index: 100;
  109. .icons {
  110. width: 36rpx;
  111. height: 36rpx;
  112. background: #FFFFFF;
  113. border-radius: 50%;
  114. @include dis_center()
  115. }
  116. }
  117. .imgs {
  118. position: absolute;
  119. bottom: 0rpx;
  120. left: 0rpx;
  121. z-index: 100;
  122. margin-left: 40rpx;
  123. }
  124. .banner {
  125. width: 670rpx;
  126. height: 250rpx;
  127. border-radius: 20rpx;
  128. }
  129. }
  130. .mains {
  131. padding: 0rpx 40rpx 40rpx 40rpx;
  132. .titles {
  133. margin: 72rpx 0rpx 0rpx 10rpx;
  134. .code {
  135. width: 38rpx;
  136. height: 24rpx;
  137. }
  138. .title {
  139. font-size: 40rpx;
  140. font-family: OPPOSans-Bold, OPPOSans;
  141. font-weight: bold;
  142. color: #222222;
  143. margin-left: 14rpx;
  144. }
  145. }
  146. .pictures {
  147. width: 100%;
  148. height: 522rpx;
  149. margin-top: 32rpx;
  150. .pic_imgs {
  151. width: 100%;
  152. height: 374rpx;
  153. .basic_img {
  154. width: 100%;
  155. height: 374rpx;
  156. }
  157. }
  158. .pic_title {
  159. width: 100%;
  160. height: 148rpx;
  161. background: #FFFFFF;
  162. border-radius: 0rpx 0rpx 24rpx 24rpx;
  163. font-size: 32rpx;
  164. font-family: OPPOSans-Bold, OPPOSans;
  165. font-weight: bold;
  166. color: #222222;
  167. padding: 32rpx;
  168. }
  169. }
  170. .courses {
  171. margin-top: 44rpx;
  172. display: flex;
  173. align-items: center;
  174. .cou_items {
  175. font-size: 28rpx;
  176. color: #969696;
  177. margin-right: 48rpx;
  178. &:nth-child(1) {
  179. margin-left: 16rpx;
  180. }
  181. &.nactive {
  182. font-size: 32rpx;
  183. font-weight: bold;
  184. color: #498AFE;
  185. }
  186. }
  187. }
  188. }
  189. }
  190. </style>