Browse Source

update checkout/id API增加async/await

Dev
Janie 2 years ago
parent
commit
2fcadf3658
  1. 4
      FrontEnd/pages/service/checkout/_id.vue

4
FrontEnd/pages/service/checkout/_id.vue

@ -683,7 +683,7 @@ export default {
console.log(err); console.log(err);
}); });
}, },
payNow() {
async payNow() {
let isPass1 = this.$refs.ref_Booking.getValidation();//this.bookingDetail_Validation; let isPass1 = this.$refs.ref_Booking.getValidation();//this.bookingDetail_Validation;
let isPass2 = true; let isPass2 = true;
this.$refs.purchaserInfo.updatePurchaserInfo(true);//this.purchaserInfo_Validation; this.$refs.purchaserInfo.updatePurchaserInfo(true);//this.purchaserInfo_Validation;
@ -741,7 +741,7 @@ export default {
this.isLoading = true; this.isLoading = true;
let jsonData = null; let jsonData = null;
let statusCode = 'failed' let statusCode = 'failed'
this.$axios.post( `/trending/api/Onsite/Booking`, params)
await this.$axios.post( `/trending/api/Onsite/Booking`, params)
.then((response) => { .then((response) => {
//console.log(response); //console.log(response);
this.isLoading = false; this.isLoading = false;

Loading…
Cancel
Save