You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
204 lines
3.6 KiB
204 lines
3.6 KiB
<template>
|
|
<view class="step1">
|
|
|
|
<pickDate :FormData="FormData" @updatedForm="updatedForm" />
|
|
|
|
<view class="poz_btn">
|
|
<view class="btn_row" >
|
|
<view class="border btn" @click="changeStep(1)">返回上一步</view>
|
|
<view class="btn" @click="changeStep(3)">下一步</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import pickDate from './pickDate'
|
|
import { examSimulationCreate } from '@/config/api.js'
|
|
export default {
|
|
components: {pickDate},
|
|
props: ['step','FormData'],
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
mounted() {
|
|
},
|
|
methods: {
|
|
|
|
changeStep(val) {
|
|
console.log(this.FormData.courseIds)
|
|
if(val==3&&!this.FormData.courseIds) return this.$u.toast('请选择预约时间段')
|
|
this.$emit('changeStep', val)
|
|
},
|
|
updatedForm(val) {
|
|
this.$emit('updatedForm',val)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.poz_btn {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
padding: 12rpx 32rpx;
|
|
width: 100%;
|
|
background: #F6F6F6;
|
|
.btn_row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding-bottom: 20rpx;
|
|
.btn {
|
|
width: 47%;
|
|
height: 72rpx;
|
|
background: #1989FA;
|
|
border-radius: 8rpx;
|
|
font-size: 28rpx;
|
|
color: #fff;
|
|
text-align: center;
|
|
line-height: 72rpx;
|
|
|
|
&.border {
|
|
background: rgba(25, 137, 250, 0.1);
|
|
border: 2rpx solid $themC;
|
|
color: $themC;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.card {
|
|
width: 100%;
|
|
margin-bottom: 24rpx;
|
|
overflow: hidden;
|
|
.dateBox {
|
|
padding: 36rpx 0 40rpx 0;
|
|
.month-row {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-bottom: 36rpx;
|
|
.month {
|
|
font-size: 32rpx;
|
|
color: $themC;
|
|
}
|
|
|
|
.arrow {
|
|
margin-left: 6rpx;
|
|
}
|
|
}
|
|
|
|
.date_row {
|
|
width: 100%;
|
|
height: 100rpx;
|
|
position: relative;
|
|
.icon {
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
background: rgba(51,51,51,0.18);
|
|
backdrop-filter: blur(4rpx);
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
&.left {
|
|
left: 16rpx;
|
|
}
|
|
&.right {
|
|
right: 16rpx;
|
|
}
|
|
}
|
|
|
|
.dateArr {
|
|
display: flex;
|
|
padding: 0 70rpx;
|
|
// justify-content: space-between;
|
|
&.oneDate {
|
|
justify-content: center;
|
|
}
|
|
.dateWidth {
|
|
width: 20%;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
.date {
|
|
width: 74rpx;
|
|
height: 100rpx;
|
|
border-radius: 16rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
&.active {
|
|
background: rgba(25,137,250,0.1);
|
|
border: 2rpx solid #1989FA;
|
|
color: $themC;
|
|
}
|
|
.week {
|
|
|
|
}
|
|
|
|
.num {
|
|
margin-top: 4rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.card {
|
|
.timeCon {
|
|
padding: 0 24rpx 40rpx 24rpx;
|
|
}
|
|
.h2 {
|
|
line-height: 90rpx;
|
|
font-weight: 500;
|
|
color: #333;
|
|
}
|
|
|
|
.time_box {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
.time_item {
|
|
width: 30%;
|
|
height: 120rpx;
|
|
background: #F8F8F8;
|
|
border-radius: 12rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 12rpx;
|
|
color: #333;
|
|
&.active {
|
|
background: rgba(25,137,250,0.1);
|
|
border: 2rpx solid #1989FA;
|
|
color: $themC;
|
|
}
|
|
&.disable {
|
|
opacity: 0.4;
|
|
}
|
|
.lab {
|
|
font-size: 28rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.time {
|
|
font-size: 24rpx;
|
|
margin-top: 4rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
</style>
|