goodsTopic.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. name: 'goodsTopic',
  35. data() {
  36. return {
  37. }
  38. },
  39. }
  40. </script>
  41. <style>
  42. page {
  43. width: 100%;
  44. background: linear-gradient(180deg, rgba(223,236,253,0) 0%, #DFECFD 100%);
  45. }
  46. </style>
  47. <style lang="scss" scoped>
  48. @mixin dis_center {
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. }
  53. @mixin dis_around {
  54. display: flex;
  55. align-items: center;
  56. justify-content: space-around;
  57. }
  58. .goods_topic {
  59. width: 100%;
  60. .banner_header {
  61. height: 378rpx;
  62. position: relative;
  63. top: 0rpx;
  64. left: 0rpx;
  65. .ban_img {
  66. width: 100%;
  67. height: 378rpx;
  68. position: absolute;
  69. top: 0rpx;
  70. left: 0rpx;
  71. z-index: 99;
  72. }
  73. .selects {
  74. margin: 32rpx 0rpx 0rpx 40rpx;
  75. width: 370rpx;
  76. height: 64rpx;
  77. background: rgba(255,255,255,0.6);
  78. border-radius: 160rpx;
  79. // opacity: 0.6;
  80. @include dis_around();
  81. position: absolute;
  82. top: 0rpx;
  83. left: 0rpx;
  84. z-index: 100;
  85. .icons {
  86. width: 36rpx;
  87. height: 36rpx;
  88. background: #FFFFFF;
  89. border-radius: 50%;
  90. @include dis_center()
  91. }
  92. }
  93. .imgs {
  94. position: absolute;
  95. bottom: 0rpx;
  96. left: 0rpx;
  97. z-index: 100;
  98. margin-left: 40rpx;
  99. }
  100. .banner {
  101. width: 670rpx;
  102. height: 250rpx;
  103. border-radius: 20rpx;
  104. }
  105. }
  106. .mains {
  107. padding: 0rpx 40rpx 0rpx 40rpx;
  108. .titles {
  109. margin: 72rpx 0rpx 32rpx 10rpx;
  110. .code {
  111. width: 38rpx;
  112. height: 24rpx;
  113. }
  114. .title {
  115. font-size: 40rpx;
  116. font-family: OPPOSans-Bold, OPPOSans;
  117. font-weight: bold;
  118. color: #222222;
  119. margin-left: 14rpx;
  120. }
  121. }
  122. .pictures {
  123. width: 100%;
  124. height: 522rpx;
  125. .pic_imgs {
  126. width: 100%;
  127. height: 374rpx;
  128. .basic_img {
  129. width: 100%;
  130. height: 374rpx;
  131. }
  132. }
  133. .pic_title {
  134. width: 100%;
  135. height: 148rpx;
  136. background: #FFFFFF;
  137. border-radius: 0rpx 0rpx 24rpx 24rpx;
  138. font-size: 32rpx;
  139. font-family: OPPOSans-Bold, OPPOSans;
  140. font-weight: bold;
  141. color: #222222;
  142. padding: 32rpx;
  143. }
  144. }
  145. }
  146. }
  147. </style>