to repo e.arrahn
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<Navbar />
|
||||
<div class="container" style="height: 70vh">
|
||||
<div class="container" style="min-height: 100vh">
|
||||
<button
|
||||
class="btn btn-secondary float-start"
|
||||
style="margin: 5px"
|
||||
|
||||
@@ -277,7 +277,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div>{{$store.state.cart}}</div> -->
|
||||
<div>{{ myValue }}</div>
|
||||
<!-- <div>{{ myValue.lelong_id }}</div> -->
|
||||
|
||||
<!-- modal ubah bidaan -->
|
||||
<div
|
||||
@@ -679,6 +679,9 @@ export default {
|
||||
myValue() {
|
||||
return this.$store.state.lelong_id;
|
||||
},
|
||||
count () {
|
||||
return store.state.lelong_id;
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
this.listCart();
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
>
|
||||
<svg class="bi me-2" width="40" height="32">
|
||||
<!-- <use xlink:href="#bootstrap" /> -->
|
||||
<i class="bi bi-spotify"></i>
|
||||
<!-- <i class="bi bi-spotify"></i> -->
|
||||
</svg>
|
||||
</a>
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
</div>
|
||||
<div v-else class="">
|
||||
<div class="container">
|
||||
<div v-for="data in listBid" :key="data.id">
|
||||
<p class="text-start">Jumlah Surat Bida: {{listBid.length}}</p>
|
||||
<!-- <div v-for="data in listBid" :key="data.id">
|
||||
<div class="d-flex">
|
||||
<p>Lelong ID:</p>
|
||||
<p>{{ data.lelong_id }}</p>
|
||||
@@ -21,6 +22,26 @@
|
||||
<div class="container">
|
||||
<div class="card">{{ data.lelongbid.length }} surat</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col">Nilai Marhun</th>
|
||||
<th scope="col">Harga Bida</th>
|
||||
<th scope="col">Masa Bidaan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(data, index) in listBid.slice().reverse()" :key="data.id">
|
||||
<th scope="row">{{index + 1}}</th>
|
||||
<td>RM{{data.nilaimarhun}}</td>
|
||||
<td>RM{{data.hargabida}}</td>
|
||||
<td>{{data.masa_bidaan}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -34,7 +55,8 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
listBid: [],
|
||||
loading : false
|
||||
loading: false,
|
||||
user_id: localStorage.getItem("id"),
|
||||
};
|
||||
},
|
||||
mounted: function () {
|
||||
@@ -44,14 +66,20 @@ export default {
|
||||
liveData() {
|
||||
this.loading = true;
|
||||
axios
|
||||
.get("/bidder/listBidItembWeb/" + localStorage.getItem("id"), {
|
||||
.get("/bidder/listbiditem", {
|
||||
headers: {
|
||||
Authorization: "Bearer " + localStorage.getItem("token"),
|
||||
},
|
||||
params: {
|
||||
user_id: this.user_id,
|
||||
},
|
||||
})
|
||||
.then((response) => {
|
||||
this.listBid = response.data;
|
||||
console.log(response);
|
||||
// console.log(response);
|
||||
// this.loading = false;
|
||||
// this.listBid = response.data;
|
||||
console.log(response.data);
|
||||
this.loading = false;
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import axios from "axios";
|
||||
|
||||
axios.defaults.baseURL = "http://lelong.test/api";
|
||||
axios.defaults.baseURL = "http://lelong-admin.test/api";
|
||||
Reference in New Issue
Block a user