| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <template>
- <view class="page-container">
- <view class="status_bar" :style="{ height: statusBarHeight }"></view>
- <!-- 顶部导航栏 -->
- <view class="top-bar">
- <image class="back-icon" src="/static/back_white.png" mode="aspectFit" @click="goBack"></image>
- <text class="title">中医降脂养肝课</text>
- <view class="top-right">
- </view>
- </view>
- <!-- Banner区域 -->
- <view class="banner">
- <image class="banner-image" src="/static/famous_doctor_img.png" mode="aspectFill"></image>
- </view>
- <!-- 福利专区 -->
- <!-- 底部操作区 -->
- <view class="bottom-action">
- <view class="bottom">
- <view class="countdown">
- <text class="countdown-label">倒计时</text>
- <view class="countdown-time">
- <view class="time">04</view>
- <view class="symbol">:</view>
- <view class="time">32</view>
- <view class="symbol">:</view>
- <view class="time">18</view>
- </view>
- <!-- <text class="countdown-time">{{ countdownTime }}</text> -->
- </view>
- <view class="reserve-btn" @click="reserveCourse">
- <view class="txt">立即预约</view>
- <image class="img" src="/static/appointment_button_bg.png"></image>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
- countdownTime: '04:32:18'
- };
- },
- methods: {
- goBack() {
- uni.navigateBack();
- },
- reserveCourse() {
- // 立即预约
- uni.showToast({
- title: '立即预约',
- icon: 'none'
- });
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .page-container {
- width: 100%;
- min-height: 100vh;
- background-color: #f8f8f8;
- .top-bar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 16rpx 24upx;
- // background-color: #ffffff;
- .back-icon {
- width: 40upx;
- height: 40upx;
- }
- .title {
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- }
- }
- .banner {
- position: relative;
- width: 100%;
- height: 500upx;
- .banner-image {
- width: 100%;
- height: 100%;
- }
- .activity-rule {
- position: absolute;
- top: 20upx;
- right: 20upx;
- padding: 10upx 20upx;
- background-color: #ffffff;
- border-radius: 20upx;
- font-size: 24upx;
- font-family: PingFang SC;
- font-weight: 400;
- color: #333333;
- }
- }
- .bottom-action {
- width: 100%;
- background: #fff;
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- padding: 16rpx 32rpx;
- .bottom {
- height: 88rpx;
- background: #E4F6ED;
- border-radius: 44rpx 44rpx 44rpx 44rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- .countdown {
- display: flex;
- align-items: center;
- justify-content: center;
- flex: 1;
- .countdown-label {
- font-size: 28rpx;
- color: #222222;
- margin-right: 10upx;
- }
- .countdown-time {
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #fff;
- display: flex;
- .time{
- width: 40rpx;
- height: 36rpx;
- background: #FBA351;
- border-radius: 8rpx 8rpx 8rpx 8rpx;
- text-align: center;
- }
- .symbol{
- margin: 0 4rpx;
- }
- }
- }
- .reserve-btn {
- width: 274rpx;
- height: 88upx;
- border-radius: 30upx;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 28upx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #ffffff;
- position: relative;
- z-index: 2;
- .txt{
-
- }
- .img{
- position: absolute;
- right: 0;
- z-index: -1;
- width: 100%;
- height: 100%;
- }
- }
- }
- }
- }
- </style>
|