+
Lakukan bayaran ke akaun tersebut.
+
+
+
+
Koperasi Permodalan Kelantan Berhad
+
03139010016326
+
BANK ISLAM
+
+
+
+
+
-
Saiz maksimum gambar adalah 2MB.
Jenis gambar yang diterima adalah PNG dan JPG.
@@ -520,7 +533,7 @@ import html2canvas from "html2canvas";
import axios from "axios";
import ItemMasterImageModal from "../list/ItemMasterImageModal.vue";
import ReceiptImage from "../pay/ReceiptImage.vue";
-import { required, integer, between } from "@vuelidate/validators";
+import { required, integer, minValue } from "@vuelidate/validators";
import useVuelidate from "@vuelidate/core";
export default {
@@ -556,7 +569,7 @@ export default {
},
validations() {
return {
- fileSize: { required, integer, betweenValue: between(1, 2200000) },
+ fileSize: { required, integer, minValueValue: minValue(10) },
};
},
created() {
@@ -577,27 +590,31 @@ export default {
},
liveData() {
this.loading = true;
- axios
- .get("/bayar/" + localStorage.getItem("id") + "/" + this.lelongId, {
- headers: {
- Authorization: "Bearer " + localStorage.getItem("token"),
- },
- })
- .then((response) => {
- // console.log("liveData", response);
- if (response.data.success == true) {
- this.isSuccess = true;
+ if(this.lelongId != null) {
+ axios
+ .get("/bayar/" + localStorage.getItem("id") + "/" + this.lelongId, {
+ headers: {
+ Authorization: "Bearer " + localStorage.getItem("token"),
+ },
+ })
+ .then((response) => {
+ // console.log("liveData", response);
+ if (response.data.success == true) {
+ this.isSuccess = true;
+ this.loading = false;
+ this.lists = response.data.data;
+ this.tarikhLelong = response.data.tarikh_lelong;
+ } else {
+ this.isSuccess = false;
+ }
+ })
+ .catch((error) => {
this.loading = false;
- this.lists = response.data.data;
- this.tarikhLelong = response.data.tarikh_lelong;
- } else {
- this.isSuccess = false;
- }
- })
- .catch((error) => {
- this.loading = false;
- console.log(error);
- });
+ console.log(error);
+ });
+ } else {
+ this.$router.push({ name: "result" });
+ }
},
clickPayButton(value) {
this.$router.push({ name: "pay", params: { lelongId: value } });
@@ -760,4 +777,20 @@ export default {
.container-height {
min-height: 70vh;
}
+
+.div-card-bank {
+ display: flex;
+ justify-content: center;
+}
+
+.card-bank {
+ background: #2f68c51c;
+ color: #2f68c5f2;
+ width: 300px;
+ height: 125px;
+ border-radius: 16px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 68ac13c..aae3091 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -132,7 +132,8 @@ import ResultDetail from "../components/result/ResultDetail.vue";
import ResultReceipt from "../components/result/ResultReceipt.vue"
import ThePay from "../components/pay/ThePay.vue";
import ThePayCdm from "../components/pay/ThePayCdm.vue";
-import ThePolicy from "../components/policy/ThePolicy.vue"
+import ThePolicy from "../components/policy/ThePolicy.vue";
+import TheForgotPassword from "../components/authentication/TheForgotPassword.vue";
import {
createRouter,
@@ -162,6 +163,11 @@ const routes = [
name: "login",
component: TheLogin,
},
+ {
+ path: "/forgot-password",
+ name: "forgot-password",
+ component: TheForgotPassword,
+ },
{
path: "/home",
name: "home",