diff --git a/src/components/cart/CartListNew.vue b/src/components/cart/CartListNew.vue index 520ed5f..feaf321 100644 --- a/src/components/cart/CartListNew.vue +++ b/src/components/cart/CartListNew.vue @@ -113,12 +113,27 @@
RINGKASAN TROLI
-

Jumlah Surat: 121

+

Jumlah Surat: XXX

-

Jumlah Bidaan: RM12121

+

Jumlah Bidaan: RMXXXXX

- + +
@@ -458,6 +473,114 @@ + + + + @@ -487,6 +610,11 @@ export default { lelongBidId: "", hargabida: "", }, + formRegisterBid: { + lelong_id: localStorage.getItem("lelong_id"), + user_id: localStorage.getItem("id"), + name: localStorage.getItem("name"), + }, }; }, validations() { @@ -580,6 +708,29 @@ export default { } else { } }, + bidderSelectBidItem() { + if (this.isSuccess == true) { + this.$refs.daftarBidaanClose.click(); + this.loading = true; + axios + .post("/bidder/biditem", this.formRegisterBid, { + headers: { + Authorization: "Bearer " + localStorage.getItem("token"), + }, + }) + .then((response) => { + this.loading = false; + console.log(response); + this.$emit("reloadComponent"); + }) + .catch((error) => { + this.loading = false; + console.log(error); + }); + } else { + this.$refs.daftarBidaanOpen.click(); + } + }, }, }; \ No newline at end of file diff --git a/src/components/home/TheHome.vue b/src/components/home/TheHome.vue index 2fcc558..2d04af3 100644 --- a/src/components/home/TheHome.vue +++ b/src/components/home/TheHome.vue @@ -3,7 +3,7 @@
- +