courseDetails.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <view class="page-container">
  3. <view class="status_bar" :style="{ height: statusBarHeight }"></view>
  4. <!-- 顶部导航栏 -->
  5. <view class="top-bar">
  6. <image class="back-icon" src="/static/back_white.png" mode="aspectFit" @click="goBack"></image>
  7. <text class="title">中医降脂养肝课</text>
  8. <view class="top-right">
  9. </view>
  10. </view>
  11. <!-- Banner区域 -->
  12. <view class="banner">
  13. <image class="banner-image" src="/static/famous_doctor_img.png" mode="aspectFill"></image>
  14. </view>
  15. <!-- 福利专区 -->
  16. <!-- 底部操作区 -->
  17. <view class="bottom-action">
  18. <view class="bottom">
  19. <view class="countdown">
  20. <text class="countdown-label">倒计时</text>
  21. <view class="countdown-time">
  22. <view class="time">04</view>
  23. <view class="symbol">:</view>
  24. <view class="time">32</view>
  25. <view class="symbol">:</view>
  26. <view class="time">18</view>
  27. </view>
  28. <!-- <text class="countdown-time">{{ countdownTime }}</text> -->
  29. </view>
  30. <view class="reserve-btn" @click="reserveCourse">
  31. <view class="txt">立即预约</view>
  32. <image class="img" src="/static/appointment_button_bg.png"></image>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
  43. countdownTime: '04:32:18'
  44. };
  45. },
  46. methods: {
  47. goBack() {
  48. uni.navigateBack();
  49. },
  50. reserveCourse() {
  51. // 立即预约
  52. uni.showToast({
  53. title: '立即预约',
  54. icon: 'none'
  55. });
  56. }
  57. }
  58. };
  59. </script>
  60. <style lang="scss" scoped>
  61. .page-container {
  62. width: 100%;
  63. min-height: 100vh;
  64. background-color: #f8f8f8;
  65. .top-bar {
  66. display: flex;
  67. align-items: center;
  68. justify-content: space-between;
  69. padding: 16rpx 24upx;
  70. // background-color: #ffffff;
  71. .back-icon {
  72. width: 40upx;
  73. height: 40upx;
  74. }
  75. .title {
  76. font-size: 32rpx;
  77. font-family: PingFang SC;
  78. font-weight: 500;
  79. color: #333333;
  80. }
  81. }
  82. .banner {
  83. position: relative;
  84. width: 100%;
  85. height: 500upx;
  86. .banner-image {
  87. width: 100%;
  88. height: 100%;
  89. }
  90. .activity-rule {
  91. position: absolute;
  92. top: 20upx;
  93. right: 20upx;
  94. padding: 10upx 20upx;
  95. background-color: #ffffff;
  96. border-radius: 20upx;
  97. font-size: 24upx;
  98. font-family: PingFang SC;
  99. font-weight: 400;
  100. color: #333333;
  101. }
  102. }
  103. .bottom-action {
  104. width: 100%;
  105. background: #fff;
  106. position: fixed;
  107. bottom: 0;
  108. left: 0;
  109. right: 0;
  110. padding: 16rpx 32rpx;
  111. .bottom {
  112. height: 88rpx;
  113. background: #E4F6ED;
  114. border-radius: 44rpx 44rpx 44rpx 44rpx;
  115. display: flex;
  116. align-items: center;
  117. justify-content: space-between;
  118. .countdown {
  119. display: flex;
  120. align-items: center;
  121. justify-content: center;
  122. flex: 1;
  123. .countdown-label {
  124. font-size: 28rpx;
  125. color: #222222;
  126. margin-right: 10upx;
  127. }
  128. .countdown-time {
  129. font-size: 28upx;
  130. font-family: PingFang SC;
  131. font-weight: 500;
  132. color: #fff;
  133. display: flex;
  134. .time{
  135. width: 40rpx;
  136. height: 36rpx;
  137. background: #FBA351;
  138. border-radius: 8rpx 8rpx 8rpx 8rpx;
  139. text-align: center;
  140. }
  141. .symbol{
  142. margin: 0 4rpx;
  143. }
  144. }
  145. }
  146. .reserve-btn {
  147. width: 274rpx;
  148. height: 88upx;
  149. border-radius: 30upx;
  150. display: flex;
  151. align-items: center;
  152. justify-content: center;
  153. font-size: 28upx;
  154. font-family: PingFang SC;
  155. font-weight: 500;
  156. color: #ffffff;
  157. position: relative;
  158. z-index: 2;
  159. .txt{
  160. }
  161. .img{
  162. position: absolute;
  163. right: 0;
  164. z-index: -1;
  165. width: 100%;
  166. height: 100%;
  167. }
  168. }
  169. }
  170. }
  171. }
  172. </style>