react-native-timacare 3.1.13-beta → 3.1.14-beta

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.
Files changed (136) hide show
  1. package/lib/commonjs/assets/svgs/ekyc_disable.svg +4 -0
  2. package/lib/commonjs/assets/svgs/expand.svg +8 -0
  3. package/lib/commonjs/assets/svgs/expand_up.svg +8 -0
  4. package/lib/commonjs/assets/svgs/index.js +1 -1
  5. package/lib/commonjs/assets/svgs/index.js.flow +14 -0
  6. package/lib/commonjs/assets/svgs/index.js.map +1 -1
  7. package/lib/commonjs/assets/svgs/money.svg +5 -0
  8. package/lib/commonjs/assets/svgs/sign_disable.svg +12 -0
  9. package/lib/commonjs/assets/svgs/sign_success.svg +12 -0
  10. package/lib/commonjs/assets/svgs/tima_16.svg +13 -0
  11. package/lib/commonjs/screens/home/index.js +1 -1
  12. package/lib/commonjs/screens/home/index.js.flow +2051 -1628
  13. package/lib/commonjs/screens/home/index.js.map +1 -1
  14. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  15. package/lib/commonjs/screens/liveness-v2/index.js.flow +10 -6
  16. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  17. package/lib/commonjs/screens/register/index.js +1 -1
  18. package/lib/commonjs/screens/register/index.js.flow +1 -1
  19. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js +1 -1
  20. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.flow +123 -36
  21. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
  22. package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
  23. package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +3 -1
  24. package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
  25. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +1 -1
  26. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +3 -1
  27. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
  28. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
  29. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +538 -510
  30. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  31. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  32. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +76 -57
  33. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  34. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
  35. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +58 -12
  36. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  37. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js +1 -1
  38. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.flow +6 -7
  39. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.map +1 -1
  40. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  41. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +185 -50
  42. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  43. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
  44. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +3 -1
  45. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  46. package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
  47. package/lib/commonjs/screens/toan-trinh-so/store.js.flow +23 -1
  48. package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
  49. package/lib/commonjs/services/api/api.js +1 -1
  50. package/lib/commonjs/services/api/api.js.flow +46 -0
  51. package/lib/commonjs/services/api/api.js.map +1 -1
  52. package/lib/commonjs/utils/index.js +1 -1
  53. package/lib/commonjs/utils/index.js.flow +51 -0
  54. package/lib/commonjs/utils/index.js.map +1 -1
  55. package/lib/module/assets/svgs/ekyc_disable.svg +4 -0
  56. package/lib/module/assets/svgs/expand.svg +8 -0
  57. package/lib/module/assets/svgs/expand_up.svg +8 -0
  58. package/lib/module/assets/svgs/index.js +1 -1
  59. package/lib/module/assets/svgs/index.js.map +1 -1
  60. package/lib/module/assets/svgs/money.svg +5 -0
  61. package/lib/module/assets/svgs/sign_disable.svg +12 -0
  62. package/lib/module/assets/svgs/sign_success.svg +12 -0
  63. package/lib/module/assets/svgs/tima_16.svg +13 -0
  64. package/lib/module/screens/home/index.js +1 -1
  65. package/lib/module/screens/home/index.js.map +1 -1
  66. package/lib/module/screens/liveness-v2/index.js +1 -1
  67. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  68. package/lib/module/screens/register/index.js +1 -1
  69. package/lib/module/screens/toan-trinh-so/LoanInterestRate.js +1 -1
  70. package/lib/module/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
  71. package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
  72. package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
  73. package/lib/module/screens/toan-trinh-so/RegisterCamera.js +1 -1
  74. package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
  75. package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
  76. package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  77. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  78. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  79. package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
  80. package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  81. package/lib/module/screens/toan-trinh-so/TTSOTP.js +1 -1
  82. package/lib/module/screens/toan-trinh-so/TTSOTP.js.map +1 -1
  83. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  84. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  85. package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
  86. package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  87. package/lib/module/screens/toan-trinh-so/store.js +1 -1
  88. package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
  89. package/lib/module/services/api/api.js +1 -1
  90. package/lib/module/services/api/api.js.map +1 -1
  91. package/lib/module/utils/index.js +1 -1
  92. package/lib/module/utils/index.js.map +1 -1
  93. package/lib/typescript/assets/svgs/index.d.ts +8 -1
  94. package/lib/typescript/assets/svgs/index.d.ts.map +1 -1
  95. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  96. package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
  97. package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts.map +1 -1
  98. package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -1
  99. package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts.map +1 -1
  100. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
  101. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
  102. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
  103. package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts +1 -1
  104. package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts.map +1 -1
  105. package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
  106. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
  107. package/lib/typescript/screens/toan-trinh-so/store.d.ts +2 -0
  108. package/lib/typescript/screens/toan-trinh-so/store.d.ts.map +1 -1
  109. package/lib/typescript/services/api/api.d.ts +48 -0
  110. package/lib/typescript/services/api/api.d.ts.map +1 -1
  111. package/lib/typescript/utils/index.d.ts +8 -0
  112. package/lib/typescript/utils/index.d.ts.map +1 -1
  113. package/package.json +1 -1
  114. package/src/assets/svgs/ekyc_disable.svg +4 -0
  115. package/src/assets/svgs/expand.svg +8 -0
  116. package/src/assets/svgs/expand_up.svg +8 -0
  117. package/src/assets/svgs/index.tsx +14 -0
  118. package/src/assets/svgs/money.svg +5 -0
  119. package/src/assets/svgs/sign_disable.svg +12 -0
  120. package/src/assets/svgs/sign_success.svg +12 -0
  121. package/src/assets/svgs/tima_16.svg +13 -0
  122. package/src/screens/home/index.tsx +2051 -1628
  123. package/src/screens/liveness-v2/index.tsx +10 -6
  124. package/src/screens/register/index.tsx +1 -1
  125. package/src/screens/toan-trinh-so/LoanInterestRate.tsx +123 -36
  126. package/src/screens/toan-trinh-so/OCR.tsx +3 -1
  127. package/src/screens/toan-trinh-so/RegisterCamera.tsx +3 -1
  128. package/src/screens/toan-trinh-so/ReviewInformation.tsx +538 -510
  129. package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +76 -57
  130. package/src/screens/toan-trinh-so/ReviewLoan.tsx +58 -12
  131. package/src/screens/toan-trinh-so/TTSOTP.tsx +6 -7
  132. package/src/screens/toan-trinh-so/TTSSignLoan.tsx +185 -50
  133. package/src/screens/toan-trinh-so/VehicleCamera.tsx +3 -1
  134. package/src/screens/toan-trinh-so/store.ts +23 -1
  135. package/src/services/api/api.ts +46 -0
  136. package/src/utils/index.tsx +51 -0
