|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <view class="safeArea">
|
|
|
|
|
|
|
+ <view class="safeAreas">
|
|
|
<nav-bar title="预约考试"></nav-bar>
|
|
<nav-bar title="预约考试"></nav-bar>
|
|
|
<view class="appointment">
|
|
<view class="appointment">
|
|
|
<view class="appointmentItem">
|
|
<view class="appointmentItem">
|
|
@@ -124,7 +124,7 @@
|
|
|
class="item"
|
|
class="item"
|
|
|
v-for="(item, index) in listData"
|
|
v-for="(item, index) in listData"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
- @click="choAddress(index)"
|
|
|
|
|
|
|
+ @click="choAddress(item, index)"
|
|
|
>
|
|
>
|
|
|
<u-checkbox
|
|
<u-checkbox
|
|
|
class="checkbox"
|
|
class="checkbox"
|
|
@@ -166,6 +166,7 @@ export default {
|
|
|
openVerify: false, // 控制是否手动验证
|
|
openVerify: false, // 控制是否手动验证
|
|
|
commitment_electr_signature: '',
|
|
commitment_electr_signature: '',
|
|
|
isUploading: false,
|
|
isUploading: false,
|
|
|
|
|
+ siteId: '', // 考试id
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
async onLoad(option) {
|
|
async onLoad(option) {
|
|
@@ -197,6 +198,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
//获取考试地点
|
|
//获取考试地点
|
|
|
getInfo() {
|
|
getInfo() {
|
|
|
|
|
+ // apply/subscribeApplySite
|
|
|
this.$api
|
|
this.$api
|
|
|
.getApplysubscribeApplySite({ applyId: this.applyId })
|
|
.getApplysubscribeApplySite({ applyId: this.applyId })
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
@@ -212,7 +214,8 @@ export default {
|
|
|
showAddress() {
|
|
showAddress() {
|
|
|
this.address_show = true;
|
|
this.address_show = true;
|
|
|
},
|
|
},
|
|
|
- choAddress(index) {
|
|
|
|
|
|
|
+ choAddress(item, index) {
|
|
|
|
|
+ this.siteId = item.siteId
|
|
|
this.listData.forEach((item, idx) => {
|
|
this.listData.forEach((item, idx) => {
|
|
|
this.$set(item, "checked", false);
|
|
this.$set(item, "checked", false);
|
|
|
if (idx === index) {
|
|
if (idx === index) {
|
|
@@ -230,6 +233,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ this.siteId = this.listData[index].siteId
|
|
|
if (this.addressId === this.listData[index].id) {
|
|
if (this.addressId === this.listData[index].id) {
|
|
|
this.address_show = false;
|
|
this.address_show = false;
|
|
|
return;
|
|
return;
|
|
@@ -330,6 +334,7 @@ export default {
|
|
|
applySiteStartTime: copyData[index].startTimeC,
|
|
applySiteStartTime: copyData[index].startTimeC,
|
|
|
applySiteEndTime: copyData[index].endTimeC,
|
|
applySiteEndTime: copyData[index].endTimeC,
|
|
|
orderGoodsId: self.orderGoodsId,
|
|
orderGoodsId: self.orderGoodsId,
|
|
|
|
|
+ siteId: this.siteId, // 考场id
|
|
|
reportFile: this.commitment_electr_signature,
|
|
reportFile: this.commitment_electr_signature,
|
|
|
};
|
|
};
|
|
|
console.log('-----data', data)
|
|
console.log('-----data', data)
|
|
@@ -457,6 +462,9 @@ page {
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
|
|
+ .safeAreas {
|
|
|
|
|
+ padding-bottom: 30rpx;
|
|
|
|
|
+ }
|
|
|
.appointment {
|
|
.appointment {
|
|
|
padding: 0 8rpx;
|
|
padding: 0 8rpx;
|
|
|
.appointmentItem {
|
|
.appointmentItem {
|