react-native-timacare 3.1.2 → 3.1.3-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 (582) hide show
  1. package/lib/commonjs/assets/icons/cam2.svg +5 -0
  2. package/lib/commonjs/assets/icons/chip.svg +20 -0
  3. package/lib/commonjs/assets/icons/index.js +1 -1
  4. package/lib/commonjs/assets/icons/index.js.flow +8 -0
  5. package/lib/commonjs/assets/icons/index.js.map +1 -1
  6. package/lib/commonjs/assets/icons/ocr.svg +11 -0
  7. package/lib/commonjs/assets/icons/takePhoto.svg +20 -0
  8. package/lib/commonjs/assets/icons/tima_small.svg +12 -23
  9. package/lib/commonjs/assets/svgs/back.svg +4 -0
  10. package/lib/commonjs/assets/svgs/complete.svg +27 -0
  11. package/lib/commonjs/assets/svgs/currentStep.svg +28 -0
  12. package/lib/commonjs/assets/svgs/edit.svg +42 -0
  13. package/lib/commonjs/assets/svgs/edit_success.svg +15 -0
  14. package/lib/commonjs/assets/svgs/ekyc.svg +18 -0
  15. package/lib/commonjs/assets/svgs/ekyc_success.svg +6 -0
  16. package/lib/commonjs/assets/svgs/index.js +2 -0
  17. package/lib/commonjs/assets/svgs/index.js.flow +21 -0
  18. package/lib/commonjs/assets/svgs/index.js.map +1 -0
  19. package/lib/commonjs/assets/svgs/nextStep.svg +21 -0
  20. package/lib/commonjs/assets/svgs/orc_success.svg +11 -0
  21. package/lib/commonjs/assets/tts/1000009864.png +0 -0
  22. package/lib/commonjs/assets/tts/1000009872.png +0 -0
  23. package/lib/commonjs/assets/tts/1000011964.png +0 -0
  24. package/lib/commonjs/assets/tts/Frame 1000011947.png +0 -0
  25. package/lib/commonjs/assets/tts/Frame1000011946.png +0 -0
  26. package/lib/commonjs/assets/tts/Frame1000011953.png +0 -0
  27. package/lib/commonjs/assets/tts/back.png +0 -0
  28. package/lib/commonjs/assets/tts/front.png +0 -0
  29. package/lib/commonjs/assets/tts/vehicleRegistration.png +0 -0
  30. package/lib/commonjs/assets/tts/vehicleStep.png +0 -0
  31. package/lib/commonjs/components/CIMBLoading.js +1 -1
  32. package/lib/commonjs/components/CIMBLoading.js.map +1 -1
  33. package/lib/commonjs/components/CommonSelect.js +1 -1
  34. package/lib/commonjs/components/CommonSelect.js.map +1 -1
  35. package/lib/commonjs/components/Loading.js +1 -1
  36. package/lib/commonjs/components/Loading.js.map +1 -1
  37. package/lib/commonjs/components/MButton.js +1 -1
  38. package/lib/commonjs/components/MButton.js.map +1 -1
  39. package/lib/commonjs/components/MHeader.js +1 -1
  40. package/lib/commonjs/components/MHeader.js.flow +1 -1
  41. package/lib/commonjs/components/MHeader.js.map +1 -1
  42. package/lib/commonjs/components/MSelect.js +2 -0
  43. package/lib/commonjs/components/MSelect.js.flow +78 -0
  44. package/lib/commonjs/components/MSelect.js.map +1 -0
  45. package/lib/commonjs/components/MText.js +1 -1
  46. package/lib/commonjs/components/MText.js.map +1 -1
  47. package/lib/commonjs/components/MyTextInput.js +1 -1
  48. package/lib/commonjs/components/MyTextInput.js.map +1 -1
  49. package/lib/commonjs/components/StepIndicator.js +2 -0
  50. package/lib/commonjs/components/StepIndicator.js.flow +85 -0
  51. package/lib/commonjs/components/StepIndicator.js.map +1 -0
  52. package/lib/commonjs/components/keyboardspace/index.js +1 -1
  53. package/lib/commonjs/components/keyboardspace/index.js.map +1 -1
  54. package/lib/commonjs/components/logoTima/index.js +1 -1
  55. package/lib/commonjs/components/logoTima/index.js.map +1 -1
  56. package/lib/commonjs/components/select/index.js +1 -1
  57. package/lib/commonjs/components/select/index.js.flow +19 -3
  58. package/lib/commonjs/components/select/index.js.map +1 -1
  59. package/lib/commonjs/index.js +1 -1
  60. package/lib/commonjs/index.js.flow +3 -1
  61. package/lib/commonjs/index.js.map +1 -1
  62. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  63. package/lib/commonjs/navigation/primary-navigator.js.flow +68 -0
  64. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  65. package/lib/commonjs/navigation/root-navigator.js +1 -1
  66. package/lib/commonjs/navigation/root-navigator.js.map +1 -1
  67. package/lib/commonjs/screens/Selector.js +1 -1
  68. package/lib/commonjs/screens/Selector.js.map +1 -1
  69. package/lib/commonjs/screens/camera/index.js +1 -1
  70. package/lib/commonjs/screens/camera/index.js.flow +1 -1
  71. package/lib/commonjs/screens/camera/index.js.map +1 -1
  72. package/lib/commonjs/screens/cimb-sign/index.js +1 -1
  73. package/lib/commonjs/screens/cimb-sign/index.js.map +1 -1
  74. package/lib/commonjs/screens/contract/index.js +1 -1
  75. package/lib/commonjs/screens/contract/index.js.map +1 -1
  76. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js +1 -1
  77. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.map +1 -1
  78. package/lib/commonjs/screens/detail-loan/Info.js +1 -1
  79. package/lib/commonjs/screens/detail-loan/Info.js.map +1 -1
  80. package/lib/commonjs/screens/detail-loan/Payment.js +1 -1
  81. package/lib/commonjs/screens/detail-loan/Payment.js.map +1 -1
  82. package/lib/commonjs/screens/detail-loan/PaymentAll.js +1 -1
  83. package/lib/commonjs/screens/detail-loan/PaymentAll.js.map +1 -1
  84. package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
  85. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
  86. package/lib/commonjs/screens/detail-loan/QrPayment.js +1 -1
  87. package/lib/commonjs/screens/detail-loan/QrPayment.js.map +1 -1
  88. package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
  89. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
  90. package/lib/commonjs/screens/detail-loan/index.js +1 -1
  91. package/lib/commonjs/screens/detail-loan/index.js.map +1 -1
  92. package/lib/commonjs/screens/digital-lending/Step1.js +1 -1
  93. package/lib/commonjs/screens/digital-lending/Step1.js.map +1 -1
  94. package/lib/commonjs/screens/digital-lending/Step2.js +1 -1
  95. package/lib/commonjs/screens/digital-lending/Step2.js.map +1 -1
  96. package/lib/commonjs/screens/digital-lending/Step3.js +1 -1
  97. package/lib/commonjs/screens/digital-lending/Step3.js.map +1 -1
  98. package/lib/commonjs/screens/digital-lending/Step4.js +1 -1
  99. package/lib/commonjs/screens/digital-lending/Step4.js.map +1 -1
  100. package/lib/commonjs/screens/digital-lending/Step5.js +1 -1
  101. package/lib/commonjs/screens/digital-lending/Step5.js.map +1 -1
  102. package/lib/commonjs/screens/digital-lending/Step6.js +1 -1
  103. package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -1
  104. package/lib/commonjs/screens/digital-lending/index.js +1 -1
  105. package/lib/commonjs/screens/digital-lending/index.js.map +1 -1
  106. package/lib/commonjs/screens/eSign/PreviewContract.js +1 -1
  107. package/lib/commonjs/screens/eSign/PreviewContract.js.map +1 -1
  108. package/lib/commonjs/screens/eSign/Store.js +1 -1
  109. package/lib/commonjs/screens/eSign/Store.js.flow +9 -2
  110. package/lib/commonjs/screens/eSign/Store.js.map +1 -1
  111. package/lib/commonjs/screens/eSign/index.js +1 -1
  112. package/lib/commonjs/screens/eSign/index.js.flow +4 -1
  113. package/lib/commonjs/screens/eSign/index.js.map +1 -1
  114. package/lib/commonjs/screens/forgotPassword/index.js +1 -1
  115. package/lib/commonjs/screens/forgotPassword/index.js.map +1 -1
  116. package/lib/commonjs/screens/full-submit/accept_policy.js +1 -1
  117. package/lib/commonjs/screens/full-submit/accept_policy.js.map +1 -1
  118. package/lib/commonjs/screens/full-submit/index.js +1 -1
  119. package/lib/commonjs/screens/full-submit/index.js.flow +7 -7
  120. package/lib/commonjs/screens/full-submit/index.js.map +1 -1
  121. package/lib/commonjs/screens/full-submit/selfie.js +1 -1
  122. package/lib/commonjs/screens/full-submit/selfie.js.map +1 -1
  123. package/lib/commonjs/screens/full-submit/update-document.js +1 -1
  124. package/lib/commonjs/screens/full-submit/update-document.js.flow +1 -1
  125. package/lib/commonjs/screens/full-submit/update-document.js.map +1 -1
  126. package/lib/commonjs/screens/full-submit/update-info.js +1 -1
  127. package/lib/commonjs/screens/full-submit/update-info.js.flow +1 -1
  128. package/lib/commonjs/screens/full-submit/update-info.js.map +1 -1
  129. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js +1 -1
  130. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  131. package/lib/commonjs/screens/guide-transfer-bank/index.js +1 -1
  132. package/lib/commonjs/screens/guide-transfer-bank/index.js.map +1 -1
  133. package/lib/commonjs/screens/home/CIMBxTima.js +1 -1
  134. package/lib/commonjs/screens/home/CIMBxTima.js.map +1 -1
  135. package/lib/commonjs/screens/home/index.js +1 -1
  136. package/lib/commonjs/screens/home/index.js.flow +1687 -1417
  137. package/lib/commonjs/screens/home/index.js.map +1 -1
  138. package/lib/commonjs/screens/intro/index.js +1 -1
  139. package/lib/commonjs/screens/intro/index.js.map +1 -1
  140. package/lib/commonjs/screens/introduction/index.js +1 -1
  141. package/lib/commonjs/screens/introduction/index.js.map +1 -1
  142. package/lib/commonjs/screens/liveness/LivenessStore.js.flow +0 -1
  143. package/lib/commonjs/screens/liveness/LivenessStore.js.map +1 -1
  144. package/lib/commonjs/screens/liveness/index.js +1 -1
  145. package/lib/commonjs/screens/liveness/index.js.map +1 -1
  146. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  147. package/lib/commonjs/screens/liveness-v2/index.js.flow +0 -7
  148. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  149. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
  150. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
  151. package/lib/commonjs/screens/loan/UpdateLoan.js +1 -1
  152. package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -1
  153. package/lib/commonjs/screens/loginWithPassword/index.js +1 -1
  154. package/lib/commonjs/screens/loginWithPassword/index.js.map +1 -1
  155. package/lib/commonjs/screens/main/index.js +1 -1
  156. package/lib/commonjs/screens/main/index.js.map +1 -1
  157. package/lib/commonjs/screens/mrz-scanner/index.js +1 -1
  158. package/lib/commonjs/screens/mrz-scanner/index.js.flow +2 -2
  159. package/lib/commonjs/screens/mrz-scanner/index.js.map +1 -1
  160. package/lib/commonjs/screens/nationalID/index.js +1 -1
  161. package/lib/commonjs/screens/nationalID/index.js.map +1 -1
  162. package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
  163. package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
  164. package/lib/commonjs/screens/notification/index.js +1 -1
  165. package/lib/commonjs/screens/notification/index.js.map +1 -1
  166. package/lib/commonjs/screens/otp/index.js +1 -1
  167. package/lib/commonjs/screens/otp/index.js.map +1 -1
  168. package/lib/commonjs/screens/payment-evidence/Guideline.js +1 -1
  169. package/lib/commonjs/screens/payment-evidence/Guideline.js.map +1 -1
  170. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js +1 -1
  171. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js.map +1 -1
  172. package/lib/commonjs/screens/payment-evidence/index.js +1 -1
  173. package/lib/commonjs/screens/payment-evidence/index.js.map +1 -1
  174. package/lib/commonjs/screens/personal/index.js +1 -1
  175. package/lib/commonjs/screens/personal/index.js.map +1 -1
  176. package/lib/commonjs/screens/qualify/index.js +1 -1
  177. package/lib/commonjs/screens/qualify/index.js.map +1 -1
  178. package/lib/commonjs/screens/quick-submit/index.js +1 -1
  179. package/lib/commonjs/screens/quick-submit/index.js.map +1 -1
  180. package/lib/commonjs/screens/register/index.js +1 -1
  181. package/lib/commonjs/screens/register/index.js.flow +3 -1
  182. package/lib/commonjs/screens/register/index.js.map +1 -1
  183. package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
  184. package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
  185. package/lib/commonjs/screens/schedule-payment/index.js +1 -1
  186. package/lib/commonjs/screens/schedule-payment/index.js.map +1 -1
  187. package/lib/commonjs/screens/schedule-payment/payment-list.js +1 -1
  188. package/lib/commonjs/screens/schedule-payment/payment-list.js.map +1 -1
  189. package/lib/commonjs/screens/selfie/index.js +1 -1
  190. package/lib/commonjs/screens/selfie/index.js.map +1 -1
  191. package/lib/commonjs/screens/setPassword/confirmPassword.js +1 -1
  192. package/lib/commonjs/screens/setPassword/confirmPassword.js.map +1 -1
  193. package/lib/commonjs/screens/setPassword/index.js +1 -1
  194. package/lib/commonjs/screens/setPassword/index.js.map +1 -1
  195. package/lib/commonjs/screens/sign-tima/ConfirmContract.js +1 -1
  196. package/lib/commonjs/screens/sign-tima/ConfirmContract.js.map +1 -1
  197. package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
  198. package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
  199. package/lib/commonjs/screens/splash/index.js +1 -1
  200. package/lib/commonjs/screens/splash/index.js.map +1 -1
  201. package/lib/commonjs/screens/terms/QuickTerm.js +1 -1
  202. package/lib/commonjs/screens/terms/QuickTerm.js.map +1 -1
  203. package/lib/commonjs/screens/terms/TermScreen.js +1 -1
  204. package/lib/commonjs/screens/terms/TermScreen.js.map +1 -1
  205. package/lib/commonjs/screens/toan-trinh-so/OCR.js +2 -0
  206. package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +831 -0
  207. package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -0
  208. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +2 -0
  209. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +467 -0
  210. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -0
  211. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +2 -0
  212. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +1007 -0
  213. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -0
  214. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +2 -0
  215. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +790 -0
  216. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -0
  217. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +2 -0
  218. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +1101 -0
  219. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -0
  220. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +2 -0
  221. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +242 -0
  222. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -0
  223. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +2 -0
  224. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +247 -0
  225. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -0
  226. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +2 -0
  227. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +267 -0
  228. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -0
  229. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +2 -0
  230. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +477 -0
  231. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -0
  232. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +2 -0
  233. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +197 -0
  234. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -0
  235. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +2 -0
  236. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +239 -0
  237. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -0
  238. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +2 -0
  239. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +240 -0
  240. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -0
  241. package/lib/commonjs/screens/toan-trinh-so/store.js +2 -0
  242. package/lib/commonjs/screens/toan-trinh-so/store.js.flow +237 -0
  243. package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -0
  244. package/lib/commonjs/screens/uploadVideo/index.js +1 -1
  245. package/lib/commonjs/screens/uploadVideo/index.js.map +1 -1
  246. package/lib/commonjs/services/api/api-config.js +1 -1
  247. package/lib/commonjs/services/api/api-config.js.flow +2 -2
  248. package/lib/commonjs/services/api/api-config.js.map +1 -1
  249. package/lib/commonjs/services/api/api.js +1 -1
  250. package/lib/commonjs/services/api/api.js.flow +218 -0
  251. package/lib/commonjs/services/api/api.js.map +1 -1
  252. package/lib/commonjs/utils/storage/storage.js +1 -1
  253. package/lib/commonjs/utils/storage/storage.js.flow +4 -0
  254. package/lib/commonjs/utils/storage/storage.js.map +1 -1
  255. package/lib/module/assets/icons/cam2.svg +5 -0
  256. package/lib/module/assets/icons/chip.svg +20 -0
  257. package/lib/module/assets/icons/index.js +1 -1
  258. package/lib/module/assets/icons/index.js.map +1 -1
  259. package/lib/module/assets/icons/ocr.svg +11 -0
  260. package/lib/module/assets/icons/takePhoto.svg +20 -0
  261. package/lib/module/assets/icons/tima_small.svg +12 -23
  262. package/lib/module/assets/svgs/back.svg +4 -0
  263. package/lib/module/assets/svgs/complete.svg +27 -0
  264. package/lib/module/assets/svgs/currentStep.svg +28 -0
  265. package/lib/module/assets/svgs/edit.svg +42 -0
  266. package/lib/module/assets/svgs/edit_success.svg +15 -0
  267. package/lib/module/assets/svgs/ekyc.svg +18 -0
  268. package/lib/module/assets/svgs/ekyc_success.svg +6 -0
  269. package/lib/module/assets/svgs/index.js +2 -0
  270. package/lib/module/assets/svgs/index.js.map +1 -0
  271. package/lib/module/assets/svgs/nextStep.svg +21 -0
  272. package/lib/module/assets/svgs/orc_success.svg +11 -0
  273. package/lib/module/assets/tts/1000009864.png +0 -0
  274. package/lib/module/assets/tts/1000009872.png +0 -0
  275. package/lib/module/assets/tts/1000011964.png +0 -0
  276. package/lib/module/assets/tts/Frame 1000011947.png +0 -0
  277. package/lib/module/assets/tts/Frame1000011946.png +0 -0
  278. package/lib/module/assets/tts/Frame1000011953.png +0 -0
  279. package/lib/module/assets/tts/back.png +0 -0
  280. package/lib/module/assets/tts/front.png +0 -0
  281. package/lib/module/assets/tts/vehicleRegistration.png +0 -0
  282. package/lib/module/assets/tts/vehicleStep.png +0 -0
  283. package/lib/module/components/CIMBLoading.js +1 -1
  284. package/lib/module/components/CIMBLoading.js.map +1 -1
  285. package/lib/module/components/CommonSelect.js +1 -1
  286. package/lib/module/components/CommonSelect.js.map +1 -1
  287. package/lib/module/components/Loading.js +1 -1
  288. package/lib/module/components/Loading.js.map +1 -1
  289. package/lib/module/components/MButton.js +1 -1
  290. package/lib/module/components/MButton.js.map +1 -1
  291. package/lib/module/components/MHeader.js +1 -1
  292. package/lib/module/components/MHeader.js.map +1 -1
  293. package/lib/module/components/MSelect.js +2 -0
  294. package/lib/module/components/MSelect.js.map +1 -0
  295. package/lib/module/components/MText.js +1 -1
  296. package/lib/module/components/MText.js.map +1 -1
  297. package/lib/module/components/MyTextInput.js +1 -1
  298. package/lib/module/components/MyTextInput.js.map +1 -1
  299. package/lib/module/components/StepIndicator.js +2 -0
  300. package/lib/module/components/StepIndicator.js.map +1 -0
  301. package/lib/module/components/keyboardspace/index.js +1 -1
  302. package/lib/module/components/keyboardspace/index.js.map +1 -1
  303. package/lib/module/components/logoTima/index.js +1 -1
  304. package/lib/module/components/logoTima/index.js.map +1 -1
  305. package/lib/module/components/select/index.js +1 -1
  306. package/lib/module/components/select/index.js.map +1 -1
  307. package/lib/module/index.js +1 -1
  308. package/lib/module/index.js.map +1 -1
  309. package/lib/module/navigation/primary-navigator.js +1 -1
  310. package/lib/module/navigation/primary-navigator.js.map +1 -1
  311. package/lib/module/navigation/root-navigator.js +1 -1
  312. package/lib/module/navigation/root-navigator.js.map +1 -1
  313. package/lib/module/screens/Selector.js +1 -1
  314. package/lib/module/screens/Selector.js.map +1 -1
  315. package/lib/module/screens/camera/index.js +1 -1
  316. package/lib/module/screens/camera/index.js.map +1 -1
  317. package/lib/module/screens/cimb-sign/index.js +1 -1
  318. package/lib/module/screens/cimb-sign/index.js.map +1 -1
  319. package/lib/module/screens/contract/index.js +1 -1
  320. package/lib/module/screens/contract/index.js.map +1 -1
  321. package/lib/module/screens/detail-loan/DetailLoanTima.js +1 -1
  322. package/lib/module/screens/detail-loan/DetailLoanTima.js.map +1 -1
  323. package/lib/module/screens/detail-loan/Info.js +1 -1
  324. package/lib/module/screens/detail-loan/Info.js.map +1 -1
  325. package/lib/module/screens/detail-loan/Payment.js +1 -1
  326. package/lib/module/screens/detail-loan/Payment.js.map +1 -1
  327. package/lib/module/screens/detail-loan/PaymentAll.js +1 -1
  328. package/lib/module/screens/detail-loan/PaymentAll.js.map +1 -1
  329. package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
  330. package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
  331. package/lib/module/screens/detail-loan/QrPayment.js +1 -1
  332. package/lib/module/screens/detail-loan/QrPayment.js.map +1 -1
  333. package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
  334. package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
  335. package/lib/module/screens/detail-loan/index.js +1 -1
  336. package/lib/module/screens/detail-loan/index.js.map +1 -1
  337. package/lib/module/screens/digital-lending/Step1.js +1 -1
  338. package/lib/module/screens/digital-lending/Step1.js.map +1 -1
  339. package/lib/module/screens/digital-lending/Step2.js +1 -1
  340. package/lib/module/screens/digital-lending/Step2.js.map +1 -1
  341. package/lib/module/screens/digital-lending/Step3.js +1 -1
  342. package/lib/module/screens/digital-lending/Step3.js.map +1 -1
  343. package/lib/module/screens/digital-lending/Step4.js +1 -1
  344. package/lib/module/screens/digital-lending/Step4.js.map +1 -1
  345. package/lib/module/screens/digital-lending/Step5.js +1 -1
  346. package/lib/module/screens/digital-lending/Step5.js.map +1 -1
  347. package/lib/module/screens/digital-lending/Step6.js +1 -1
  348. package/lib/module/screens/digital-lending/Step6.js.map +1 -1
  349. package/lib/module/screens/digital-lending/index.js +1 -1
  350. package/lib/module/screens/digital-lending/index.js.map +1 -1
  351. package/lib/module/screens/eSign/PreviewContract.js +1 -1
  352. package/lib/module/screens/eSign/PreviewContract.js.map +1 -1
  353. package/lib/module/screens/eSign/Store.js +1 -1
  354. package/lib/module/screens/eSign/Store.js.map +1 -1
  355. package/lib/module/screens/eSign/index.js +1 -1
  356. package/lib/module/screens/eSign/index.js.map +1 -1
  357. package/lib/module/screens/forgotPassword/index.js +1 -1
  358. package/lib/module/screens/forgotPassword/index.js.map +1 -1
  359. package/lib/module/screens/full-submit/accept_policy.js +1 -1
  360. package/lib/module/screens/full-submit/accept_policy.js.map +1 -1
  361. package/lib/module/screens/full-submit/index.js +1 -1
  362. package/lib/module/screens/full-submit/index.js.map +1 -1
  363. package/lib/module/screens/full-submit/selfie.js +1 -1
  364. package/lib/module/screens/full-submit/selfie.js.map +1 -1
  365. package/lib/module/screens/full-submit/update-document.js +1 -1
  366. package/lib/module/screens/full-submit/update-document.js.map +1 -1
  367. package/lib/module/screens/full-submit/update-info.js +1 -1
  368. package/lib/module/screens/full-submit/update-info.js.map +1 -1
  369. package/lib/module/screens/guide-transfer-bank/TransferDetail.js +1 -1
  370. package/lib/module/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  371. package/lib/module/screens/guide-transfer-bank/index.js +1 -1
  372. package/lib/module/screens/guide-transfer-bank/index.js.map +1 -1
  373. package/lib/module/screens/home/CIMBxTima.js +1 -1
  374. package/lib/module/screens/home/CIMBxTima.js.map +1 -1
  375. package/lib/module/screens/home/index.js +1 -1
  376. package/lib/module/screens/home/index.js.map +1 -1
  377. package/lib/module/screens/intro/index.js +1 -1
  378. package/lib/module/screens/intro/index.js.map +1 -1
  379. package/lib/module/screens/introduction/index.js +1 -1
  380. package/lib/module/screens/introduction/index.js.map +1 -1
  381. package/lib/module/screens/liveness/LivenessStore.js.map +1 -1
  382. package/lib/module/screens/liveness/index.js +1 -1
  383. package/lib/module/screens/liveness/index.js.map +1 -1
  384. package/lib/module/screens/liveness-v2/index.js +1 -1
  385. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  386. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
  387. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
  388. package/lib/module/screens/loan/UpdateLoan.js +1 -1
  389. package/lib/module/screens/loan/UpdateLoan.js.map +1 -1
  390. package/lib/module/screens/loginWithPassword/index.js +1 -1
  391. package/lib/module/screens/loginWithPassword/index.js.map +1 -1
  392. package/lib/module/screens/main/index.js +1 -1
  393. package/lib/module/screens/main/index.js.map +1 -1
  394. package/lib/module/screens/mrz-scanner/index.js +1 -1
  395. package/lib/module/screens/mrz-scanner/index.js.map +1 -1
  396. package/lib/module/screens/nationalID/index.js +1 -1
  397. package/lib/module/screens/nationalID/index.js.map +1 -1
  398. package/lib/module/screens/nationalIDBack/index.js +1 -1
  399. package/lib/module/screens/nationalIDBack/index.js.map +1 -1
  400. package/lib/module/screens/notification/index.js +1 -1
  401. package/lib/module/screens/notification/index.js.map +1 -1
  402. package/lib/module/screens/otp/index.js +1 -1
  403. package/lib/module/screens/otp/index.js.map +1 -1
  404. package/lib/module/screens/payment-evidence/Guideline.js +1 -1
  405. package/lib/module/screens/payment-evidence/Guideline.js.map +1 -1
  406. package/lib/module/screens/payment-evidence/ModalGuideline.js +1 -1
  407. package/lib/module/screens/payment-evidence/ModalGuideline.js.map +1 -1
  408. package/lib/module/screens/payment-evidence/index.js +1 -1
  409. package/lib/module/screens/payment-evidence/index.js.map +1 -1
  410. package/lib/module/screens/personal/index.js +1 -1
  411. package/lib/module/screens/personal/index.js.map +1 -1
  412. package/lib/module/screens/qualify/index.js +1 -1
  413. package/lib/module/screens/qualify/index.js.map +1 -1
  414. package/lib/module/screens/quick-submit/index.js +1 -1
  415. package/lib/module/screens/quick-submit/index.js.map +1 -1
  416. package/lib/module/screens/register/index.js +1 -1
  417. package/lib/module/screens/register/index.js.map +1 -1
  418. package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
  419. package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
  420. package/lib/module/screens/schedule-payment/index.js +1 -1
  421. package/lib/module/screens/schedule-payment/index.js.map +1 -1
  422. package/lib/module/screens/schedule-payment/payment-list.js +1 -1
  423. package/lib/module/screens/schedule-payment/payment-list.js.map +1 -1
  424. package/lib/module/screens/selfie/index.js +1 -1
  425. package/lib/module/screens/selfie/index.js.map +1 -1
  426. package/lib/module/screens/setPassword/confirmPassword.js +1 -1
  427. package/lib/module/screens/setPassword/confirmPassword.js.map +1 -1
  428. package/lib/module/screens/setPassword/index.js +1 -1
  429. package/lib/module/screens/setPassword/index.js.map +1 -1
  430. package/lib/module/screens/sign-tima/ConfirmContract.js +1 -1
  431. package/lib/module/screens/sign-tima/ConfirmContract.js.map +1 -1
  432. package/lib/module/screens/sign-tima/ViewContract.js +1 -1
  433. package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
  434. package/lib/module/screens/splash/index.js +1 -1
  435. package/lib/module/screens/splash/index.js.map +1 -1
  436. package/lib/module/screens/terms/QuickTerm.js +1 -1
  437. package/lib/module/screens/terms/QuickTerm.js.map +1 -1
  438. package/lib/module/screens/terms/TermScreen.js +1 -1
  439. package/lib/module/screens/terms/TermScreen.js.map +1 -1
  440. package/lib/module/screens/toan-trinh-so/OCR.js +2 -0
  441. package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -0
  442. package/lib/module/screens/toan-trinh-so/RegisterCamera.js +2 -0
  443. package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -0
  444. package/lib/module/screens/toan-trinh-so/ReviewInformation.js +2 -0
  445. package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -0
  446. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +2 -0
  447. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -0
  448. package/lib/module/screens/toan-trinh-so/ReviewLoan.js +2 -0
  449. package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -0
  450. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js +2 -0
  451. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -0
  452. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +2 -0
  453. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -0
  454. package/lib/module/screens/toan-trinh-so/TTSSelfie.js +2 -0
  455. package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -0
  456. package/lib/module/screens/toan-trinh-so/VehicleCamera.js +2 -0
  457. package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -0
  458. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +2 -0
  459. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -0
  460. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +2 -0
  461. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -0
  462. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +2 -0
  463. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -0
  464. package/lib/module/screens/toan-trinh-so/store.js +2 -0
  465. package/lib/module/screens/toan-trinh-so/store.js.map +1 -0
  466. package/lib/module/screens/uploadVideo/index.js +1 -1
  467. package/lib/module/screens/uploadVideo/index.js.map +1 -1
  468. package/lib/module/services/api/api-config.js +1 -1
  469. package/lib/module/services/api/api-config.js.map +1 -1
  470. package/lib/module/services/api/api.js +1 -1
  471. package/lib/module/services/api/api.js.map +1 -1
  472. package/lib/module/utils/storage/storage.js +1 -1
  473. package/lib/module/utils/storage/storage.js.map +1 -1
  474. package/lib/typescript/assets/icons/index.d.ts +5 -1
  475. package/lib/typescript/assets/icons/index.d.ts.map +1 -1
  476. package/lib/typescript/assets/svgs/index.d.ts +11 -0
  477. package/lib/typescript/assets/svgs/index.d.ts.map +1 -0
  478. package/lib/typescript/components/MSelect.d.ts +2 -0
  479. package/lib/typescript/components/MSelect.d.ts.map +1 -0
  480. package/lib/typescript/components/StepIndicator.d.ts +5 -0
  481. package/lib/typescript/components/StepIndicator.d.ts.map +1 -0
  482. package/lib/typescript/components/select/index.d.ts.map +1 -1
  483. package/lib/typescript/index.d.ts.map +1 -1
  484. package/lib/typescript/navigation/primary-navigator.d.ts +13 -0
  485. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  486. package/lib/typescript/screens/eSign/Store.d.ts +1 -1
  487. package/lib/typescript/screens/eSign/Store.d.ts.map +1 -1
  488. package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
  489. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  490. package/lib/typescript/screens/liveness/LivenessStore.d.ts.map +1 -1
  491. package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
  492. package/lib/typescript/screens/register/index.d.ts.map +1 -1
  493. package/lib/typescript/screens/toan-trinh-so/OCR.d.ts +2 -0
  494. package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -0
  495. package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts +2 -0
  496. package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts.map +1 -0
  497. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts +2 -0
  498. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -0
  499. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts +2 -0
  500. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -0
  501. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts +2 -0
  502. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -0
  503. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDBack.d.ts +2 -0
  504. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDBack.d.ts.map +1 -0
  505. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts +2 -0
  506. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts.map +1 -0
  507. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts +2 -0
  508. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -0
  509. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts +2 -0
  510. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -0
  511. package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts +2 -0
  512. package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts.map +1 -0
  513. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts +2 -0
  514. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts.map +1 -0
  515. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts +2 -0
  516. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts.map +1 -0
  517. package/lib/typescript/screens/toan-trinh-so/store.d.ts +26 -0
  518. package/lib/typescript/screens/toan-trinh-so/store.d.ts.map +1 -0
  519. package/lib/typescript/services/api/api.d.ts +208 -0
  520. package/lib/typescript/services/api/api.d.ts.map +1 -1
  521. package/lib/typescript/utils/storage/storage.d.ts +3 -0
  522. package/lib/typescript/utils/storage/storage.d.ts.map +1 -1
  523. package/package.json +1 -1
  524. package/src/assets/icons/cam2.svg +5 -0
  525. package/src/assets/icons/chip.svg +20 -0
  526. package/src/assets/icons/index.tsx +8 -0
  527. package/src/assets/icons/ocr.svg +11 -0
  528. package/src/assets/icons/takePhoto.svg +20 -0
  529. package/src/assets/icons/tima_small.svg +12 -23
  530. package/src/assets/svgs/back.svg +4 -0
  531. package/src/assets/svgs/complete.svg +27 -0
  532. package/src/assets/svgs/currentStep.svg +28 -0
  533. package/src/assets/svgs/edit.svg +42 -0
  534. package/src/assets/svgs/edit_success.svg +15 -0
  535. package/src/assets/svgs/ekyc.svg +18 -0
  536. package/src/assets/svgs/ekyc_success.svg +6 -0
  537. package/src/assets/svgs/index.tsx +21 -0
  538. package/src/assets/svgs/nextStep.svg +21 -0
  539. package/src/assets/svgs/orc_success.svg +11 -0
  540. package/src/assets/tts/1000009864.png +0 -0
  541. package/src/assets/tts/1000009872.png +0 -0
  542. package/src/assets/tts/1000011964.png +0 -0
  543. package/src/assets/tts/Frame 1000011947.png +0 -0
  544. package/src/assets/tts/Frame1000011946.png +0 -0
  545. package/src/assets/tts/Frame1000011953.png +0 -0
  546. package/src/assets/tts/back.png +0 -0
  547. package/src/assets/tts/front.png +0 -0
  548. package/src/assets/tts/vehicleRegistration.png +0 -0
  549. package/src/assets/tts/vehicleStep.png +0 -0
  550. package/src/components/MHeader.tsx +1 -1
  551. package/src/components/MSelect.tsx +78 -0
  552. package/src/components/StepIndicator.tsx +85 -0
  553. package/src/components/select/index.tsx +19 -3
  554. package/src/index.tsx +3 -1
  555. package/src/navigation/primary-navigator.tsx +68 -0
  556. package/src/screens/camera/index.tsx +1 -1
  557. package/src/screens/eSign/Store.tsx +9 -2
  558. package/src/screens/eSign/index.tsx +4 -1
  559. package/src/screens/full-submit/index.tsx +7 -7
  560. package/src/screens/full-submit/update-document.tsx +1 -1
  561. package/src/screens/full-submit/update-info.tsx +1 -1
  562. package/src/screens/home/index.tsx +1687 -1417
  563. package/src/screens/liveness/LivenessStore.tsx +0 -1
  564. package/src/screens/liveness-v2/index.tsx +0 -7
  565. package/src/screens/mrz-scanner/index.tsx +2 -2
  566. package/src/screens/register/index.tsx +3 -1
  567. package/src/screens/toan-trinh-so/OCR.tsx +831 -0
  568. package/src/screens/toan-trinh-so/RegisterCamera.tsx +467 -0
  569. package/src/screens/toan-trinh-so/ReviewInformation.tsx +1007 -0
  570. package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +790 -0
  571. package/src/screens/toan-trinh-so/ReviewLoan.tsx +1101 -0
  572. package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +242 -0
  573. package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +247 -0
  574. package/src/screens/toan-trinh-so/TTSSelfie.tsx +267 -0
  575. package/src/screens/toan-trinh-so/VehicleCamera.tsx +477 -0
  576. package/src/screens/toan-trinh-so/VehicleRegistration.tsx +197 -0
  577. package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +239 -0
  578. package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +240 -0
  579. package/src/screens/toan-trinh-so/store.ts +237 -0
  580. package/src/services/api/api-config.ts +2 -2
  581. package/src/services/api/api.ts +218 -0
  582. package/src/utils/storage/storage.ts +4 -0
