|
@@ -11,8 +11,15 @@
|
|
|
<view class="appointmentItem" v-if="activeList.length">
|
|
|
<view class="title">考前培训时间:</view>
|
|
|
<view class="main">
|
|
|
- <view v-for="(item, index) in activeList" class="item" :key="index" @click="choItem(index)">
|
|
|
- <view class="checkbox"><u-checkbox v-if="item.status === 0" v-model="item.checked" shape="circle"></u-checkbox></view>
|
|
|
+ <view v-for="(item, index) in activeList" class="item" :key="index" @click="choItem(index, item.examTime)">
|
|
|
+ <view class="checkbox">
|
|
|
+ <u-checkbox
|
|
|
+ :disabled="item.examTime >= applyDs.applySiteExamTime ? true : false"
|
|
|
+ v-if="item.status === 0"
|
|
|
+ v-model="item.checked"
|
|
|
+ shape="circle"
|
|
|
+ ></u-checkbox>
|
|
|
+ </view>
|
|
|
<view class="box">
|
|
|
<view :class="['time', { active: item.checked }, { no: item.status !== 0 }]">{{ item.dataTime + ' ' + item.startTime + ' ~ ' + item.endTime }}</view>
|
|
|
<view class="statusInfo" v-if="item.status !== 0">
|
|
@@ -28,6 +35,9 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view v-else class="appointmentItem">
|
|
|
+ <view class="title">当前考培地点无考前培训时间点</view>
|
|
|
+ </view>
|
|
|
<view class="btnMain">
|
|
|
<view class="return" @click="backPage">上一步</view>
|
|
|
<view class="sure" @click="sureOppoint">确定预约</view>
|
|
@@ -82,6 +92,7 @@ export default {
|
|
|
methods: {
|
|
|
getVuexData() {
|
|
|
this.applyDs = this.$store.getters.getApplyData;
|
|
|
+ console.log(this.applyDs.applySiteExamTime)
|
|
|
},
|
|
|
//获取考培地点
|
|
|
getInfo() {
|
|
@@ -123,6 +134,7 @@ export default {
|
|
|
this.addressId = this.listData[index].id;
|
|
|
var arrays = [];
|
|
|
this.listData[index].examUserApplySiteTime.forEach(item => {
|
|
|
+ if(item.examTime < self.applyDs.applySiteExamTime){
|
|
|
item.examApplySiteTimeTwoVo.forEach(items => {
|
|
|
arrays.push({
|
|
|
examTime: item.examTime,
|
|
@@ -137,11 +149,15 @@ export default {
|
|
|
status: items.status === 1 ? items.status : items.registration >= items.num ? 2 : items.status
|
|
|
});
|
|
|
});
|
|
|
+ }
|
|
|
});
|
|
|
this.activeList = arrays;
|
|
|
this.address_show = false;
|
|
|
},
|
|
|
- choItem(index) {
|
|
|
+ choItem(index,time) {
|
|
|
+ if(time >= this.applyDs.applySiteExamTime){
|
|
|
+ return
|
|
|
+ }
|
|
|
const item = this.activeList[index];
|
|
|
if (item.status !== 0) {
|
|
|
return;
|