|
@@ -166,7 +166,7 @@ export default {
|
|
|
},
|
|
|
onPullDownRefresh() {},
|
|
|
onLoad(option) {
|
|
|
- this.$api.getApplylist({ subscribeStatus: 1 }).then(res => {
|
|
|
+ this.$api.getApplylist({ subscribeStatus: 1, exceedExamExpend: 2 }).then(res => {
|
|
|
if (res.data.code === 200) {
|
|
|
this.listData = res.data.rows;
|
|
|
}
|
|
@@ -192,19 +192,19 @@ export default {
|
|
|
return false;
|
|
|
} else {
|
|
|
if (times.beforeStatus === 1) {
|
|
|
- console.log(1)
|
|
|
+ console.log(1);
|
|
|
return false;
|
|
|
} else if (times.examStatus !== 0) {
|
|
|
- console.log(2)
|
|
|
+ console.log(2);
|
|
|
return false;
|
|
|
} else if (times.applySiteExamTime < newDataAge) {
|
|
|
- console.log(3)
|
|
|
+ console.log(3);
|
|
|
return false;
|
|
|
} else if (times.applySiteExamTime > newDataAge) {
|
|
|
- console.log(4)
|
|
|
+ console.log(4);
|
|
|
return true;
|
|
|
} else if (times.applySiteExamTime == newDataAge) {
|
|
|
- console.log(5)
|
|
|
+ console.log(5);
|
|
|
var hours = new Date().getHours();
|
|
|
var mins = new Date().getMinutes();
|
|
|
var arrays = times.applySiteStartTime.split('-').map(Number);
|
|
@@ -235,13 +235,13 @@ export default {
|
|
|
this.details_show = false;
|
|
|
},
|
|
|
submit() {
|
|
|
- var bols = this.isShowFun(this.activeList)
|
|
|
- if(!bols){
|
|
|
+ var bols = this.isShowFun(this.activeList);
|
|
|
+ if (!bols) {
|
|
|
uni.showToast({
|
|
|
- icon:"none",
|
|
|
- title:"当前已无法取消预约"
|
|
|
- })
|
|
|
- return
|
|
|
+ icon: 'none',
|
|
|
+ title: '当前已无法取消预约'
|
|
|
+ });
|
|
|
+ return;
|
|
|
}
|
|
|
this.$api
|
|
|
.editApply({
|
|
@@ -252,7 +252,7 @@ export default {
|
|
|
if (res.data.code === 200) {
|
|
|
this.cancel_show = false;
|
|
|
this.details_show = false;
|
|
|
- this.$api.getApplylist({ subscribeStatus: 1 }).then(res => {
|
|
|
+ this.$api.getApplylist({ subscribeStatus: 1, exceedExamExpend: 2 }).then(res => {
|
|
|
this.listData = res.data.rows;
|
|
|
});
|
|
|
}
|
|
@@ -265,13 +265,21 @@ export default {
|
|
|
this.current = index;
|
|
|
var data = {};
|
|
|
if (index === 0) {
|
|
|
- data.subscribeStatus = 1;
|
|
|
+ data = {
|
|
|
+ subscribeStatus: 1,
|
|
|
+ exceedExamExpend: 2
|
|
|
+ };
|
|
|
}
|
|
|
if (index === 1) {
|
|
|
- data.subscribeStatus = 2;
|
|
|
+ data = {
|
|
|
+ subscribeStatus: 2
|
|
|
+ };
|
|
|
}
|
|
|
if (index === 2) {
|
|
|
- data.subscribeStatus = 3;
|
|
|
+ data = {
|
|
|
+ subscribeStatus: 1,
|
|
|
+ exceedExamExpend: 1
|
|
|
+ };
|
|
|
}
|
|
|
this.$api.getApplylist(data).then(res => {
|
|
|
if (res.data.code === 200) {
|