goodsTopic.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. <image class="banner" src="../static/topic/banner.png"></image>
  15. </view>
  16. <view class="mains">
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. name: 'goodsTopic',
  23. data() {
  24. return {
  25. }
  26. },
  27. }
  28. </script>
  29. <style>
  30. page {
  31. width: 100%;
  32. background: linear-gradient(180deg, rgba(223,236,253,0) 0%, #DFECFD 100%);
  33. }
  34. </style>
  35. <style lang="scss" scoped>
  36. @mixin dis_center {
  37. display: flex;
  38. align-items: center;
  39. justify-content: center;
  40. }
  41. @mixin dis_around {
  42. display: flex;
  43. align-items: center;
  44. justify-content: space-around;
  45. }
  46. .goods_topic {
  47. width: 100%;
  48. .banner_header {
  49. height: 378rpx;
  50. position: relative;
  51. top: 0rpx;
  52. left: 0rpx;
  53. .ban_img {
  54. width: 100%;
  55. height: 378rpx;
  56. position: absolute;
  57. top: 0rpx;
  58. left: 0rpx;
  59. z-index: 99;
  60. }
  61. .selects {
  62. margin: 32rpx 0rpx 0rpx 40rpx;
  63. width: 370rpx;
  64. height: 64rpx;
  65. background: rgba(255,255,255,0.6);
  66. border-radius: 160rpx;
  67. // opacity: 0.6;
  68. @include dis_around();
  69. position: absolute;
  70. top: 0rpx;
  71. left: 0rpx;
  72. z-index: 100;
  73. .icons {
  74. width: 36rpx;
  75. height: 36rpx;
  76. background: #FFFFFF;
  77. border-radius: 50%;
  78. @include dis_center()
  79. }
  80. }
  81. .banner {
  82. width: 670rpx;
  83. height: 250rpx;
  84. }
  85. }
  86. .mains {
  87. padding: 0rpx 40rpx 0rpx 40rpx;
  88. }
  89. }
  90. </style>