@@ -42,6 +42,7 @@ import {
42
42
  IconNavClose,
43
43
  IconNotify,
44
44
  IconSchedule,
45
+ IconSign,
45
46
  IconSign2,
46
47
  IconVideo,
47
48
  Info,
@@ -84,7 +85,15 @@ import {
84
85
  IconEditSuccess,
85
86
  IconEkyc,
86
87
  IconEkycSuccess,
88
+ IconEkycDisable,
89
+ IconSignDisable,
90
+ IconTima16,
91
+ IconExpand,
92
+ IconExpandUp,
93
+ IconSignSuccess,
94
+ IconMoney2,
87
95
  } from '../../assets/svgs';
96
+ import { o } from 'ramda';
88
97
 
89
98
  const listBanners = [
90
99
  require('../../assets/img/banner1.png'),
@@ -96,6 +105,8 @@ const $action: ViewStyle = {
96
105
  alignItems: 'center',
97
106
  };
98
107
 
108
+ let _unsubscribe;
109
+
99
110
  export const Home = observer(function Home() {
100
111
  const navigation = useNavigation();
101
112
  const [showModal, setShowModal] = useState(false);
@@ -107,6 +118,11 @@ export const Home = observer(function Home() {
107
118
  const [isLoading, setIsLoading] = useState(false);
108
119
  const [loanCimb, setLoanCimb] = useState(null);
109
120
  const [loan, setLoan] = useState(null);
121
+ const [expandedId, setExpandedId] = useState(null); // ID item đang mở
122
+
123
+ const toggleExpand = (id) => {
124
+ setExpandedId((prev) => (prev === id ? null : id));
125
+ };
110
126
 
111
127
  const onRefresh = () => {
112
128
  setIsLoading(true);
@@ -165,6 +181,7 @@ export const Home = observer(function Home() {
165
181
  useEffect(() => {
166
182
  navigation.addListener('focus', () => {
167
183
  onRefresh();
184
+ getLocation();
168
185
  });
169
186
  }, [navigation]);
170
187
 
@@ -286,12 +303,6 @@ export const Home = observer(function Home() {
286
303
  );
287
304
  };
288
305
 
289
- useEffect(() => {
290
- return navigation.addListener('focus', () => {
291
- getLocation();
292
- });
293
- }, [navigation]);
294
-
295
306
  const checkTerm = (loan, action) => {
296
307
  if (loan?.isConfirmTimaRule && loan?.isConfirmTimaRule === true) {
297
308
  navigation.dispatch(StackActions.push(ScreenNames.Terms, loan));
@@ -300,6 +311,56 @@ export const Home = observer(function Home() {
300
311
  if (action) action();
301
312
  };
302
313
 
314
+ const acceptLoan = async () => {
315
+ setIsLoading(true);
316
+ try {
317
+ const response = await Api.getInstance().changePipeline({
318
+ LoanBriefId: loan?.id,
319
+ TypeId: 1,
320
+ });
321
+ setIsLoading(false);
322
+ if (response.kind === 'ok') {
323
+ if (response.data?.meta?.errorCode === 200) {
324
+ setShowModal3(false);
325
+ setTimeout(() => {
326
+ onRefresh();
327
+ }, 300);
328
+ } else {
329
+ Alert.alert('Thông báo', response.data?.meta?.errorMessage);
330
+ }
331
+ } else {
332
+ Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau');
333
+ }
334
+ } catch (error) {
335
+ setIsLoading(false);
336
+ }
337
+ };
338
+
339
+ const rejectLoan = async () => {
340
+ setIsLoading(true);
341
+ try {
342
+ const response = await Api.getInstance().changePipeline({
343
+ LoanBriefId: loan?.id,
344
+ TypeId: 2,
345
+ });
346
+ setIsLoading(false);
347
+ if (response.kind === 'ok') {
348
+ if (response.data?.meta?.errorCode === 200) {
349
+ setShowModal3(false);
350
+ setTimeout(() => {
351
+ onRefresh();
352
+ }, 300);
353
+ } else {
354
+ Alert.alert('Thông báo', response.data?.meta?.errorMessage);
355
+ }
356
+ } else {
357
+ Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau');
358
+ }
359
+ } catch (error) {
360
+ setIsLoading(false);
361
+ }
362
+ };
363
+
303
364
  return (
304
365
  <View
305
366
  style={[commonStyles.fill, { zIndex: 1, backgroundColor: '#FFFFFF' }]}
@@ -378,135 +439,321 @@ export const Home = observer(function Home() {
378
439
  </View>
379
440
  ) : (
380
441
  <View>
381
- {listLoan?.map((item, index) => (
382
- <View style={{ marginBottom: 14 }} key={index}>
383
- {/* TOÀN TRÌNH SỐ */}
384
- {item?.typeLoan === 5 ? (
385
- <View>
386
- <View
387
- style={{
388
- backgroundColor: '#FFFFFF',
389
- paddingHorizontal: 16,
390
- paddingTop: 16,
391
- borderRadius: 8,
392
- borderWidth: 0.5,
393
- borderColor: '#E0E0E0',
394
- }}
395
- >
396
- <View
397
- style={{
398
- flexDirection: 'row',
399
- alignItems: 'center',
400
- }}
401
- >
402
- <Contract />
403
- <View style={{ flex: 1, paddingLeft: 8 }}>
404
- <MText style={commonStyles.textNormalBold}>
405
- Mã Đơn vay-{item?.id}
406
- </MText>
407
- <MText style={commonStyles.textNormal}>
408
- Số tiền vay (VND):{' '}
409
- {item?.loanAmount
410
- ? formatMoney(item?.loanAmount)
411
- : 'Chưa xác định'}
412
- </MText>
413
- </View>
414
- </View>
415
- <View
416
- style={{
417
- height: 1,
418
- backgroundColor: '#E0E0E0',
419
- marginVertical: 16,
420
- }}
421
- />
442
+ {listLoan?.map((item, index) => {
443
+ const isExpanded = expandedId === item.id;
444
+ return (
445
+ <View style={{ marginBottom: 14 }} key={index}>
446
+ {/* TOÀN TRÌNH SỐ */}
447
+ {item?.typeLoan === 5 ? (
448
+ <View>
422
449
  <View
423
450
  style={{
424
- flexDirection: 'row',
425
- justifyContent: 'space-between',
451
+ backgroundColor: '#FFFFFF',
452
+ paddingHorizontal: 16,
453
+ paddingTop: 16,
454
+ borderRadius: 8,
455
+ borderWidth: 0.5,
456
+ borderColor: '#E0E0E0',
426
457
  }}
427
458
  >
428
- <MText style={commonStyles.textNormal}>
429
- Trạng thái
430
- </MText>
431
- <MText
432
- style={[
433
- commonStyles.textNormalBold,
434
- { color: '#F05123' },
435
- ]}
459
+ <LinearGradient
460
+ colors={['#FF8E4F', '#EF592E']}
461
+ style={{
462
+ borderTopLeftRadius: 8,
463
+ borderTopRightRadius: 8,
464
+ marginVertical: -16,
465
+ marginHorizontal: -16,
466
+ }}
436
467
  >
437
- {item?.loanStatus}
438
- </MText>
439
- </View>
440
- <View
441
- style={{
442
- height: 1,
443
- backgroundColor: '#E0E0E0',
444
- marginVertical: 16,
445
- }}
446
- />
468
+ <View
469
+ style={{
470
+ flexDirection: 'row',
471
+ justifyContent: 'space-between',
472
+ alignItems: 'center',
473
+ paddingHorizontal: 16,
474
+ paddingVertical: 8,
475
+ }}
476
+ >
477
+ <View
478
+ style={{
479
+ flexDirection: 'row',
480
+ alignItems: 'center',
481
+ gap: 8,
482
+ }}
483
+ >
484
+ <IconMoney2 />
485
+ <MText
486
+ style={{
487
+ fontSize: 12,
488
+ color: 'white',
489
+ }}
490
+ >
491
+ Số tiền đăng ký vay
492
+ </MText>
493
+ </View>
494
+ <MText
495
+ style={{
496
+ fontSize: 12,
497
+ color: 'white',
498
+ fontWeight: 'bold',
499
+ }}
500
+ >
501
+ {item?.listLoanAllAutoDE &&
502
+ item?.listLoanAllAutoDE.length > 0
503
+ ? formatMoney(
504
+ item?.listLoanAllAutoDE.reduce(
505
+ (sum, item) => sum + item.totalMoney,
506
+ 0
507
+ )
508
+ )
509
+ : formatMoney(item?.loanAmount)}
510
+ đ
511
+ </MText>
512
+ </View>
513
+ </LinearGradient>
514
+ {item?.listLoanAllAutoDE &&
515
+ item?.listLoanAllAutoDE.length > 0 && (
516
+ <View
517
+ style={{
518
+ marginHorizontal: -16,
519
+ backgroundColor: '#FFF3E9',
520
+ paddingHorizontal: 16,
521
+ paddingVertical: 8,
522
+ marginTop: 16,
523
+ }}
524
+ >
525
+ <View
526
+ style={{
527
+ flexDirection: 'row',
528
+ justifyContent: 'space-between',
529
+ }}
530
+ >
531
+ <MText
532
+ style={{
533
+ fontSize: 10,
534
+ color: '#878787',
535
+ marginLeft: 24,
536
+ }}
537
+ >
538
+ Số tiền giải ngân
539
+ </MText>
540
+ <MText
541
+ style={{
542
+ fontSize: 10,
543
+ color: '#333333',
544
+ }}
545
+ >
546
+ {formatMoney(
547
+ item?.listLoanAllAutoDE.reduce(
548
+ (sum, item) => sum + item.loanAmount,
549
+ 0
550
+ )
551
+ )}{' '}
552
+ đ
553
+ </MText>
554
+ </View>
555
+ <View
556
+ style={{
557
+ flexDirection: 'row',
558
+ justifyContent: 'space-between',
559
+ marginTop: 6,
560
+ }}
561
+ >
562
+ <MText
563
+ style={{
564
+ fontSize: 10,
565
+ color: '#878787',
566
+ marginLeft: 24,
567
+ }}
568
+ >
569
+ Số tiền bảo hiểm
570
+ </MText>
571
+ <MText
572
+ style={{
573
+ fontSize: 10,
574
+ color: '#333333',
575
+ }}
576
+ >
577
+ {formatMoney(
578
+ item?.listLoanAllAutoDE.reduce(
579
+ (sum, item) =>
580
+ sum + item.insurenceMoney,
581
+ 0
582
+ )
583
+ )}{' '}
584
+ đ
585
+ </MText>
586
+ </View>
587
+ </View>
588
+ )}
589
+ {/* <View
590
+ style={{
591
+ flexDirection: 'row',
592
+ alignItems: 'center',
593
+ }}
594
+ >
595
+ <Contract />
596
+ <View style={{ flex: 1, paddingLeft: 8 }}>
597
+ <MText style={commonStyles.textNormalBold}>
598
+ Mã Đơn vay-{item?.id}
599
+ </MText>
600
+ <MText style={commonStyles.textNormal}>
601
+ Số tiền vay (VND):{' '}
602
+ {item?.loanAmount
603
+ ? formatMoney(item?.loanAmount)
604
+ : 'Chưa xác định'}
605
+ </MText>
606
+ </View>
607
+ </View>
608
+ <View
609
+ style={{
610
+ height: 1,
611
+ backgroundColor: '#E0E0E0',
612
+ marginVertical: 16,
613
+ }}
614
+ /> */}
447
615
 
448
- <View
449
- style={{
450
- flexDirection: 'row',
451
- justifyContent: 'space-between',
452
- }}
453
- >
454
- <TouchableOpacity
455
- disabled={item?.step >= 3 ? true : false}
456
- style={$action}
457
- onPress={() => {
458
- if (item?.step === 0) {
459
- navigation.push(ScreenNames.OCR, {
460
- loan: item,
461
- front: true,
462
- });
463
- } else if (item?.step === 1) {
464
- navigation.push(ScreenNames.VehicleCamera, {
616
+ <View
617
+ style={{
618
+ flexDirection: 'row',
619
+ justifyContent: 'space-between',
620
+ marginTop:
621
+ item?.listLoanAllAutoDE &&
622
+ item?.listLoanAllAutoDE.length > 0
623
+ ? 16
624
+ : 32,
625
+ }}
626
+ >
627
+ <TouchableOpacity
628
+ disabled={item?.step >= 3 ? true : false}
629
+ style={$action}
630
+ onPress={() => {
631
+ if (item?.step === 0) {
632
+ navigation.push(ScreenNames.OCR, {
633
+ loan: item,
634
+ front: true,
635
+ });
636
+ } else if (item?.step === 1) {
637
+ navigation.push(ScreenNames.VehicleCamera, {
638
+ loan: item,
639
+ front: true,
640
+ });
641
+ } else if (item?.step === 2) {
642
+ navigation.push(
643
+ ScreenNames.RegisterCamera,
644
+ {
645
+ loan: item,
646
+ }
647
+ );
648
+ }
649
+ }}
650
+ >
651
+ {item?.step >= 3 ? (
652
+ <IconOCRSuccess />
653
+ ) : (
654
+ <OcrSvg />
655
+ )}
656
+ <MText
657
+ style={{
658
+ textAlign: 'center',
659
+ fontSize: 10,
660
+ marginTop: 5,
661
+ color: '#333333',
662
+ }}
663
+ >
664
+ OCR{'\n'}chứng từ
665
+ </MText>
666
+ </TouchableOpacity>
667
+ <TouchableOpacity
668
+ disabled={item?.step !== 3 ? true : false}
669
+ style={$action}
670
+ onPress={() => {
671
+ if (item?.step === 3) {
672
+ navigation.push(
673
+ ScreenNames.ReviewInformation,
674
+ {
675
+ loan: item,
676
+ }
677
+ );
678
+ }
679
+ }}
680
+ >
681
+ {item.step > 3 ? (
682
+ <IconEditSuccess />
683
+ ) : (
684
+ <IconEdit />
685
+ )}
686
+ <MText
687
+ style={{
688
+ textAlign: 'center',
689
+ fontSize: 10,
690
+ marginTop: 5,
691
+ color: '#333333',
692
+ }}
693
+ >
694
+ Cập nhật{'\n'}thông tin
695
+ </MText>
696
+ </TouchableOpacity>
697
+ <TouchableOpacity
698
+ onPress={() => {
699
+ navigation.push(ScreenNames.LivenessV2, {
465
700
  loan: item,
466
- front: true,
467
701
  });
468
- } else if (item?.step === 2) {
469
- navigation.push(ScreenNames.RegisterCamera, {
702
+ }}
703
+ style={$action}
704
+ disabled={item?.step === 6 ? false : true}
705
+ >
706
+ {item?.step === 7 ? (
707
+ <IconEkycSuccess />
708
+ ) : item?.step <= 5 ? (
709
+ <IconEkycDisable />
710
+ ) : (
711
+ <IconEkyc />
712
+ )}
713
+
714
+ <MText
715
+ style={{
716
+ textAlign: 'center',
717
+ fontSize: 10,
718
+ marginTop: 5,
719
+ color: '#333333',
720
+ }}
721
+ >
722
+ EKYC
723
+ </MText>
724
+ </TouchableOpacity>
725
+ <TouchableOpacity
726
+ disabled={item?.step === 7 ? false : true}
727
+ style={$action}
728
+ onPress={() => {
729
+ // checkTerm(item, () => {
730
+ // signLoan(item);
731
+ // });
732
+ navigation.push(ScreenNames.TTSSignLoan, {
470
733
  loan: item,
471
734
  });
472
- }
473
- }}
474
- >
475
- {item?.step >= 3 ? (
476
- <IconOCRSuccess />
477
- ) : (
478
- <OcrSvg />
479
- )}
480
- <MText
481
- style={{
482
- textAlign: 'center',
483
- fontSize: 10,
484
- marginTop: 5,
485
- color: '#333333',
486
735
  }}
487
736
  >
488
- OCR{'\n'}chứng từ
489
- </MText>
490
- </TouchableOpacity>
491
- <TouchableOpacity
492
- disabled={item?.step !== 3 ? true : false}
493
- style={$action}
494
- onPress={() => {
495
- if (item?.step === 3) {
496
- navigation.push(
497
- ScreenNames.ReviewInformation,
498
- {
499
- loan: item,
500
- }
501
- );
502
- }
503
- }}
504
- >
505
- {item.step > 3 ? (
506
- <IconEditSuccess />
507
- ) : (
508
- <IconEdit />
509
- )}
737
+ {item?.step < 6 ? (
738
+ <IconSignDisable />
739
+ ) : item?.step === 8 ? (
740
+ <IconSignSuccess />
741
+ ) : (
742
+ <IconSign2 />
743
+ )}
744
+ <MText
745
+ style={{
746
+ textAlign: 'center',
747
+ fontSize: 10,
748
+ marginTop: 5,
749
+ color: '#333333',
750
+ }}
751
+ >
752
+ Ký HĐ
753
+ </MText>
754
+ </TouchableOpacity>
755
+ {/* <TouchableOpacity style={$action}>
756
+ <IconVideo />
510
757
  <MText
511
758
  style={{
512
759
  textAlign: 'center',
@@ -515,1608 +762,1817 @@ export const Home = observer(function Home() {
515
762
  color: '#333333',
516
763
  }}
517
764
  >
518
- Cập nhật{'\n'}thông tin
765
+ Quay video
519
766
  </MText>
520
- </TouchableOpacity>
521
- <TouchableOpacity
522
- onPress={() => {
523
- navigation.push(ScreenNames.LivenessV2, {
524
- loan: item,
525
- });
526
- }}
527
- style={$action}
528
- disabled={item?.step === 5 ? false : true}
529
- >
530
- {checkEKYC[item.id] ? (
531
- <IconEkycSuccess />
532
- ) : (
533
- <IconEkyc />
534
- )}
535
-
536
- <MText
767
+ </TouchableOpacity> */}
768
+ </View>
769
+ {item?.step !== 8 && (
770
+ <View
537
771
  style={{
538
- textAlign: 'center',
539
- fontSize: 10,
540
- marginTop: 5,
541
- color: '#333333',
772
+ flexDirection: 'row',
773
+ alignItems: 'center',
774
+ gap: 8,
775
+ marginTop: 16,
776
+ backgroundColor: '#FFF2F2',
777
+ paddingHorizontal: 10,
778
+ paddingVertical: 6,
779
+ borderRadius: 4,
542
780
  }}
543
781
  >
544
- EKYC
545
- </MText>
546
- </TouchableOpacity>
547
- <TouchableOpacity
548
- style={$action}
549
- onPress={() => {
550
- // checkTerm(item, () => {
551
- // signLoan(item);
552
- // });
553
- navigation.push(ScreenNames.TTSSignLoan, {
554
- loan: item,
555
- });
782
+ <Info />
783
+ <MText
784
+ style={{
785
+ color: '#E40010',
786
+ fontSize: 10,
787
+ }}
788
+ >
789
+ {item?.step < 3
790
+ ? 'OCR chứng từ để được giải ngân nhanh nhất'
791
+ : item?.step === 3
792
+ ? 'Tiếp tục Cập nhật thông tin để giải ngân nhanh nhất'
793
+ : item?.step === 6 || item?.step === 7
794
+ ? 'Tiếp tục eKYC và Ký hợp đồng để giải ngân nhanh nhất'
795
+ : 'Đơn vay đang trong quá trình xử lý'}
796
+ </MText>
797
+ </View>
798
+ )}
799
+ <View
800
+ style={{
801
+ flexDirection: 'row',
802
+ justifyContent: 'space-between',
803
+ marginTop: 16,
556
804
  }}
557
805
  >
558
- <IconSign2 />
559
806
  <MText
560
807
  style={{
561
- textAlign: 'center',
562
- fontSize: 10,
563
- marginTop: 5,
564
- color: '#333333',
808
+ color: '#878787',
809
+ fontSize: 12,
565
810
  }}
566
811
  >
567
-
812
+ Trạng thái
568
813
  </MText>
569
- </TouchableOpacity>
570
- {/* <TouchableOpacity style={$action}>
571
- <IconVideo />
572
814
  <MText
573
- style={{
574
- textAlign: 'center',
575
- fontSize: 10,
576
- marginTop: 5,
577
- color: '#333333',
578
- }}
815
+ style={[
816
+ commonStyles.textNormalBold,
817
+ { color: '#333333', fontSize: 12 },
818
+ ]}
579
819
  >
580
- Quay video
820
+ {item?.loanStatus}
581
821
  </MText>
582
- </TouchableOpacity> */}
583
- </View>
584
- <View
585
- style={{
586
- flexDirection: 'row',
587
- alignItems: 'center',
588
- backgroundColor: '#FBEFE7',
589
- marginHorizontal: -16,
590
- paddingVertical: 8,
591
- marginTop: 16,
592
- borderBottomRightRadius: 8,
593
- borderBottomLeftRadius: 8,
594
- paddingHorizontal: 16,
595
- }}
596
- >
597
- <Info />
598
- <MText
599
- style={[
600
- {
601
- fontWeight: '300',
602
- fontSize: 10,
603
- fontStyle: 'italic',
604
- color: '#333333',
605
- marginLeft: 8,
606
- },
607
- ]}
608
- >
609
- Thực hiện đầy đủ các bước để giải ngân nhanh nhất
610
- </MText>
611
- </View>
612
- </View>
613
- </View>
614
- ) : (
615
- <View>
616
- {/* // luồng CIMB */}
617
- {item?.isPipelineCIMB ? (
618
- <View>
619
- {/* // type 4 digital topup */}
620
- {item?.typeLoan === 4 ? (
621
- <View>
622
- <View
623
- style={{
624
- backgroundColor: '#FFFFFF',
625
- paddingHorizontal: 16,
626
- paddingTop: 16,
627
- borderRadius: 8,
628
- borderWidth: 0.5,
629
- borderColor: '#E0E0E0',
630
- }}
631
- >
632
- <View
633
- style={{
634
- flexDirection: 'row',
635
- alignItems: 'center',
636
- }}
637
- >
638
- <Contract />
639
- <View style={{ flex: 1, paddingLeft: 8 }}>
640
- <MText
641
- style={commonStyles.textNormalBold}
642
- >
643
- Mã Đơn vay-{item?.id}
644
- </MText>
645
- <MText style={commonStyles.textNormal}>
646
- Số tiền vay (VND):{' '}
647
- {item?.loanAmountOffer
648
- ? formatMoney(item?.loanAmountOffer)
649
- : 'Chưa xác định'}
650
- </MText>
651
- </View>
652
- </View>
653
- <View
654
- style={{
655
- height: 1,
656
- backgroundColor: '#E0E0E0',
657
- marginVertical: 16,
658
- }}
659
- />
660
- <View
822
+ </View>
823
+ <View
824
+ style={{
825
+ height: 1,
826
+ backgroundColor: '#E0E0E0',
827
+ marginTop: 16,
828
+ }}
829
+ />
830
+ {item?.listLoanAllAutoDE &&
831
+ item?.listLoanAllAutoDE.length > 0 && (
832
+ <View>
833
+ <MText
661
834
  style={{
662
- flexDirection: 'row',
663
- justifyContent: 'space-between',
835
+ fontSize: 12,
836
+ fontWeight: 'bold',
837
+ marginTop: 16,
838
+ color: '#333333',
664
839
  }}
665
840
  >
666
- <MText style={commonStyles.textNormal}>
667
- Trạng thái
668
- </MText>
669
- <MText
670
- style={[
671
- commonStyles.textNormalBold,
672
- { color: '#F05123' },
673
- ]}
841
+ Danh sách đơn đồng ký
842
+ </MText>
843
+ {item?.listLoanAllAutoDE.map((x, index) => (
844
+ <View
845
+ key={index}
846
+ style={{
847
+ marginTop: 8,
848
+ borderBottomWidth: 1,
849
+ borderColor: '#E0E0E0',
850
+ paddingBottom: 8,
851
+ }}
674
852
  >
675
- {item?.loanStatus}
676
- </MText>
677
- </View>
678
- <View
679
- style={{
680
- height: 0.5,
681
- backgroundColor: '#E0E0E0',
682
- marginVertical: 16,
683
- }}
684
- />
685
- <View style={{ flexDirection: 'row' }}>
686
- {item?.loanStatus === null ||
687
- item?.loanStatus === '' ? (
688
- <MButton
689
- style={{ alignItems: 'center' }}
690
- onPress={() => {
691
- checkTerm(item, () => {
692
- navigation.dispatch(
693
- StackActions.push(
694
- ScreenNames.CIMBxTima,
695
- {
696
- loan: item,
697
- }
698
- )
699
- );
700
- });
853
+ <View
854
+ style={{
855
+ flexDirection: 'row',
856
+ justifyContent: 'space-between',
701
857
  }}
702
858
  >
703
- <AddInfo />
704
- <MText
705
- style={[
706
- commonStyles.textNormal,
707
- {
859
+ <View
860
+ style={{
861
+ flexDirection: 'row',
862
+ alignItems: 'center',
863
+ gap: 10,
864
+ }}
865
+ >
866
+ <IconTima16 />
867
+ <MText
868
+ style={[
869
+ commonStyles.textNormal,
870
+ {
871
+ color: '#333333',
872
+ fontSize: 12,
873
+ },
874
+ ]}
875
+ >
876
+ HD-{x?.loanBriefId} ({index + 1})
877
+ </MText>
878
+ </View>
879
+ <MText
880
+ style={[
881
+ commonStyles.textNormalBold,
882
+ {
883
+ color: '#333333',
708
884
  fontSize: 12,
709
- fontWeight: '300',
710
- marginTop: 8,
711
- textAlign: 'center',
712
885
  },
713
886
  ]}
714
887
  >
715
- Hoàn thiện{'\n'}cung cấp thông tin
888
+ {formatMoney(x?.totalMoney)} đ
716
889
  </MText>
717
- </MButton>
718
- ) : (
719
- <View>
720
- {item?.isUpdateLoan ||
721
- item?.isUpdateInformation ? (
722
- <TouchableOpacity
723
- style={{ alignItems: 'center' }}
724
- onPress={() => {
725
- checkTerm(item, () => {
726
- if (item?.isUpdateLoan) {
727
- navigation.dispatch(
728
- StackActions.push(
729
- ScreenNames.CimbSelfie,
730
- {
731
- loan: item,
732
- }
733
- )
734
- );
735
- } else {
736
- navigation.dispatch(
737
- StackActions.push(
738
- ScreenNames.QuickSubmit,
739
- {
740
- loan: item,
741
- }
742
- )
743
- );
744
- }
745
- });
890
+ </View>
891
+ {isExpanded && (
892
+ <>
893
+ <View
894
+ style={{
895
+ flexDirection: 'row',
896
+ justifyContent: 'space-between',
897
+ marginTop: 8,
746
898
  }}
747
899
  >
748
- <AddInfo />
900
+ <View
901
+ style={{
902
+ flexDirection: 'row',
903
+ alignItems: 'center',
904
+ marginLeft: 24,
905
+ }}
906
+ >
907
+ <MText
908
+ style={[
909
+ commonStyles.textNormal,
910
+ {
911
+ color: '#999999',
912
+ fontSize: 12,
913
+ },
914
+ ]}
915
+ >
916
+ Số tiền giải ngân (1)
917
+ </MText>
918
+ </View>
749
919
  <MText
750
920
  style={[
751
921
  commonStyles.textNormal,
752
922
  {
923
+ color: '#999999',
753
924
  fontSize: 12,
754
- fontWeight: '300',
755
- marginTop: 8,
756
- textAlign: 'center',
757
925
  },
758
926
  ]}
759
927
  >
760
- Hoàn thiện{'\n'}cung cấp thông tin
928
+ {formatMoney(x?.loanAmount)} đ
761
929
  </MText>
762
- </TouchableOpacity>
763
- ) : (
930
+ </View>
764
931
  <View
765
- style={{ alignItems: 'center' }}
932
+ style={{
933
+ flexDirection: 'row',
934
+ justifyContent: 'space-between',
935
+ marginTop: 8,
936
+ }}
766
937
  >
767
- <AddInfoDisable />
938
+ <View
939
+ style={{
940
+ flexDirection: 'row',
941
+ alignItems: 'center',
942
+ marginLeft: 24,
943
+ }}
944
+ >
945
+ <MText
946
+ style={[
947
+ commonStyles.textNormal,
948
+ {
949
+ color: '#999999',
950
+ fontSize: 12,
951
+ },
952
+ ]}
953
+ >
954
+ Số tiền bảo hiểm (2)
955
+ </MText>
956
+ </View>
768
957
  <MText
769
958
  style={[
770
959
  commonStyles.textNormal,
771
960
  {
961
+ color: '#999999',
772
962
  fontSize: 12,
773
- fontWeight: '300',
774
- marginTop: 8,
775
- textAlign: 'center',
776
963
  },
777
964
  ]}
778
965
  >
779
- Hoàn thiện{'\n'}cung cấp thông tin
966
+ {formatMoney(x?.insurenceMoney)} đ
780
967
  </MText>
781
968
  </View>
782
- )}
783
- </View>
784
- )}
785
-
786
- {item?.isSignContract && (
787
- <MButton
788
- style={{
789
- alignItems: 'center',
790
- marginLeft: 20,
791
- }}
792
- onPress={() => {
793
- checkTerm(item, () => {
794
- if (item?.urlSignContract) {
795
- navigation.dispatch(
796
- StackActions.push(
797
- ScreenNames.CIMBSign,
798
- {
799
- url: item?.urlSignContract,
800
- }
801
- )
802
- );
803
- } else {
804
- Alert.alert(
805
- 'Thông báo',
806
- 'Bạn chưa thể ký hợp đồng bây giờ?'
807
- );
808
- }
809
- });
810
- }}
811
- >
812
- <IconSign2 />
813
- <MText
814
- style={[
815
- commonStyles.textNormal,
816
- {
817
- fontSize: 12,
818
- fontWeight: '300',
819
- marginTop: 8,
820
- },
821
- ]}
822
- >
823
- Ký hợp đồng
824
- </MText>
825
- </MButton>
826
- )}
827
- {item?.isSignContractTima && (
828
- <MButton
829
- style={{
830
- alignItems: 'center',
831
- marginLeft: 20,
832
- }}
833
- onPress={() => {
834
- checkTerm(item, () => {
835
- navigation.dispatch(
836
- StackActions.push(
837
- ScreenNames.ViewContract,
838
- {
839
- loan: item,
840
- }
841
- )
842
- );
843
- });
844
- }}
845
- >
846
- <ContractTimeIcon />
847
- <MText
848
- style={[
849
- commonStyles.textNormal,
850
- {
851
- fontSize: 12,
852
- fontWeight: '300',
853
- marginTop: 8,
854
- textAlign: 'center',
855
- },
856
- ]}
857
- >
858
- Hợp đồng{'\n'}dịch vụ
859
- </MText>
860
- </MButton>
861
- )}
862
- {item?.paymentEvidenceUrl && (
863
- <MButton
864
- style={{
865
- alignItems: 'center',
866
- marginLeft: 20,
867
- }}
868
- onPress={() => {
869
- checkTerm(item, () => {
870
- navigation.dispatch(
871
- StackActions.push(
872
- ScreenNames.PaymentEvidence,
873
- {
874
- url: item?.paymentEvidenceUrl,
875
- }
876
- )
877
- );
878
- });
879
- }}
880
- >
881
- <IconEviden />
882
- <MText
883
- style={[
884
- commonStyles.textNormal,
885
- {
886
- fontSize: 12,
887
- fontWeight: '300',
888
- marginTop: 8,
889
- textAlign: 'center',
890
- },
891
- ]}
892
- >
893
- Mục đích {'\n'}sử dụng
894
- </MText>
895
- </MButton>
896
- )}
897
- {item?.showPaymentPlan && (
898
- <MButton
899
- style={{
900
- alignItems: 'center',
901
- marginLeft: 20,
902
- }}
903
- onPress={() => {
904
- checkTerm(item, () => {
905
- navigation.dispatch(
906
- StackActions.push(
907
- ScreenNames.SchedulePayment,
908
- {
909
- loan: item,
910
- }
911
- )
912
- );
913
- });
914
- }}
915
- >
916
- <IconSchedule />
917
- <MText
918
- style={[
919
- commonStyles.textNormal,
920
- {
921
- fontSize: 12,
922
- fontWeight: '300',
923
- marginTop: 8,
924
- },
925
- ]}
926
- >
927
- Lịch dự kiến
928
- </MText>
929
- </MButton>
969
+ </>
970
+ )}
971
+ </View>
972
+ ))}
973
+ {/* <TouchableOpacity
974
+ onPress={() => toggleExpand(item.id)}
975
+ style={{
976
+ flex: 1,
977
+ alignItems: 'center',
978
+ paddingTop: 8,
979
+ }}
980
+ >
981
+ {isExpanded ? (
982
+ <IconExpandUp />
983
+ ) : (
984
+ <IconExpand />
930
985
  )}
931
- </View>
986
+ </TouchableOpacity> */}
987
+ </View>
988
+ )}
932
989
 
933
- {item.messageErrorCIMB !== '' &&
934
- item?.messageErrorCIMB &&
935
- item?.isCimbApproveFull === null ? (
990
+ {item?.listLoanAllAutoDE &&
991
+ item?.listLoanAllAutoDE.length > 0 && (
992
+ <TouchableOpacity
993
+ onPress={() => {
994
+ navigation.push(
995
+ ScreenNames.LoanInterestRate,
996
+ {
997
+ loan: item,
998
+ }
999
+ );
1000
+ }}
1001
+ style={{
1002
+ flex: 1,
1003
+ alignItems: 'center',
1004
+ backgroundColor: '#EDF6FF',
1005
+ marginHorizontal: -16,
1006
+ paddingVertical: 10,
1007
+ borderBottomRightRadius: 8,
1008
+ borderBottomLeftRadius: 8,
1009
+ marginTop: 10,
1010
+ }}
1011
+ >
1012
+ <MText
1013
+ style={[
1014
+ {
1015
+ fontSize: 12,
1016
+ color: '#2F80ED',
1017
+ },
1018
+ ]}
1019
+ >
1020
+ Bảng biểu lãi phí đơn vay {`->`}
1021
+ </MText>
1022
+ </TouchableOpacity>
1023
+ )}
1024
+ </View>
1025
+ </View>
1026
+ ) : (
1027
+ <View>
1028
+ {/* // luồng CIMB */}
1029
+ {item?.isPipelineCIMB ? (
1030
+ <View>
1031
+ {/* // type 4 digital topup */}
1032
+ {item?.typeLoan === 4 ? (
1033
+ <View>
1034
+ <View
1035
+ style={{
1036
+ backgroundColor: '#FFFFFF',
1037
+ paddingHorizontal: 16,
1038
+ paddingTop: 16,
1039
+ borderRadius: 8,
1040
+ borderWidth: 0.5,
1041
+ borderColor: '#E0E0E0',
1042
+ }}
1043
+ >
936
1044
  <View
937
1045
  style={{
938
- backgroundColor: '#FBEFE7',
939
- marginHorizontal: -16,
940
- paddingVertical: 8,
941
- marginTop: 16,
942
- borderBottomRightRadius: 8,
943
- borderBottomLeftRadius: 8,
944
- paddingHorizontal: 16,
1046
+ flexDirection: 'row',
1047
+ alignItems: 'center',
945
1048
  }}
946
1049
  >
947
- <View
948
- style={{
949
- flexDirection: 'row',
950
- justifyContent: 'space-between',
951
- alignItems: 'center',
952
- }}
953
- >
954
- <View
955
- style={{
956
- flex: 1,
957
- flexDirection: 'row',
958
- paddingRight: 20,
959
- }}
960
- >
961
- <Image
962
- source={require('./error.png')}
963
- style={{ width: 16, height: 16 }}
964
- />
965
- <MText style={{ marginLeft: 5 }}>
966
- Đơn vay của bạn gặp gián đoạn, vui
967
- lòng liên hệ tổng đài 1900633688
968
- </MText>
969
- </View>
970
-
971
- <TouchableOpacity
972
- onPress={() => {
973
- Linking.openURL(`tel:1900633688`);
974
- }}
1050
+ <Contract />
1051
+ <View style={{ flex: 1, paddingLeft: 8 }}>
1052
+ <MText
1053
+ style={commonStyles.textNormalBold}
975
1054
  >
976
- <LinearGradient
977
- colors={['#FF8E4F', '#EF592E']}
978
- style={{
979
- paddingHorizontal: 10,
980
- height: 30,
981
- borderRadius: 30,
982
- justifyContent: 'center',
983
- alignItems: 'center',
984
- flexDirection: 'row',
985
- }}
986
- >
987
- <Call />
988
- <MText
989
- style={{
990
- color: 'white',
991
- fontSize: 12,
992
- marginLeft: 5,
993
- }}
994
- >
995
- Liên hệ
996
- </MText>
997
- </LinearGradient>
998
- </TouchableOpacity>
1055
+ Mã Đơn vay-{item?.id}
1056
+ </MText>
1057
+ <MText style={commonStyles.textNormal}>
1058
+ Số tiền vay (VND):{' '}
1059
+ {item?.loanAmountOffer
1060
+ ? formatMoney(item?.loanAmountOffer)
1061
+ : 'Chưa xác định'}
1062
+ </MText>
999
1063
  </View>
1000
1064
  </View>
1001
- ) : (
1065
+ <View
1066
+ style={{
1067
+ height: 1,
1068
+ backgroundColor: '#E0E0E0',
1069
+ marginVertical: 16,
1070
+ }}
1071
+ />
1002
1072
  <View
1003
1073
  style={{
1004
1074
  flexDirection: 'row',
1005
- alignItems: 'center',
1006
- backgroundColor: '#FBEFE7',
1007
- marginHorizontal: -16,
1008
- paddingVertical: 8,
1009
- marginTop: 16,
1010
- borderBottomRightRadius: 8,
1011
- borderBottomLeftRadius: 8,
1012
- paddingHorizontal: 16,
1075
+ justifyContent: 'space-between',
1013
1076
  }}
1014
1077
  >
1015
- <Info />
1078
+ <MText style={commonStyles.textNormal}>
1079
+ Trạng thái
1080
+ </MText>
1016
1081
  <MText
1017
1082
  style={[
1018
- {
1019
- fontWeight: '300',
1020
- fontSize: 10,
1021
- fontStyle: 'italic',
1022
- color: '#333333',
1023
- marginLeft: 8,
1024
- },
1083
+ commonStyles.textNormalBold,
1084
+ { color: '#F05123' },
1025
1085
  ]}
1026
1086
  >
1027
- {item?.suggestion
1028
- ? item?.suggestion
1029
- : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1087
+ {item?.loanStatus}
1030
1088
  </MText>
1031
1089
  </View>
1032
- )}
1033
- </View>
1034
- </View>
1035
- ) : // type 2 tái vay
1036
- item?.typeLoan === 2 ? (
1037
- <Observer>
1038
- {() => (
1039
- <View>
1040
1090
  <View
1041
1091
  style={{
1042
- backgroundColor: '#FFFFFF',
1043
- paddingHorizontal: 16,
1044
- paddingTop: 16,
1045
- borderRadius: 8,
1046
- borderWidth: 0.5,
1047
- borderColor: '#E0E0E0',
1092
+ height: 0.5,
1093
+ backgroundColor: '#E0E0E0',
1094
+ marginVertical: 16,
1048
1095
  }}
1049
- >
1050
- <View
1051
- style={{
1052
- flexDirection: 'row',
1053
- alignItems: 'center',
1054
- }}
1055
- >
1056
- <Contract />
1057
- <View
1058
- style={{ flex: 1, paddingLeft: 8 }}
1059
- >
1060
- <MText
1061
- style={commonStyles.textNormalBold}
1062
- >
1063
- Đơn vay {item?.id}
1064
- </MText>
1065
- <MText
1066
- style={commonStyles.textNormal}
1067
- >
1068
- Số tiền vay (VND):{' '}
1069
- {item?.loanAmount
1070
- ? formatMoney(item?.loanAmount)
1071
- : 'Chưa xác định'}
1072
- </MText>
1073
- </View>
1074
- </View>
1075
- <View
1076
- style={{
1077
- height: 1,
1078
- backgroundColor: '#E0E0E0',
1079
- marginVertical: 16,
1080
- }}
1081
- />
1082
- <View
1083
- style={{
1084
- flexDirection: 'row',
1085
- justifyContent: 'space-between',
1086
- }}
1087
- >
1088
- <MText style={commonStyles.textNormal}>
1089
- Trạng thái
1090
- </MText>
1091
- <MText
1092
- style={[
1093
- commonStyles.textNormalBold,
1094
- { color: '#F05123' },
1095
- ]}
1096
- >
1097
- {item?.loanStatus}
1098
- </MText>
1099
- </View>
1100
- {/* // cho phép update thông tin */}
1101
- {item?.isUpdateLoanReBorrow ? (
1102
- <TouchableOpacity
1103
- style={{
1104
- marginTop: 14,
1105
- marginBottom: 16,
1106
- }}
1096
+ />
1097
+ <View style={{ flexDirection: 'row' }}>
1098
+ {item?.loanStatus === null ||
1099
+ item?.loanStatus === '' ? (
1100
+ <MButton
1101
+ style={{ alignItems: 'center' }}
1107
1102
  onPress={() => {
1108
1103
  checkTerm(item, () => {
1109
- navigation.push(
1110
- 'DigitalLending',
1111
- item
1104
+ navigation.dispatch(
1105
+ StackActions.push(
1106
+ ScreenNames.CIMBxTima,
1107
+ {
1108
+ loan: item,
1109
+ }
1110
+ )
1112
1111
  );
1113
1112
  });
1114
1113
  }}
1115
1114
  >
1116
- <LinearGradient
1117
- style={{
1118
- height: 36,
1119
- borderRadius: 30,
1120
- paddingHorizontal: 20,
1121
- flexDirection: 'row',
1122
- alignItems: 'center',
1123
- }}
1124
- colors={['#FF8E4F', '#EF592E']}
1115
+ <AddInfo />
1116
+ <MText
1117
+ style={[
1118
+ commonStyles.textNormal,
1119
+ {
1120
+ fontSize: 12,
1121
+ fontWeight: '300',
1122
+ marginTop: 8,
1123
+ textAlign: 'center',
1124
+ },
1125
+ ]}
1125
1126
  >
1126
- <UpdateIcon />
1127
- <MText
1128
- style={{
1129
- color: 'white',
1130
- marginLeft: 10,
1131
- }}
1132
- >
1133
- Hoàn thiện hồ sơ
1134
- </MText>
1135
- </LinearGradient>
1136
- </TouchableOpacity>
1127
+ Hoàn thiện{'\n'}cung cấp thông tin
1128
+ </MText>
1129
+ </MButton>
1137
1130
  ) : (
1138
1131
  <View>
1139
- <View
1140
- style={{
1141
- height: 0.5,
1142
- backgroundColor: '#E0E0E0',
1143
- marginVertical: 16,
1144
- }}
1145
- />
1146
- <View
1147
- style={{ flexDirection: 'row' }}
1148
- >
1149
- {item?.loanStatus === null ||
1150
- item?.loanStatus === '' ? (
1151
- <MButton
1152
- style={{
1153
- alignItems: 'center',
1154
- }}
1155
- onPress={() => {
1156
- checkTerm(item, () => {
1132
+ {item?.isUpdateLoan ||
1133
+ item?.isUpdateInformation ? (
1134
+ <TouchableOpacity
1135
+ style={{ alignItems: 'center' }}
1136
+ onPress={() => {
1137
+ checkTerm(item, () => {
1138
+ if (item?.isUpdateLoan) {
1157
1139
  navigation.dispatch(
1158
1140
  StackActions.push(
1159
- ScreenNames.CIMBxTima,
1141
+ ScreenNames.CimbSelfie,
1160
1142
  {
1161
1143
  loan: item,
1162
1144
  }
1163
1145
  )
1164
1146
  );
1165
- });
1166
- }}
1167
- >
1168
- <AddInfo />
1169
- <MText
1170
- style={[
1171
- commonStyles.textNormal,
1172
- {
1173
- fontSize: 12,
1174
- fontWeight: '300',
1175
- marginTop: 8,
1176
- textAlign: 'center',
1177
- },
1178
- ]}
1179
- >
1180
- Hoàn thiện{'\n'}cung cấp thông
1181
- tin
1182
- </MText>
1183
- </MButton>
1184
- ) : (
1185
- <View>
1186
- {item?.isUpdateLoan ||
1187
- item?.isUpdateInformation ? (
1188
- <TouchableOpacity
1189
- style={{
1190
- alignItems: 'center',
1191
- }}
1192
- onPress={() => {
1193
- checkTerm(item, () => {
1194
- if (
1195
- item?.isUpdateLoan
1196
- ) {
1197
- navigation.dispatch(
1198
- StackActions.push(
1199
- ScreenNames.CimbSelfie,
1200
- {
1201
- loan: item,
1202
- }
1203
- )
1204
- );
1205
- } else {
1206
- navigation.dispatch(
1207
- StackActions.push(
1208
- ScreenNames.QuickSubmit,
1209
- {
1210
- loan: item,
1211
- }
1212
- )
1213
- );
1214
- }
1215
- });
1216
- }}
1217
- >
1218
- <AddInfo />
1219
- <MText
1220
- style={[
1221
- commonStyles.textNormal,
1222
- {
1223
- fontSize: 12,
1224
- fontWeight: '300',
1225
- marginTop: 8,
1226
- textAlign: 'center',
1227
- },
1228
- ]}
1229
- >
1230
- Hoàn thiện{'\n'}cung cấp
1231
- thông tin
1232
- </MText>
1233
- </TouchableOpacity>
1234
- ) : (
1235
- <View
1236
- style={{
1237
- alignItems: 'center',
1238
- }}
1239
- >
1240
- <AddInfoDisable />
1241
- <MText
1242
- style={[
1243
- commonStyles.textNormal,
1244
- {
1245
- fontSize: 12,
1246
- fontWeight: '300',
1247
- marginTop: 8,
1248
- textAlign: 'center',
1249
- },
1250
- ]}
1251
- >
1252
- Hoàn thiện{'\n'}cung cấp
1253
- thông tin
1254
- </MText>
1255
- </View>
1256
- )}
1257
- </View>
1258
- )}
1259
-
1260
- {item?.isSignContract && (
1261
- <MButton
1262
- style={{
1263
- alignItems: 'center',
1264
- marginLeft: 20,
1265
- }}
1266
- onPress={() => {
1267
- checkTerm(item, () => {
1268
- if (item?.urlSignContract) {
1269
- navigation.dispatch(
1270
- StackActions.push(
1271
- ScreenNames.CIMBSign,
1272
- {
1273
- url: item?.urlSignContract,
1274
- }
1275
- )
1276
- );
1277
- } else {
1278
- Alert.alert(
1279
- 'Thông báo',
1280
- 'Bạn chưa thể ký hợp đồng bây giờ?'
1281
- );
1282
- }
1283
- });
1284
- }}
1285
- >
1286
- <IconSign2 />
1287
- <MText
1288
- style={[
1289
- commonStyles.textNormal,
1290
- {
1291
- fontSize: 12,
1292
- fontWeight: '300',
1293
- marginTop: 8,
1294
- },
1295
- ]}
1296
- >
1297
- Ký hợp đồng
1298
- </MText>
1299
- </MButton>
1300
- )}
1301
- {item?.isSignContractTima && (
1302
- <MButton
1303
- style={{
1304
- alignItems: 'center',
1305
- marginLeft: 20,
1306
- }}
1307
- onPress={() => {
1308
- checkTerm(item, () => {
1147
+ } else {
1309
1148
  navigation.dispatch(
1310
1149
  StackActions.push(
1311
- ScreenNames.ViewContract,
1150
+ ScreenNames.QuickSubmit,
1312
1151
  {
1313
1152
  loan: item,
1314
1153
  }
1315
1154
  )
1316
1155
  );
1317
- });
1318
- }}
1156
+ }
1157
+ });
1158
+ }}
1159
+ >
1160
+ <AddInfo />
1161
+ <MText
1162
+ style={[
1163
+ commonStyles.textNormal,
1164
+ {
1165
+ fontSize: 12,
1166
+ fontWeight: '300',
1167
+ marginTop: 8,
1168
+ textAlign: 'center',
1169
+ },
1170
+ ]}
1319
1171
  >
1320
- <ContractTimeIcon />
1321
- <MText
1322
- style={[
1323
- commonStyles.textNormal,
1324
- {
1325
- fontSize: 12,
1326
- fontWeight: '300',
1327
- marginTop: 8,
1328
- textAlign: 'center',
1329
- },
1330
- ]}
1331
- >
1332
- Hợp đồng{'\n'}dịch vụ
1333
- </MText>
1334
- </MButton>
1335
- )}
1336
- {item?.paymentEvidenceUrl && (
1337
- <MButton
1338
- style={{
1339
- alignItems: 'center',
1340
- marginLeft: 20,
1341
- }}
1342
- onPress={() => {
1343
- checkTerm(item, () => {
1344
- navigation.dispatch(
1345
- StackActions.push(
1346
- ScreenNames.PaymentEvidence,
1347
- {
1348
- url: item?.paymentEvidenceUrl,
1349
- }
1350
- )
1351
- );
1352
- });
1353
- }}
1172
+ Hoàn thiện{'\n'}cung cấp thông
1173
+ tin
1174
+ </MText>
1175
+ </TouchableOpacity>
1176
+ ) : (
1177
+ <View
1178
+ style={{ alignItems: 'center' }}
1179
+ >
1180
+ <AddInfoDisable />
1181
+ <MText
1182
+ style={[
1183
+ commonStyles.textNormal,
1184
+ {
1185
+ fontSize: 12,
1186
+ fontWeight: '300',
1187
+ marginTop: 8,
1188
+ textAlign: 'center',
1189
+ },
1190
+ ]}
1354
1191
  >
1355
- <IconEviden />
1356
- <MText
1357
- style={[
1358
- commonStyles.textNormal,
1192
+ Hoàn thiện{'\n'}cung cấp thông
1193
+ tin
1194
+ </MText>
1195
+ </View>
1196
+ )}
1197
+ </View>
1198
+ )}
1199
+
1200
+ {item?.isSignContract && (
1201
+ <MButton
1202
+ style={{
1203
+ alignItems: 'center',
1204
+ marginLeft: 20,
1205
+ }}
1206
+ onPress={() => {
1207
+ checkTerm(item, () => {
1208
+ if (item?.urlSignContract) {
1209
+ navigation.dispatch(
1210
+ StackActions.push(
1211
+ ScreenNames.CIMBSign,
1359
1212
  {
1360
- fontSize: 12,
1361
- fontWeight: '300',
1362
- marginTop: 8,
1363
- textAlign: 'center',
1364
- },
1365
- ]}
1366
- >
1367
- Mục đích {'\n'}sử dụng
1368
- </MText>
1369
- </MButton>
1370
- )}
1371
- {item?.showPaymentPlan && (
1372
- <MButton
1373
- style={{
1374
- alignItems: 'center',
1375
- marginLeft: 20,
1376
- }}
1377
- onPress={() => {
1378
- navigation.dispatch(
1379
- StackActions.push(
1380
- ScreenNames.SchedulePayment,
1381
- {
1382
- loan: item,
1383
- }
1384
- )
1385
- );
1213
+ url: item?.urlSignContract,
1214
+ }
1215
+ )
1216
+ );
1217
+ } else {
1218
+ Alert.alert(
1219
+ 'Thông báo',
1220
+ 'Bạn chưa thể ký hợp đồng bây giờ?'
1221
+ );
1222
+ }
1223
+ });
1224
+ }}
1225
+ >
1226
+ <IconSign2 />
1227
+ <MText
1228
+ style={[
1229
+ commonStyles.textNormal,
1230
+ {
1231
+ fontSize: 12,
1232
+ fontWeight: '300',
1233
+ marginTop: 8,
1234
+ },
1235
+ ]}
1236
+ >
1237
+ Ký hợp đồng
1238
+ </MText>
1239
+ </MButton>
1240
+ )}
1241
+ {item?.isSignContractTima && (
1242
+ <MButton
1243
+ style={{
1244
+ alignItems: 'center',
1245
+ marginLeft: 20,
1246
+ }}
1247
+ onPress={() => {
1248
+ checkTerm(item, () => {
1249
+ navigation.dispatch(
1250
+ StackActions.push(
1251
+ ScreenNames.ViewContract,
1252
+ {
1253
+ loan: item,
1254
+ }
1255
+ )
1256
+ );
1257
+ });
1258
+ }}
1259
+ >
1260
+ <ContractTimeIcon />
1261
+ <MText
1262
+ style={[
1263
+ commonStyles.textNormal,
1264
+ {
1265
+ fontSize: 12,
1266
+ fontWeight: '300',
1267
+ marginTop: 8,
1268
+ textAlign: 'center',
1269
+ },
1270
+ ]}
1271
+ >
1272
+ Hợp đồng{'\n'}dịch vụ
1273
+ </MText>
1274
+ </MButton>
1275
+ )}
1276
+ {item?.paymentEvidenceUrl && (
1277
+ <MButton
1278
+ style={{
1279
+ alignItems: 'center',
1280
+ marginLeft: 20,
1281
+ }}
1282
+ onPress={() => {
1283
+ checkTerm(item, () => {
1284
+ navigation.dispatch(
1285
+ StackActions.push(
1286
+ ScreenNames.PaymentEvidence,
1287
+ {
1288
+ url: item?.paymentEvidenceUrl,
1289
+ }
1290
+ )
1291
+ );
1292
+ });
1293
+ }}
1294
+ >
1295
+ <IconEviden />
1296
+ <MText
1297
+ style={[
1298
+ commonStyles.textNormal,
1299
+ {
1300
+ fontSize: 12,
1301
+ fontWeight: '300',
1302
+ marginTop: 8,
1303
+ textAlign: 'center',
1304
+ },
1305
+ ]}
1306
+ >
1307
+ Mục đích {'\n'}sử dụng
1308
+ </MText>
1309
+ </MButton>
1310
+ )}
1311
+ {item?.showPaymentPlan && (
1312
+ <MButton
1313
+ style={{
1314
+ alignItems: 'center',
1315
+ marginLeft: 20,
1316
+ }}
1317
+ onPress={() => {
1318
+ checkTerm(item, () => {
1319
+ navigation.dispatch(
1320
+ StackActions.push(
1321
+ ScreenNames.SchedulePayment,
1322
+ {
1323
+ loan: item,
1324
+ }
1325
+ )
1326
+ );
1327
+ });
1328
+ }}
1329
+ >
1330
+ <IconSchedule />
1331
+ <MText
1332
+ style={[
1333
+ commonStyles.textNormal,
1334
+ {
1335
+ fontSize: 12,
1336
+ fontWeight: '300',
1337
+ marginTop: 8,
1338
+ },
1339
+ ]}
1340
+ >
1341
+ Lịch dự kiến
1342
+ </MText>
1343
+ </MButton>
1344
+ )}
1345
+ </View>
1346
+
1347
+ {item.messageErrorCIMB !== '' &&
1348
+ item?.messageErrorCIMB &&
1349
+ item?.isCimbApproveFull === null ? (
1350
+ <View
1351
+ style={{
1352
+ backgroundColor: '#FBEFE7',
1353
+ marginHorizontal: -16,
1354
+ paddingVertical: 8,
1355
+ marginTop: 16,
1356
+ borderBottomRightRadius: 8,
1357
+ borderBottomLeftRadius: 8,
1358
+ paddingHorizontal: 16,
1359
+ }}
1360
+ >
1361
+ <View
1362
+ style={{
1363
+ flexDirection: 'row',
1364
+ justifyContent: 'space-between',
1365
+ alignItems: 'center',
1366
+ }}
1367
+ >
1368
+ <View
1369
+ style={{
1370
+ flex: 1,
1371
+ flexDirection: 'row',
1372
+ paddingRight: 20,
1373
+ }}
1374
+ >
1375
+ <Image
1376
+ source={require('./error.png')}
1377
+ style={{ width: 16, height: 16 }}
1378
+ />
1379
+ <MText style={{ marginLeft: 5 }}>
1380
+ Đơn vay của bạn gặp gián đoạn, vui
1381
+ lòng liên hệ tổng đài 1900633688
1382
+ </MText>
1383
+ </View>
1384
+
1385
+ <TouchableOpacity
1386
+ onPress={() => {
1387
+ Linking.openURL(`tel:1900633688`);
1388
+ }}
1389
+ >
1390
+ <LinearGradient
1391
+ colors={['#FF8E4F', '#EF592E']}
1392
+ style={{
1393
+ paddingHorizontal: 10,
1394
+ height: 30,
1395
+ borderRadius: 30,
1396
+ justifyContent: 'center',
1397
+ alignItems: 'center',
1398
+ flexDirection: 'row',
1399
+ }}
1400
+ >
1401
+ <Call />
1402
+ <MText
1403
+ style={{
1404
+ color: 'white',
1405
+ fontSize: 12,
1406
+ marginLeft: 5,
1386
1407
  }}
1387
1408
  >
1388
- <IconSchedule />
1389
- <MText
1390
- style={[
1391
- commonStyles.textNormal,
1392
- {
1393
- fontSize: 12,
1394
- fontWeight: '300',
1395
- marginTop: 8,
1396
- },
1397
- ]}
1398
- >
1399
- Lịch dự kiến
1400
- </MText>
1401
- </MButton>
1402
- )}
1409
+ Liên hệ
1410
+ </MText>
1411
+ </LinearGradient>
1412
+ </TouchableOpacity>
1413
+ </View>
1414
+ </View>
1415
+ ) : (
1416
+ <View
1417
+ style={{
1418
+ flexDirection: 'row',
1419
+ alignItems: 'center',
1420
+ backgroundColor: '#FBEFE7',
1421
+ marginHorizontal: -16,
1422
+ paddingVertical: 8,
1423
+ marginTop: 16,
1424
+ borderBottomRightRadius: 8,
1425
+ borderBottomLeftRadius: 8,
1426
+ paddingHorizontal: 16,
1427
+ }}
1428
+ >
1429
+ <Info />
1430
+ <MText
1431
+ style={[
1432
+ {
1433
+ fontWeight: '300',
1434
+ fontSize: 10,
1435
+ fontStyle: 'italic',
1436
+ color: '#333333',
1437
+ marginLeft: 8,
1438
+ },
1439
+ ]}
1440
+ >
1441
+ {item?.suggestion
1442
+ ? item?.suggestion
1443
+ : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1444
+ </MText>
1445
+ </View>
1446
+ )}
1447
+ </View>
1448
+ </View>
1449
+ ) : // type 2 tái vay
1450
+ item?.typeLoan === 2 ? (
1451
+ <Observer>
1452
+ {() => (
1453
+ <View>
1454
+ <View
1455
+ style={{
1456
+ backgroundColor: '#FFFFFF',
1457
+ paddingHorizontal: 16,
1458
+ paddingTop: 16,
1459
+ borderRadius: 8,
1460
+ borderWidth: 0.5,
1461
+ borderColor: '#E0E0E0',
1462
+ }}
1463
+ >
1464
+ <View
1465
+ style={{
1466
+ flexDirection: 'row',
1467
+ alignItems: 'center',
1468
+ }}
1469
+ >
1470
+ <Contract />
1471
+ <View
1472
+ style={{ flex: 1, paddingLeft: 8 }}
1473
+ >
1474
+ <MText
1475
+ style={
1476
+ commonStyles.textNormalBold
1477
+ }
1478
+ >
1479
+ Đơn vay {item?.id}
1480
+ </MText>
1481
+ <MText
1482
+ style={commonStyles.textNormal}
1483
+ >
1484
+ Số tiền vay (VND):{' '}
1485
+ {item?.loanAmount
1486
+ ? formatMoney(item?.loanAmount)
1487
+ : 'Chưa xác định'}
1488
+ </MText>
1403
1489
  </View>
1404
-
1405
- {item.messageErrorCIMB !== '' &&
1406
- item?.messageErrorCIMB &&
1407
- item?.isCimbApproveFull === null ? (
1408
- <View
1490
+ </View>
1491
+ <View
1492
+ style={{
1493
+ height: 1,
1494
+ backgroundColor: '#E0E0E0',
1495
+ marginVertical: 16,
1496
+ }}
1497
+ />
1498
+ <View
1499
+ style={{
1500
+ flexDirection: 'row',
1501
+ justifyContent: 'space-between',
1502
+ }}
1503
+ >
1504
+ <MText
1505
+ style={commonStyles.textNormal}
1506
+ >
1507
+ Trạng thái
1508
+ </MText>
1509
+ <MText
1510
+ style={[
1511
+ commonStyles.textNormalBold,
1512
+ { color: '#F05123' },
1513
+ ]}
1514
+ >
1515
+ {item?.loanStatus}
1516
+ </MText>
1517
+ </View>
1518
+ {/* // cho phép update thông tin */}
1519
+ {item?.isUpdateLoanReBorrow ? (
1520
+ <TouchableOpacity
1521
+ style={{
1522
+ marginTop: 14,
1523
+ marginBottom: 16,
1524
+ }}
1525
+ onPress={() => {
1526
+ checkTerm(item, () => {
1527
+ navigation.push(
1528
+ 'DigitalLending',
1529
+ item
1530
+ );
1531
+ });
1532
+ }}
1533
+ >
1534
+ <LinearGradient
1409
1535
  style={{
1410
- backgroundColor: '#FBEFE7',
1411
- marginHorizontal: -16,
1412
- paddingVertical: 8,
1413
- marginTop: 16,
1414
- borderBottomRightRadius: 8,
1415
- borderBottomLeftRadius: 8,
1416
- paddingHorizontal: 16,
1536
+ height: 36,
1537
+ borderRadius: 30,
1538
+ paddingHorizontal: 20,
1539
+ flexDirection: 'row',
1540
+ alignItems: 'center',
1417
1541
  }}
1542
+ colors={['#FF8E4F', '#EF592E']}
1418
1543
  >
1419
- <View
1544
+ <UpdateIcon />
1545
+ <MText
1420
1546
  style={{
1421
- flexDirection: 'row',
1422
- justifyContent:
1423
- 'space-between',
1424
- alignItems: 'center',
1547
+ color: 'white',
1548
+ marginLeft: 10,
1425
1549
  }}
1426
1550
  >
1427
- <View
1551
+ Hoàn thiện hồ sơ
1552
+ </MText>
1553
+ </LinearGradient>
1554
+ </TouchableOpacity>
1555
+ ) : (
1556
+ <View>
1557
+ <View
1558
+ style={{
1559
+ height: 0.5,
1560
+ backgroundColor: '#E0E0E0',
1561
+ marginVertical: 16,
1562
+ }}
1563
+ />
1564
+ <View
1565
+ style={{ flexDirection: 'row' }}
1566
+ >
1567
+ {item?.loanStatus === null ||
1568
+ item?.loanStatus === '' ? (
1569
+ <MButton
1428
1570
  style={{
1429
- flex: 1,
1430
- flexDirection: 'row',
1431
- paddingRight: 20,
1571
+ alignItems: 'center',
1572
+ }}
1573
+ onPress={() => {
1574
+ checkTerm(item, () => {
1575
+ navigation.dispatch(
1576
+ StackActions.push(
1577
+ ScreenNames.CIMBxTima,
1578
+ {
1579
+ loan: item,
1580
+ }
1581
+ )
1582
+ );
1583
+ });
1432
1584
  }}
1433
1585
  >
1434
- <Image
1435
- source={require('./error.png')}
1436
- style={{
1437
- width: 16,
1438
- height: 16,
1439
- }}
1440
- />
1586
+ <AddInfo />
1441
1587
  <MText
1442
- style={{ marginLeft: 5 }}
1588
+ style={[
1589
+ commonStyles.textNormal,
1590
+ {
1591
+ fontSize: 12,
1592
+ fontWeight: '300',
1593
+ marginTop: 8,
1594
+ textAlign: 'center',
1595
+ },
1596
+ ]}
1443
1597
  >
1444
- Đơn vay của bạn gặp gián
1445
- đoạn, vui lòng liên hệ tổng
1446
- đài 1900633688
1598
+ Hoàn thiện{'\n'}cung cấp
1599
+ thông tin
1447
1600
  </MText>
1601
+ </MButton>
1602
+ ) : (
1603
+ <View>
1604
+ {item?.isUpdateLoan ||
1605
+ item?.isUpdateInformation ? (
1606
+ <TouchableOpacity
1607
+ style={{
1608
+ alignItems: 'center',
1609
+ }}
1610
+ onPress={() => {
1611
+ checkTerm(item, () => {
1612
+ if (
1613
+ item?.isUpdateLoan
1614
+ ) {
1615
+ navigation.dispatch(
1616
+ StackActions.push(
1617
+ ScreenNames.CimbSelfie,
1618
+ {
1619
+ loan: item,
1620
+ }
1621
+ )
1622
+ );
1623
+ } else {
1624
+ navigation.dispatch(
1625
+ StackActions.push(
1626
+ ScreenNames.QuickSubmit,
1627
+ {
1628
+ loan: item,
1629
+ }
1630
+ )
1631
+ );
1632
+ }
1633
+ });
1634
+ }}
1635
+ >
1636
+ <AddInfo />
1637
+ <MText
1638
+ style={[
1639
+ commonStyles.textNormal,
1640
+ {
1641
+ fontSize: 12,
1642
+ fontWeight: '300',
1643
+ marginTop: 8,
1644
+ textAlign: 'center',
1645
+ },
1646
+ ]}
1647
+ >
1648
+ Hoàn thiện{'\n'}cung cấp
1649
+ thông tin
1650
+ </MText>
1651
+ </TouchableOpacity>
1652
+ ) : (
1653
+ <View
1654
+ style={{
1655
+ alignItems: 'center',
1656
+ }}
1657
+ >
1658
+ <AddInfoDisable />
1659
+ <MText
1660
+ style={[
1661
+ commonStyles.textNormal,
1662
+ {
1663
+ fontSize: 12,
1664
+ fontWeight: '300',
1665
+ marginTop: 8,
1666
+ textAlign: 'center',
1667
+ },
1668
+ ]}
1669
+ >
1670
+ Hoàn thiện{'\n'}cung cấp
1671
+ thông tin
1672
+ </MText>
1673
+ </View>
1674
+ )}
1448
1675
  </View>
1676
+ )}
1449
1677
 
1450
- <TouchableOpacity
1678
+ {item?.isSignContract && (
1679
+ <MButton
1680
+ style={{
1681
+ alignItems: 'center',
1682
+ marginLeft: 20,
1683
+ }}
1684
+ onPress={() => {
1685
+ checkTerm(item, () => {
1686
+ if (
1687
+ item?.urlSignContract
1688
+ ) {
1689
+ navigation.dispatch(
1690
+ StackActions.push(
1691
+ ScreenNames.CIMBSign,
1692
+ {
1693
+ url: item?.urlSignContract,
1694
+ }
1695
+ )
1696
+ );
1697
+ } else {
1698
+ Alert.alert(
1699
+ 'Thông báo',
1700
+ 'Bạn chưa thể ký hợp đồng bây giờ?'
1701
+ );
1702
+ }
1703
+ });
1704
+ }}
1705
+ >
1706
+ <IconSign2 />
1707
+ <MText
1708
+ style={[
1709
+ commonStyles.textNormal,
1710
+ {
1711
+ fontSize: 12,
1712
+ fontWeight: '300',
1713
+ marginTop: 8,
1714
+ },
1715
+ ]}
1716
+ >
1717
+ Ký hợp đồng
1718
+ </MText>
1719
+ </MButton>
1720
+ )}
1721
+ {item?.isSignContractTima && (
1722
+ <MButton
1723
+ style={{
1724
+ alignItems: 'center',
1725
+ marginLeft: 20,
1726
+ }}
1727
+ onPress={() => {
1728
+ checkTerm(item, () => {
1729
+ navigation.dispatch(
1730
+ StackActions.push(
1731
+ ScreenNames.ViewContract,
1732
+ {
1733
+ loan: item,
1734
+ }
1735
+ )
1736
+ );
1737
+ });
1738
+ }}
1739
+ >
1740
+ <ContractTimeIcon />
1741
+ <MText
1742
+ style={[
1743
+ commonStyles.textNormal,
1744
+ {
1745
+ fontSize: 12,
1746
+ fontWeight: '300',
1747
+ marginTop: 8,
1748
+ textAlign: 'center',
1749
+ },
1750
+ ]}
1751
+ >
1752
+ Hợp đồng{'\n'}dịch vụ
1753
+ </MText>
1754
+ </MButton>
1755
+ )}
1756
+ {item?.paymentEvidenceUrl && (
1757
+ <MButton
1758
+ style={{
1759
+ alignItems: 'center',
1760
+ marginLeft: 20,
1761
+ }}
1762
+ onPress={() => {
1763
+ checkTerm(item, () => {
1764
+ navigation.dispatch(
1765
+ StackActions.push(
1766
+ ScreenNames.PaymentEvidence,
1767
+ {
1768
+ url: item?.paymentEvidenceUrl,
1769
+ }
1770
+ )
1771
+ );
1772
+ });
1773
+ }}
1774
+ >
1775
+ <IconEviden />
1776
+ <MText
1777
+ style={[
1778
+ commonStyles.textNormal,
1779
+ {
1780
+ fontSize: 12,
1781
+ fontWeight: '300',
1782
+ marginTop: 8,
1783
+ textAlign: 'center',
1784
+ },
1785
+ ]}
1786
+ >
1787
+ Mục đích {'\n'}sử dụng
1788
+ </MText>
1789
+ </MButton>
1790
+ )}
1791
+ {item?.showPaymentPlan && (
1792
+ <MButton
1793
+ style={{
1794
+ alignItems: 'center',
1795
+ marginLeft: 20,
1796
+ }}
1451
1797
  onPress={() => {
1452
- Linking.openURL(
1453
- `tel:1900633688`
1798
+ navigation.dispatch(
1799
+ StackActions.push(
1800
+ ScreenNames.SchedulePayment,
1801
+ {
1802
+ loan: item,
1803
+ }
1804
+ )
1454
1805
  );
1455
1806
  }}
1456
1807
  >
1457
- <LinearGradient
1458
- colors={[
1459
- '#FF8E4F',
1460
- '#EF592E',
1808
+ <IconSchedule />
1809
+ <MText
1810
+ style={[
1811
+ commonStyles.textNormal,
1812
+ {
1813
+ fontSize: 12,
1814
+ fontWeight: '300',
1815
+ marginTop: 8,
1816
+ },
1461
1817
  ]}
1818
+ >
1819
+ Lịch dự kiến
1820
+ </MText>
1821
+ </MButton>
1822
+ )}
1823
+ </View>
1824
+
1825
+ {item.messageErrorCIMB !== '' &&
1826
+ item?.messageErrorCIMB &&
1827
+ item?.isCimbApproveFull === null ? (
1828
+ <View
1829
+ style={{
1830
+ backgroundColor: '#FBEFE7',
1831
+ marginHorizontal: -16,
1832
+ paddingVertical: 8,
1833
+ marginTop: 16,
1834
+ borderBottomRightRadius: 8,
1835
+ borderBottomLeftRadius: 8,
1836
+ paddingHorizontal: 16,
1837
+ }}
1838
+ >
1839
+ <View
1840
+ style={{
1841
+ flexDirection: 'row',
1842
+ justifyContent:
1843
+ 'space-between',
1844
+ alignItems: 'center',
1845
+ }}
1846
+ >
1847
+ <View
1462
1848
  style={{
1463
- paddingHorizontal: 10,
1464
- height: 30,
1465
- borderRadius: 30,
1466
- justifyContent: 'center',
1467
- alignItems: 'center',
1849
+ flex: 1,
1468
1850
  flexDirection: 'row',
1851
+ paddingRight: 20,
1469
1852
  }}
1470
1853
  >
1471
- <Call />
1472
- <MText
1854
+ <Image
1855
+ source={require('./error.png')}
1473
1856
  style={{
1474
- color: 'white',
1475
- fontSize: 12,
1476
- marginLeft: 5,
1857
+ width: 16,
1858
+ height: 16,
1477
1859
  }}
1860
+ />
1861
+ <MText
1862
+ style={{ marginLeft: 5 }}
1478
1863
  >
1479
- Liên hệ
1864
+ Đơn vay của bạn gặp gián
1865
+ đoạn, vui lòng liên hệ
1866
+ tổng đài 1900633688
1480
1867
  </MText>
1481
- </LinearGradient>
1482
- </TouchableOpacity>
1868
+ </View>
1869
+
1870
+ <TouchableOpacity
1871
+ onPress={() => {
1872
+ Linking.openURL(
1873
+ `tel:1900633688`
1874
+ );
1875
+ }}
1876
+ >
1877
+ <LinearGradient
1878
+ colors={[
1879
+ '#FF8E4F',
1880
+ '#EF592E',
1881
+ ]}
1882
+ style={{
1883
+ paddingHorizontal: 10,
1884
+ height: 30,
1885
+ borderRadius: 30,
1886
+ justifyContent:
1887
+ 'center',
1888
+ alignItems: 'center',
1889
+ flexDirection: 'row',
1890
+ }}
1891
+ >
1892
+ <Call />
1893
+ <MText
1894
+ style={{
1895
+ color: 'white',
1896
+ fontSize: 12,
1897
+ marginLeft: 5,
1898
+ }}
1899
+ >
1900
+ Liên hệ
1901
+ </MText>
1902
+ </LinearGradient>
1903
+ </TouchableOpacity>
1904
+ </View>
1483
1905
  </View>
1484
- </View>
1906
+ ) : (
1907
+ <View
1908
+ style={{
1909
+ flexDirection: 'row',
1910
+ alignItems: 'center',
1911
+ backgroundColor: '#FBEFE7',
1912
+ marginHorizontal: -16,
1913
+ paddingVertical: 8,
1914
+ marginTop: 16,
1915
+ borderBottomRightRadius: 8,
1916
+ borderBottomLeftRadius: 8,
1917
+ paddingHorizontal: 16,
1918
+ }}
1919
+ >
1920
+ <Info />
1921
+ <MText
1922
+ style={[
1923
+ {
1924
+ fontWeight: '300',
1925
+ fontSize: 10,
1926
+ fontStyle: 'italic',
1927
+ color: '#333333',
1928
+ marginLeft: 8,
1929
+ },
1930
+ ]}
1931
+ >
1932
+ {item?.suggestion
1933
+ ? item?.suggestion
1934
+ : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1935
+ </MText>
1936
+ </View>
1937
+ )}
1938
+ </View>
1939
+ )}
1940
+ </View>
1941
+ </View>
1942
+ )}
1943
+ </Observer>
1944
+ ) : (
1945
+ // cimb thường
1946
+ <View>
1947
+ <View>
1948
+ {item?.loanStatus !== null &&
1949
+ item?.loanStatus !== '' ? (
1950
+ <View
1951
+ style={{
1952
+ backgroundColor: '#FFFFFF',
1953
+ paddingHorizontal: 16,
1954
+ paddingTop: 16,
1955
+ borderRadius: 8,
1956
+ borderWidth: 0.5,
1957
+ borderColor: '#E0E0E0',
1958
+ }}
1959
+ >
1960
+ <View
1961
+ style={{
1962
+ flexDirection: 'row',
1963
+ alignItems: 'center',
1964
+ }}
1965
+ >
1966
+ <Contract />
1967
+ <View
1968
+ style={{ flex: 1, paddingLeft: 8 }}
1969
+ >
1970
+ <MText
1971
+ style={
1972
+ commonStyles.textNormalBold
1973
+ }
1974
+ >
1975
+ Mã Đơn vay-{item?.id}
1976
+ </MText>
1977
+ <MText
1978
+ style={commonStyles.textNormal}
1979
+ >
1980
+ Số tiền vay (VND):{' '}
1981
+ {item?.loanAmountOffer
1982
+ ? formatMoney(
1983
+ item?.loanAmountOffer
1984
+ )
1985
+ : 'Chưa xác định'}
1986
+ </MText>
1987
+ </View>
1988
+ </View>
1989
+ <View
1990
+ style={{
1991
+ height: 1,
1992
+ backgroundColor: '#E0E0E0',
1993
+ marginVertical: 16,
1994
+ }}
1995
+ />
1996
+ <View
1997
+ style={{
1998
+ flexDirection: 'row',
1999
+ justifyContent: 'space-between',
2000
+ }}
2001
+ >
2002
+ <MText
2003
+ style={commonStyles.textNormal}
2004
+ >
2005
+ Trạng thái
2006
+ </MText>
2007
+ <MText
2008
+ style={[
2009
+ commonStyles.textNormalBold,
2010
+ { color: '#F05123' },
2011
+ ]}
2012
+ >
2013
+ {item?.loanStatus}
2014
+ </MText>
2015
+ </View>
2016
+ <View
2017
+ style={{
2018
+ height: 0.5,
2019
+ backgroundColor: '#E0E0E0',
2020
+ marginVertical: 16,
2021
+ }}
2022
+ />
2023
+ <View style={{ flexDirection: 'row' }}>
2024
+ {item?.isUpdateLoan ||
2025
+ item?.isUpdateInformation ? (
2026
+ <TouchableOpacity
2027
+ style={{ alignItems: 'center' }}
2028
+ onPress={() => {
2029
+ checkTerm(item, () => {
2030
+ if (item?.isUpdateLoan) {
2031
+ navigation.dispatch(
2032
+ StackActions.push(
2033
+ ScreenNames.CimbSelfie,
2034
+ {
2035
+ loan: item,
2036
+ }
2037
+ )
2038
+ );
2039
+ } else {
2040
+ navigation.dispatch(
2041
+ StackActions.push(
2042
+ ScreenNames.QuickSubmit,
2043
+ {
2044
+ loan: item,
2045
+ }
2046
+ )
2047
+ );
2048
+ }
2049
+ });
2050
+ }}
2051
+ >
2052
+ <AddInfo />
2053
+ <MText
2054
+ style={[
2055
+ commonStyles.textNormal,
2056
+ {
2057
+ fontSize: 12,
2058
+ fontWeight: '300',
2059
+ marginTop: 8,
2060
+ textAlign: 'center',
2061
+ },
2062
+ ]}
2063
+ >
2064
+ Hoàn thiện{'\n'}cung cấp thông
2065
+ tin
2066
+ </MText>
2067
+ </TouchableOpacity>
1485
2068
  ) : (
1486
2069
  <View
2070
+ style={{ alignItems: 'center' }}
2071
+ >
2072
+ <AddInfoDisable />
2073
+ <MText
2074
+ style={[
2075
+ commonStyles.textNormal,
2076
+ {
2077
+ fontSize: 12,
2078
+ fontWeight: '300',
2079
+ marginTop: 8,
2080
+ textAlign: 'center',
2081
+ },
2082
+ ]}
2083
+ >
2084
+ Hoàn thiện{'\n'}cung cấp thông
2085
+ tin
2086
+ </MText>
2087
+ </View>
2088
+ )}
2089
+ {item?.isSignContract && (
2090
+ <TouchableOpacity
1487
2091
  style={{
1488
- flexDirection: 'row',
1489
2092
  alignItems: 'center',
1490
- backgroundColor: '#FBEFE7',
1491
- marginHorizontal: -16,
1492
- paddingVertical: 8,
1493
- marginTop: 16,
1494
- borderBottomRightRadius: 8,
1495
- borderBottomLeftRadius: 8,
1496
- paddingHorizontal: 16,
2093
+ marginLeft: 20,
2094
+ }}
2095
+ onPress={() => {
2096
+ checkTerm(item, () => {
2097
+ if (item?.urlSignContract) {
2098
+ navigation.dispatch(
2099
+ StackActions.push(
2100
+ ScreenNames.CIMBSign,
2101
+ {
2102
+ url: item?.urlSignContract,
2103
+ }
2104
+ )
2105
+ );
2106
+ } else {
2107
+ Alert.alert(
2108
+ 'Thông báo',
2109
+ 'Bạn chưa thể ký hợp đồng bây giờ?'
2110
+ );
2111
+ }
2112
+ });
1497
2113
  }}
1498
2114
  >
1499
- <Info />
2115
+ <IconSign2 />
1500
2116
  <MText
1501
2117
  style={[
2118
+ commonStyles.textNormal,
1502
2119
  {
2120
+ fontSize: 12,
1503
2121
  fontWeight: '300',
1504
- fontSize: 10,
1505
- fontStyle: 'italic',
1506
- color: '#333333',
1507
- marginLeft: 8,
2122
+ marginTop: 8,
1508
2123
  },
1509
2124
  ]}
1510
2125
  >
1511
- {item?.suggestion
1512
- ? item?.suggestion
1513
- : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
2126
+ Ký hợp đồng
1514
2127
  </MText>
1515
- </View>
2128
+ </TouchableOpacity>
1516
2129
  )}
1517
- </View>
1518
- )}
1519
- </View>
1520
- </View>
1521
- )}
1522
- </Observer>
1523
- ) : (
1524
- // cimb thường
1525
- <View>
1526
- <View>
1527
- {item?.loanStatus !== null &&
1528
- item?.loanStatus !== '' ? (
1529
- <View
1530
- style={{
1531
- backgroundColor: '#FFFFFF',
1532
- paddingHorizontal: 16,
1533
- paddingTop: 16,
1534
- borderRadius: 8,
1535
- borderWidth: 0.5,
1536
- borderColor: '#E0E0E0',
1537
- }}
1538
- >
1539
- <View
1540
- style={{
1541
- flexDirection: 'row',
1542
- alignItems: 'center',
1543
- }}
1544
- >
1545
- <Contract />
1546
- <View
1547
- style={{ flex: 1, paddingLeft: 8 }}
1548
- >
1549
- <MText
1550
- style={commonStyles.textNormalBold}
1551
- >
1552
- Mã Đơn vay-{item?.id}
1553
- </MText>
1554
- <MText
1555
- style={commonStyles.textNormal}
1556
- >
1557
- Số tiền vay (VND):{' '}
1558
- {item?.loanAmountOffer
1559
- ? formatMoney(
1560
- item?.loanAmountOffer
1561
- )
1562
- : 'Chưa xác định'}
1563
- </MText>
1564
- </View>
1565
- </View>
1566
- <View
1567
- style={{
1568
- height: 1,
1569
- backgroundColor: '#E0E0E0',
1570
- marginVertical: 16,
1571
- }}
1572
- />
1573
- <View
1574
- style={{
1575
- flexDirection: 'row',
1576
- justifyContent: 'space-between',
1577
- }}
1578
- >
1579
- <MText style={commonStyles.textNormal}>
1580
- Trạng thái
1581
- </MText>
1582
- <MText
1583
- style={[
1584
- commonStyles.textNormalBold,
1585
- { color: '#F05123' },
1586
- ]}
1587
- >
1588
- {item?.loanStatus}
1589
- </MText>
1590
- </View>
1591
- <View
1592
- style={{
1593
- height: 0.5,
1594
- backgroundColor: '#E0E0E0',
1595
- marginVertical: 16,
1596
- }}
1597
- />
1598
- <View style={{ flexDirection: 'row' }}>
1599
- {item?.isUpdateLoan ||
1600
- item?.isUpdateInformation ? (
1601
- <TouchableOpacity
1602
- style={{ alignItems: 'center' }}
1603
- onPress={() => {
1604
- checkTerm(item, () => {
1605
- if (item?.isUpdateLoan) {
1606
- navigation.dispatch(
1607
- StackActions.push(
1608
- ScreenNames.CimbSelfie,
1609
- {
1610
- loan: item,
1611
- }
1612
- )
1613
- );
1614
- } else {
2130
+ {item?.isSignContractTima && (
2131
+ <TouchableOpacity
2132
+ style={{
2133
+ alignItems: 'center',
2134
+ marginLeft: 20,
2135
+ }}
2136
+ onPress={() => {
2137
+ checkTerm(item, () => {
1615
2138
  navigation.dispatch(
1616
2139
  StackActions.push(
1617
- ScreenNames.QuickSubmit,
2140
+ ScreenNames.ViewContract,
1618
2141
  {
1619
2142
  loan: item,
1620
2143
  }
1621
2144
  )
1622
2145
  );
1623
- }
1624
- });
1625
- }}
1626
- >
1627
- <AddInfo />
1628
- <MText
1629
- style={[
1630
- commonStyles.textNormal,
1631
- {
1632
- fontSize: 12,
1633
- fontWeight: '300',
1634
- marginTop: 8,
1635
- textAlign: 'center',
1636
- },
1637
- ]}
1638
- >
1639
- Hoàn thiện{'\n'}cung cấp thông tin
1640
- </MText>
1641
- </TouchableOpacity>
1642
- ) : (
1643
- <View
1644
- style={{ alignItems: 'center' }}
1645
- >
1646
- <AddInfoDisable />
1647
- <MText
1648
- style={[
1649
- commonStyles.textNormal,
1650
- {
1651
- fontSize: 12,
1652
- fontWeight: '300',
1653
- marginTop: 8,
1654
- textAlign: 'center',
1655
- },
1656
- ]}
2146
+ });
2147
+ }}
1657
2148
  >
1658
- Hoàn thiện{'\n'}cung cấp thông tin
1659
- </MText>
1660
- </View>
1661
- )}
1662
- {item?.isSignContract && (
1663
- <TouchableOpacity
1664
- style={{
1665
- alignItems: 'center',
1666
- marginLeft: 20,
1667
- }}
1668
- onPress={() => {
1669
- checkTerm(item, () => {
1670
- if (item?.urlSignContract) {
2149
+ <ContractTimeIcon />
2150
+ <MText
2151
+ style={[
2152
+ commonStyles.textNormal,
2153
+ {
2154
+ fontSize: 12,
2155
+ fontWeight: '300',
2156
+ marginTop: 8,
2157
+ textAlign: 'center',
2158
+ },
2159
+ ]}
2160
+ >
2161
+ Hợp đồng{'\n'}dịch vụ
2162
+ </MText>
2163
+ </TouchableOpacity>
2164
+ )}
2165
+ {item?.paymentEvidenceUrl && (
2166
+ <TouchableOpacity
2167
+ style={{
2168
+ alignItems: 'center',
2169
+ marginLeft: 20,
2170
+ }}
2171
+ onPress={() => {
2172
+ checkTerm(item, () => {
1671
2173
  navigation.dispatch(
1672
2174
  StackActions.push(
1673
- ScreenNames.CIMBSign,
2175
+ ScreenNames.PaymentEvidence,
1674
2176
  {
1675
- url: item?.urlSignContract,
2177
+ url: item?.paymentEvidenceUrl,
1676
2178
  }
1677
2179
  )
1678
2180
  );
1679
- } else {
1680
- Alert.alert(
1681
- 'Thông báo',
1682
- 'Bạn chưa thể ký hợp đồng bây giờ?'
1683
- );
1684
- }
1685
- });
1686
- }}
1687
- >
1688
- <IconSign2 />
1689
- <MText
1690
- style={[
1691
- commonStyles.textNormal,
1692
- {
1693
- fontSize: 12,
1694
- fontWeight: '300',
1695
- marginTop: 8,
1696
- },
1697
- ]}
2181
+ });
2182
+ }}
1698
2183
  >
1699
- hợp đồng
1700
- </MText>
1701
- </TouchableOpacity>
1702
- )}
1703
- {item?.isSignContractTima && (
1704
- <TouchableOpacity
1705
- style={{
1706
- alignItems: 'center',
1707
- marginLeft: 20,
1708
- }}
1709
- onPress={() => {
1710
- checkTerm(item, () => {
2184
+ <IconEviden />
2185
+ <MText
2186
+ style={[
2187
+ commonStyles.textNormal,
2188
+ {
2189
+ fontSize: 12,
2190
+ fontWeight: '300',
2191
+ marginTop: 8,
2192
+ textAlign: 'center',
2193
+ },
2194
+ ]}
2195
+ >
2196
+ Mục đích {'\n'}sử dụng
2197
+ </MText>
2198
+ </TouchableOpacity>
2199
+ )}
2200
+ {item?.showPaymentPlan && (
2201
+ <TouchableOpacity
2202
+ style={{
2203
+ alignItems: 'center',
2204
+ marginLeft: 20,
2205
+ }}
2206
+ onPress={() => {
1711
2207
  navigation.dispatch(
1712
2208
  StackActions.push(
1713
- ScreenNames.ViewContract,
2209
+ ScreenNames.SchedulePayment,
1714
2210
  {
1715
2211
  loan: item,
1716
- }
1717
- )
1718
- );
1719
- });
1720
- }}
1721
- >
1722
- <ContractTimeIcon />
1723
- <MText
1724
- style={[
1725
- commonStyles.textNormal,
1726
- {
1727
- fontSize: 12,
1728
- fontWeight: '300',
1729
- marginTop: 8,
1730
- textAlign: 'center',
1731
- },
1732
- ]}
1733
- >
1734
- Hợp đồng{'\n'}dịch vụ
1735
- </MText>
1736
- </TouchableOpacity>
1737
- )}
1738
- {item?.paymentEvidenceUrl && (
1739
- <TouchableOpacity
1740
- style={{
1741
- alignItems: 'center',
1742
- marginLeft: 20,
1743
- }}
1744
- onPress={() => {
1745
- checkTerm(item, () => {
1746
- navigation.dispatch(
1747
- StackActions.push(
1748
- ScreenNames.PaymentEvidence,
1749
- {
1750
- url: item?.paymentEvidenceUrl,
1751
- }
1752
- )
1753
- );
1754
- });
1755
- }}
1756
- >
1757
- <IconEviden />
1758
- <MText
1759
- style={[
1760
- commonStyles.textNormal,
1761
- {
1762
- fontSize: 12,
1763
- fontWeight: '300',
1764
- marginTop: 8,
1765
- textAlign: 'center',
1766
- },
1767
- ]}
2212
+ }
2213
+ )
2214
+ );
2215
+ }}
1768
2216
  >
1769
- Mục đích {'\n'}sử dụng
1770
- </MText>
1771
- </TouchableOpacity>
1772
- )}
1773
- {item?.showPaymentPlan && (
1774
- <TouchableOpacity
1775
- style={{
1776
- alignItems: 'center',
1777
- marginLeft: 20,
1778
- }}
1779
- onPress={() => {
1780
- navigation.dispatch(
1781
- StackActions.push(
1782
- ScreenNames.SchedulePayment,
2217
+ <IconSchedule />
2218
+ <MText
2219
+ style={[
2220
+ commonStyles.textNormal,
1783
2221
  {
1784
- loan: item,
1785
- }
1786
- )
1787
- );
1788
- }}
1789
- >
1790
- <IconSchedule />
1791
- <MText
1792
- style={[
1793
- commonStyles.textNormal,
1794
- {
1795
- fontSize: 12,
1796
- fontWeight: '300',
1797
- marginTop: 8,
1798
- },
1799
- ]}
1800
- >
1801
- Lịch dự kiến
1802
- </MText>
1803
- </TouchableOpacity>
1804
- )}
1805
- </View>
2222
+ fontSize: 12,
2223
+ fontWeight: '300',
2224
+ marginTop: 8,
2225
+ },
2226
+ ]}
2227
+ >
2228
+ Lịch dự kiến
2229
+ </MText>
2230
+ </TouchableOpacity>
2231
+ )}
2232
+ </View>
1806
2233
 
1807
- <View
1808
- style={{
1809
- flexDirection: 'row',
1810
- alignItems: 'center',
1811
- backgroundColor: '#FBEFE7',
1812
- marginHorizontal: -16,
1813
- paddingVertical: 8,
1814
- marginTop: 16,
1815
- borderBottomRightRadius: 8,
1816
- borderBottomLeftRadius: 8,
1817
- paddingHorizontal: 16,
1818
- }}
1819
- >
1820
- <Info />
1821
- <MText
1822
- style={[
1823
- {
1824
- fontWeight: '300',
1825
- fontSize: 10,
1826
- fontStyle: 'italic',
1827
- color: '#333333',
1828
- marginLeft: 8,
1829
- },
1830
- ]}
1831
- >
1832
- {item?.suggestion
1833
- ? item?.suggestion
1834
- : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1835
- </MText>
1836
- </View>
1837
- </View>
1838
- ) : (
1839
- <ImageBackground
1840
- source={require('../../assets/img/bann.png')}
1841
- style={{ flex: 1, padding: 16 }}
1842
- resizeMode="cover"
1843
- height={220}
1844
- borderRadius={8}
1845
- >
1846
- <MText
1847
- style={{
1848
- color: '#333333',
1849
- fontWeight: 'bold',
1850
- fontSize: 12,
1851
- }}
1852
- >
1853
- BẠN ĐỦ ĐIỀU KIỆN VAY TIÊU DÙNG{'\n'}THEO
1854
- THÔNG TIN TÀI SẢN SỞ HỮU
1855
- {'\n'}
1856
- (XE MÁY/ Ô TÔ)
1857
- </MText>
1858
- <MText
1859
- style={{
1860
- marginTop: 12,
1861
- fontSize: 24,
1862
- fontWeight: 'bold',
1863
- color: '#EF4123',
1864
- }}
1865
- >
1866
- {formatMoney(item?.loanAmount)} VND
1867
- </MText>
1868
- <TouchableOpacity
1869
- onPress={() => {
1870
- checkTerm(item, () => {
1871
- navigation.dispatch(
1872
- StackActions.push(
1873
- ScreenNames.CIMBxTima,
1874
- {
1875
- loan: item,
1876
- }
1877
- )
1878
- );
1879
- });
1880
- }}
1881
- >
1882
- <LinearGradient
1883
- colors={['#FF7A00', '#EF4123']}
2234
+ <View
1884
2235
  style={{
1885
- backgroundColor: '#F36D21cd ',
1886
- marginTop: 12,
2236
+ flexDirection: 'row',
1887
2237
  alignItems: 'center',
1888
- borderRadius: 30,
1889
- paddingVertical: 10,
1890
- width: '50%',
2238
+ backgroundColor: '#FBEFE7',
2239
+ marginHorizontal: -16,
2240
+ paddingVertical: 8,
2241
+ marginTop: 16,
2242
+ borderBottomRightRadius: 8,
2243
+ borderBottomLeftRadius: 8,
2244
+ paddingHorizontal: 16,
1891
2245
  }}
1892
2246
  >
2247
+ <Info />
1893
2248
  <MText
1894
- style={{
1895
- color: '#FFFFFF',
1896
- fontWeight: 'bold',
1897
- }}
2249
+ style={[
2250
+ {
2251
+ fontWeight: '300',
2252
+ fontSize: 10,
2253
+ fontStyle: 'italic',
2254
+ color: '#333333',
2255
+ marginLeft: 8,
2256
+ },
2257
+ ]}
1898
2258
  >
1899
- Hoàn thiện hồ sơ
2259
+ {item?.suggestion
2260
+ ? item?.suggestion
2261
+ : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1900
2262
  </MText>
1901
- </LinearGradient>
1902
- </TouchableOpacity>
1903
- <View
1904
- style={{
1905
- flexDirection: 'row',
1906
- alignItems: 'center',
1907
- alignContent: 'center',
1908
- marginTop: 16,
1909
- }}
2263
+ </View>
2264
+ </View>
2265
+ ) : (
2266
+ <ImageBackground
2267
+ source={require('../../assets/img/bann.png')}
2268
+ style={{ flex: 1, padding: 16 }}
2269
+ resizeMode="cover"
2270
+ height={220}
2271
+ borderRadius={8}
1910
2272
  >
1911
2273
  <MText
1912
2274
  style={{
1913
- fontSize: 10,
1914
2275
  color: '#333333',
2276
+ fontWeight: 'bold',
2277
+ fontSize: 12,
1915
2278
  }}
1916
2279
  >
1917
- SẢN PHẨM VAY TIÊU DÙNG HỢP TÁC GIỮA{' '}
2280
+ BẠN ĐỦ ĐIỀU KIỆN VAY TIÊU DÙNG{'\n'}
2281
+ THEO THÔNG TIN TÀI SẢN SỞ HỮU
2282
+ {'\n'}
2283
+ (XE MÁY/ Ô TÔ)
1918
2284
  </MText>
1919
- <LogoSmall />
1920
2285
  <MText
1921
2286
  style={{
1922
- fontSize: 12,
1923
- color: '#333333',
2287
+ marginTop: 12,
2288
+ fontSize: 24,
2289
+ fontWeight: 'bold',
2290
+ color: '#EF4123',
1924
2291
  }}
1925
2292
  >
1926
- {' '}
1927
- VÀ{' '}
2293
+ {formatMoney(item?.loanAmount)} VND
1928
2294
  </MText>
1929
- <CIMBSmall />
1930
- </View>
1931
- </ImageBackground>
1932
- )}
1933
- </View>
1934
- </View>
1935
- )}
1936
- </View>
1937
- ) : (
1938
- <Observer>
1939
- {() => (
1940
- <View>
1941
- <View
1942
- style={{
1943
- backgroundColor: '#FFFFFF',
1944
- paddingHorizontal: 16,
1945
- paddingTop: 16,
1946
- borderRadius: 8,
1947
- borderWidth: 0.5,
1948
- borderColor: '#E0E0E0',
1949
- }}
1950
- >
1951
- <View
1952
- style={{
1953
- flexDirection: 'row',
1954
- alignItems: 'center',
1955
- }}
1956
- >
1957
- <Contract />
1958
- <View style={{ flex: 1, paddingLeft: 8 }}>
1959
- <MText
1960
- style={commonStyles.textNormalBold}
1961
- >
1962
- Đơn vay {item?.id}
1963
- </MText>
1964
- <MText style={commonStyles.textNormal}>
1965
- Số tiền vay (VND):{' '}
1966
- {item?.loanAmount
1967
- ? formatMoney(item?.loanAmount)
1968
- : 'Chưa xác định'}
1969
- </MText>
1970
- </View>
2295
+ <TouchableOpacity
2296
+ onPress={() => {
2297
+ checkTerm(item, () => {
2298
+ navigation.dispatch(
2299
+ StackActions.push(
2300
+ ScreenNames.CIMBxTima,
2301
+ {
2302
+ loan: item,
2303
+ }
2304
+ )
2305
+ );
2306
+ });
2307
+ }}
2308
+ >
2309
+ <LinearGradient
2310
+ colors={['#FF7A00', '#EF4123']}
2311
+ style={{
2312
+ backgroundColor: '#F36D21cd ',
2313
+ marginTop: 12,
2314
+ alignItems: 'center',
2315
+ borderRadius: 30,
2316
+ paddingVertical: 10,
2317
+ width: '50%',
2318
+ }}
2319
+ >
2320
+ <MText
2321
+ style={{
2322
+ color: '#FFFFFF',
2323
+ fontWeight: 'bold',
2324
+ }}
2325
+ >
2326
+ Hoàn thiện hồ sơ
2327
+ </MText>
2328
+ </LinearGradient>
2329
+ </TouchableOpacity>
2330
+ <View
2331
+ style={{
2332
+ flexDirection: 'row',
2333
+ alignItems: 'center',
2334
+ alignContent: 'center',
2335
+ marginTop: 16,
2336
+ }}
2337
+ >
2338
+ <MText
2339
+ style={{
2340
+ fontSize: 10,
2341
+ color: '#333333',
2342
+ }}
2343
+ >
2344
+ SẢN PHẨM VAY TIÊU DÙNG HỢP TÁC GIỮA{' '}
2345
+ </MText>
2346
+ <LogoSmall />
2347
+ <MText
2348
+ style={{
2349
+ fontSize: 12,
2350
+ color: '#333333',
2351
+ }}
2352
+ >
2353
+ {' '}
2354
+ VÀ{' '}
2355
+ </MText>
2356
+ <CIMBSmall />
2357
+ </View>
2358
+ </ImageBackground>
2359
+ )}
1971
2360
  </View>
2361
+ </View>
2362
+ )}
2363
+ </View>
2364
+ ) : (
2365
+ <Observer>
2366
+ {() => (
2367
+ <View>
1972
2368
  <View
1973
2369
  style={{
1974
- height: 1,
1975
- backgroundColor: '#E0E0E0',
1976
- marginVertical: 16,
1977
- }}
1978
- />
1979
- <View
1980
- style={{
1981
- flexDirection: 'row',
1982
- justifyContent: 'space-between',
1983
- alignItems: 'center',
2370
+ backgroundColor: '#FFFFFF',
2371
+ paddingHorizontal: 16,
2372
+ paddingTop: 16,
2373
+ borderRadius: 8,
2374
+ borderWidth: 0.5,
2375
+ borderColor: '#E0E0E0',
1984
2376
  }}
1985
2377
  >
1986
- <MText style={commonStyles.textNormal}>
1987
- Trạng thái
1988
- </MText>
1989
- <MText
1990
- style={[
1991
- commonStyles.textNormalBold,
1992
- { color: '#F05123' },
1993
- ]}
2378
+ <View
2379
+ style={{
2380
+ flexDirection: 'row',
2381
+ alignItems: 'center',
2382
+ }}
1994
2383
  >
1995
- {item?.loanStatus}
1996
- </MText>
1997
- </View>
1998
- <View
1999
- style={{
2000
- height: 0.5,
2001
- backgroundColor: '#E0E0E0',
2002
- marginVertical: 16,
2003
- }}
2004
- />
2005
- <View
2006
- style={{
2007
- flexDirection: 'row',
2008
- gap: 24,
2009
- }}
2010
- >
2011
- {!homeStore.checkEKYC[item?.id] && (
2012
- <TouchableOpacity
2013
- style={{ alignItems: 'center' }}
2014
- onPress={() => {
2015
- checkTerm(item, () => {
2016
- navigation.dispatch(
2017
- StackActions.push(
2018
- ScreenNames.NationalID,
2019
- {
2020
- loan: item,
2021
- reLoan: true,
2022
- }
2023
- )
2024
- );
2025
- });
2026
- }}
2027
- >
2028
- <AddInfo />
2384
+ <Contract />
2385
+ <View style={{ flex: 1, paddingLeft: 8 }}>
2029
2386
  <MText
2030
- style={[
2031
- commonStyles.textNormal,
2032
- {
2033
- fontSize: 12,
2034
- fontWeight: '300',
2035
- marginTop: 8,
2036
- },
2037
- ]}
2387
+ style={commonStyles.textNormalBold}
2038
2388
  >
2039
- EKYC
2389
+ Đơn vay {item?.id}
2040
2390
  </MText>
2041
- </TouchableOpacity>
2042
- )}
2043
- {/* Cập nhật thông tin với đơn ô tô digital topup */}
2044
- {item?.typeLoan === 4 &&
2045
- item?.productId === 8 ? (
2046
- <>
2047
- {item?.isUpdateInfoTopup && (
2048
- <TouchableOpacity
2049
- onPress={() => {
2391
+ <MText style={commonStyles.textNormal}>
2392
+ Số tiền vay (VND):{' '}
2393
+ {item?.loanAmount
2394
+ ? formatMoney(item?.loanAmount)
2395
+ : 'Chưa xác định'}
2396
+ </MText>
2397
+ </View>
2398
+ </View>
2399
+ <View
2400
+ style={{
2401
+ height: 1,
2402
+ backgroundColor: '#E0E0E0',
2403
+ marginVertical: 16,
2404
+ }}
2405
+ />
2406
+ <View
2407
+ style={{
2408
+ flexDirection: 'row',
2409
+ justifyContent: 'space-between',
2410
+ alignItems: 'center',
2411
+ }}
2412
+ >
2413
+ <MText style={commonStyles.textNormal}>
2414
+ Trạng thái
2415
+ </MText>
2416
+ <MText
2417
+ style={[
2418
+ commonStyles.textNormalBold,
2419
+ { color: '#F05123' },
2420
+ ]}
2421
+ >
2422
+ {item?.loanStatus}
2423
+ </MText>
2424
+ </View>
2425
+ <View
2426
+ style={{
2427
+ height: 0.5,
2428
+ backgroundColor: '#E0E0E0',
2429
+ marginVertical: 16,
2430
+ }}
2431
+ />
2432
+ <View
2433
+ style={{
2434
+ flexDirection: 'row',
2435
+ gap: 24,
2436
+ }}
2437
+ >
2438
+ {!homeStore.checkEKYC[item?.id] && (
2439
+ <TouchableOpacity
2440
+ style={{ alignItems: 'center' }}
2441
+ onPress={() => {
2442
+ checkTerm(item, () => {
2050
2443
  navigation.dispatch(
2051
2444
  StackActions.push(
2052
- ScreenNames.UpdateLoan,
2053
- item
2445
+ ScreenNames.NationalID,
2446
+ {
2447
+ loan: item,
2448
+ reLoan: true,
2449
+ }
2054
2450
  )
2055
2451
  );
2056
- }}
2057
- style={{
2058
- alignItems: 'center',
2059
- }}
2452
+ });
2453
+ }}
2454
+ >
2455
+ <AddInfo />
2456
+ <MText
2457
+ style={[
2458
+ commonStyles.textNormal,
2459
+ {
2460
+ fontSize: 12,
2461
+ fontWeight: '300',
2462
+ marginTop: 8,
2463
+ },
2464
+ ]}
2060
2465
  >
2061
- <TopupSvg />
2062
- <MText
2063
- style={[
2064
- commonStyles.textNormal,
2065
- {
2066
- fontSize: 12,
2067
- fontWeight: '300',
2068
- marginTop: 8,
2069
- },
2070
- ]}
2466
+ EKYC
2467
+ </MText>
2468
+ </TouchableOpacity>
2469
+ )}
2470
+ {/* Cập nhật thông tin với đơn ô tô digital topup */}
2471
+ {item?.typeLoan === 4 &&
2472
+ item?.productId === 8 ? (
2473
+ <>
2474
+ {item?.isUpdateInfoTopup && (
2475
+ <TouchableOpacity
2476
+ onPress={() => {
2477
+ navigation.dispatch(
2478
+ StackActions.push(
2479
+ ScreenNames.UpdateLoan,
2480
+ item
2481
+ )
2482
+ );
2483
+ }}
2484
+ style={{
2485
+ alignItems: 'center',
2486
+ }}
2071
2487
  >
2072
- Cập nhật{'\n'}thông tin
2073
- </MText>
2074
- </TouchableOpacity>
2075
- )}
2076
- </>
2077
- ) : (
2078
- <></>
2079
- )}
2488
+ <TopupSvg />
2489
+ <MText
2490
+ style={[
2491
+ commonStyles.textNormal,
2492
+ {
2493
+ fontSize: 12,
2494
+ fontWeight: '300',
2495
+ marginTop: 8,
2496
+ },
2497
+ ]}
2498
+ >
2499
+ Cập nhật{'\n'}thông tin
2500
+ </MText>
2501
+ </TouchableOpacity>
2502
+ )}
2503
+ </>
2504
+ ) : (
2505
+ <></>
2506
+ )}
2080
2507
 
2081
- {/* -------------------------------------------------- */}
2082
- {item?.isVideoDebt && (
2083
- <TouchableOpacity
2084
- style={{
2085
- alignItems: 'center',
2086
- }}
2087
- onPress={() => {
2088
- checkTerm(item, () => {
2089
- navigation.dispatch(
2090
- StackActions.push(
2091
- ScreenNames.Video,
2092
- {
2093
- loan: item,
2094
- }
2095
- )
2096
- );
2097
- });
2098
- }}
2099
- >
2100
- <IconVideo />
2101
- <MText
2102
- style={[
2103
- commonStyles.textNormal,
2104
- {
2105
- fontSize: 12,
2106
- fontWeight: '300',
2107
- marginTop: 8,
2108
- },
2109
- ]}
2508
+ {/* -------------------------------------------------- */}
2509
+ {item?.isVideoDebt && (
2510
+ <TouchableOpacity
2511
+ style={{
2512
+ alignItems: 'center',
2513
+ }}
2514
+ onPress={() => {
2515
+ checkTerm(item, () => {
2516
+ navigation.dispatch(
2517
+ StackActions.push(
2518
+ ScreenNames.Video,
2519
+ {
2520
+ loan: item,
2521
+ }
2522
+ )
2523
+ );
2524
+ });
2525
+ }}
2110
2526
  >
2111
- Quay video
2112
- </MText>
2113
- </TouchableOpacity>
2114
- )}
2115
- {item?.typeLoan === 4 &&
2116
- item?.productId === 8 ? (
2117
- <>
2118
- {!item?.isUpdateInfoTopup &&
2119
- homeStore.checkEKYC[item?.id] && (
2527
+ <IconVideo />
2528
+ <MText
2529
+ style={[
2530
+ commonStyles.textNormal,
2531
+ {
2532
+ fontSize: 12,
2533
+ fontWeight: '300',
2534
+ marginTop: 8,
2535
+ },
2536
+ ]}
2537
+ >
2538
+ Quay video
2539
+ </MText>
2540
+ </TouchableOpacity>
2541
+ )}
2542
+ {item?.typeLoan === 4 &&
2543
+ item?.productId === 8 ? (
2544
+ <>
2545
+ {!item?.isUpdateInfoTopup &&
2546
+ homeStore.checkEKYC[item?.id] && (
2547
+ <TouchableOpacity
2548
+ style={{
2549
+ alignItems: 'center',
2550
+ }}
2551
+ onPress={() => {
2552
+ checkTerm(item, () => {
2553
+ signLoan(item);
2554
+ });
2555
+ }}
2556
+ >
2557
+ <IconSign2 />
2558
+ <MText
2559
+ style={[
2560
+ commonStyles.textNormal,
2561
+ {
2562
+ fontSize: 12,
2563
+ fontWeight: '300',
2564
+ marginTop: 8,
2565
+ },
2566
+ ]}
2567
+ >
2568
+ Ký HĐ
2569
+ </MText>
2570
+ </TouchableOpacity>
2571
+ )}
2572
+ </>
2573
+ ) : (
2574
+ <>
2575
+ {homeStore.checkEKYC[item?.id] ? (
2120
2576
  <TouchableOpacity
2121
2577
  style={{
2122
2578
  alignItems: 'center',
@@ -2141,22 +2597,43 @@ export const Home = observer(function Home() {
2141
2597
  Ký HĐ
2142
2598
  </MText>
2143
2599
  </TouchableOpacity>
2600
+ ) : (
2601
+ <View
2602
+ style={{
2603
+ alignItems: 'center',
2604
+ }}
2605
+ >
2606
+ {/* <SignDisable />
2607
+ <MText
2608
+ style={[
2609
+ commonStyles.textNormal,
2610
+ {
2611
+ fontSize: 12,
2612
+ fontWeight: '300',
2613
+ marginTop: 8,
2614
+ },
2615
+ ]}
2616
+ >
2617
+ Ký HĐ
2618
+ </MText> */}
2619
+ </View>
2144
2620
  )}
2145
- </>
2146
- ) : (
2147
- <>
2148
- {homeStore.checkEKYC[item?.id] ? (
2621
+ </>
2622
+ )}
2623
+ {item?.typeLoan &&
2624
+ item?.productId === 8 && (
2149
2625
  <TouchableOpacity
2626
+ onPress={() => {
2627
+ navigation.push(
2628
+ 'DigitalSchedulePayment',
2629
+ item
2630
+ );
2631
+ }}
2150
2632
  style={{
2151
2633
  alignItems: 'center',
2152
2634
  }}
2153
- onPress={() => {
2154
- checkTerm(item, () => {
2155
- signLoan(item);
2156
- });
2157
- }}
2158
2635
  >
2159
- <IconSign2 />
2636
+ <IconSchedule />
2160
2637
  <MText
2161
2638
  style={[
2162
2639
  commonStyles.textNormal,
@@ -2167,99 +2644,50 @@ export const Home = observer(function Home() {
2167
2644
  },
2168
2645
  ]}
2169
2646
  >
2170
-
2647
+ Lịch TT dự kiến
2171
2648
  </MText>
2172
2649
  </TouchableOpacity>
2173
- ) : (
2174
- <View
2175
- style={{
2176
- alignItems: 'center',
2177
- }}
2178
- >
2179
- {/* <SignDisable />
2180
- <MText
2181
- style={[
2182
- commonStyles.textNormal,
2183
- {
2184
- fontSize: 12,
2185
- fontWeight: '300',
2186
- marginTop: 8,
2187
- },
2188
- ]}
2189
- >
2190
- Ký HĐ
2191
- </MText> */}
2192
- </View>
2193
2650
  )}
2194
- </>
2195
- )}
2196
- {item?.typeLoan &&
2197
- item?.productId === 8 && (
2198
- <TouchableOpacity
2199
- onPress={() => {
2200
- navigation.push(
2201
- 'DigitalSchedulePayment',
2202
- item
2203
- );
2204
- }}
2205
- style={{
2206
- alignItems: 'center',
2207
- }}
2208
- >
2209
- <IconSchedule />
2210
- <MText
2211
- style={[
2212
- commonStyles.textNormal,
2213
- {
2214
- fontSize: 12,
2215
- fontWeight: '300',
2216
- marginTop: 8,
2217
- },
2218
- ]}
2219
- >
2220
- Lịch TT dự kiến
2221
- </MText>
2222
- </TouchableOpacity>
2223
- )}
2224
- </View>
2225
- <View
2226
- style={{
2227
- flexDirection: 'row',
2228
- alignItems: 'center',
2229
- backgroundColor: '#FBEFE7',
2230
- marginHorizontal: -16,
2231
- paddingVertical: 8,
2232
- marginTop: 16,
2233
- borderBottomRightRadius: 8,
2234
- borderBottomLeftRadius: 8,
2235
- paddingHorizontal: 16,
2236
- }}
2237
- >
2238
- <Info />
2239
- <MText
2240
- style={[
2241
- {
2242
- fontWeight: '300',
2243
- fontSize: 12,
2244
- fontStyle: 'italic',
2245
- color: '#333333',
2246
- marginLeft: 8,
2247
- },
2248
- ]}
2651
+ </View>
2652
+ <View
2653
+ style={{
2654
+ flexDirection: 'row',
2655
+ alignItems: 'center',
2656
+ backgroundColor: '#FBEFE7',
2657
+ marginHorizontal: -16,
2658
+ paddingVertical: 8,
2659
+ marginTop: 16,
2660
+ borderBottomRightRadius: 8,
2661
+ borderBottomLeftRadius: 8,
2662
+ paddingHorizontal: 16,
2663
+ }}
2249
2664
  >
2250
- Thực hiện đầy đủ các bước để giải ngân
2251
- nhanh nhất
2252
- </MText>
2665
+ <Info />
2666
+ <MText
2667
+ style={[
2668
+ {
2669
+ fontWeight: '300',
2670
+ fontSize: 12,
2671
+ fontStyle: 'italic',
2672
+ color: '#333333',
2673
+ marginLeft: 8,
2674
+ },
2675
+ ]}
2676
+ >
2677
+ Thực hiện đầy đủ các bước để giải ngân
2678
+ nhanh nhất
2679
+ </MText>
2680
+ </View>
2253
2681
  </View>
2254
2682
  </View>
2255
- </View>
2256
- )}
2257
- </Observer>
2258
- )}
2259
- </View>
2260
- )}
2261
- </View>
2262
- ))}
2683
+ )}
2684
+ </Observer>
2685
+ )}
2686
+ </View>
2687
+ )}
2688
+ </View>
2689
+ );
2690
+ })}
2263
2691
  </View>
2264
2692
  )}
2265
2693
  </View>
@@ -2724,12 +3152,7 @@ export const Home = observer(function Home() {
2724
3152
  >
2725
3153
  <TouchableOpacity
2726
3154
  onPress={() => {
2727
- setShowModal3(false);
2728
- setTimeout(() => {
2729
- navigation.push(ScreenNames.LivenessV2, {
2730
- loan,
2731
- });
2732
- }, 300);
3155
+ acceptLoan();
2733
3156
  }}
2734
3157
  style={{
2735
3158
  borderWidth: 1,
@@ -2753,7 +3176,7 @@ export const Home = observer(function Home() {
2753
3176
 
2754
3177
  <TouchableOpacity
2755
3178
  onPress={() => {
2756
- setShowModal3(false);
3179
+ rejectLoan();
2757
3180
  }}
2758
3181
  >
2759
3182
  <MText