diff --git a/src/App.vue b/src/App.vue index 6e24cd3..1200439 100644 --- a/src/App.vue +++ b/src/App.vue @@ -24,7 +24,6 @@ export default { -moz-osx-font-smoothing: grayscale; text-align: center; color: #2c3e50; - margin-top: 60px; } .list { diff --git a/src/components/Cart.vue b/src/components/Cart.vue index 1b85c76..f9d90b1 100644 --- a/src/components/Cart.vue +++ b/src/components/Cart.vue @@ -259,7 +259,7 @@ Daftar Bidaan diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index 584b483..5cd84bc 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -1,7 +1,7 @@ - Sistem Lelong + Sistem Lelong - Home + Home Senarai @@ -25,10 +25,10 @@ Cart --> - Rekod Bidaan + Rekod Bidaan - Keputusan + Keputusan Profil diff --git a/src/components/Profile.vue b/src/components/Profile.vue deleted file mode 100644 index 341288c..0000000 --- a/src/components/Profile.vue +++ /dev/null @@ -1,144 +0,0 @@ - - - - - Loading... - - - - - - Profil - - - - - - - - Nama - - {{ data.name }} - - - - Username - - {{ data.username }} - - - - No Kad Pengenalan - - {{ data.nokp }} - - - - No Tel Bimbit - - {{ data.notelbimbit }} - - - - Front IC - - - {{ data.filename }} - - - - - Rear IC - - - {{ data_2.filename }} - - - - Tiada Data - - - - - - - - - - - \ No newline at end of file diff --git a/src/components/bid-record/BidRecordList.vue b/src/components/bid-record/BidRecordList.vue new file mode 100644 index 0000000..1ea9540 --- /dev/null +++ b/src/components/bid-record/BidRecordList.vue @@ -0,0 +1,80 @@ + + + + Loading... + + + + + + + + + Bil + No Rujukan + Harga Bida + Tarikh/Masa Bidaan + + + + + {{ index + 1 }} + + RM{{ data.hargabida }} + {{ data.masa_bidaan }} + + + + + + + + + \ No newline at end of file diff --git a/src/components/bid-record/TheBidRecord.vue b/src/components/bid-record/TheBidRecord.vue new file mode 100644 index 0000000..83f324d --- /dev/null +++ b/src/components/bid-record/TheBidRecord.vue @@ -0,0 +1,44 @@ + + + + + + + REKOD BIDAAN + + Reload + + + Pilih Tarikh + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/bidRecord/TheBidRecord.vue b/src/components/bidRecord/TheBidRecord.vue deleted file mode 100644 index 74a5590..0000000 --- a/src/components/bidRecord/TheBidRecord.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - this is the bid record - - - \ No newline at end of file diff --git a/src/components/cart/TheCart.vue b/src/components/cart/TheCart.vue index f44494b..f90d1cf 100644 --- a/src/components/cart/TheCart.vue +++ b/src/components/cart/TheCart.vue @@ -1,5 +1,939 @@ - - this is the cart - - \ No newline at end of file + + + + + Loading... + + + + + + + Troli + + + + + + + + + + Maklumat Marhun + + Harga Asas + + + Harga Bida + + + Tindakan + + + + + + + + + + + + {{ senaraiCart.datalelongbid.norujukan }} + + + + + Marhun: + {{ senaraiCart.datalelongbid.marhun }} + + + Berat: + {{ senaraiCart.datalelongbid.berat }}g + + + Cawangan: + {{ + senaraiCart.datalelongbid.cawangan + .caw_name + }} + + + + + + Hapus + + + + + + RM{{ senaraiCart.datalelongbid.hargaasas }} + + + RM{{ senaraiCart.hargabida }} + + + + Ubah + + + + + + + + + + + + + + + Yuran + + + + RM10.00 + + + *Anda perlu membayar yuran sebelum membuat bidaan. + + + + + + Bayar Yuran + + + + + + + + + + + Yuran Telah Berjaya Dibayar + + + + + *Anda boleh membuat bidaan. + + + + + + + Ringkasan Troli + + + + + Jumlah Bilangan Surat + {{ total_sag }} + + + + + + Jumlah Bidaan + RM{{ total_bidaan }} + + + + + + + Teruskan + + + + + + + + + + + + + + + + + + + + {{ test.norujukan }} + + + + + + + + + Jumlah Berat: {{ test.berat }}g + + + + No + Jenis Marhun + Karat + Berat + Nota + Harga Asas + + + {{ index + 1 }} + {{ data.marhun }} + {{ data.karat }} + {{ data.berat }}g + {{ data.nota }} + RM{{ data.hargaasas }} + + + + + + Jumlah Harga Asas + + + + RM + + {{ test.hargaasas }} + + + + + + + Tambahan Harga Bida + + + + RM + + + + + + + *Minimum tambahan harga bida adalah RM1. + + + *Gandaan ringgit sahaja dibenarkan. + + + + + + + Jumlah Harga Bida + + + + RM + + + + + + + + + + + + + + + + + + + + + + + ADAKAH ANDA PASTI? + Padam item dalam troli. + + + + + SAG + Harga Bida + + + {{ test.norujukan }} + RM{{ data.hargabida }} + + + + + *Tindakan ini tidak dapat dikembalikan + + + + + + + + + + + + + Daftar Bidaan + + + + + + ADAKAH ANDA PASTI? + + *Bidaan tidak dapat diubah selepas dihantar. + + + + + + Jumlah Surat + Jumlah Bidaan + + + {{ total_sag }} + RM{{ total_bidaan }} + + + + + + + + + + + + + + + Bayar Yuran + + + + + + ADAKAH ANDA PASTI? + + Caj yuran, RM10 akan dikenakan untuk setiap kali + pendaftaran bidaan. + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/layouts/TheFooter.vue b/src/components/layouts/TheFooter.vue index 77abfb3..f9babce 100644 --- a/src/components/layouts/TheFooter.vue +++ b/src/components/layouts/TheFooter.vue @@ -16,7 +16,6 @@ - Permodalan Kelantan Berhad diff --git a/src/components/layouts/TheHeader.vue b/src/components/layouts/TheHeader.vue index eb0bac8..103ead5 100644 --- a/src/components/layouts/TheHeader.vue +++ b/src/components/layouts/TheHeader.vue @@ -1,7 +1,7 @@ - Sistem Lelong + Sistem Lelong - Utama diff --git a/src/components/list/ListItem.vue b/src/components/list/ListItem.vue new file mode 100644 index 0000000..1747974 --- /dev/null +++ b/src/components/list/ListItem.vue @@ -0,0 +1,334 @@ + + + + Loading... + + + + + + + + + + + Jumlah Surat: {{ this.sags.length }} + + + Masa Mula Lelong: {{ lelong_details.masamula_lelong }} + + + Masa Tamat Lelong: {{ lelong_details.masatamat_lelong }} + + + + + + + + + + {{ sag.norujukan }} + + + + {{ sag.berat }}g + + RM{{ sag.hargaasas }} + + + + + Masuk + + + + + + + + + + + + Sila Isi Ruangan 'Pilih Cawangan' Di Atas. + + + + + + + + + + {{ norujukan.norujukan }} + + + + + + + + + Jumlah Berat: {{ norujukan.berat }}g + + + + No + Jenis Marhun + Karat + Berat + Nota + Harga Asas + + + {{ index + 1 }} + {{ marhun.marhun }} + {{ marhun.karat }} + {{ marhun.berat }}g + {{ marhun.nota }} + RM{{ marhun.hargaasas }} + + + + + + Jumlah Harga Asas + + + + RM + + {{ norujukan.hargaasas }} + + + + + + + Tambahan Harga Bida + + + + RM + + + + + + + *Minimum tambahan harga bida adalah RM1. + + + *Gandaan ringgit sahaja dibenarkan. + + + + + + + Jumlah Harga Bida + + + + RM + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/list/TheList.vue b/src/components/list/TheList.vue index e498579..d751528 100644 --- a/src/components/list/TheList.vue +++ b/src/components/list/TheList.vue @@ -1,5 +1,85 @@ - this is the list + + Senarai + + + Cawangan + + + Sila Pilih Cawangan + + + {{ data.caw_name }} + + + + + + + Reload + + + + - \ No newline at end of file + + + \ No newline at end of file diff --git a/src/components/profile/TheProfile.vue b/src/components/profile/TheProfile.vue index 35013fc..b5a2ef5 100644 --- a/src/components/profile/TheProfile.vue +++ b/src/components/profile/TheProfile.vue @@ -1,5 +1,127 @@ - - this is the profile - - \ No newline at end of file + + + + + Loading... + + + + + PROFIL + + + + + + Nama + + {{ data.name }} + + + + Username + + {{ data.username }} + + + + No Kad Pengenalan + + {{ data.nokp }} + + + + No Tel Bimbit + + {{ data.notelbimbit }} + + + + Front IC + + + {{ data.filename }} + + + + + Rear IC + + + {{ data_2.filename }} + + + + Tiada Data + + + + + + + + + \ No newline at end of file diff --git a/src/components/result/TheResult.vue b/src/components/result/TheResult.vue index 165ff4f..4977094 100644 --- a/src/components/result/TheResult.vue +++ b/src/components/result/TheResult.vue @@ -1,5 +1,51 @@ - - this is the result - - \ No newline at end of file + + + + + + KEPUTUSAN + + + + Bil + Tarikh + Jumlah + Status + + + + + 1 + 12/03/2020 + RM1212.00 + Belum Selesai + + + 1 + 12/03/2020 + RM1212.00 + Selesai + + + 1 + 12/03/2020 + RM1212.00 + Selesai + + + + + + + + + + + \ No newline at end of file diff --git a/src/main.js b/src/main.js index 40c0d3d..409561f 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,6 @@ import { createApp } from 'vue' -// import App from './App.vue' -import Master from './Master.vue' +import App from './App.vue' +// import Master from './Master.vue' import router from './router' import store from './store' // import useVuelidate from '@vuelidate/core' @@ -12,7 +12,8 @@ import 'bootstrap-icons/font/bootstrap-icons.css' import TheTemplate from './components/layouts/TheTemplate.vue' import BaseCard from './components/base/BaseCard.vue' -const app = createApp(Master); +const app = createApp(App); +// const app = createApp(Master); app.component('the-template', TheTemplate); app.component('base-card', BaseCard); diff --git a/src/router/index.js b/src/router/index.js index 4bd6868..d92e30b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -18,7 +18,7 @@ // import TheLogin from '../components/authentication/TheLogin.vue' // import TheRegister from '../components/authentication/TheRegister.vue' -import TheHome from '../components/home/TheHome.vue' +// import TheHome from '../components/home/TheHome.vue' // import TheCart from '../components/cart/TheCart.vue' // import TheResult from '../components/result/TheResult.vue' // import TheProfile from '../components/profile/TheProfile.vue' @@ -120,6 +120,15 @@ import TheHome from '../components/home/TheHome.vue' // export default router; +// import TheLogin from '../components/authentication/TheLogin.vue' +// import TheRegister from '../components/authentication/TheRegister.vue' +import TheHome from '../components/home/TheHome.vue' +import TheCart from '../components/cart/TheCart.vue' +import TheResult from '../components/result/TheResult.vue' +import TheProfile from '../components/profile/TheProfile.vue' +import TheBidRecord from '../components/bid-record/TheBidRecord.vue' +import TheList from '../components/list/TheList.vue' + import { createRouter, createWebHistory, createMemoryHistory } from "vue-router"; import Login from '../components/Login.vue'; import Register from '../components/Register.vue'; @@ -127,7 +136,6 @@ import Dashboard from './../components/Dashboard.vue'; import Cart from './../components/Cart.vue'; import List from './../components/List.vue' import Pay from '../components/Pay.vue' -import Profile from './../components/Profile.vue' import BidHistory from '../components/BidHistory.vue' import Test from "../components/Test.vue" import IndexPaymentHistory from '../components/result/IndexPaymentHistory.vue' @@ -151,7 +159,7 @@ const routes = [ }, { path: '/', - name: 'Dashboard', + name: 'home', component: TheHome, // meta: { requiresAuth: true } }, @@ -159,14 +167,14 @@ const routes = [ { path: '/cart', name: 'cart', - component: Cart, + component: TheCart, // meta: { requiresAuth: true } }, { path: '/list', name: 'list', - component: List, + component: TheList, // meta: { requiresAuth: true } }, @@ -180,21 +188,21 @@ const routes = [ { path: '/profile', name: 'profile', - component: Profile, + component: TheProfile, // meta: { requiresAuth: true } }, { - path: '/bid-history', + path: '/bid-record', name: 'bid-record', - component: BidHistory, + component: TheBidRecord, // meta: { requiresAuth: true } }, { - path: '/payment-history', + path: '/result', name: 'result', - component: IndexPaymentHistory, + component: TheResult, // meta: { requiresAuth: true } },
this is the bid record
this is the cart
+ Marhun: + {{ senaraiCart.datalelongbid.marhun }} +
+ Berat: + {{ senaraiCart.datalelongbid.berat }}g +
+ Cawangan: + {{ + senaraiCart.datalelongbid.cawangan + .caw_name + }} +
Jumlah Bilangan Surat
{{ total_sag }}
Jumlah Bidaan
RM{{ total_bidaan }}
Jumlah Berat: {{ test.berat }}g
Padam item dalam troli.
+ *Tindakan ini tidak dapat dikembalikan +
ADAKAH ANDA PASTI?
Jumlah Berat: {{ norujukan.berat }}g
this is the list
this is the profile
this is the result