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

Loading…
Cancel
Save