@@ -14,6 +14,7 @@ import {
14
14
  StatusBar,
15
15
  TouchableOpacity,
16
16
  View,
17
+ ViewStyle,
17
18
  } from 'react-native';
18
19
  import {
19
20
  useNavigation,
@@ -45,6 +46,7 @@ import {
45
46
  IconVideo,
46
47
  Info,
47
48
  LogoSmall,
49
+ OcrSvg,
48
50
  SignDisable,
49
51
  TimaNormal,
50
52
  TopupSuccessSvg,
@@ -75,6 +77,14 @@ import { Api } from '../../services/api';
75
77
  import { load, save } from '../../utils/storage';
76
78
  import Loading from '../../components/Loading';
77
79
  import MButton from '../../components/MButton';
80
+ import ttsStore from '../toan-trinh-so/store';
81
+ import {
82
+ IconOCRSuccess,
83
+ IconEdit,
84
+ IconEditSuccess,
85
+ IconEkyc,
86
+ IconEkycSuccess,
87
+ } from '../../assets/svgs';
78
88
 
79
89
  const listBanners = [
80
90
  require('../../assets/img/banner1.png'),
@@ -83,6 +93,11 @@ const listBanners = [
83
93
 
84
94
  let _unsubscribe;
85
95
 
96
+ const $action: ViewStyle = {
97
+ flexDirection: 'column',
98
+ alignItems: 'center',
99
+ };
100
+
86
101
  export const Home = observer(function Home() {
87
102
  const navigation = useNavigation();
88
103
  const [showModal, setShowModal] = useState(false);
@@ -175,6 +190,7 @@ export const Home = observer(function Home() {
175
190
  appStore.getLoanTimeAll();
176
191
  appStore.getRateTypeAll();
177
192
  appStore.getInsurenceTimeAll();
193
+ ttsStore.getProvinces();
178
194
  }, 2000);
179
195
  }, []);
180
196
 
@@ -315,7 +331,7 @@ export const Home = observer(function Home() {
315
331
  style={{
316
332
  fontWeight: 'bold',
317
333
  color: 'white',
318
- fontSize: 16,
334
+ fontSize: 14,
319
335
  }}
320
336
  >
321
337
  Vay nhanh 24/7
@@ -375,1488 +391,1769 @@ export const Home = observer(function Home() {
375
391
  <View>
376
392
  {listLoan?.map((item, index) => (
377
393
  <View style={{ marginBottom: 14 }} key={index}>
378
- <View>
379
- {/* // luồng CIMB */}
380
- {item?.isPipelineCIMB ? (
381
- <View>
382
- {/* // type 4 digital topup */}
383
- {item?.typeLoan === 4 ? (
384
- <View>
385
- <View
394
+ {/* TOÀN TRÌNH SỐ */}
395
+ {item?.typeLoan === 5 ? (
396
+ <View>
397
+ <View
398
+ style={{
399
+ backgroundColor: '#FFFFFF',
400
+ paddingHorizontal: 16,
401
+ paddingTop: 16,
402
+ borderRadius: 8,
403
+ borderWidth: 0.5,
404
+ borderColor: '#E0E0E0',
405
+ }}
406
+ >
407
+ <View
408
+ style={{
409
+ flexDirection: 'row',
410
+ alignItems: 'center',
411
+ }}
412
+ >
413
+ <Contract />
414
+ <View style={{ flex: 1, paddingLeft: 8 }}>
415
+ <MText style={commonStyles.textNormalBold}>
416
+ Mã Đơn vay-{item?.id}
417
+ </MText>
418
+ <MText style={commonStyles.textNormal}>
419
+ Số tiền vay (VND):{' '}
420
+ {item?.loanAmount
421
+ ? formatMoney(item?.loanAmount)
422
+ : 'Chưa xác định'}
423
+ </MText>
424
+ </View>
425
+ </View>
426
+ <View
427
+ style={{
428
+ height: 1,
429
+ backgroundColor: '#E0E0E0',
430
+ marginVertical: 16,
431
+ }}
432
+ />
433
+ <View
434
+ style={{
435
+ flexDirection: 'row',
436
+ justifyContent: 'space-between',
437
+ }}
438
+ >
439
+ <MText style={commonStyles.textNormal}>
440
+ Trạng thái
441
+ </MText>
442
+ <MText
443
+ style={[
444
+ commonStyles.textNormalBold,
445
+ { color: '#F05123' },
446
+ ]}
447
+ >
448
+ {item?.loanStatus}
449
+ </MText>
450
+ </View>
451
+ <View
452
+ style={{
453
+ height: 1,
454
+ backgroundColor: '#E0E0E0',
455
+ marginVertical: 16,
456
+ }}
457
+ />
458
+
459
+ <View
460
+ style={{
461
+ flexDirection: 'row',
462
+ justifyContent: 'space-between',
463
+ }}
464
+ >
465
+ <TouchableOpacity
466
+ disabled={item?.step >= 3 ? true : false}
467
+ style={$action}
468
+ onPress={() => {
469
+ if (item?.step === 0) {
470
+ navigation.push(ScreenNames.OCR, {
471
+ loan: item,
472
+ front: true,
473
+ });
474
+ } else if (item?.step === 1) {
475
+ navigation.push(ScreenNames.VehicleCamera, {
476
+ loan: item,
477
+ front: true,
478
+ });
479
+ } else if (item?.step === 2) {
480
+ navigation.push(ScreenNames.RegisterCamera, {
481
+ loan: item,
482
+ });
483
+ }
484
+ }}
485
+ >
486
+ {item?.step >= 3 ? (
487
+ <IconOCRSuccess />
488
+ ) : (
489
+ <OcrSvg />
490
+ )}
491
+ <MText
386
492
  style={{
387
- backgroundColor: '#FFFFFF',
388
- paddingHorizontal: 16,
389
- paddingTop: 16,
390
- borderRadius: 8,
391
- borderWidth: 0.5,
392
- borderColor: '#E0E0E0',
493
+ textAlign: 'center',
494
+ fontSize: 10,
495
+ marginTop: 5,
496
+ color: '#333333',
393
497
  }}
394
498
  >
499
+ OCR{'\n'}chứng từ
500
+ </MText>
501
+ </TouchableOpacity>
502
+ <TouchableOpacity
503
+ disabled={item?.step !== 3 ? true : false}
504
+ style={$action}
505
+ onPress={() => {
506
+ if (item?.step === 3) {
507
+ navigation.push(
508
+ ScreenNames.ReviewInformation,
509
+ {
510
+ loan: item,
511
+ }
512
+ );
513
+ }
514
+ }}
515
+ >
516
+ {item.step > 3 ? (
517
+ <IconEditSuccess />
518
+ ) : (
519
+ <IconEdit />
520
+ )}
521
+ <MText
522
+ style={{
523
+ textAlign: 'center',
524
+ fontSize: 10,
525
+ marginTop: 5,
526
+ color: '#333333',
527
+ }}
528
+ >
529
+ Cập nhật{'\n'}thông tin
530
+ </MText>
531
+ </TouchableOpacity>
532
+ <TouchableOpacity
533
+ onPress={() => {
534
+ navigation.push(ScreenNames.LivenessV2, {
535
+ item,
536
+ });
537
+ }}
538
+ style={$action}
539
+ disabled={item?.step === 4 ? false : true}
540
+ >
541
+ {checkEKYC[item.id] ? (
542
+ <IconEkycSuccess />
543
+ ) : (
544
+ <IconEkyc />
545
+ )}
546
+
547
+ <MText
548
+ style={{
549
+ textAlign: 'center',
550
+ fontSize: 10,
551
+ marginTop: 5,
552
+ color: '#333333',
553
+ }}
554
+ >
555
+ EKYC
556
+ </MText>
557
+ </TouchableOpacity>
558
+ <TouchableOpacity
559
+ style={$action}
560
+ onPress={() => {
561
+ checkTerm(item, () => {
562
+ signLoan(item);
563
+ });
564
+ }}
565
+ >
566
+ <IconSign2 />
567
+ <MText
568
+ style={{
569
+ textAlign: 'center',
570
+ fontSize: 10,
571
+ marginTop: 5,
572
+ color: '#333333',
573
+ }}
574
+ >
575
+ Ký HĐ
576
+ </MText>
577
+ </TouchableOpacity>
578
+ <TouchableOpacity style={$action}>
579
+ <IconVideo />
580
+ <MText
581
+ style={{
582
+ textAlign: 'center',
583
+ fontSize: 10,
584
+ marginTop: 5,
585
+ color: '#333333',
586
+ }}
587
+ >
588
+ Quay video
589
+ </MText>
590
+ </TouchableOpacity>
591
+ </View>
592
+ <View
593
+ style={{
594
+ flexDirection: 'row',
595
+ alignItems: 'center',
596
+ backgroundColor: '#FBEFE7',
597
+ marginHorizontal: -16,
598
+ paddingVertical: 8,
599
+ marginTop: 16,
600
+ borderBottomRightRadius: 8,
601
+ borderBottomLeftRadius: 8,
602
+ paddingHorizontal: 16,
603
+ }}
604
+ >
605
+ <Info />
606
+ <MText
607
+ style={[
608
+ {
609
+ fontWeight: '300',
610
+ fontSize: 10,
611
+ fontStyle: 'italic',
612
+ color: '#333333',
613
+ marginLeft: 8,
614
+ },
615
+ ]}
616
+ >
617
+ Thực hiện đầy đủ các bước để giải ngân nhanh nhất
618
+ </MText>
619
+ </View>
620
+ </View>
621
+ </View>
622
+ ) : (
623
+ <View>
624
+ {/* // luồng CIMB */}
625
+ {item?.isPipelineCIMB ? (
626
+ <View>
627
+ {/* // type 4 digital topup */}
628
+ {item?.typeLoan === 4 ? (
629
+ <View>
395
630
  <View
396
631
  style={{
397
- flexDirection: 'row',
398
- alignItems: 'center',
399
- }}
400
- >
401
- <Contract />
402
- <View style={{ flex: 1, paddingLeft: 8 }}>
403
- <MText style={commonStyles.textNormalBold}>
404
- Mã Đơn vay-{item?.id}
405
- </MText>
406
- <MText style={commonStyles.textNormal}>
407
- Số tiền vay (VND):{' '}
408
- {item?.loanAmountOffer
409
- ? formatMoney(item?.loanAmountOffer)
410
- : 'Chưa xác định'}
411
- </MText>
412
- </View>
413
- </View>
414
- <View
415
- style={{
416
- height: 1,
417
- backgroundColor: '#E0E0E0',
418
- marginVertical: 16,
419
- }}
420
- />
421
- <View
422
- style={{
423
- flexDirection: 'row',
424
- justifyContent: 'space-between',
632
+ backgroundColor: '#FFFFFF',
633
+ paddingHorizontal: 16,
634
+ paddingTop: 16,
635
+ borderRadius: 8,
636
+ borderWidth: 0.5,
637
+ borderColor: '#E0E0E0',
425
638
  }}
426
639
  >
427
- <MText style={commonStyles.textNormal}>
428
- Trạng thái
429
- </MText>
430
- <MText
431
- style={[
432
- commonStyles.textNormalBold,
433
- { color: '#F05123' },
434
- ]}
640
+ <View
641
+ style={{
642
+ flexDirection: 'row',
643
+ alignItems: 'center',
644
+ }}
435
645
  >
436
- {item?.loanStatus}
437
- </MText>
438
- </View>
439
- <View
440
- style={{
441
- height: 0.5,
442
- backgroundColor: '#E0E0E0',
443
- marginVertical: 16,
444
- }}
445
- />
446
- <View style={{ flexDirection: 'row' }}>
447
- {item?.loanStatus === null ||
448
- item?.loanStatus === '' ? (
449
- <MButton
450
- style={{ alignItems: 'center' }}
451
- onPress={() => {
452
- checkTerm(item, () => {
453
- navigation.dispatch(
454
- StackActions.push(
455
- ScreenNames.CIMBxTima,
456
- {
457
- loan: item,
458
- }
459
- )
460
- );
461
- });
462
- }}
463
- >
464
- <AddInfo />
465
- <MText
466
- style={[
467
- commonStyles.textNormal,
468
- {
469
- fontSize: 12,
470
- fontWeight: '300',
471
- marginTop: 8,
472
- textAlign: 'center',
473
- },
474
- ]}
475
- >
476
- Hoàn thiện{'\n'}cung cấp thông tin
477
- </MText>
478
- </MButton>
479
- ) : (
480
- <View>
481
- {item?.isUpdateLoan ||
482
- item?.isUpdateInformation ? (
483
- <TouchableOpacity
484
- style={{ alignItems: 'center' }}
485
- onPress={() => {
486
- checkTerm(item, () => {
487
- if (item?.isUpdateLoan) {
488
- navigation.dispatch(
489
- StackActions.push(
490
- ScreenNames.CimbSelfie,
491
- {
492
- loan: item,
493
- }
494
- )
495
- );
496
- } else {
497
- navigation.dispatch(
498
- StackActions.push(
499
- ScreenNames.QuickSubmit,
500
- {
501
- loan: item,
502
- }
503
- )
504
- );
505
- }
506
- });
507
- }}
508
- >
509
- <AddInfo />
510
- <MText
511
- style={[
512
- commonStyles.textNormal,
513
- {
514
- fontSize: 12,
515
- fontWeight: '300',
516
- marginTop: 8,
517
- textAlign: 'center',
518
- },
519
- ]}
520
- >
521
- Hoàn thiện{'\n'}cung cấp thông tin
522
- </MText>
523
- </TouchableOpacity>
524
- ) : (
525
- <View style={{ alignItems: 'center' }}>
526
- <AddInfoDisable />
527
- <MText
528
- style={[
529
- commonStyles.textNormal,
530
- {
531
- fontSize: 12,
532
- fontWeight: '300',
533
- marginTop: 8,
534
- textAlign: 'center',
535
- },
536
- ]}
537
- >
538
- Hoàn thiện{'\n'}cung cấp thông tin
539
- </MText>
540
- </View>
541
- )}
542
- </View>
543
- )}
544
-
545
- {item?.isSignContract && (
546
- <MButton
547
- style={{
548
- alignItems: 'center',
549
- marginLeft: 20,
550
- }}
551
- onPress={() => {
552
- checkTerm(item, () => {
553
- if (item?.urlSignContract) {
554
- navigation.dispatch(
555
- StackActions.push(
556
- ScreenNames.CIMBSign,
557
- {
558
- url: item?.urlSignContract,
559
- }
560
- )
561
- );
562
- } else {
563
- Alert.alert(
564
- 'Thông báo',
565
- 'Bạn chưa thể ký hợp đồng bây giờ?'
566
- );
567
- }
568
- });
569
- }}
570
- >
571
- <IconSign2 />
572
- <MText
573
- style={[
574
- commonStyles.textNormal,
575
- {
576
- fontSize: 12,
577
- fontWeight: '300',
578
- marginTop: 8,
579
- },
580
- ]}
581
- >
582
- Ký hợp đồng
583
- </MText>
584
- </MButton>
585
- )}
586
- {item?.isSignContractTima && (
587
- <MButton
588
- style={{
589
- alignItems: 'center',
590
- marginLeft: 20,
591
- }}
592
- onPress={() => {
593
- checkTerm(item, () => {
594
- navigation.dispatch(
595
- StackActions.push(
596
- ScreenNames.ViewContract,
597
- {
598
- loan: item,
599
- }
600
- )
601
- );
602
- });
603
- }}
604
- >
605
- <ContractTimeIcon />
606
- <MText
607
- style={[
608
- commonStyles.textNormal,
609
- {
610
- fontSize: 12,
611
- fontWeight: '300',
612
- marginTop: 8,
613
- textAlign: 'center',
614
- },
615
- ]}
616
- >
617
- Hợp đồng{'\n'}dịch vụ
618
- </MText>
619
- </MButton>
620
- )}
621
- {item?.paymentEvidenceUrl && (
622
- <MButton
623
- style={{
624
- alignItems: 'center',
625
- marginLeft: 20,
626
- }}
627
- onPress={() => {
628
- checkTerm(item, () => {
629
- navigation.dispatch(
630
- StackActions.push(
631
- ScreenNames.PaymentEvidence,
632
- {
633
- url: item?.paymentEvidenceUrl,
634
- }
635
- )
636
- );
637
- });
638
- }}
639
- >
640
- <IconEviden />
646
+ <Contract />
647
+ <View style={{ flex: 1, paddingLeft: 8 }}>
641
648
  <MText
642
- style={[
643
- commonStyles.textNormal,
644
- {
645
- fontSize: 12,
646
- fontWeight: '300',
647
- marginTop: 8,
648
- textAlign: 'center',
649
- },
650
- ]}
649
+ style={commonStyles.textNormalBold}
651
650
  >
652
- Mục đích {'\n'}sử dụng
651
+ Đơn vay-{item?.id}
653
652
  </MText>
654
- </MButton>
655
- )}
656
- {item?.showPaymentPlan && (
657
- <MButton
658
- style={{
659
- alignItems: 'center',
660
- marginLeft: 20,
661
- }}
662
- onPress={() => {
663
- checkTerm(item, () => {
664
- navigation.dispatch(
665
- StackActions.push(
666
- ScreenNames.SchedulePayment,
667
- {
668
- loan: item,
669
- }
670
- )
671
- );
672
- });
673
- }}
674
- >
675
- <IconSchedule />
676
- <MText
677
- style={[
678
- commonStyles.textNormal,
679
- {
680
- fontSize: 12,
681
- fontWeight: '300',
682
- marginTop: 8,
683
- },
684
- ]}
685
- >
686
- Lịch dự kiến
653
+ <MText style={commonStyles.textNormal}>
654
+ Số tiền vay (VND):{' '}
655
+ {item?.loanAmountOffer
656
+ ? formatMoney(item?.loanAmountOffer)
657
+ : 'Chưa xác định'}
687
658
  </MText>
688
- </MButton>
689
- )}
690
- </View>
691
-
692
- {item.messageErrorCIMB !== '' &&
693
- item?.messageErrorCIMB &&
694
- item?.isCimbApproveFull === null ? (
659
+ </View>
660
+ </View>
695
661
  <View
696
662
  style={{
697
- backgroundColor: '#FBEFE7',
698
- marginHorizontal: -16,
699
- paddingVertical: 8,
700
- marginTop: 16,
701
- borderBottomRightRadius: 8,
702
- borderBottomLeftRadius: 8,
703
- paddingHorizontal: 16,
663
+ height: 1,
664
+ backgroundColor: '#E0E0E0',
665
+ marginVertical: 16,
704
666
  }}
705
- >
706
- <View
707
- style={{
708
- flexDirection: 'row',
709
- justifyContent: 'space-between',
710
- alignItems: 'center',
711
- }}
712
- >
713
- <View
714
- style={{
715
- flex: 1,
716
- flexDirection: 'row',
717
- paddingRight: 20,
718
- }}
719
- >
720
- <Image
721
- source={require('./error.png')}
722
- style={{ width: 16, height: 16 }}
723
- />
724
- <MText style={{ marginLeft: 5 }}>
725
- Đơn vay của bạn gặp gián đoạn, vui
726
- lòng liên hệ tổng đài 1900633688
727
- </MText>
728
- </View>
729
-
730
- <TouchableOpacity
731
- onPress={() => {
732
- Linking.openURL(`tel:1900633688`);
733
- }}
734
- >
735
- <LinearGradient
736
- colors={['#FF8E4F', '#EF592E']}
737
- style={{
738
- paddingHorizontal: 10,
739
- height: 30,
740
- borderRadius: 30,
741
- justifyContent: 'center',
742
- alignItems: 'center',
743
- flexDirection: 'row',
744
- }}
745
- >
746
- <Call />
747
- <MText
748
- style={{
749
- color: 'white',
750
- fontSize: 12,
751
- marginLeft: 5,
752
- }}
753
- >
754
- Liên hệ
755
- </MText>
756
- </LinearGradient>
757
- </TouchableOpacity>
758
- </View>
759
- </View>
760
- ) : (
667
+ />
761
668
  <View
762
669
  style={{
763
670
  flexDirection: 'row',
764
- alignItems: 'center',
765
- backgroundColor: '#FBEFE7',
766
- marginHorizontal: -16,
767
- paddingVertical: 8,
768
- marginTop: 16,
769
- borderBottomRightRadius: 8,
770
- borderBottomLeftRadius: 8,
771
- paddingHorizontal: 16,
671
+ justifyContent: 'space-between',
772
672
  }}
773
673
  >
774
- <Info />
674
+ <MText style={commonStyles.textNormal}>
675
+ Trạng thái
676
+ </MText>
775
677
  <MText
776
678
  style={[
777
- {
778
- fontWeight: '300',
779
- fontSize: 10,
780
- fontStyle: 'italic',
781
- color: '#333333',
782
- marginLeft: 8,
783
- },
679
+ commonStyles.textNormalBold,
680
+ { color: '#F05123' },
784
681
  ]}
785
682
  >
786
- {item?.suggestion
787
- ? item?.suggestion
788
- : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
683
+ {item?.loanStatus}
789
684
  </MText>
790
685
  </View>
791
- )}
792
- </View>
793
- </View>
794
- ) : // type 2 tái vay
795
- item?.typeLoan === 2 ? (
796
- <Observer>
797
- {() => (
798
- <View>
799
686
  <View
800
687
  style={{
801
- backgroundColor: '#FFFFFF',
802
- paddingHorizontal: 16,
803
- paddingTop: 16,
804
- borderRadius: 8,
805
- borderWidth: 0.5,
806
- borderColor: '#E0E0E0',
688
+ height: 0.5,
689
+ backgroundColor: '#E0E0E0',
690
+ marginVertical: 16,
807
691
  }}
808
- >
809
- <View
810
- style={{
811
- flexDirection: 'row',
812
- alignItems: 'center',
813
- }}
814
- >
815
- <Contract />
816
- <View style={{ flex: 1, paddingLeft: 8 }}>
817
- <MText
818
- style={commonStyles.textNormalBold}
819
- >
820
- Đơn vay {item?.id}
821
- </MText>
822
- <MText style={commonStyles.textNormal}>
823
- Số tiền vay (VND):{' '}
824
- {item?.loanAmount
825
- ? formatMoney(item?.loanAmount)
826
- : 'Chưa xác định'}
827
- </MText>
828
- </View>
829
- </View>
830
- <View
831
- style={{
832
- height: 1,
833
- backgroundColor: '#E0E0E0',
834
- marginVertical: 16,
835
- }}
836
- />
837
- <View
838
- style={{
839
- flexDirection: 'row',
840
- justifyContent: 'space-between',
841
- }}
842
- >
843
- <MText style={commonStyles.textNormal}>
844
- Trạng thái
845
- </MText>
846
- <MText
847
- style={[
848
- commonStyles.textNormalBold,
849
- { color: '#F05123' },
850
- ]}
851
- >
852
- {item?.loanStatus}
853
- </MText>
854
- </View>
855
- {/* // cho phép update thông tin */}
856
- {item?.isUpdateLoanReBorrow ? (
857
- <TouchableOpacity
858
- style={{
859
- marginTop: 14,
860
- marginBottom: 16,
861
- }}
692
+ />
693
+ <View style={{ flexDirection: 'row' }}>
694
+ {item?.loanStatus === null ||
695
+ item?.loanStatus === '' ? (
696
+ <MButton
697
+ style={{ alignItems: 'center' }}
862
698
  onPress={() => {
863
699
  checkTerm(item, () => {
864
- navigation.push(
865
- 'DigitalLending',
866
- item
700
+ navigation.dispatch(
701
+ StackActions.push(
702
+ ScreenNames.CIMBxTima,
703
+ {
704
+ loan: item,
705
+ }
706
+ )
867
707
  );
868
708
  });
869
709
  }}
870
710
  >
871
- <LinearGradient
872
- style={{
873
- height: 36,
874
- borderRadius: 30,
875
- paddingHorizontal: 20,
876
- flexDirection: 'row',
877
- alignItems: 'center',
878
- }}
879
- colors={['#FF8E4F', '#EF592E']}
711
+ <AddInfo />
712
+ <MText
713
+ style={[
714
+ commonStyles.textNormal,
715
+ {
716
+ fontSize: 12,
717
+ fontWeight: '300',
718
+ marginTop: 8,
719
+ textAlign: 'center',
720
+ },
721
+ ]}
880
722
  >
881
- <UpdateIcon />
882
- <MText
883
- style={{
884
- color: 'white',
885
- marginLeft: 10,
886
- }}
887
- >
888
- Hoàn thiện hồ sơ
889
- </MText>
890
- </LinearGradient>
891
- </TouchableOpacity>
723
+ Hoàn thiện{'\n'}cung cấp thông tin
724
+ </MText>
725
+ </MButton>
892
726
  ) : (
893
727
  <View>
894
- <View
895
- style={{
896
- height: 0.5,
897
- backgroundColor: '#E0E0E0',
898
- marginVertical: 16,
899
- }}
900
- />
901
- <View style={{ flexDirection: 'row' }}>
902
- {item?.loanStatus === null ||
903
- item?.loanStatus === '' ? (
904
- <MButton
905
- style={{
906
- alignItems: 'center',
907
- }}
908
- onPress={() => {
909
- checkTerm(item, () => {
728
+ {item?.isUpdateLoan ||
729
+ item?.isUpdateInformation ? (
730
+ <TouchableOpacity
731
+ style={{ alignItems: 'center' }}
732
+ onPress={() => {
733
+ checkTerm(item, () => {
734
+ if (item?.isUpdateLoan) {
910
735
  navigation.dispatch(
911
736
  StackActions.push(
912
- ScreenNames.CIMBxTima,
737
+ ScreenNames.CimbSelfie,
913
738
  {
914
739
  loan: item,
915
740
  }
916
741
  )
917
742
  );
918
- });
919
- }}
920
- >
921
- <AddInfo />
922
- <MText
923
- style={[
924
- commonStyles.textNormal,
925
- {
926
- fontSize: 12,
927
- fontWeight: '300',
928
- marginTop: 8,
929
- textAlign: 'center',
930
- },
931
- ]}
932
- >
933
- Hoàn thiện{'\n'}cung cấp thông
934
- tin
935
- </MText>
936
- </MButton>
937
- ) : (
938
- <View>
939
- {item?.isUpdateLoan ||
940
- item?.isUpdateInformation ? (
941
- <TouchableOpacity
942
- style={{
943
- alignItems: 'center',
944
- }}
945
- onPress={() => {
946
- checkTerm(item, () => {
947
- if (item?.isUpdateLoan) {
948
- navigation.dispatch(
949
- StackActions.push(
950
- ScreenNames.CimbSelfie,
951
- {
952
- loan: item,
953
- }
954
- )
955
- );
956
- } else {
957
- navigation.dispatch(
958
- StackActions.push(
959
- ScreenNames.QuickSubmit,
960
- {
961
- loan: item,
962
- }
963
- )
964
- );
965
- }
966
- });
967
- }}
968
- >
969
- <AddInfo />
970
- <MText
971
- style={[
972
- commonStyles.textNormal,
973
- {
974
- fontSize: 12,
975
- fontWeight: '300',
976
- marginTop: 8,
977
- textAlign: 'center',
978
- },
979
- ]}
980
- >
981
- Hoàn thiện{'\n'}cung cấp
982
- thông tin
983
- </MText>
984
- </TouchableOpacity>
985
- ) : (
986
- <View
987
- style={{
988
- alignItems: 'center',
989
- }}
990
- >
991
- <AddInfoDisable />
992
- <MText
993
- style={[
994
- commonStyles.textNormal,
995
- {
996
- fontSize: 12,
997
- fontWeight: '300',
998
- marginTop: 8,
999
- textAlign: 'center',
1000
- },
1001
- ]}
1002
- >
1003
- Hoàn thiện{'\n'}cung cấp
1004
- thông tin
1005
- </MText>
1006
- </View>
1007
- )}
1008
- </View>
1009
- )}
1010
-
1011
- {item?.isSignContract && (
1012
- <MButton
1013
- style={{
1014
- alignItems: 'center',
1015
- marginLeft: 20,
1016
- }}
1017
- onPress={() => {
1018
- checkTerm(item, () => {
1019
- if (item?.urlSignContract) {
1020
- navigation.dispatch(
1021
- StackActions.push(
1022
- ScreenNames.CIMBSign,
1023
- {
1024
- url: item?.urlSignContract,
1025
- }
1026
- )
1027
- );
1028
- } else {
1029
- Alert.alert(
1030
- 'Thông báo',
1031
- 'Bạn chưa thể ký hợp đồng bây giờ?'
1032
- );
1033
- }
1034
- });
1035
- }}
1036
- >
1037
- <IconSign2 />
1038
- <MText
1039
- style={[
1040
- commonStyles.textNormal,
1041
- {
1042
- fontSize: 12,
1043
- fontWeight: '300',
1044
- marginTop: 8,
1045
- },
1046
- ]}
1047
- >
1048
- Ký hợp đồng
1049
- </MText>
1050
- </MButton>
1051
- )}
1052
- {item?.isSignContractTima && (
1053
- <MButton
1054
- style={{
1055
- alignItems: 'center',
1056
- marginLeft: 20,
1057
- }}
1058
- onPress={() => {
1059
- checkTerm(item, () => {
743
+ } else {
1060
744
  navigation.dispatch(
1061
745
  StackActions.push(
1062
- ScreenNames.ViewContract,
746
+ ScreenNames.QuickSubmit,
1063
747
  {
1064
748
  loan: item,
1065
749
  }
1066
750
  )
1067
751
  );
1068
- });
1069
- }}
1070
- >
1071
- <ContractTimeIcon />
1072
- <MText
1073
- style={[
1074
- commonStyles.textNormal,
1075
- {
1076
- fontSize: 12,
1077
- fontWeight: '300',
1078
- marginTop: 8,
1079
- textAlign: 'center',
1080
- },
1081
- ]}
1082
- >
1083
- Hợp đồng{'\n'}dịch vụ
1084
- </MText>
1085
- </MButton>
1086
- )}
1087
- {item?.paymentEvidenceUrl && (
1088
- <MButton
1089
- style={{
1090
- alignItems: 'center',
1091
- marginLeft: 20,
1092
- }}
1093
- onPress={() => {
1094
- checkTerm(item, () => {
1095
- navigation.dispatch(
1096
- StackActions.push(
1097
- ScreenNames.PaymentEvidence,
1098
- {
1099
- url: item?.paymentEvidenceUrl,
1100
- }
1101
- )
1102
- );
1103
- });
1104
- }}
1105
- >
1106
- <IconEviden />
1107
- <MText
1108
- style={[
1109
- commonStyles.textNormal,
1110
- {
1111
- fontSize: 12,
1112
- fontWeight: '300',
1113
- marginTop: 8,
1114
- textAlign: 'center',
1115
- },
1116
- ]}
1117
- >
1118
- Mục đích {'\n'}sử dụng
1119
- </MText>
1120
- </MButton>
1121
- )}
1122
- {item?.showPaymentPlan && (
1123
- <MButton
1124
- style={{
1125
- alignItems: 'center',
1126
- marginLeft: 20,
1127
- }}
1128
- onPress={() => {
1129
- navigation.dispatch(
1130
- StackActions.push(
1131
- ScreenNames.SchedulePayment,
1132
- {
1133
- loan: item,
1134
- }
1135
- )
1136
- );
1137
- }}
1138
- >
1139
- <IconSchedule />
1140
- <MText
1141
- style={[
1142
- commonStyles.textNormal,
1143
- {
1144
- fontSize: 12,
1145
- fontWeight: '300',
1146
- marginTop: 8,
1147
- },
1148
- ]}
1149
- >
1150
- Lịch dự kiến
1151
- </MText>
1152
- </MButton>
1153
- )}
1154
- </View>
1155
-
1156
- {item.messageErrorCIMB !== '' &&
1157
- item?.messageErrorCIMB &&
1158
- item?.isCimbApproveFull === null ? (
1159
- <View
1160
- style={{
1161
- backgroundColor: '#FBEFE7',
1162
- marginHorizontal: -16,
1163
- paddingVertical: 8,
1164
- marginTop: 16,
1165
- borderBottomRightRadius: 8,
1166
- borderBottomLeftRadius: 8,
1167
- paddingHorizontal: 16,
752
+ }
753
+ });
1168
754
  }}
1169
755
  >
1170
- <View
1171
- style={{
1172
- flexDirection: 'row',
1173
- justifyContent: 'space-between',
1174
- alignItems: 'center',
1175
- }}
756
+ <AddInfo />
757
+ <MText
758
+ style={[
759
+ commonStyles.textNormal,
760
+ {
761
+ fontSize: 12,
762
+ fontWeight: '300',
763
+ marginTop: 8,
764
+ textAlign: 'center',
765
+ },
766
+ ]}
1176
767
  >
1177
- <View
1178
- style={{
1179
- flex: 1,
1180
- flexDirection: 'row',
1181
- paddingRight: 20,
1182
- }}
1183
- >
1184
- <Image
1185
- source={require('./error.png')}
1186
- style={{
1187
- width: 16,
1188
- height: 16,
1189
- }}
1190
- />
1191
- <MText
1192
- style={{ marginLeft: 5 }}
1193
- >
1194
- Đơn vay của bạn gặp gián đoạn,
1195
- vui lòng liên hệ tổng đài
1196
- 1900633688
1197
- </MText>
1198
- </View>
1199
-
1200
- <TouchableOpacity
1201
- onPress={() => {
1202
- Linking.openURL(
1203
- `tel:1900633688`
1204
- );
1205
- }}
1206
- >
1207
- <LinearGradient
1208
- colors={[
1209
- '#FF8E4F',
1210
- '#EF592E',
1211
- ]}
1212
- style={{
1213
- paddingHorizontal: 10,
1214
- height: 30,
1215
- borderRadius: 30,
1216
- justifyContent: 'center',
1217
- alignItems: 'center',
1218
- flexDirection: 'row',
1219
- }}
1220
- >
1221
- <Call />
1222
- <MText
1223
- style={{
1224
- color: 'white',
1225
- fontSize: 12,
1226
- marginLeft: 5,
1227
- }}
1228
- >
1229
- Liên hệ
1230
- </MText>
1231
- </LinearGradient>
1232
- </TouchableOpacity>
1233
- </View>
1234
- </View>
768
+ Hoàn thiện{'\n'}cung cấp thông tin
769
+ </MText>
770
+ </TouchableOpacity>
1235
771
  ) : (
1236
772
  <View
1237
- style={{
1238
- flexDirection: 'row',
1239
- alignItems: 'center',
1240
- backgroundColor: '#FBEFE7',
1241
- marginHorizontal: -16,
1242
- paddingVertical: 8,
1243
- marginTop: 16,
1244
- borderBottomRightRadius: 8,
1245
- borderBottomLeftRadius: 8,
1246
- paddingHorizontal: 16,
1247
- }}
773
+ style={{ alignItems: 'center' }}
1248
774
  >
1249
- <Info />
775
+ <AddInfoDisable />
1250
776
  <MText
1251
777
  style={[
778
+ commonStyles.textNormal,
1252
779
  {
780
+ fontSize: 12,
1253
781
  fontWeight: '300',
1254
- fontSize: 10,
1255
- fontStyle: 'italic',
1256
- color: '#333333',
1257
- marginLeft: 8,
782
+ marginTop: 8,
783
+ textAlign: 'center',
1258
784
  },
1259
785
  ]}
1260
786
  >
1261
- {item?.suggestion
1262
- ? item?.suggestion
1263
- : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
787
+ Hoàn thiện{'\n'}cung cấp thông tin
1264
788
  </MText>
1265
789
  </View>
1266
790
  )}
1267
791
  </View>
1268
792
  )}
793
+
794
+ {item?.isSignContract && (
795
+ <MButton
796
+ style={{
797
+ alignItems: 'center',
798
+ marginLeft: 20,
799
+ }}
800
+ onPress={() => {
801
+ checkTerm(item, () => {
802
+ if (item?.urlSignContract) {
803
+ navigation.dispatch(
804
+ StackActions.push(
805
+ ScreenNames.CIMBSign,
806
+ {
807
+ url: item?.urlSignContract,
808
+ }
809
+ )
810
+ );
811
+ } else {
812
+ Alert.alert(
813
+ 'Thông báo',
814
+ 'Bạn chưa thể ký hợp đồng bây giờ?'
815
+ );
816
+ }
817
+ });
818
+ }}
819
+ >
820
+ <IconSign2 />
821
+ <MText
822
+ style={[
823
+ commonStyles.textNormal,
824
+ {
825
+ fontSize: 12,
826
+ fontWeight: '300',
827
+ marginTop: 8,
828
+ },
829
+ ]}
830
+ >
831
+ Ký hợp đồng
832
+ </MText>
833
+ </MButton>
834
+ )}
835
+ {item?.isSignContractTima && (
836
+ <MButton
837
+ style={{
838
+ alignItems: 'center',
839
+ marginLeft: 20,
840
+ }}
841
+ onPress={() => {
842
+ checkTerm(item, () => {
843
+ navigation.dispatch(
844
+ StackActions.push(
845
+ ScreenNames.ViewContract,
846
+ {
847
+ loan: item,
848
+ }
849
+ )
850
+ );
851
+ });
852
+ }}
853
+ >
854
+ <ContractTimeIcon />
855
+ <MText
856
+ style={[
857
+ commonStyles.textNormal,
858
+ {
859
+ fontSize: 12,
860
+ fontWeight: '300',
861
+ marginTop: 8,
862
+ textAlign: 'center',
863
+ },
864
+ ]}
865
+ >
866
+ Hợp đồng{'\n'}dịch vụ
867
+ </MText>
868
+ </MButton>
869
+ )}
870
+ {item?.paymentEvidenceUrl && (
871
+ <MButton
872
+ style={{
873
+ alignItems: 'center',
874
+ marginLeft: 20,
875
+ }}
876
+ onPress={() => {
877
+ checkTerm(item, () => {
878
+ navigation.dispatch(
879
+ StackActions.push(
880
+ ScreenNames.PaymentEvidence,
881
+ {
882
+ url: item?.paymentEvidenceUrl,
883
+ }
884
+ )
885
+ );
886
+ });
887
+ }}
888
+ >
889
+ <IconEviden />
890
+ <MText
891
+ style={[
892
+ commonStyles.textNormal,
893
+ {
894
+ fontSize: 12,
895
+ fontWeight: '300',
896
+ marginTop: 8,
897
+ textAlign: 'center',
898
+ },
899
+ ]}
900
+ >
901
+ Mục đích {'\n'}sử dụng
902
+ </MText>
903
+ </MButton>
904
+ )}
905
+ {item?.showPaymentPlan && (
906
+ <MButton
907
+ style={{
908
+ alignItems: 'center',
909
+ marginLeft: 20,
910
+ }}
911
+ onPress={() => {
912
+ checkTerm(item, () => {
913
+ navigation.dispatch(
914
+ StackActions.push(
915
+ ScreenNames.SchedulePayment,
916
+ {
917
+ loan: item,
918
+ }
919
+ )
920
+ );
921
+ });
922
+ }}
923
+ >
924
+ <IconSchedule />
925
+ <MText
926
+ style={[
927
+ commonStyles.textNormal,
928
+ {
929
+ fontSize: 12,
930
+ fontWeight: '300',
931
+ marginTop: 8,
932
+ },
933
+ ]}
934
+ >
935
+ Lịch dự kiến
936
+ </MText>
937
+ </MButton>
938
+ )}
1269
939
  </View>
1270
- </View>
1271
- )}
1272
- </Observer>
1273
- ) : (
1274
- // cimb thường
1275
- <View>
1276
- <View>
1277
- {item?.loanStatus !== null &&
1278
- item?.loanStatus !== '' ? (
1279
- <View
1280
- style={{
1281
- backgroundColor: '#FFFFFF',
1282
- paddingHorizontal: 16,
1283
- paddingTop: 16,
1284
- borderRadius: 8,
1285
- borderWidth: 0.5,
1286
- borderColor: '#E0E0E0',
1287
- }}
1288
- >
940
+
941
+ {item.messageErrorCIMB !== '' &&
942
+ item?.messageErrorCIMB &&
943
+ item?.isCimbApproveFull === null ? (
1289
944
  <View
1290
945
  style={{
1291
- flexDirection: 'row',
1292
- alignItems: 'center',
946
+ backgroundColor: '#FBEFE7',
947
+ marginHorizontal: -16,
948
+ paddingVertical: 8,
949
+ marginTop: 16,
950
+ borderBottomRightRadius: 8,
951
+ borderBottomLeftRadius: 8,
952
+ paddingHorizontal: 16,
1293
953
  }}
1294
954
  >
1295
- <Contract />
1296
- <View style={{ flex: 1, paddingLeft: 8 }}>
1297
- <MText
1298
- style={commonStyles.textNormalBold}
955
+ <View
956
+ style={{
957
+ flexDirection: 'row',
958
+ justifyContent: 'space-between',
959
+ alignItems: 'center',
960
+ }}
961
+ >
962
+ <View
963
+ style={{
964
+ flex: 1,
965
+ flexDirection: 'row',
966
+ paddingRight: 20,
967
+ }}
1299
968
  >
1300
- Mã Đơn vay-{item?.id}
1301
- </MText>
1302
- <MText style={commonStyles.textNormal}>
1303
- Số tiền vay (VND):{' '}
1304
- {item?.loanAmountOffer
1305
- ? formatMoney(item?.loanAmountOffer)
1306
- : 'Chưa xác định'}
1307
- </MText>
969
+ <Image
970
+ source={require('./error.png')}
971
+ style={{ width: 16, height: 16 }}
972
+ />
973
+ <MText style={{ marginLeft: 5 }}>
974
+ Đơn vay của bạn gặp gián đoạn, vui
975
+ lòng liên hệ tổng đài 1900633688
976
+ </MText>
977
+ </View>
978
+
979
+ <TouchableOpacity
980
+ onPress={() => {
981
+ Linking.openURL(`tel:1900633688`);
982
+ }}
983
+ >
984
+ <LinearGradient
985
+ colors={['#FF8E4F', '#EF592E']}
986
+ style={{
987
+ paddingHorizontal: 10,
988
+ height: 30,
989
+ borderRadius: 30,
990
+ justifyContent: 'center',
991
+ alignItems: 'center',
992
+ flexDirection: 'row',
993
+ }}
994
+ >
995
+ <Call />
996
+ <MText
997
+ style={{
998
+ color: 'white',
999
+ fontSize: 12,
1000
+ marginLeft: 5,
1001
+ }}
1002
+ >
1003
+ Liên hệ
1004
+ </MText>
1005
+ </LinearGradient>
1006
+ </TouchableOpacity>
1308
1007
  </View>
1309
1008
  </View>
1310
- <View
1311
- style={{
1312
- height: 1,
1313
- backgroundColor: '#E0E0E0',
1314
- marginVertical: 16,
1315
- }}
1316
- />
1009
+ ) : (
1317
1010
  <View
1318
1011
  style={{
1319
1012
  flexDirection: 'row',
1320
- justifyContent: 'space-between',
1013
+ alignItems: 'center',
1014
+ backgroundColor: '#FBEFE7',
1015
+ marginHorizontal: -16,
1016
+ paddingVertical: 8,
1017
+ marginTop: 16,
1018
+ borderBottomRightRadius: 8,
1019
+ borderBottomLeftRadius: 8,
1020
+ paddingHorizontal: 16,
1321
1021
  }}
1322
1022
  >
1323
- <MText style={commonStyles.textNormal}>
1324
- Trạng thái
1325
- </MText>
1023
+ <Info />
1326
1024
  <MText
1327
1025
  style={[
1328
- commonStyles.textNormalBold,
1329
- { color: '#F05123' },
1026
+ {
1027
+ fontWeight: '300',
1028
+ fontSize: 10,
1029
+ fontStyle: 'italic',
1030
+ color: '#333333',
1031
+ marginLeft: 8,
1032
+ },
1330
1033
  ]}
1331
1034
  >
1332
- {item?.loanStatus}
1035
+ {item?.suggestion
1036
+ ? item?.suggestion
1037
+ : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1333
1038
  </MText>
1334
1039
  </View>
1040
+ )}
1041
+ </View>
1042
+ </View>
1043
+ ) : // type 2 tái vay
1044
+ item?.typeLoan === 2 ? (
1045
+ <Observer>
1046
+ {() => (
1047
+ <View>
1335
1048
  <View
1336
1049
  style={{
1337
- height: 0.5,
1338
- backgroundColor: '#E0E0E0',
1339
- marginVertical: 16,
1050
+ backgroundColor: '#FFFFFF',
1051
+ paddingHorizontal: 16,
1052
+ paddingTop: 16,
1053
+ borderRadius: 8,
1054
+ borderWidth: 0.5,
1055
+ borderColor: '#E0E0E0',
1340
1056
  }}
1341
- />
1342
- <View style={{ flexDirection: 'row' }}>
1343
- {item?.isUpdateLoan ||
1344
- item?.isUpdateInformation ? (
1345
- <TouchableOpacity
1346
- style={{ alignItems: 'center' }}
1347
- onPress={() => {
1348
- checkTerm(item, () => {
1349
- if (item?.isUpdateLoan) {
1350
- navigation.dispatch(
1351
- StackActions.push(
1352
- ScreenNames.CimbSelfie,
1353
- {
1354
- loan: item,
1355
- }
1356
- )
1357
- );
1358
- } else {
1359
- navigation.dispatch(
1360
- StackActions.push(
1361
- ScreenNames.QuickSubmit,
1362
- {
1363
- loan: item,
1364
- }
1365
- )
1366
- );
1367
- }
1368
- });
1369
- }}
1057
+ >
1058
+ <View
1059
+ style={{
1060
+ flexDirection: 'row',
1061
+ alignItems: 'center',
1062
+ }}
1063
+ >
1064
+ <Contract />
1065
+ <View
1066
+ style={{ flex: 1, paddingLeft: 8 }}
1370
1067
  >
1371
- <AddInfo />
1372
1068
  <MText
1373
- style={[
1374
- commonStyles.textNormal,
1375
- {
1376
- fontSize: 12,
1377
- fontWeight: '300',
1378
- marginTop: 8,
1379
- textAlign: 'center',
1380
- },
1381
- ]}
1069
+ style={commonStyles.textNormalBold}
1382
1070
  >
1383
- Hoàn thiện{'\n'}cung cấp thông tin
1071
+ Đơn vay {item?.id}
1384
1072
  </MText>
1385
- </TouchableOpacity>
1386
- ) : (
1387
- <View style={{ alignItems: 'center' }}>
1388
- <AddInfoDisable />
1389
1073
  <MText
1390
- style={[
1391
- commonStyles.textNormal,
1392
- {
1393
- fontSize: 12,
1394
- fontWeight: '300',
1395
- marginTop: 8,
1396
- textAlign: 'center',
1397
- },
1398
- ]}
1074
+ style={commonStyles.textNormal}
1399
1075
  >
1400
- Hoàn thiện{'\n'}cung cấp thông tin
1076
+ Số tiền vay (VND):{' '}
1077
+ {item?.loanAmount
1078
+ ? formatMoney(item?.loanAmount)
1079
+ : 'Chưa xác định'}
1401
1080
  </MText>
1402
1081
  </View>
1403
- )}
1404
- {item?.isSignContract && (
1082
+ </View>
1083
+ <View
1084
+ style={{
1085
+ height: 1,
1086
+ backgroundColor: '#E0E0E0',
1087
+ marginVertical: 16,
1088
+ }}
1089
+ />
1090
+ <View
1091
+ style={{
1092
+ flexDirection: 'row',
1093
+ justifyContent: 'space-between',
1094
+ }}
1095
+ >
1096
+ <MText style={commonStyles.textNormal}>
1097
+ Trạng thái
1098
+ </MText>
1099
+ <MText
1100
+ style={[
1101
+ commonStyles.textNormalBold,
1102
+ { color: '#F05123' },
1103
+ ]}
1104
+ >
1105
+ {item?.loanStatus}
1106
+ </MText>
1107
+ </View>
1108
+ {/* // cho phép update thông tin */}
1109
+ {item?.isUpdateLoanReBorrow ? (
1405
1110
  <TouchableOpacity
1406
1111
  style={{
1407
- alignItems: 'center',
1408
- marginLeft: 20,
1112
+ marginTop: 14,
1113
+ marginBottom: 16,
1409
1114
  }}
1410
1115
  onPress={() => {
1411
1116
  checkTerm(item, () => {
1412
- if (item?.urlSignContract) {
1413
- navigation.dispatch(
1414
- StackActions.push(
1415
- ScreenNames.CIMBSign,
1416
- {
1417
- url: item?.urlSignContract,
1418
- }
1419
- )
1420
- );
1421
- } else {
1422
- Alert.alert(
1423
- 'Thông báo',
1424
- 'Bạn chưa thể ký hợp đồng bây giờ?'
1425
- );
1426
- }
1117
+ navigation.push(
1118
+ 'DigitalLending',
1119
+ item
1120
+ );
1427
1121
  });
1428
1122
  }}
1429
1123
  >
1430
- <IconSign2 />
1431
- <MText
1432
- style={[
1433
- commonStyles.textNormal,
1434
- {
1435
- fontSize: 12,
1436
- fontWeight: '300',
1437
- marginTop: 8,
1438
- },
1439
- ]}
1124
+ <LinearGradient
1125
+ style={{
1126
+ height: 36,
1127
+ borderRadius: 30,
1128
+ paddingHorizontal: 20,
1129
+ flexDirection: 'row',
1130
+ alignItems: 'center',
1131
+ }}
1132
+ colors={['#FF8E4F', '#EF592E']}
1440
1133
  >
1441
- hợp đồng
1442
- </MText>
1134
+ <UpdateIcon />
1135
+ <MText
1136
+ style={{
1137
+ color: 'white',
1138
+ marginLeft: 10,
1139
+ }}
1140
+ >
1141
+ Hoàn thiện hồ sơ
1142
+ </MText>
1143
+ </LinearGradient>
1443
1144
  </TouchableOpacity>
1444
- )}
1445
- {item?.isSignContractTima && (
1446
- <TouchableOpacity
1447
- style={{
1448
- alignItems: 'center',
1449
- marginLeft: 20,
1450
- }}
1451
- onPress={() => {
1452
- checkTerm(item, () => {
1453
- navigation.dispatch(
1454
- StackActions.push(
1455
- ScreenNames.ViewContract,
1145
+ ) : (
1146
+ <View>
1147
+ <View
1148
+ style={{
1149
+ height: 0.5,
1150
+ backgroundColor: '#E0E0E0',
1151
+ marginVertical: 16,
1152
+ }}
1153
+ />
1154
+ <View
1155
+ style={{ flexDirection: 'row' }}
1156
+ >
1157
+ {item?.loanStatus === null ||
1158
+ item?.loanStatus === '' ? (
1159
+ <MButton
1160
+ style={{
1161
+ alignItems: 'center',
1162
+ }}
1163
+ onPress={() => {
1164
+ checkTerm(item, () => {
1165
+ navigation.dispatch(
1166
+ StackActions.push(
1167
+ ScreenNames.CIMBxTima,
1168
+ {
1169
+ loan: item,
1170
+ }
1171
+ )
1172
+ );
1173
+ });
1174
+ }}
1175
+ >
1176
+ <AddInfo />
1177
+ <MText
1178
+ style={[
1179
+ commonStyles.textNormal,
1180
+ {
1181
+ fontSize: 12,
1182
+ fontWeight: '300',
1183
+ marginTop: 8,
1184
+ textAlign: 'center',
1185
+ },
1186
+ ]}
1187
+ >
1188
+ Hoàn thiện{'\n'}cung cấp thông
1189
+ tin
1190
+ </MText>
1191
+ </MButton>
1192
+ ) : (
1193
+ <View>
1194
+ {item?.isUpdateLoan ||
1195
+ item?.isUpdateInformation ? (
1196
+ <TouchableOpacity
1197
+ style={{
1198
+ alignItems: 'center',
1199
+ }}
1200
+ onPress={() => {
1201
+ checkTerm(item, () => {
1202
+ if (
1203
+ item?.isUpdateLoan
1204
+ ) {
1205
+ navigation.dispatch(
1206
+ StackActions.push(
1207
+ ScreenNames.CimbSelfie,
1208
+ {
1209
+ loan: item,
1210
+ }
1211
+ )
1212
+ );
1213
+ } else {
1214
+ navigation.dispatch(
1215
+ StackActions.push(
1216
+ ScreenNames.QuickSubmit,
1217
+ {
1218
+ loan: item,
1219
+ }
1220
+ )
1221
+ );
1222
+ }
1223
+ });
1224
+ }}
1225
+ >
1226
+ <AddInfo />
1227
+ <MText
1228
+ style={[
1229
+ commonStyles.textNormal,
1230
+ {
1231
+ fontSize: 12,
1232
+ fontWeight: '300',
1233
+ marginTop: 8,
1234
+ textAlign: 'center',
1235
+ },
1236
+ ]}
1237
+ >
1238
+ Hoàn thiện{'\n'}cung cấp
1239
+ thông tin
1240
+ </MText>
1241
+ </TouchableOpacity>
1242
+ ) : (
1243
+ <View
1244
+ style={{
1245
+ alignItems: 'center',
1246
+ }}
1247
+ >
1248
+ <AddInfoDisable />
1249
+ <MText
1250
+ style={[
1251
+ commonStyles.textNormal,
1252
+ {
1253
+ fontSize: 12,
1254
+ fontWeight: '300',
1255
+ marginTop: 8,
1256
+ textAlign: 'center',
1257
+ },
1258
+ ]}
1259
+ >
1260
+ Hoàn thiện{'\n'}cung cấp
1261
+ thông tin
1262
+ </MText>
1263
+ </View>
1264
+ )}
1265
+ </View>
1266
+ )}
1267
+
1268
+ {item?.isSignContract && (
1269
+ <MButton
1270
+ style={{
1271
+ alignItems: 'center',
1272
+ marginLeft: 20,
1273
+ }}
1274
+ onPress={() => {
1275
+ checkTerm(item, () => {
1276
+ if (item?.urlSignContract) {
1277
+ navigation.dispatch(
1278
+ StackActions.push(
1279
+ ScreenNames.CIMBSign,
1280
+ {
1281
+ url: item?.urlSignContract,
1282
+ }
1283
+ )
1284
+ );
1285
+ } else {
1286
+ Alert.alert(
1287
+ 'Thông báo',
1288
+ 'Bạn chưa thể ký hợp đồng bây giờ?'
1289
+ );
1290
+ }
1291
+ });
1292
+ }}
1293
+ >
1294
+ <IconSign2 />
1295
+ <MText
1296
+ style={[
1297
+ commonStyles.textNormal,
1298
+ {
1299
+ fontSize: 12,
1300
+ fontWeight: '300',
1301
+ marginTop: 8,
1302
+ },
1303
+ ]}
1304
+ >
1305
+ Ký hợp đồng
1306
+ </MText>
1307
+ </MButton>
1308
+ )}
1309
+ {item?.isSignContractTima && (
1310
+ <MButton
1311
+ style={{
1312
+ alignItems: 'center',
1313
+ marginLeft: 20,
1314
+ }}
1315
+ onPress={() => {
1316
+ checkTerm(item, () => {
1317
+ navigation.dispatch(
1318
+ StackActions.push(
1319
+ ScreenNames.ViewContract,
1320
+ {
1321
+ loan: item,
1322
+ }
1323
+ )
1324
+ );
1325
+ });
1326
+ }}
1327
+ >
1328
+ <ContractTimeIcon />
1329
+ <MText
1330
+ style={[
1331
+ commonStyles.textNormal,
1332
+ {
1333
+ fontSize: 12,
1334
+ fontWeight: '300',
1335
+ marginTop: 8,
1336
+ textAlign: 'center',
1337
+ },
1338
+ ]}
1339
+ >
1340
+ Hợp đồng{'\n'}dịch vụ
1341
+ </MText>
1342
+ </MButton>
1343
+ )}
1344
+ {item?.paymentEvidenceUrl && (
1345
+ <MButton
1346
+ style={{
1347
+ alignItems: 'center',
1348
+ marginLeft: 20,
1349
+ }}
1350
+ onPress={() => {
1351
+ checkTerm(item, () => {
1352
+ navigation.dispatch(
1353
+ StackActions.push(
1354
+ ScreenNames.PaymentEvidence,
1355
+ {
1356
+ url: item?.paymentEvidenceUrl,
1357
+ }
1358
+ )
1359
+ );
1360
+ });
1361
+ }}
1362
+ >
1363
+ <IconEviden />
1364
+ <MText
1365
+ style={[
1366
+ commonStyles.textNormal,
1367
+ {
1368
+ fontSize: 12,
1369
+ fontWeight: '300',
1370
+ marginTop: 8,
1371
+ textAlign: 'center',
1372
+ },
1373
+ ]}
1374
+ >
1375
+ Mục đích {'\n'}sử dụng
1376
+ </MText>
1377
+ </MButton>
1378
+ )}
1379
+ {item?.showPaymentPlan && (
1380
+ <MButton
1381
+ style={{
1382
+ alignItems: 'center',
1383
+ marginLeft: 20,
1384
+ }}
1385
+ onPress={() => {
1386
+ navigation.dispatch(
1387
+ StackActions.push(
1388
+ ScreenNames.SchedulePayment,
1389
+ {
1390
+ loan: item,
1391
+ }
1392
+ )
1393
+ );
1394
+ }}
1395
+ >
1396
+ <IconSchedule />
1397
+ <MText
1398
+ style={[
1399
+ commonStyles.textNormal,
1400
+ {
1401
+ fontSize: 12,
1402
+ fontWeight: '300',
1403
+ marginTop: 8,
1404
+ },
1405
+ ]}
1406
+ >
1407
+ Lịch dự kiến
1408
+ </MText>
1409
+ </MButton>
1410
+ )}
1411
+ </View>
1412
+
1413
+ {item.messageErrorCIMB !== '' &&
1414
+ item?.messageErrorCIMB &&
1415
+ item?.isCimbApproveFull === null ? (
1416
+ <View
1417
+ style={{
1418
+ backgroundColor: '#FBEFE7',
1419
+ marginHorizontal: -16,
1420
+ paddingVertical: 8,
1421
+ marginTop: 16,
1422
+ borderBottomRightRadius: 8,
1423
+ borderBottomLeftRadius: 8,
1424
+ paddingHorizontal: 16,
1425
+ }}
1426
+ >
1427
+ <View
1428
+ style={{
1429
+ flexDirection: 'row',
1430
+ justifyContent:
1431
+ 'space-between',
1432
+ alignItems: 'center',
1433
+ }}
1434
+ >
1435
+ <View
1436
+ style={{
1437
+ flex: 1,
1438
+ flexDirection: 'row',
1439
+ paddingRight: 20,
1440
+ }}
1441
+ >
1442
+ <Image
1443
+ source={require('./error.png')}
1444
+ style={{
1445
+ width: 16,
1446
+ height: 16,
1447
+ }}
1448
+ />
1449
+ <MText
1450
+ style={{ marginLeft: 5 }}
1451
+ >
1452
+ Đơn vay của bạn gặp gián
1453
+ đoạn, vui lòng liên hệ tổng
1454
+ đài 1900633688
1455
+ </MText>
1456
+ </View>
1457
+
1458
+ <TouchableOpacity
1459
+ onPress={() => {
1460
+ Linking.openURL(
1461
+ `tel:1900633688`
1462
+ );
1463
+ }}
1464
+ >
1465
+ <LinearGradient
1466
+ colors={[
1467
+ '#FF8E4F',
1468
+ '#EF592E',
1469
+ ]}
1470
+ style={{
1471
+ paddingHorizontal: 10,
1472
+ height: 30,
1473
+ borderRadius: 30,
1474
+ justifyContent: 'center',
1475
+ alignItems: 'center',
1476
+ flexDirection: 'row',
1477
+ }}
1478
+ >
1479
+ <Call />
1480
+ <MText
1481
+ style={{
1482
+ color: 'white',
1483
+ fontSize: 12,
1484
+ marginLeft: 5,
1485
+ }}
1486
+ >
1487
+ Liên hệ
1488
+ </MText>
1489
+ </LinearGradient>
1490
+ </TouchableOpacity>
1491
+ </View>
1492
+ </View>
1493
+ ) : (
1494
+ <View
1495
+ style={{
1496
+ flexDirection: 'row',
1497
+ alignItems: 'center',
1498
+ backgroundColor: '#FBEFE7',
1499
+ marginHorizontal: -16,
1500
+ paddingVertical: 8,
1501
+ marginTop: 16,
1502
+ borderBottomRightRadius: 8,
1503
+ borderBottomLeftRadius: 8,
1504
+ paddingHorizontal: 16,
1505
+ }}
1506
+ >
1507
+ <Info />
1508
+ <MText
1509
+ style={[
1456
1510
  {
1457
- loan: item,
1458
- }
1459
- )
1460
- );
1461
- });
1462
- }}
1511
+ fontWeight: '300',
1512
+ fontSize: 10,
1513
+ fontStyle: 'italic',
1514
+ color: '#333333',
1515
+ marginLeft: 8,
1516
+ },
1517
+ ]}
1518
+ >
1519
+ {item?.suggestion
1520
+ ? item?.suggestion
1521
+ : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1522
+ </MText>
1523
+ </View>
1524
+ )}
1525
+ </View>
1526
+ )}
1527
+ </View>
1528
+ </View>
1529
+ )}
1530
+ </Observer>
1531
+ ) : (
1532
+ // cimb thường
1533
+ <View>
1534
+ <View>
1535
+ {item?.loanStatus !== null &&
1536
+ item?.loanStatus !== '' ? (
1537
+ <View
1538
+ style={{
1539
+ backgroundColor: '#FFFFFF',
1540
+ paddingHorizontal: 16,
1541
+ paddingTop: 16,
1542
+ borderRadius: 8,
1543
+ borderWidth: 0.5,
1544
+ borderColor: '#E0E0E0',
1545
+ }}
1546
+ >
1547
+ <View
1548
+ style={{
1549
+ flexDirection: 'row',
1550
+ alignItems: 'center',
1551
+ }}
1552
+ >
1553
+ <Contract />
1554
+ <View
1555
+ style={{ flex: 1, paddingLeft: 8 }}
1463
1556
  >
1464
- <ContractTimeIcon />
1465
1557
  <MText
1466
- style={[
1467
- commonStyles.textNormal,
1468
- {
1469
- fontSize: 12,
1470
- fontWeight: '300',
1471
- marginTop: 8,
1472
- textAlign: 'center',
1473
- },
1474
- ]}
1558
+ style={commonStyles.textNormalBold}
1475
1559
  >
1476
- Hợp đồng{'\n'}dịch vụ
1560
+ Đơn vay-{item?.id}
1477
1561
  </MText>
1478
- </TouchableOpacity>
1479
- )}
1480
- {item?.paymentEvidenceUrl && (
1481
- <TouchableOpacity
1482
- style={{
1483
- alignItems: 'center',
1484
- marginLeft: 20,
1485
- }}
1486
- onPress={() => {
1487
- checkTerm(item, () => {
1562
+ <MText
1563
+ style={commonStyles.textNormal}
1564
+ >
1565
+ Số tiền vay (VND):{' '}
1566
+ {item?.loanAmountOffer
1567
+ ? formatMoney(
1568
+ item?.loanAmountOffer
1569
+ )
1570
+ : 'Chưa xác định'}
1571
+ </MText>
1572
+ </View>
1573
+ </View>
1574
+ <View
1575
+ style={{
1576
+ height: 1,
1577
+ backgroundColor: '#E0E0E0',
1578
+ marginVertical: 16,
1579
+ }}
1580
+ />
1581
+ <View
1582
+ style={{
1583
+ flexDirection: 'row',
1584
+ justifyContent: 'space-between',
1585
+ }}
1586
+ >
1587
+ <MText style={commonStyles.textNormal}>
1588
+ Trạng thái
1589
+ </MText>
1590
+ <MText
1591
+ style={[
1592
+ commonStyles.textNormalBold,
1593
+ { color: '#F05123' },
1594
+ ]}
1595
+ >
1596
+ {item?.loanStatus}
1597
+ </MText>
1598
+ </View>
1599
+ <View
1600
+ style={{
1601
+ height: 0.5,
1602
+ backgroundColor: '#E0E0E0',
1603
+ marginVertical: 16,
1604
+ }}
1605
+ />
1606
+ <View style={{ flexDirection: 'row' }}>
1607
+ {item?.isUpdateLoan ||
1608
+ item?.isUpdateInformation ? (
1609
+ <TouchableOpacity
1610
+ style={{ alignItems: 'center' }}
1611
+ onPress={() => {
1612
+ checkTerm(item, () => {
1613
+ if (item?.isUpdateLoan) {
1614
+ navigation.dispatch(
1615
+ StackActions.push(
1616
+ ScreenNames.CimbSelfie,
1617
+ {
1618
+ loan: item,
1619
+ }
1620
+ )
1621
+ );
1622
+ } else {
1623
+ navigation.dispatch(
1624
+ StackActions.push(
1625
+ ScreenNames.QuickSubmit,
1626
+ {
1627
+ loan: item,
1628
+ }
1629
+ )
1630
+ );
1631
+ }
1632
+ });
1633
+ }}
1634
+ >
1635
+ <AddInfo />
1636
+ <MText
1637
+ style={[
1638
+ commonStyles.textNormal,
1639
+ {
1640
+ fontSize: 12,
1641
+ fontWeight: '300',
1642
+ marginTop: 8,
1643
+ textAlign: 'center',
1644
+ },
1645
+ ]}
1646
+ >
1647
+ Hoàn thiện{'\n'}cung cấp thông tin
1648
+ </MText>
1649
+ </TouchableOpacity>
1650
+ ) : (
1651
+ <View
1652
+ style={{ alignItems: 'center' }}
1653
+ >
1654
+ <AddInfoDisable />
1655
+ <MText
1656
+ style={[
1657
+ commonStyles.textNormal,
1658
+ {
1659
+ fontSize: 12,
1660
+ fontWeight: '300',
1661
+ marginTop: 8,
1662
+ textAlign: 'center',
1663
+ },
1664
+ ]}
1665
+ >
1666
+ Hoàn thiện{'\n'}cung cấp thông tin
1667
+ </MText>
1668
+ </View>
1669
+ )}
1670
+ {item?.isSignContract && (
1671
+ <TouchableOpacity
1672
+ style={{
1673
+ alignItems: 'center',
1674
+ marginLeft: 20,
1675
+ }}
1676
+ onPress={() => {
1677
+ checkTerm(item, () => {
1678
+ if (item?.urlSignContract) {
1679
+ navigation.dispatch(
1680
+ StackActions.push(
1681
+ ScreenNames.CIMBSign,
1682
+ {
1683
+ url: item?.urlSignContract,
1684
+ }
1685
+ )
1686
+ );
1687
+ } else {
1688
+ Alert.alert(
1689
+ 'Thông báo',
1690
+ 'Bạn chưa thể ký hợp đồng bây giờ?'
1691
+ );
1692
+ }
1693
+ });
1694
+ }}
1695
+ >
1696
+ <IconSign2 />
1697
+ <MText
1698
+ style={[
1699
+ commonStyles.textNormal,
1700
+ {
1701
+ fontSize: 12,
1702
+ fontWeight: '300',
1703
+ marginTop: 8,
1704
+ },
1705
+ ]}
1706
+ >
1707
+ Ký hợp đồng
1708
+ </MText>
1709
+ </TouchableOpacity>
1710
+ )}
1711
+ {item?.isSignContractTima && (
1712
+ <TouchableOpacity
1713
+ style={{
1714
+ alignItems: 'center',
1715
+ marginLeft: 20,
1716
+ }}
1717
+ onPress={() => {
1718
+ checkTerm(item, () => {
1719
+ navigation.dispatch(
1720
+ StackActions.push(
1721
+ ScreenNames.ViewContract,
1722
+ {
1723
+ loan: item,
1724
+ }
1725
+ )
1726
+ );
1727
+ });
1728
+ }}
1729
+ >
1730
+ <ContractTimeIcon />
1731
+ <MText
1732
+ style={[
1733
+ commonStyles.textNormal,
1734
+ {
1735
+ fontSize: 12,
1736
+ fontWeight: '300',
1737
+ marginTop: 8,
1738
+ textAlign: 'center',
1739
+ },
1740
+ ]}
1741
+ >
1742
+ Hợp đồng{'\n'}dịch vụ
1743
+ </MText>
1744
+ </TouchableOpacity>
1745
+ )}
1746
+ {item?.paymentEvidenceUrl && (
1747
+ <TouchableOpacity
1748
+ style={{
1749
+ alignItems: 'center',
1750
+ marginLeft: 20,
1751
+ }}
1752
+ onPress={() => {
1753
+ checkTerm(item, () => {
1754
+ navigation.dispatch(
1755
+ StackActions.push(
1756
+ ScreenNames.PaymentEvidence,
1757
+ {
1758
+ url: item?.paymentEvidenceUrl,
1759
+ }
1760
+ )
1761
+ );
1762
+ });
1763
+ }}
1764
+ >
1765
+ <IconEviden />
1766
+ <MText
1767
+ style={[
1768
+ commonStyles.textNormal,
1769
+ {
1770
+ fontSize: 12,
1771
+ fontWeight: '300',
1772
+ marginTop: 8,
1773
+ textAlign: 'center',
1774
+ },
1775
+ ]}
1776
+ >
1777
+ Mục đích {'\n'}sử dụng
1778
+ </MText>
1779
+ </TouchableOpacity>
1780
+ )}
1781
+ {item?.showPaymentPlan && (
1782
+ <TouchableOpacity
1783
+ style={{
1784
+ alignItems: 'center',
1785
+ marginLeft: 20,
1786
+ }}
1787
+ onPress={() => {
1488
1788
  navigation.dispatch(
1489
1789
  StackActions.push(
1490
- ScreenNames.PaymentEvidence,
1790
+ ScreenNames.SchedulePayment,
1491
1791
  {
1492
- url: item?.paymentEvidenceUrl,
1792
+ loan: item,
1493
1793
  }
1494
1794
  )
1495
1795
  );
1496
- });
1497
- }}
1498
- >
1499
- <IconEviden />
1500
- <MText
1501
- style={[
1502
- commonStyles.textNormal,
1503
- {
1504
- fontSize: 12,
1505
- fontWeight: '300',
1506
- marginTop: 8,
1507
- textAlign: 'center',
1508
- },
1509
- ]}
1796
+ }}
1510
1797
  >
1511
- Mục đích {'\n'}sử dụng
1512
- </MText>
1513
- </TouchableOpacity>
1514
- )}
1515
- {item?.showPaymentPlan && (
1516
- <TouchableOpacity
1517
- style={{
1518
- alignItems: 'center',
1519
- marginLeft: 20,
1520
- }}
1521
- onPress={() => {
1522
- navigation.dispatch(
1523
- StackActions.push(
1524
- ScreenNames.SchedulePayment,
1798
+ <IconSchedule />
1799
+ <MText
1800
+ style={[
1801
+ commonStyles.textNormal,
1525
1802
  {
1526
- loan: item,
1527
- }
1528
- )
1529
- );
1530
- }}
1531
- >
1532
- <IconSchedule />
1533
- <MText
1534
- style={[
1535
- commonStyles.textNormal,
1536
- {
1537
- fontSize: 12,
1538
- fontWeight: '300',
1539
- marginTop: 8,
1540
- },
1541
- ]}
1542
- >
1543
- Lịch dự kiến
1544
- </MText>
1545
- </TouchableOpacity>
1546
- )}
1547
- </View>
1803
+ fontSize: 12,
1804
+ fontWeight: '300',
1805
+ marginTop: 8,
1806
+ },
1807
+ ]}
1808
+ >
1809
+ Lịch dự kiến
1810
+ </MText>
1811
+ </TouchableOpacity>
1812
+ )}
1813
+ </View>
1548
1814
 
1549
- <View
1550
- style={{
1551
- flexDirection: 'row',
1552
- alignItems: 'center',
1553
- backgroundColor: '#FBEFE7',
1554
- marginHorizontal: -16,
1555
- paddingVertical: 8,
1556
- marginTop: 16,
1557
- borderBottomRightRadius: 8,
1558
- borderBottomLeftRadius: 8,
1559
- paddingHorizontal: 16,
1560
- }}
1561
- >
1562
- <Info />
1563
- <MText
1564
- style={[
1565
- {
1566
- fontWeight: '300',
1567
- fontSize: 10,
1568
- fontStyle: 'italic',
1569
- color: '#333333',
1570
- marginLeft: 8,
1571
- },
1572
- ]}
1573
- >
1574
- {item?.suggestion
1575
- ? item?.suggestion
1576
- : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1577
- </MText>
1578
- </View>
1579
- </View>
1580
- ) : (
1581
- <ImageBackground
1582
- source={require('../../assets/img/bann.png')}
1583
- style={{ flex: 1, padding: 16 }}
1584
- resizeMode="cover"
1585
- height={220}
1586
- borderRadius={8}
1587
- >
1588
- <MText
1589
- style={{
1590
- color: '#333333',
1591
- fontWeight: 'bold',
1592
- fontSize: 12,
1593
- }}
1594
- >
1595
- BẠN ĐỦ ĐIỀU KIỆN VAY TIÊU DÙNG{'\n'}THEO
1596
- THÔNG TIN TÀI SẢN SỞ HỮU
1597
- {'\n'}
1598
- (XE MÁY/ Ô TÔ)
1599
- </MText>
1600
- <MText
1601
- style={{
1602
- marginTop: 12,
1603
- fontSize: 24,
1604
- fontWeight: 'bold',
1605
- color: '#EF4123',
1606
- }}
1607
- >
1608
- {formatMoney(item?.loanAmount)} VND
1609
- </MText>
1610
- <TouchableOpacity
1611
- onPress={() => {
1612
- checkTerm(item, () => {
1613
- navigation.dispatch(
1614
- StackActions.push(
1615
- ScreenNames.CIMBxTima,
1616
- {
1617
- loan: item,
1618
- }
1619
- )
1620
- );
1621
- });
1622
- }}
1623
- >
1624
- <LinearGradient
1625
- colors={['#FF7A00', '#EF4123']}
1815
+ <View
1626
1816
  style={{
1627
- backgroundColor: '#F36D21cd ',
1628
- marginTop: 12,
1817
+ flexDirection: 'row',
1629
1818
  alignItems: 'center',
1630
- borderRadius: 30,
1631
- paddingVertical: 10,
1632
- width: '50%',
1819
+ backgroundColor: '#FBEFE7',
1820
+ marginHorizontal: -16,
1821
+ paddingVertical: 8,
1822
+ marginTop: 16,
1823
+ borderBottomRightRadius: 8,
1824
+ borderBottomLeftRadius: 8,
1825
+ paddingHorizontal: 16,
1633
1826
  }}
1634
1827
  >
1828
+ <Info />
1635
1829
  <MText
1636
- style={{
1637
- color: '#FFFFFF',
1638
- fontWeight: 'bold',
1639
- }}
1830
+ style={[
1831
+ {
1832
+ fontWeight: '300',
1833
+ fontSize: 10,
1834
+ fontStyle: 'italic',
1835
+ color: '#333333',
1836
+ marginLeft: 8,
1837
+ },
1838
+ ]}
1640
1839
  >
1641
- Hoàn thiện hồ sơ
1840
+ {item?.suggestion
1841
+ ? item?.suggestion
1842
+ : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1642
1843
  </MText>
1643
- </LinearGradient>
1644
- </TouchableOpacity>
1645
- <View
1646
- style={{
1647
- flexDirection: 'row',
1648
- alignItems: 'center',
1649
- alignContent: 'center',
1650
- marginTop: 16,
1651
- }}
1844
+ </View>
1845
+ </View>
1846
+ ) : (
1847
+ <ImageBackground
1848
+ source={require('../../assets/img/bann.png')}
1849
+ style={{ flex: 1, padding: 16 }}
1850
+ resizeMode="cover"
1851
+ height={220}
1852
+ borderRadius={8}
1652
1853
  >
1653
1854
  <MText
1654
1855
  style={{
1655
- fontSize: 10,
1656
1856
  color: '#333333',
1857
+ fontWeight: 'bold',
1858
+ fontSize: 12,
1657
1859
  }}
1658
1860
  >
1659
- SẢN PHẨM VAY TIÊU DÙNG HỢP TÁC GIỮA{' '}
1861
+ BẠN ĐỦ ĐIỀU KIỆN VAY TIÊU DÙNG{'\n'}THEO
1862
+ THÔNG TIN TÀI SẢN SỞ HỮU
1863
+ {'\n'}
1864
+ (XE MÁY/ Ô TÔ)
1660
1865
  </MText>
1661
- <LogoSmall />
1662
1866
  <MText
1663
1867
  style={{
1664
- fontSize: 12,
1665
- color: '#333333',
1868
+ marginTop: 12,
1869
+ fontSize: 24,
1870
+ fontWeight: 'bold',
1871
+ color: '#EF4123',
1666
1872
  }}
1667
1873
  >
1668
- {' '}
1669
- VÀ{' '}
1874
+ {formatMoney(item?.loanAmount)} VND
1670
1875
  </MText>
1671
- <CIMBSmall />
1672
- </View>
1673
- </ImageBackground>
1674
- )}
1876
+ <TouchableOpacity
1877
+ onPress={() => {
1878
+ checkTerm(item, () => {
1879
+ navigation.dispatch(
1880
+ StackActions.push(
1881
+ ScreenNames.CIMBxTima,
1882
+ {
1883
+ loan: item,
1884
+ }
1885
+ )
1886
+ );
1887
+ });
1888
+ }}
1889
+ >
1890
+ <LinearGradient
1891
+ colors={['#FF7A00', '#EF4123']}
1892
+ style={{
1893
+ backgroundColor: '#F36D21cd ',
1894
+ marginTop: 12,
1895
+ alignItems: 'center',
1896
+ borderRadius: 30,
1897
+ paddingVertical: 10,
1898
+ width: '50%',
1899
+ }}
1900
+ >
1901
+ <MText
1902
+ style={{
1903
+ color: '#FFFFFF',
1904
+ fontWeight: 'bold',
1905
+ }}
1906
+ >
1907
+ Hoàn thiện hồ sơ
1908
+ </MText>
1909
+ </LinearGradient>
1910
+ </TouchableOpacity>
1911
+ <View
1912
+ style={{
1913
+ flexDirection: 'row',
1914
+ alignItems: 'center',
1915
+ alignContent: 'center',
1916
+ marginTop: 16,
1917
+ }}
1918
+ >
1919
+ <MText
1920
+ style={{
1921
+ fontSize: 10,
1922
+ color: '#333333',
1923
+ }}
1924
+ >
1925
+ SẢN PHẨM VAY TIÊU DÙNG HỢP TÁC GIỮA{' '}
1926
+ </MText>
1927
+ <LogoSmall />
1928
+ <MText
1929
+ style={{
1930
+ fontSize: 12,
1931
+ color: '#333333',
1932
+ }}
1933
+ >
1934
+ {' '}
1935
+ VÀ{' '}
1936
+ </MText>
1937
+ <CIMBSmall />
1938
+ </View>
1939
+ </ImageBackground>
1940
+ )}
1941
+ </View>
1675
1942
  </View>
1676
- </View>
1677
- )}
1678
- </View>
1679
- ) : (
1680
- <Observer>
1681
- {() => (
1682
- <View>
1683
- <View
1684
- style={{
1685
- backgroundColor: '#FFFFFF',
1686
- paddingHorizontal: 16,
1687
- paddingTop: 16,
1688
- borderRadius: 8,
1689
- borderWidth: 0.5,
1690
- borderColor: '#E0E0E0',
1691
- }}
1692
- >
1943
+ )}
1944
+ </View>
1945
+ ) : (
1946
+ <Observer>
1947
+ {() => (
1948
+ <View>
1693
1949
  <View
1694
1950
  style={{
1695
- flexDirection: 'row',
1696
- alignItems: 'center',
1951
+ backgroundColor: '#FFFFFF',
1952
+ paddingHorizontal: 16,
1953
+ paddingTop: 16,
1954
+ borderRadius: 8,
1955
+ borderWidth: 0.5,
1956
+ borderColor: '#E0E0E0',
1697
1957
  }}
1698
1958
  >
1699
- <Contract />
1700
- <View style={{ flex: 1, paddingLeft: 8 }}>
1701
- <MText style={commonStyles.textNormalBold}>
1702
- Đơn vay {item?.id}
1703
- </MText>
1704
- <MText style={commonStyles.textNormal}>
1705
- Số tiền vay (VND):{' '}
1706
- {item?.loanAmount
1707
- ? formatMoney(item?.loanAmount)
1708
- : 'Chưa xác định'}
1709
- </MText>
1959
+ <View
1960
+ style={{
1961
+ flexDirection: 'row',
1962
+ alignItems: 'center',
1963
+ }}
1964
+ >
1965
+ <Contract />
1966
+ <View style={{ flex: 1, paddingLeft: 8 }}>
1967
+ <MText
1968
+ style={commonStyles.textNormalBold}
1969
+ >
1970
+ Đơn vay {item?.id}
1971
+ </MText>
1972
+ <MText style={commonStyles.textNormal}>
1973
+ Số tiền vay (VND):{' '}
1974
+ {item?.loanAmount
1975
+ ? formatMoney(item?.loanAmount)
1976
+ : 'Chưa xác định'}
1977
+ </MText>
1978
+ </View>
1710
1979
  </View>
1711
- </View>
1712
- <View
1713
- style={{
1714
- height: 1,
1715
- backgroundColor: '#E0E0E0',
1716
- marginVertical: 16,
1717
- }}
1718
- />
1719
- <View
1720
- style={{
1721
- flexDirection: 'row',
1722
- justifyContent: 'space-between',
1723
- alignItems: 'center',
1724
- }}
1725
- >
1726
- <MText style={commonStyles.textNormal}>
1727
- Trạng thái
1728
- </MText>
1729
- <MText
1730
- style={[
1731
- commonStyles.textNormalBold,
1732
- { color: '#F05123' },
1733
- ]}
1980
+ <View
1981
+ style={{
1982
+ height: 1,
1983
+ backgroundColor: '#E0E0E0',
1984
+ marginVertical: 16,
1985
+ }}
1986
+ />
1987
+ <View
1988
+ style={{
1989
+ flexDirection: 'row',
1990
+ justifyContent: 'space-between',
1991
+ alignItems: 'center',
1992
+ }}
1734
1993
  >
1735
- {item?.loanStatus}
1736
- </MText>
1737
- </View>
1738
- <View
1739
- style={{
1740
- height: 0.5,
1741
- backgroundColor: '#E0E0E0',
1742
- marginVertical: 16,
1743
- }}
1744
- />
1745
- <View
1746
- style={{
1747
- flexDirection: 'row',
1748
- gap: 24,
1749
- }}
1750
- >
1751
- {!homeStore.checkEKYC[item?.id] && (
1752
- <TouchableOpacity
1753
- style={{ alignItems: 'center' }}
1754
- onPress={() => {
1755
- checkTerm(item, () => {
1756
- navigation.dispatch(
1757
- StackActions.push(
1758
- ScreenNames.NationalID,
1759
- {
1760
- loan: item,
1761
- reLoan: true,
1762
- }
1763
- )
1764
- );
1765
- });
1766
- }}
1994
+ <MText style={commonStyles.textNormal}>
1995
+ Trạng thái
1996
+ </MText>
1997
+ <MText
1998
+ style={[
1999
+ commonStyles.textNormalBold,
2000
+ { color: '#F05123' },
2001
+ ]}
1767
2002
  >
1768
- <AddInfo />
1769
- <MText
1770
- style={[
1771
- commonStyles.textNormal,
1772
- {
1773
- fontSize: 12,
1774
- fontWeight: '300',
1775
- marginTop: 8,
1776
- },
1777
- ]}
1778
- >
1779
- EKYC
1780
- </MText>
1781
- </TouchableOpacity>
1782
- )}
1783
- {/* Cập nhật thông tin với đơn ô tô digital topup */}
1784
- {item?.typeLoan === 4 &&
1785
- item?.productId === 8 ? (
1786
- <>
1787
- {item?.isUpdateInfoTopup && (
1788
- <TouchableOpacity
1789
- onPress={() => {
2003
+ {item?.loanStatus}
2004
+ </MText>
2005
+ </View>
2006
+ <View
2007
+ style={{
2008
+ height: 0.5,
2009
+ backgroundColor: '#E0E0E0',
2010
+ marginVertical: 16,
2011
+ }}
2012
+ />
2013
+ <View
2014
+ style={{
2015
+ flexDirection: 'row',
2016
+ gap: 24,
2017
+ }}
2018
+ >
2019
+ {!homeStore.checkEKYC[item?.id] && (
2020
+ <TouchableOpacity
2021
+ style={{ alignItems: 'center' }}
2022
+ onPress={() => {
2023
+ checkTerm(item, () => {
1790
2024
  navigation.dispatch(
1791
2025
  StackActions.push(
1792
- ScreenNames.UpdateLoan,
1793
- item
2026
+ ScreenNames.NationalID,
2027
+ {
2028
+ loan: item,
2029
+ reLoan: true,
2030
+ }
1794
2031
  )
1795
2032
  );
1796
- }}
1797
- style={{
1798
- alignItems: 'center',
1799
- }}
2033
+ });
2034
+ }}
2035
+ >
2036
+ <AddInfo />
2037
+ <MText
2038
+ style={[
2039
+ commonStyles.textNormal,
2040
+ {
2041
+ fontSize: 12,
2042
+ fontWeight: '300',
2043
+ marginTop: 8,
2044
+ },
2045
+ ]}
1800
2046
  >
1801
- <TopupSvg />
1802
- <MText
1803
- style={[
1804
- commonStyles.textNormal,
1805
- {
1806
- fontSize: 12,
1807
- fontWeight: '300',
1808
- marginTop: 8,
1809
- },
1810
- ]}
2047
+ EKYC
2048
+ </MText>
2049
+ </TouchableOpacity>
2050
+ )}
2051
+ {/* Cập nhật thông tin với đơn ô tô digital topup */}
2052
+ {item?.typeLoan === 4 &&
2053
+ item?.productId === 8 ? (
2054
+ <>
2055
+ {item?.isUpdateInfoTopup && (
2056
+ <TouchableOpacity
2057
+ onPress={() => {
2058
+ navigation.dispatch(
2059
+ StackActions.push(
2060
+ ScreenNames.UpdateLoan,
2061
+ item
2062
+ )
2063
+ );
2064
+ }}
2065
+ style={{
2066
+ alignItems: 'center',
2067
+ }}
1811
2068
  >
1812
- Cập nhật{'\n'}thông tin
1813
- </MText>
1814
- </TouchableOpacity>
1815
- )}
1816
- </>
1817
- ) : (
1818
- <></>
1819
- )}
2069
+ <TopupSvg />
2070
+ <MText
2071
+ style={[
2072
+ commonStyles.textNormal,
2073
+ {
2074
+ fontSize: 12,
2075
+ fontWeight: '300',
2076
+ marginTop: 8,
2077
+ },
2078
+ ]}
2079
+ >
2080
+ Cập nhật{'\n'}thông tin
2081
+ </MText>
2082
+ </TouchableOpacity>
2083
+ )}
2084
+ </>
2085
+ ) : (
2086
+ <></>
2087
+ )}
1820
2088
 
1821
- {/* -------------------------------------------------- */}
1822
- {item?.isVideoDebt && (
1823
- <TouchableOpacity
1824
- style={{
1825
- alignItems: 'center',
1826
- }}
1827
- onPress={() => {
1828
- checkTerm(item, () => {
1829
- navigation.dispatch(
1830
- StackActions.push(
1831
- ScreenNames.Video,
1832
- {
1833
- loan: item,
1834
- }
1835
- )
1836
- );
1837
- });
1838
- }}
1839
- >
1840
- <IconVideo />
1841
- <MText
1842
- style={[
1843
- commonStyles.textNormal,
1844
- {
1845
- fontSize: 12,
1846
- fontWeight: '300',
1847
- marginTop: 8,
1848
- },
1849
- ]}
2089
+ {/* -------------------------------------------------- */}
2090
+ {item?.isVideoDebt && (
2091
+ <TouchableOpacity
2092
+ style={{
2093
+ alignItems: 'center',
2094
+ }}
2095
+ onPress={() => {
2096
+ checkTerm(item, () => {
2097
+ navigation.dispatch(
2098
+ StackActions.push(
2099
+ ScreenNames.Video,
2100
+ {
2101
+ loan: item,
2102
+ }
2103
+ )
2104
+ );
2105
+ });
2106
+ }}
1850
2107
  >
1851
- Quay video
1852
- </MText>
1853
- </TouchableOpacity>
1854
- )}
1855
- {item?.typeLoan === 4 &&
1856
- item?.productId === 8 ? (
1857
- <>
1858
- {!item?.isUpdateInfoTopup &&
1859
- homeStore.checkEKYC[item?.id] && (
2108
+ <IconVideo />
2109
+ <MText
2110
+ style={[
2111
+ commonStyles.textNormal,
2112
+ {
2113
+ fontSize: 12,
2114
+ fontWeight: '300',
2115
+ marginTop: 8,
2116
+ },
2117
+ ]}
2118
+ >
2119
+ Quay video
2120
+ </MText>
2121
+ </TouchableOpacity>
2122
+ )}
2123
+ {item?.typeLoan === 4 &&
2124
+ item?.productId === 8 ? (
2125
+ <>
2126
+ {!item?.isUpdateInfoTopup &&
2127
+ homeStore.checkEKYC[item?.id] && (
2128
+ <TouchableOpacity
2129
+ style={{
2130
+ alignItems: 'center',
2131
+ }}
2132
+ onPress={() => {
2133
+ checkTerm(item, () => {
2134
+ signLoan(item);
2135
+ });
2136
+ }}
2137
+ >
2138
+ <IconSign2 />
2139
+ <MText
2140
+ style={[
2141
+ commonStyles.textNormal,
2142
+ {
2143
+ fontSize: 12,
2144
+ fontWeight: '300',
2145
+ marginTop: 8,
2146
+ },
2147
+ ]}
2148
+ >
2149
+ Ký HĐ
2150
+ </MText>
2151
+ </TouchableOpacity>
2152
+ )}
2153
+ </>
2154
+ ) : (
2155
+ <>
2156
+ {homeStore.checkEKYC[item?.id] ? (
1860
2157
  <TouchableOpacity
1861
2158
  style={{
1862
2159
  alignItems: 'center',
@@ -1881,22 +2178,43 @@ export const Home = observer(function Home() {
1881
2178
  Ký HĐ
1882
2179
  </MText>
1883
2180
  </TouchableOpacity>
2181
+ ) : (
2182
+ <View
2183
+ style={{
2184
+ alignItems: 'center',
2185
+ }}
2186
+ >
2187
+ {/* <SignDisable />
2188
+ <MText
2189
+ style={[
2190
+ commonStyles.textNormal,
2191
+ {
2192
+ fontSize: 12,
2193
+ fontWeight: '300',
2194
+ marginTop: 8,
2195
+ },
2196
+ ]}
2197
+ >
2198
+ Ký HĐ
2199
+ </MText> */}
2200
+ </View>
1884
2201
  )}
1885
- </>
1886
- ) : (
1887
- <>
1888
- {homeStore.checkEKYC[item?.id] ? (
2202
+ </>
2203
+ )}
2204
+ {item?.typeLoan &&
2205
+ item?.productId === 8 && (
1889
2206
  <TouchableOpacity
2207
+ onPress={() => {
2208
+ navigation.push(
2209
+ 'DigitalSchedulePayment',
2210
+ item
2211
+ );
2212
+ }}
1890
2213
  style={{
1891
2214
  alignItems: 'center',
1892
2215
  }}
1893
- onPress={() => {
1894
- checkTerm(item, () => {
1895
- signLoan(item);
1896
- });
1897
- }}
1898
2216
  >
1899
- <IconSign2 />
2217
+ <IconSchedule />
1900
2218
  <MText
1901
2219
  style={[
1902
2220
  commonStyles.textNormal,
@@ -1907,95 +2225,47 @@ export const Home = observer(function Home() {
1907
2225
  },
1908
2226
  ]}
1909
2227
  >
1910
-
2228
+ Lịch TT dự kiến
1911
2229
  </MText>
1912
2230
  </TouchableOpacity>
1913
- ) : (
1914
- <View
1915
- style={{
1916
- alignItems: 'center',
1917
- }}
1918
- >
1919
- {/* <SignDisable />
1920
- <MText
1921
- style={[
1922
- commonStyles.textNormal,
1923
- {
1924
- fontSize: 12,
1925
- fontWeight: '300',
1926
- marginTop: 8,
1927
- },
1928
- ]}
1929
- >
1930
- Ký HĐ
1931
- </MText> */}
1932
- </View>
1933
2231
  )}
1934
- </>
1935
- )}
1936
- {item?.typeLoan && item?.productId === 8 && (
1937
- <TouchableOpacity
1938
- onPress={() => {
1939
- navigation.push(
1940
- 'DigitalSchedulePayment',
1941
- item
1942
- );
1943
- }}
1944
- style={{
1945
- alignItems: 'center',
1946
- }}
1947
- >
1948
- <IconSchedule />
1949
- <MText
1950
- style={[
1951
- commonStyles.textNormal,
1952
- {
1953
- fontSize: 12,
1954
- fontWeight: '300',
1955
- marginTop: 8,
1956
- },
1957
- ]}
1958
- >
1959
- Lịch TT dự kiến
1960
- </MText>
1961
- </TouchableOpacity>
1962
- )}
1963
- </View>
1964
- <View
1965
- style={{
1966
- flexDirection: 'row',
1967
- alignItems: 'center',
1968
- backgroundColor: '#FBEFE7',
1969
- marginHorizontal: -16,
1970
- paddingVertical: 8,
1971
- marginTop: 16,
1972
- borderBottomRightRadius: 8,
1973
- borderBottomLeftRadius: 8,
1974
- paddingHorizontal: 16,
1975
- }}
1976
- >
1977
- <Info />
1978
- <MText
1979
- style={[
1980
- {
1981
- fontWeight: '300',
1982
- fontSize: 12,
1983
- fontStyle: 'italic',
1984
- color: '#333333',
1985
- marginLeft: 8,
1986
- },
1987
- ]}
2232
+ </View>
2233
+ <View
2234
+ style={{
2235
+ flexDirection: 'row',
2236
+ alignItems: 'center',
2237
+ backgroundColor: '#FBEFE7',
2238
+ marginHorizontal: -16,
2239
+ paddingVertical: 8,
2240
+ marginTop: 16,
2241
+ borderBottomRightRadius: 8,
2242
+ borderBottomLeftRadius: 8,
2243
+ paddingHorizontal: 16,
2244
+ }}
1988
2245
  >
1989
- Thực hiện đầy đủ các bước để giải ngân nhanh
1990
- nhất
1991
- </MText>
2246
+ <Info />
2247
+ <MText
2248
+ style={[
2249
+ {
2250
+ fontWeight: '300',
2251
+ fontSize: 12,
2252
+ fontStyle: 'italic',
2253
+ color: '#333333',
2254
+ marginLeft: 8,
2255
+ },
2256
+ ]}
2257
+ >
2258
+ Thực hiện đầy đủ các bước để giải ngân
2259
+ nhanh nhất
2260
+ </MText>
2261
+ </View>
1992
2262
  </View>
1993
2263
  </View>
1994
- </View>
1995
- )}
1996
- </Observer>
1997
- )}
1998
- </View>
2264
+ )}
2265
+ </Observer>
2266
+ )}
2267
+ </View>
2268
+ )}
1999
2269
  </View>
2000
2270
  ))}
2001
2271
  </View>