course_detail.wxss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. /* pages/course_detail/course_detail.wxss */
  2. .detail-container {
  3. position: relative;
  4. }
  5. .banner {
  6. width: 750rpx;
  7. height: 470rpx;
  8. position: absolute;
  9. top: 0;
  10. left: 0;
  11. }
  12. .detail-content {
  13. margin-top: 450rpx;
  14. border-radius: 20rpx;
  15. background: #F5F5F5;
  16. height: calc(100vh - 470rpx);
  17. position: relative;
  18. padding: 20rpx;
  19. }
  20. .title-info {
  21. width: 670rpx;
  22. height: 216rpx;
  23. background: #fff;
  24. margin: 0 auto;
  25. border-radius: 16rpx 16rpx 16rpx 16rpx;
  26. padding: 20rpx;
  27. display: flex;
  28. flex-direction: column;
  29. }
  30. .hugo_price {
  31. font-weight: 600;
  32. font-size: 40rpx;
  33. color: #FF6C6C;
  34. line-height: 47rpx;
  35. height: 56rpx;
  36. }
  37. .hugo_title {
  38. max-height: 88rpx;
  39. overflow: hidden;
  40. text-overflow: ellipsis;
  41. display: -webkit-box;
  42. -webkit-box-orient: vertical;
  43. -webkit-line-clamp: 2;
  44. font-size: 32rpx;
  45. line-height: 38rpx;
  46. margin-bottom: 16rpx;
  47. }
  48. .sub_cotnainer {
  49. color: rgba(136, 136, 136, 1);
  50. font-size: 24rpx;
  51. flex: 1;
  52. display: flex;
  53. flex-direction: row;
  54. flex-wrap: nowrap;
  55. justify-content: center;
  56. align-items: center;
  57. justify-content: space-between;
  58. border-top: 0.5rpx #F5F5F5 solid;
  59. }
  60. .sub_cotnainer .sub_title {
  61. height: 28rpx;
  62. display: inline;
  63. overflow: hidden;
  64. line-height: 28rpx;
  65. max-width: 228rpx;
  66. text-overflow: ellipsis;
  67. white-space: nowrap;
  68. overflow: hidden;
  69. }
  70. .sub_cotnainer .sub_time {
  71. display: flex;
  72. height: 28rpx;
  73. line-height: 28rpx;
  74. align-items: center;
  75. justify-content: center;
  76. position: relative;
  77. margin-left: 5rpx;
  78. }
  79. .sub_cotnainer .sub_time .time {
  80. width: 20rpx;
  81. height: 20rpx;
  82. display: block;
  83. padding: 2rpx 5rpx 0 8rpx;
  84. }
  85. .detail_content {
  86. margin: 0 auto;
  87. margin-top: 20rpx;
  88. border-radius: 16rpx 16rpx 16rpx 16rpx;
  89. background: #fff;
  90. padding: 20rpx;
  91. font-weight: 400;
  92. font-size: 26rpx;
  93. color: #333333;
  94. line-height: 30rpx;
  95. text-align: left;
  96. font-style: normal;
  97. text-transform: none;
  98. /* min-height: 100vh; */
  99. }
  100. .detail_title {
  101. height: 40rpx;
  102. font-weight: 500;
  103. font-size: 28rpx;
  104. padding: 20rpx 0;
  105. color: #333333;
  106. line-height: 33rpx;
  107. text-align: left;
  108. font-style: normal;
  109. text-transform: none;
  110. }
  111. .bottom_panel {
  112. position: fixed;
  113. height: 100rpx;
  114. bottom: 0;
  115. width: 100%;
  116. background: #fff;
  117. /* 可以通过增加padding-bottom来适配 */
  118. padding-bottom: constant(safe-area-inset-bottom);
  119. /*兼容 IOS<11.2*/
  120. padding-bottom: env(safe-area-inset-bottom);
  121. /*兼容 IOS>11.2*/
  122. display: flex;
  123. flex-direction: row;
  124. justify-content: space-between;
  125. align-items: center;
  126. }
  127. .bottom_panel .left {
  128. margin-left: 32rpx;
  129. display: flex;
  130. height: 72rpx;
  131. text-align: left;
  132. flex-direction: column;
  133. }
  134. .bottom_panel .left .count {
  135. --td-countdown-bg-color: #404040;
  136. --td-countdown-default-color: #404040;
  137. --td-error-color-6: #404040;
  138. --td-font-size-s: 20rpx;
  139. /* padding-left: 5rpx; */
  140. }
  141. .bottom_panel .left .desc {
  142. width: 422rpx;
  143. height: 34rpx;
  144. font-weight: 400;
  145. font-size: 24rpx;
  146. color: #333333;
  147. line-height: 28rpx;
  148. text-transform: none;
  149. }
  150. .bottom_panel .right .btn {
  151. --td-button-default-bg-color: #D75F5D;
  152. font-size: 28rpx;
  153. width: 220rpx;
  154. height: 72rpx !important;
  155. line-height: 72rpx !important;
  156. margin-right: 20rpx;
  157. }