react-native-timacare 3.1.66 → 3.1.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/AppStore.js +1 -1
- package/lib/commonjs/AppStore.js.flow +4 -2
- package/lib/commonjs/AppStore.js.map +1 -1
- package/lib/commonjs/assets/v3/home.svg +5 -0
- package/lib/commonjs/assets/v3/index.js +2 -0
- package/lib/commonjs/assets/v3/index.js.flow +38 -0
- package/lib/commonjs/assets/v3/index.js.map +1 -0
- package/lib/commonjs/assets/v3/option1.svg +27 -0
- package/lib/commonjs/assets/v3/option2.svg +25 -0
- package/lib/commonjs/assets/v3/step1-success.svg +39 -0
- package/lib/commonjs/assets/v3/step1.svg +90 -0
- package/lib/commonjs/assets/v3/step2-disable.svg +14 -0
- package/lib/commonjs/assets/v3/step2-success.svg +8 -0
- package/lib/commonjs/assets/v3/step2.svg +37 -0
- package/lib/commonjs/assets/v3/step3-disable.svg +17 -0
- package/lib/commonjs/assets/v3/step3-success.svg +17 -0
- package/lib/commonjs/assets/v3/step3.svg +45 -0
- package/lib/commonjs/assets/v3/step4-disable.svg +11 -0
- package/lib/commonjs/assets/v3/step4-success.svg +11 -0
- package/lib/commonjs/assets/v3/step4.svg +29 -0
- package/lib/commonjs/assets/v3/step5-disable.svg +17 -0
- package/lib/commonjs/assets/v3/step5-success.svg +17 -0
- package/lib/commonjs/assets/v3/step5.svg +45 -0
- package/lib/commonjs/components/ItemTimaOneV2.js +2 -0
- package/lib/commonjs/components/ItemTimaOneV2.js.flow +617 -0
- package/lib/commonjs/components/ItemTimaOneV2.js.map +1 -0
- package/lib/commonjs/components/ItemTimaOneV3.js +2 -0
- package/lib/commonjs/components/ItemTimaOneV3.js.flow +563 -0
- package/lib/commonjs/components/ItemTimaOneV3.js.map +1 -0
- package/lib/commonjs/components/MText.js +1 -1
- package/lib/commonjs/components/MText.js.flow +1 -1
- package/lib/commonjs/components/ModalOptionLoan.js +2 -0
- package/lib/commonjs/components/ModalOptionLoan.js.flow +247 -0
- package/lib/commonjs/components/ModalOptionLoan.js.map +1 -0
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +12 -0
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/eSign/index.js +1 -1
- package/lib/commonjs/screens/eSign/index.js.flow +22 -16
- package/lib/commonjs/screens/eSign/index.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +64 -625
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/mySignViettel/Layer_3.png +0 -0
- package/lib/commonjs/screens/mySignViettel/index.js +2 -0
- package/lib/commonjs/screens/mySignViettel/index.js.flow +278 -0
- package/lib/commonjs/screens/mySignViettel/index.js.map +1 -0
- package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
- package/lib/commonjs/screens/sign-tima/ViewContract.js.flow +22 -16
- package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.flow +9 -2
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +110 -7
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +9 -8
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +43 -169
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +17 -14
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +38 -19
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +133 -43
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js.flow +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/commonjs/screens/v3/AssetInformation.js +2 -0
- package/lib/commonjs/screens/v3/AssetInformation.js.flow +690 -0
- package/lib/commonjs/screens/v3/AssetInformation.js.map +1 -0
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +196 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/commonjs/utils/index.js +1 -1
- package/lib/commonjs/utils/index.js.flow +2 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/AppStore.js +1 -1
- package/lib/module/AppStore.js.map +1 -1
- package/lib/module/assets/v3/home.svg +5 -0
- package/lib/module/assets/v3/index.js +2 -0
- package/lib/module/assets/v3/index.js.map +1 -0
- package/lib/module/assets/v3/option1.svg +27 -0
- package/lib/module/assets/v3/option2.svg +25 -0
- package/lib/module/assets/v3/step1-success.svg +39 -0
- package/lib/module/assets/v3/step1.svg +90 -0
- package/lib/module/assets/v3/step2-disable.svg +14 -0
- package/lib/module/assets/v3/step2-success.svg +8 -0
- package/lib/module/assets/v3/step2.svg +37 -0
- package/lib/module/assets/v3/step3-disable.svg +17 -0
- package/lib/module/assets/v3/step3-success.svg +17 -0
- package/lib/module/assets/v3/step3.svg +45 -0
- package/lib/module/assets/v3/step4-disable.svg +11 -0
- package/lib/module/assets/v3/step4-success.svg +11 -0
- package/lib/module/assets/v3/step4.svg +29 -0
- package/lib/module/assets/v3/step5-disable.svg +17 -0
- package/lib/module/assets/v3/step5-success.svg +17 -0
- package/lib/module/assets/v3/step5.svg +45 -0
- package/lib/module/components/ItemTimaOneV2.js +2 -0
- package/lib/module/components/ItemTimaOneV2.js.map +1 -0
- package/lib/module/components/ItemTimaOneV3.js +2 -0
- package/lib/module/components/ItemTimaOneV3.js.map +1 -0
- package/lib/module/components/MText.js +1 -1
- package/lib/module/components/ModalOptionLoan.js +2 -0
- package/lib/module/components/ModalOptionLoan.js.map +1 -0
- package/lib/module/navigation/primary-navigator.js +1 -1
- package/lib/module/navigation/primary-navigator.js.map +1 -1
- package/lib/module/screens/eSign/index.js +1 -1
- package/lib/module/screens/eSign/index.js.map +1 -1
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/module/screens/mySignViettel/Layer_3.png +0 -0
- package/lib/module/screens/mySignViettel/index.js +2 -0
- package/lib/module/screens/mySignViettel/index.js.map +1 -0
- package/lib/module/screens/sign-tima/ViewContract.js +1 -1
- package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/store.js +1 -1
- package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/module/screens/v3/AssetInformation.js +2 -0
- package/lib/module/screens/v3/AssetInformation.js.map +1 -0
- package/lib/module/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/module/utils/index.js +1 -1
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/AppStore.d.ts +2 -2
- package/lib/typescript/AppStore.d.ts.map +1 -1
- package/lib/typescript/assets/v3/index.d.ts +19 -0
- package/lib/typescript/assets/v3/index.d.ts.map +1 -0
- package/lib/typescript/components/ItemTimaOneV2.d.ts +7 -0
- package/lib/typescript/components/ItemTimaOneV2.d.ts.map +1 -0
- package/lib/typescript/components/ItemTimaOneV3.d.ts +7 -0
- package/lib/typescript/components/ItemTimaOneV3.d.ts.map +1 -0
- package/lib/typescript/components/ModalOptionLoan.d.ts +8 -0
- package/lib/typescript/components/ModalOptionLoan.d.ts.map +1 -0
- package/lib/typescript/navigation/primary-navigator.d.ts +2 -0
- package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
- package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/mySignViettel/index.d.ts +2 -0
- package/lib/typescript/screens/mySignViettel/index.d.ts.map +1 -0
- package/lib/typescript/screens/sign-tima/ViewContract.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/RegisterBack.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
- package/lib/typescript/screens/v3/AssetInformation.d.ts +2 -0
- package/lib/typescript/screens/v3/AssetInformation.d.ts.map +1 -0
- package/lib/typescript/services/api/api.d.ts +192 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/lib/typescript/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/AppStore.tsx +4 -2
- package/src/assets/v3/home.svg +5 -0
- package/src/assets/v3/index.tsx +38 -0
- package/src/assets/v3/option1.svg +27 -0
- package/src/assets/v3/option2.svg +25 -0
- package/src/assets/v3/step1-success.svg +39 -0
- package/src/assets/v3/step1.svg +90 -0
- package/src/assets/v3/step2-disable.svg +14 -0
- package/src/assets/v3/step2-success.svg +8 -0
- package/src/assets/v3/step2.svg +37 -0
- package/src/assets/v3/step3-disable.svg +17 -0
- package/src/assets/v3/step3-success.svg +17 -0
- package/src/assets/v3/step3.svg +45 -0
- package/src/assets/v3/step4-disable.svg +11 -0
- package/src/assets/v3/step4-success.svg +11 -0
- package/src/assets/v3/step4.svg +29 -0
- package/src/assets/v3/step5-disable.svg +17 -0
- package/src/assets/v3/step5-success.svg +17 -0
- package/src/assets/v3/step5.svg +45 -0
- package/src/components/ItemTimaOneV2.tsx +617 -0
- package/src/components/ItemTimaOneV3.tsx +563 -0
- package/src/components/MText.tsx +1 -1
- package/src/components/ModalOptionLoan.tsx +247 -0
- package/src/navigation/primary-navigator.tsx +12 -0
- package/src/screens/eSign/index.tsx +22 -16
- package/src/screens/home/index.tsx +64 -625
- package/src/screens/mySignViettel/Layer_3.png +0 -0
- package/src/screens/mySignViettel/index.tsx +278 -0
- package/src/screens/sign-tima/ViewContract.tsx +22 -16
- package/src/screens/toan-trinh-so/OCR.tsx +1 -1
- package/src/screens/toan-trinh-so/RegisterBack.tsx +9 -2
- package/src/screens/toan-trinh-so/ReviewInformation.tsx +110 -7
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +9 -8
- package/src/screens/toan-trinh-so/ReviewLoan.tsx +43 -169
- package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +1 -1
- package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +1 -1
- package/src/screens/toan-trinh-so/TTSSelfie.tsx +17 -14
- package/src/screens/toan-trinh-so/TTSSignLoan.tsx +38 -19
- package/src/screens/toan-trinh-so/VehicleCamera.tsx +133 -43
- package/src/screens/toan-trinh-so/VehicleRegistration.tsx +1 -1
- package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +1 -1
- package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +1 -1
- package/src/screens/toan-trinh-so/store.ts +1 -1
- package/src/screens/v3/AssetInformation.tsx +690 -0
- package/src/services/api/api.ts +196 -0
- package/src/utils/index.tsx +2 -0
|
@@ -97,6 +97,8 @@ import {
|
|
|
97
97
|
IconOcr,
|
|
98
98
|
} from '../../assets/svgs';
|
|
99
99
|
import { o } from 'ramda';
|
|
100
|
+
import ItemTimaOneV3 from '../../components/ItemTimaOneV3';
|
|
101
|
+
import ModalOptionLoan from '../../components/ModalOptionLoan';
|
|
100
102
|
|
|
101
103
|
const listBanners = [
|
|
102
104
|
require('../../assets/img/banner1.png'),
|
|
@@ -115,11 +117,13 @@ export const Home = observer(function Home() {
|
|
|
115
117
|
const [showModal, setShowModal] = useState(false);
|
|
116
118
|
const [showModal2, setShowModal2] = useState(false);
|
|
117
119
|
const [showModal3, setShowModal3] = useState(false);
|
|
118
|
-
const [
|
|
120
|
+
const [showModal4, setShowModal4] = useState(false);
|
|
121
|
+
const [listLoan, setListLoan] = useState<any[]>([]);
|
|
119
122
|
const [checkEKYC, setCheckEKYC] = useState<any>({});
|
|
120
123
|
const [isLoading, setIsLoading] = useState(false);
|
|
121
124
|
const [loanCimb, setLoanCimb] = useState(null);
|
|
122
125
|
const [loan, setLoan] = useState(null);
|
|
126
|
+
const [dataSuggest, setDataSuggest] = useState<any>();
|
|
123
127
|
|
|
124
128
|
const onRefresh = async () => {
|
|
125
129
|
setIsLoading(true);
|
|
@@ -128,44 +132,60 @@ export const Home = observer(function Home() {
|
|
|
128
132
|
setIsLoading(false);
|
|
129
133
|
if (response.kind === 'ok') {
|
|
130
134
|
if (response.data?.meta?.errorCode === 200) {
|
|
131
|
-
setListLoan(response.data?.data);
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
if (item?.
|
|
140
|
-
|
|
135
|
+
setListLoan(response.data?.data ?? []);
|
|
136
|
+
if (response.data?.data) {
|
|
137
|
+
Promise.all(
|
|
138
|
+
response.data?.data?.map(async (item) => {
|
|
139
|
+
homeStore.getCheckEKYC(
|
|
140
|
+
{ loanBriefId: item.id },
|
|
141
|
+
(response) => {}
|
|
142
|
+
);
|
|
143
|
+
if (item?.productId !== 8) {
|
|
144
|
+
if (item?.messageErrorCIMB && item.messageErrorCIMB !== '') {
|
|
145
|
+
setLoanCimb(item);
|
|
146
|
+
setTimeout(() => {
|
|
147
|
+
setShowModal(true);
|
|
148
|
+
}, 200);
|
|
149
|
+
}
|
|
150
|
+
if (
|
|
151
|
+
(item?.typeLoan === 4 || item?.typeLoan === 2) &&
|
|
152
|
+
item?.isCimbApproveFull !== null
|
|
153
|
+
) {
|
|
154
|
+
const checkShow = await load(`SHOW_${item?.id}`);
|
|
155
|
+
if (!checkShow || checkShow !== true) {
|
|
156
|
+
setLoanCimb(item);
|
|
157
|
+
setTimeout(() => {
|
|
158
|
+
setShowModal2(true);
|
|
159
|
+
}, 200);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
if (
|
|
164
|
+
(item?.typeLoan === 5 || item?.typeLoan === 6) &&
|
|
165
|
+
item.step === 8
|
|
166
|
+
) {
|
|
167
|
+
setLoan(item);
|
|
141
168
|
setTimeout(() => {
|
|
142
|
-
|
|
143
|
-
},
|
|
169
|
+
setShowModal3(true);
|
|
170
|
+
}, 300);
|
|
144
171
|
}
|
|
145
172
|
if (
|
|
146
|
-
(item?.typeLoan ===
|
|
147
|
-
item?.
|
|
173
|
+
(item?.typeLoan === 5 || item?.typeLoan === 6) &&
|
|
174
|
+
item?.step === 2
|
|
148
175
|
) {
|
|
149
|
-
const
|
|
150
|
-
|
|
151
|
-
|
|
176
|
+
const res = await Api.getInstance().getSuggestProduct(
|
|
177
|
+
item?.id
|
|
178
|
+
);
|
|
179
|
+
if (res.kind === 'ok' && res.data?.meta?.errorCode === 200) {
|
|
180
|
+
setDataSuggest(res.data?.data);
|
|
152
181
|
setTimeout(() => {
|
|
153
|
-
|
|
154
|
-
},
|
|
182
|
+
setShowModal4(true);
|
|
183
|
+
}, 300);
|
|
155
184
|
}
|
|
156
185
|
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
item.step === 5
|
|
161
|
-
) {
|
|
162
|
-
setLoan(item);
|
|
163
|
-
setTimeout(() => {
|
|
164
|
-
setShowModal3(true);
|
|
165
|
-
}, 300);
|
|
166
|
-
}
|
|
167
|
-
})
|
|
168
|
-
);
|
|
186
|
+
})
|
|
187
|
+
);
|
|
188
|
+
}
|
|
169
189
|
} else {
|
|
170
190
|
Alert.alert('Thông báo', response?.data?.meta?.errorMessage);
|
|
171
191
|
}
|
|
@@ -463,599 +483,7 @@ export const Home = observer(function Home() {
|
|
|
463
483
|
{/* TOÀN TRÌNH SỐ 5-timaone 6-topup */}
|
|
464
484
|
{item?.typeLoan === 5 || item?.typeLoan === 6 ? (
|
|
465
485
|
<View>
|
|
466
|
-
<
|
|
467
|
-
style={{
|
|
468
|
-
backgroundColor: '#FFFFFF',
|
|
469
|
-
paddingHorizontal: 16,
|
|
470
|
-
marginBottom: 16,
|
|
471
|
-
borderRadius: 8,
|
|
472
|
-
borderWidth: 0.5,
|
|
473
|
-
borderColor: '#E0E0E0',
|
|
474
|
-
}}
|
|
475
|
-
>
|
|
476
|
-
<LinearGradient
|
|
477
|
-
colors={
|
|
478
|
-
item?.listLoanAllAutoDE &&
|
|
479
|
-
item?.listLoanAllAutoDE.length > 0
|
|
480
|
-
? ['#4CBA3D', '#98D788']
|
|
481
|
-
: ['#FF8E4F', '#EF592E']
|
|
482
|
-
}
|
|
483
|
-
style={{
|
|
484
|
-
borderTopLeftRadius: 8,
|
|
485
|
-
borderTopRightRadius: 8,
|
|
486
|
-
marginHorizontal: -16,
|
|
487
|
-
}}
|
|
488
|
-
>
|
|
489
|
-
<View
|
|
490
|
-
style={{
|
|
491
|
-
flexDirection: 'row',
|
|
492
|
-
justifyContent: 'space-between',
|
|
493
|
-
alignItems: 'center',
|
|
494
|
-
paddingHorizontal: 16,
|
|
495
|
-
paddingVertical: 8,
|
|
496
|
-
}}
|
|
497
|
-
>
|
|
498
|
-
<View
|
|
499
|
-
style={{
|
|
500
|
-
flexDirection: 'row',
|
|
501
|
-
alignItems: 'center',
|
|
502
|
-
gap: 8,
|
|
503
|
-
}}
|
|
504
|
-
>
|
|
505
|
-
<IconMoney2 />
|
|
506
|
-
<MText
|
|
507
|
-
style={{
|
|
508
|
-
fontSize: 12,
|
|
509
|
-
color: 'white',
|
|
510
|
-
}}
|
|
511
|
-
>
|
|
512
|
-
Số tiền đăng ký vay
|
|
513
|
-
</MText>
|
|
514
|
-
</View>
|
|
515
|
-
<MText
|
|
516
|
-
style={{
|
|
517
|
-
fontSize: 12,
|
|
518
|
-
color: 'white',
|
|
519
|
-
fontWeight: 'bold',
|
|
520
|
-
}}
|
|
521
|
-
>
|
|
522
|
-
{item?.listLoanAllAutoDE &&
|
|
523
|
-
item?.listLoanAllAutoDE.length > 0
|
|
524
|
-
? formatMoney(
|
|
525
|
-
item?.listLoanAllAutoDE.reduce(
|
|
526
|
-
(sum, item) => sum + item.totalMoney,
|
|
527
|
-
0
|
|
528
|
-
)
|
|
529
|
-
)
|
|
530
|
-
: formatMoney(item?.loanAmount)}
|
|
531
|
-
đ
|
|
532
|
-
</MText>
|
|
533
|
-
</View>
|
|
534
|
-
</LinearGradient>
|
|
535
|
-
{item?.listLoanAllAutoDE &&
|
|
536
|
-
item?.listLoanAllAutoDE.length > 0 && (
|
|
537
|
-
<View
|
|
538
|
-
style={{
|
|
539
|
-
marginHorizontal: -16,
|
|
540
|
-
backgroundColor: '#ECFFE8',
|
|
541
|
-
paddingHorizontal: 16,
|
|
542
|
-
paddingVertical: 8,
|
|
543
|
-
}}
|
|
544
|
-
>
|
|
545
|
-
<View
|
|
546
|
-
style={{
|
|
547
|
-
flexDirection: 'row',
|
|
548
|
-
justifyContent: 'space-between',
|
|
549
|
-
}}
|
|
550
|
-
>
|
|
551
|
-
<MText
|
|
552
|
-
style={{
|
|
553
|
-
fontSize: 10,
|
|
554
|
-
color: '#878787',
|
|
555
|
-
marginLeft: 24,
|
|
556
|
-
}}
|
|
557
|
-
>
|
|
558
|
-
Số tiền giải ngân
|
|
559
|
-
</MText>
|
|
560
|
-
<MText
|
|
561
|
-
style={{
|
|
562
|
-
fontSize: 10,
|
|
563
|
-
color: '#333333',
|
|
564
|
-
}}
|
|
565
|
-
>
|
|
566
|
-
{formatMoney(
|
|
567
|
-
item?.listLoanAllAutoDE.reduce(
|
|
568
|
-
(sum, item) => sum + item.loanAmount,
|
|
569
|
-
0
|
|
570
|
-
)
|
|
571
|
-
)}{' '}
|
|
572
|
-
đ
|
|
573
|
-
</MText>
|
|
574
|
-
</View>
|
|
575
|
-
<View
|
|
576
|
-
style={{
|
|
577
|
-
flexDirection: 'row',
|
|
578
|
-
justifyContent: 'space-between',
|
|
579
|
-
marginTop: 6,
|
|
580
|
-
}}
|
|
581
|
-
>
|
|
582
|
-
<MText
|
|
583
|
-
style={{
|
|
584
|
-
fontSize: 10,
|
|
585
|
-
color: '#878787',
|
|
586
|
-
marginLeft: 24,
|
|
587
|
-
}}
|
|
588
|
-
>
|
|
589
|
-
Số tiền bảo hiểm
|
|
590
|
-
</MText>
|
|
591
|
-
<MText
|
|
592
|
-
style={{
|
|
593
|
-
fontSize: 10,
|
|
594
|
-
color: '#333333',
|
|
595
|
-
}}
|
|
596
|
-
>
|
|
597
|
-
{formatMoney(
|
|
598
|
-
item?.listLoanAllAutoDE.reduce(
|
|
599
|
-
(sum, item) => sum + item.insurenceMoney,
|
|
600
|
-
0
|
|
601
|
-
)
|
|
602
|
-
)}{' '}
|
|
603
|
-
đ
|
|
604
|
-
</MText>
|
|
605
|
-
</View>
|
|
606
|
-
</View>
|
|
607
|
-
)}
|
|
608
|
-
|
|
609
|
-
<View
|
|
610
|
-
style={{
|
|
611
|
-
flexDirection: 'row',
|
|
612
|
-
justifyContent: 'space-between',
|
|
613
|
-
marginTop:
|
|
614
|
-
item?.listLoanAllAutoDE &&
|
|
615
|
-
item?.listLoanAllAutoDE.length > 0
|
|
616
|
-
? 16
|
|
617
|
-
: 32,
|
|
618
|
-
paddingHorizontal: 24,
|
|
619
|
-
}}
|
|
620
|
-
>
|
|
621
|
-
<TouchableOpacity
|
|
622
|
-
disabled={item?.step >= 3 ? true : false}
|
|
623
|
-
style={$action}
|
|
624
|
-
onPress={() => {
|
|
625
|
-
if (item?.step === 0) {
|
|
626
|
-
navigation.push(ScreenNames.OCR, {
|
|
627
|
-
loan: item,
|
|
628
|
-
front: true,
|
|
629
|
-
});
|
|
630
|
-
} else if (item?.step === 1) {
|
|
631
|
-
navigation.push(ScreenNames.VehicleCamera, {
|
|
632
|
-
loan: item,
|
|
633
|
-
front: true,
|
|
634
|
-
});
|
|
635
|
-
} else if (item?.step === 2) {
|
|
636
|
-
navigation.push(ScreenNames.RegisterCamera, {
|
|
637
|
-
loan: item,
|
|
638
|
-
});
|
|
639
|
-
}
|
|
640
|
-
}}
|
|
641
|
-
>
|
|
642
|
-
{item?.step >= 3 ? <IconOCRSuccess /> : <IconOcr />}
|
|
643
|
-
<MText
|
|
644
|
-
style={{
|
|
645
|
-
textAlign: 'center',
|
|
646
|
-
fontSize: 10,
|
|
647
|
-
marginTop: 5,
|
|
648
|
-
color: '#333333',
|
|
649
|
-
}}
|
|
650
|
-
>
|
|
651
|
-
OCR{'\n'}chứng từ
|
|
652
|
-
</MText>
|
|
653
|
-
</TouchableOpacity>
|
|
654
|
-
<TouchableOpacity
|
|
655
|
-
disabled={item?.step !== 3 ? true : false}
|
|
656
|
-
style={$action}
|
|
657
|
-
onPress={() => {
|
|
658
|
-
if (item?.step === 3) {
|
|
659
|
-
if (item?.typeLoan === 5) {
|
|
660
|
-
navigation.push(ScreenNames.ReviewInformation, {
|
|
661
|
-
loan: item,
|
|
662
|
-
});
|
|
663
|
-
} else if (item?.typeLoan === 6) {
|
|
664
|
-
navigation.push(ScreenNames.TopupLoanInfo, {
|
|
665
|
-
loan: item,
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
}}
|
|
670
|
-
>
|
|
671
|
-
{item.step > 3 ? (
|
|
672
|
-
<IconEditSuccess />
|
|
673
|
-
) : item.step === 3 ? (
|
|
674
|
-
<IconEdit />
|
|
675
|
-
) : (
|
|
676
|
-
<IconEditDisable />
|
|
677
|
-
)}
|
|
678
|
-
<MText
|
|
679
|
-
style={{
|
|
680
|
-
textAlign: 'center',
|
|
681
|
-
fontSize: 10,
|
|
682
|
-
marginTop: 5,
|
|
683
|
-
color: '#333333',
|
|
684
|
-
}}
|
|
685
|
-
>
|
|
686
|
-
Cập nhật{'\n'}thông tin
|
|
687
|
-
</MText>
|
|
688
|
-
</TouchableOpacity>
|
|
689
|
-
<TouchableOpacity
|
|
690
|
-
onPress={() => {
|
|
691
|
-
navigation.push(ScreenNames.LivenessV2, {
|
|
692
|
-
loan: item,
|
|
693
|
-
});
|
|
694
|
-
}}
|
|
695
|
-
style={$action}
|
|
696
|
-
disabled={item?.step === 6 ? false : true}
|
|
697
|
-
>
|
|
698
|
-
{item?.step >= 7 ? (
|
|
699
|
-
<IconEkycSuccess />
|
|
700
|
-
) : item?.step <= 5 ? (
|
|
701
|
-
<IconEkycDisable />
|
|
702
|
-
) : (
|
|
703
|
-
<IconEkyc />
|
|
704
|
-
)}
|
|
705
|
-
|
|
706
|
-
<MText
|
|
707
|
-
style={{
|
|
708
|
-
textAlign: 'center',
|
|
709
|
-
fontSize: 10,
|
|
710
|
-
marginTop: 5,
|
|
711
|
-
color: '#333333',
|
|
712
|
-
}}
|
|
713
|
-
>
|
|
714
|
-
EKYC
|
|
715
|
-
</MText>
|
|
716
|
-
</TouchableOpacity>
|
|
717
|
-
<TouchableOpacity
|
|
718
|
-
disabled={item?.step === 7 ? false : true}
|
|
719
|
-
style={$action}
|
|
720
|
-
onPress={() => {
|
|
721
|
-
navigation.push(ScreenNames.TTSSignLoan, {
|
|
722
|
-
loan: item,
|
|
723
|
-
});
|
|
724
|
-
}}
|
|
725
|
-
>
|
|
726
|
-
{item?.step <= 6 ? (
|
|
727
|
-
<IconSignDisable />
|
|
728
|
-
) : item?.step === 8 ? (
|
|
729
|
-
<IconSignSuccess />
|
|
730
|
-
) : (
|
|
731
|
-
<IconSign2 />
|
|
732
|
-
)}
|
|
733
|
-
<MText
|
|
734
|
-
style={{
|
|
735
|
-
textAlign: 'center',
|
|
736
|
-
fontSize: 10,
|
|
737
|
-
marginTop: 5,
|
|
738
|
-
color: '#333333',
|
|
739
|
-
}}
|
|
740
|
-
>
|
|
741
|
-
Ký HĐ
|
|
742
|
-
</MText>
|
|
743
|
-
</TouchableOpacity>
|
|
744
|
-
</View>
|
|
745
|
-
|
|
746
|
-
<View
|
|
747
|
-
style={{
|
|
748
|
-
flexDirection: 'row',
|
|
749
|
-
alignItems: 'center',
|
|
750
|
-
gap: 8,
|
|
751
|
-
marginTop: 16,
|
|
752
|
-
backgroundColor:
|
|
753
|
-
item?.step === 8 ? '#E8FFE9' : '#FFF2F2',
|
|
754
|
-
paddingHorizontal: 10,
|
|
755
|
-
paddingVertical: 10,
|
|
756
|
-
borderRadius: 4,
|
|
757
|
-
justifyContent: 'space-between',
|
|
758
|
-
}}
|
|
759
|
-
>
|
|
760
|
-
<View
|
|
761
|
-
style={{
|
|
762
|
-
flexDirection: 'row',
|
|
763
|
-
alignItems: 'center',
|
|
764
|
-
gap: 8,
|
|
765
|
-
flex: 1,
|
|
766
|
-
paddingRight: 24,
|
|
767
|
-
}}
|
|
768
|
-
>
|
|
769
|
-
{item?.step === 8 ? <IconTick /> : <Info />}
|
|
770
|
-
<MText
|
|
771
|
-
style={{
|
|
772
|
-
color: item?.step === 8 ? '#28A745' : '#E40010',
|
|
773
|
-
fontSize: 10,
|
|
774
|
-
}}
|
|
775
|
-
>
|
|
776
|
-
{item?.step < 3
|
|
777
|
-
? 'OCR chứng từ để được giải ngân'
|
|
778
|
-
: item?.step === 3
|
|
779
|
-
? `Tiếp tục Cập nhật thông tin để${'\n'}giải ngân nhanh nhất`
|
|
780
|
-
: item?.step === 6 || item?.step === 7
|
|
781
|
-
? `Tiếp tục eKYC và Ký hợp đồng để${'\n'}giải ngân nhanh nhất`
|
|
782
|
-
: item?.step === 8
|
|
783
|
-
? `Hợp đồng đã ký thành công. Vui lòng chờ chuyên viên tư vấn liên hệ`
|
|
784
|
-
: 'Đơn vay đang trong quá trình xử lý'}
|
|
785
|
-
</MText>
|
|
786
|
-
</View>
|
|
787
|
-
{item?.step < 3 ? (
|
|
788
|
-
<TouchableOpacity
|
|
789
|
-
onPress={() => {
|
|
790
|
-
if (item?.step === 0) {
|
|
791
|
-
navigation.push(ScreenNames.OCR, {
|
|
792
|
-
loan: item,
|
|
793
|
-
front: true,
|
|
794
|
-
});
|
|
795
|
-
} else if (item?.step === 1) {
|
|
796
|
-
navigation.push(ScreenNames.VehicleCamera, {
|
|
797
|
-
loan: item,
|
|
798
|
-
front: true,
|
|
799
|
-
});
|
|
800
|
-
} else if (item?.step === 2) {
|
|
801
|
-
navigation.push(ScreenNames.RegisterCamera, {
|
|
802
|
-
loan: item,
|
|
803
|
-
});
|
|
804
|
-
}
|
|
805
|
-
}}
|
|
806
|
-
>
|
|
807
|
-
<LinearGradient
|
|
808
|
-
colors={['#FF8E4F', '#EF592E']}
|
|
809
|
-
style={{
|
|
810
|
-
height: 24,
|
|
811
|
-
alignItems: 'center',
|
|
812
|
-
justifyContent: 'center',
|
|
813
|
-
borderRadius: 24,
|
|
814
|
-
paddingHorizontal: 10,
|
|
815
|
-
}}
|
|
816
|
-
>
|
|
817
|
-
<MText
|
|
818
|
-
style={{
|
|
819
|
-
color: 'white',
|
|
820
|
-
fontSize: 10,
|
|
821
|
-
}}
|
|
822
|
-
>
|
|
823
|
-
Đi tới OCR
|
|
824
|
-
</MText>
|
|
825
|
-
</LinearGradient>
|
|
826
|
-
</TouchableOpacity>
|
|
827
|
-
) : item?.step === 3 ? (
|
|
828
|
-
<TouchableOpacity
|
|
829
|
-
onPress={() => {
|
|
830
|
-
if (item?.step === 3) {
|
|
831
|
-
if (item?.typeLoan === 5) {
|
|
832
|
-
navigation.push(
|
|
833
|
-
ScreenNames.ReviewInformation,
|
|
834
|
-
{
|
|
835
|
-
loan: item,
|
|
836
|
-
}
|
|
837
|
-
);
|
|
838
|
-
} else if (item?.typeLoan === 6) {
|
|
839
|
-
navigation.push(ScreenNames.TopupLoanInfo, {
|
|
840
|
-
loan: item,
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
}}
|
|
845
|
-
>
|
|
846
|
-
<LinearGradient
|
|
847
|
-
colors={['#FF8E4F', '#EF592E']}
|
|
848
|
-
style={{
|
|
849
|
-
height: 24,
|
|
850
|
-
alignItems: 'center',
|
|
851
|
-
justifyContent: 'center',
|
|
852
|
-
borderRadius: 24,
|
|
853
|
-
paddingHorizontal: 10,
|
|
854
|
-
}}
|
|
855
|
-
>
|
|
856
|
-
<MText
|
|
857
|
-
style={{
|
|
858
|
-
color: 'white',
|
|
859
|
-
fontSize: 10,
|
|
860
|
-
}}
|
|
861
|
-
>
|
|
862
|
-
Cập nhật thông tin
|
|
863
|
-
</MText>
|
|
864
|
-
</LinearGradient>
|
|
865
|
-
</TouchableOpacity>
|
|
866
|
-
) : item?.step === 6 ? (
|
|
867
|
-
<TouchableOpacity
|
|
868
|
-
onPress={() => {
|
|
869
|
-
navigation.push(ScreenNames.LivenessV2, {
|
|
870
|
-
loan: item,
|
|
871
|
-
});
|
|
872
|
-
}}
|
|
873
|
-
>
|
|
874
|
-
<LinearGradient
|
|
875
|
-
colors={['#FF8E4F', '#EF592E']}
|
|
876
|
-
style={{
|
|
877
|
-
height: 24,
|
|
878
|
-
alignItems: 'center',
|
|
879
|
-
justifyContent: 'center',
|
|
880
|
-
borderRadius: 24,
|
|
881
|
-
paddingHorizontal: 10,
|
|
882
|
-
}}
|
|
883
|
-
>
|
|
884
|
-
<MText
|
|
885
|
-
style={{
|
|
886
|
-
color: 'white',
|
|
887
|
-
fontSize: 10,
|
|
888
|
-
}}
|
|
889
|
-
>
|
|
890
|
-
Đi tới EKYC
|
|
891
|
-
</MText>
|
|
892
|
-
</LinearGradient>
|
|
893
|
-
</TouchableOpacity>
|
|
894
|
-
) : item?.step === 7 ? (
|
|
895
|
-
<TouchableOpacity
|
|
896
|
-
onPress={() => {
|
|
897
|
-
navigation.push(ScreenNames.TTSSignLoan, {
|
|
898
|
-
loan: item,
|
|
899
|
-
});
|
|
900
|
-
}}
|
|
901
|
-
>
|
|
902
|
-
<LinearGradient
|
|
903
|
-
colors={['#FF8E4F', '#EF592E']}
|
|
904
|
-
style={{
|
|
905
|
-
height: 24,
|
|
906
|
-
alignItems: 'center',
|
|
907
|
-
justifyContent: 'center',
|
|
908
|
-
borderRadius: 24,
|
|
909
|
-
paddingHorizontal: 10,
|
|
910
|
-
}}
|
|
911
|
-
>
|
|
912
|
-
<MText
|
|
913
|
-
style={{
|
|
914
|
-
color: 'white',
|
|
915
|
-
fontSize: 10,
|
|
916
|
-
}}
|
|
917
|
-
>
|
|
918
|
-
Ký hợp đồng
|
|
919
|
-
</MText>
|
|
920
|
-
</LinearGradient>
|
|
921
|
-
</TouchableOpacity>
|
|
922
|
-
) : (
|
|
923
|
-
<></>
|
|
924
|
-
)}
|
|
925
|
-
</View>
|
|
926
|
-
|
|
927
|
-
<View
|
|
928
|
-
style={{
|
|
929
|
-
flexDirection: 'row',
|
|
930
|
-
justifyContent: 'space-between',
|
|
931
|
-
marginTop: 16,
|
|
932
|
-
}}
|
|
933
|
-
>
|
|
934
|
-
<MText
|
|
935
|
-
style={{
|
|
936
|
-
color: '#878787',
|
|
937
|
-
fontSize: 12,
|
|
938
|
-
}}
|
|
939
|
-
>
|
|
940
|
-
Trạng thái
|
|
941
|
-
</MText>
|
|
942
|
-
<MText
|
|
943
|
-
style={[
|
|
944
|
-
commonStyles.textNormalBold,
|
|
945
|
-
{ color: '#333333', fontSize: 12 },
|
|
946
|
-
]}
|
|
947
|
-
>
|
|
948
|
-
{item?.loanStatus}
|
|
949
|
-
</MText>
|
|
950
|
-
</View>
|
|
951
|
-
<View
|
|
952
|
-
style={{
|
|
953
|
-
height: 1,
|
|
954
|
-
backgroundColor: '#E0E0E0',
|
|
955
|
-
marginTop: 16,
|
|
956
|
-
}}
|
|
957
|
-
/>
|
|
958
|
-
{item?.listLoanAllAutoDE &&
|
|
959
|
-
item?.listLoanAllAutoDE.length > 0 && (
|
|
960
|
-
<View>
|
|
961
|
-
<MText
|
|
962
|
-
style={{
|
|
963
|
-
fontSize: 12,
|
|
964
|
-
fontWeight: 'bold',
|
|
965
|
-
marginTop: 16,
|
|
966
|
-
color: '#333333',
|
|
967
|
-
}}
|
|
968
|
-
>
|
|
969
|
-
Danh sách đơn chia nhỏ
|
|
970
|
-
</MText>
|
|
971
|
-
{item?.listLoanAllAutoDE.map((x, index) => (
|
|
972
|
-
<View
|
|
973
|
-
key={index}
|
|
974
|
-
style={{
|
|
975
|
-
marginTop: 8,
|
|
976
|
-
borderBottomWidth:
|
|
977
|
-
index + 1 === item?.listLoanAllAutoDE.length
|
|
978
|
-
? 0
|
|
979
|
-
: 1,
|
|
980
|
-
borderColor: '#E0E0E0',
|
|
981
|
-
paddingBottom: 8,
|
|
982
|
-
}}
|
|
983
|
-
>
|
|
984
|
-
<View
|
|
985
|
-
style={{
|
|
986
|
-
flexDirection: 'row',
|
|
987
|
-
justifyContent: 'space-between',
|
|
988
|
-
}}
|
|
989
|
-
>
|
|
990
|
-
<View
|
|
991
|
-
style={{
|
|
992
|
-
flexDirection: 'row',
|
|
993
|
-
alignItems: 'center',
|
|
994
|
-
gap: 10,
|
|
995
|
-
}}
|
|
996
|
-
>
|
|
997
|
-
<IconTima16 />
|
|
998
|
-
<MText
|
|
999
|
-
style={[
|
|
1000
|
-
commonStyles.textNormal,
|
|
1001
|
-
{
|
|
1002
|
-
color: '#333333',
|
|
1003
|
-
fontSize: 12,
|
|
1004
|
-
},
|
|
1005
|
-
]}
|
|
1006
|
-
>
|
|
1007
|
-
HD-{x?.loanBriefId} ({index + 1})
|
|
1008
|
-
</MText>
|
|
1009
|
-
</View>
|
|
1010
|
-
<MText
|
|
1011
|
-
style={[
|
|
1012
|
-
commonStyles.textNormalBold,
|
|
1013
|
-
{
|
|
1014
|
-
color: '#333333',
|
|
1015
|
-
fontSize: 12,
|
|
1016
|
-
},
|
|
1017
|
-
]}
|
|
1018
|
-
>
|
|
1019
|
-
{formatMoney(x?.totalMoney)} đ
|
|
1020
|
-
</MText>
|
|
1021
|
-
</View>
|
|
1022
|
-
</View>
|
|
1023
|
-
))}
|
|
1024
|
-
</View>
|
|
1025
|
-
)}
|
|
1026
|
-
|
|
1027
|
-
{item?.listLoanAllAutoDE &&
|
|
1028
|
-
item?.listLoanAllAutoDE.length > 0 && (
|
|
1029
|
-
<TouchableOpacity
|
|
1030
|
-
onPress={() => {
|
|
1031
|
-
navigation.push(ScreenNames.LoanInterestRate, {
|
|
1032
|
-
loan: item,
|
|
1033
|
-
});
|
|
1034
|
-
}}
|
|
1035
|
-
style={{
|
|
1036
|
-
flex: 1,
|
|
1037
|
-
alignItems: 'center',
|
|
1038
|
-
backgroundColor: '#EDF6FF',
|
|
1039
|
-
marginHorizontal: -16,
|
|
1040
|
-
paddingVertical: 10,
|
|
1041
|
-
borderBottomRightRadius: 8,
|
|
1042
|
-
borderBottomLeftRadius: 8,
|
|
1043
|
-
marginTop: 10,
|
|
1044
|
-
}}
|
|
1045
|
-
>
|
|
1046
|
-
<MText
|
|
1047
|
-
style={[
|
|
1048
|
-
{
|
|
1049
|
-
fontSize: 12,
|
|
1050
|
-
color: '#2F80ED',
|
|
1051
|
-
},
|
|
1052
|
-
]}
|
|
1053
|
-
>
|
|
1054
|
-
Bảng biểu lãi phí đơn vay {`->`}
|
|
1055
|
-
</MText>
|
|
1056
|
-
</TouchableOpacity>
|
|
1057
|
-
)}
|
|
1058
|
-
</View>
|
|
486
|
+
<ItemTimaOneV3 item={item} navigation={navigation} />
|
|
1059
487
|
</View>
|
|
1060
488
|
) : (
|
|
1061
489
|
<View>
|
|
@@ -3214,6 +2642,17 @@ export const Home = observer(function Home() {
|
|
|
3214
2642
|
</View>
|
|
3215
2643
|
</SafeAreaView>
|
|
3216
2644
|
</Modal>
|
|
2645
|
+
|
|
2646
|
+
<ModalOptionLoan
|
|
2647
|
+
open={showModal4}
|
|
2648
|
+
loan={dataSuggest}
|
|
2649
|
+
callback={() => {
|
|
2650
|
+
setShowModal4(false);
|
|
2651
|
+
setTimeout(() => {
|
|
2652
|
+
onRefresh();
|
|
2653
|
+
}, 500);
|
|
2654
|
+
}}
|
|
2655
|
+
/>
|
|
3217
2656
|
</ScrollView>
|
|
3218
2657
|
<Loading isLoading={isLoading} />
|
|
3219
2658
|
</View>
|