Browse Source

[WHAT] 更新訂單API

增加關鍵字搜尋參數
Dev
berlin-tzen 2 years ago
parent
commit
09935d0846
  1. 9
      FrontEnd/components/user/bookingListContent.vue

9
FrontEnd/components/user/bookingListContent.vue

@ -113,6 +113,7 @@ export default {
subCategoryIDs: [], subCategoryIDs: [],
uploadBookingID: "", uploadBookingID: "",
categoryList: [], categoryList: [],
query: "",
}; };
}, },
@ -157,7 +158,6 @@ export default {
this.bookingStatus = []; this.bookingStatus = [];
} else if (this.currentType == "訂單確認中") { } else if (this.currentType == "訂單確認中") {
this.bookingStatus = ["01"]; this.bookingStatus = ["01"];
console.log("Unpaid");
} else if (this.currentType == "訂單處理中") { } else if (this.currentType == "訂單處理中") {
this.bookingStatus = ["02"]; this.bookingStatus = ["02"];
} else if (this.currentType == "訂單完成") { } else if (this.currentType == "訂單完成") {
@ -204,8 +204,6 @@ export default {
async getBookingList() { async getBookingList() {
console.log("getBookingList");
await this.$axios await this.$axios
.get(`/trending/api/BookingOnline/BookingCardList?` + .get(`/trending/api/BookingOnline/BookingCardList?` +
@ -214,6 +212,7 @@ export default {
`&SubCategoryIDs=${JSON.stringify(this.subCategoryIDs)}` + `&SubCategoryIDs=${JSON.stringify(this.subCategoryIDs)}` +
`&BookingStatuses=${JSON.stringify(this.bookingStatus)}` + `&BookingStatuses=${JSON.stringify(this.bookingStatus)}` +
`&PaymentStatuses` + `&PaymentStatuses` +
`&Query=${this.query}` +
`&Lang=${this.$i18n.localeProperties["langQuery"]}`) `&Lang=${this.$i18n.localeProperties["langQuery"]}`)
.then((response) => { .then((response) => {
@ -221,10 +220,6 @@ export default {
let data = response.data.DATA.rel; let data = response.data.DATA.rel;
if (data.DataList) { if (data.DataList) {
// console.table(data.DataList);
console.log(data.DataList);
this.total = data.Total; this.total = data.Total;
this.bookingList = data.DataList; this.bookingList = data.DataList;
} }

Loading…
Cancel
Save