react-native-timacare 0.0.6 → 0.0.8

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 (190) hide show
  1. package/lib/commonjs/assets/icons/b1.svg +75 -0
  2. package/lib/commonjs/assets/icons/b2.svg +74 -0
  3. package/lib/commonjs/assets/icons/b3.svg +99 -0
  4. package/lib/commonjs/assets/icons/b4.svg +80 -0
  5. package/lib/commonjs/assets/icons/b5.svg +76 -0
  6. package/lib/commonjs/assets/icons/b6.svg +74 -0
  7. package/lib/commonjs/assets/icons/close.svg +6 -0
  8. package/lib/commonjs/assets/icons/close2.svg +6 -0
  9. package/lib/commonjs/assets/icons/guideline.svg +12 -0
  10. package/lib/commonjs/assets/icons/index.js +1 -1
  11. package/lib/commonjs/assets/icons/index.js.flow +127 -107
  12. package/lib/commonjs/assets/icons/index.js.map +1 -1
  13. package/lib/commonjs/assets/icons/line.svg +6 -0
  14. package/lib/commonjs/assets/img/b1.png +0 -0
  15. package/lib/commonjs/assets/img/b2.png +0 -0
  16. package/lib/commonjs/assets/img/b3.png +0 -0
  17. package/lib/commonjs/assets/img/b4.png +0 -0
  18. package/lib/commonjs/assets/img/b5.png +0 -0
  19. package/lib/commonjs/assets/img/b6.png +0 -0
  20. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  21. package/lib/commonjs/navigation/primary-navigator.js.flow +4 -1
  22. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  23. package/lib/commonjs/screens/full-submit/selfie.js +1 -1
  24. package/lib/commonjs/screens/full-submit/selfie.js.flow +7 -1
  25. package/lib/commonjs/screens/full-submit/selfie.js.map +1 -1
  26. package/lib/commonjs/screens/home/index.js +1 -1
  27. package/lib/commonjs/screens/home/index.js.flow +295 -534
  28. package/lib/commonjs/screens/home/index.js.map +1 -1
  29. package/lib/commonjs/screens/loginWithPassword/index.js +1 -1
  30. package/lib/commonjs/screens/loginWithPassword/index.js.flow +8 -6
  31. package/lib/commonjs/screens/loginWithPassword/index.js.map +1 -1
  32. package/lib/commonjs/screens/loginWithPassword/store.js +1 -1
  33. package/lib/commonjs/screens/loginWithPassword/store.js.flow +1 -1
  34. package/lib/commonjs/screens/loginWithPassword/store.js.map +1 -1
  35. package/lib/commonjs/screens/main/index.js +1 -1
  36. package/lib/commonjs/screens/main/index.js.flow +18 -70
  37. package/lib/commonjs/screens/main/index.js.map +1 -1
  38. package/lib/commonjs/screens/nationalID/index.js +1 -1
  39. package/lib/commonjs/screens/nationalID/index.js.flow +8 -18
  40. package/lib/commonjs/screens/nationalID/index.js.map +1 -1
  41. package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
  42. package/lib/commonjs/screens/nationalIDBack/index.js.flow +7 -1
  43. package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
  44. package/lib/commonjs/screens/otp/Store.js +1 -1
  45. package/lib/commonjs/screens/otp/Store.js.flow +1 -1
  46. package/lib/commonjs/screens/otp/Store.js.map +1 -1
  47. package/lib/commonjs/screens/payment-evidence/Guideline.js +2 -0
  48. package/lib/commonjs/screens/payment-evidence/Guideline.js.flow +117 -0
  49. package/lib/commonjs/screens/payment-evidence/Guideline.js.map +1 -0
  50. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js +2 -0
  51. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js.flow +131 -0
  52. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js.map +1 -0
  53. package/lib/commonjs/screens/payment-evidence/index.js +1 -1
  54. package/lib/commonjs/screens/payment-evidence/index.js.flow +22 -2
  55. package/lib/commonjs/screens/payment-evidence/index.js.map +1 -1
  56. package/lib/commonjs/screens/quick-submit/index.js +1 -1
  57. package/lib/commonjs/screens/quick-submit/index.js.flow +20 -15
  58. package/lib/commonjs/screens/quick-submit/index.js.map +1 -1
  59. package/lib/commonjs/screens/selfie/index.js +1 -1
  60. package/lib/commonjs/screens/selfie/index.js.flow +7 -1
  61. package/lib/commonjs/screens/selfie/index.js.map +1 -1
  62. package/lib/commonjs/screens/setPassword/store.js +1 -1
  63. package/lib/commonjs/screens/setPassword/store.js.flow +1 -3
  64. package/lib/commonjs/screens/setPassword/store.js.map +1 -1
  65. package/lib/commonjs/screens/splash/index.js +1 -1
  66. package/lib/commonjs/screens/splash/index.js.flow +5 -15
  67. package/lib/commonjs/screens/splash/index.js.map +1 -1
  68. package/lib/commonjs/services/api/api-config.js.flow +0 -19
  69. package/lib/commonjs/services/api/api-config.js.map +1 -1
  70. package/lib/commonjs/services/api/api.js +1 -1
  71. package/lib/commonjs/services/api/api.js.flow +4 -17
  72. package/lib/commonjs/services/api/api.js.map +1 -1
  73. package/lib/commonjs/services/reactotron/reactotron.js +1 -1
  74. package/lib/commonjs/services/reactotron/reactotron.js.flow +1 -1
  75. package/lib/commonjs/services/reactotron/reactotron.js.map +1 -1
  76. package/lib/module/assets/icons/b1.svg +75 -0
  77. package/lib/module/assets/icons/b2.svg +74 -0
  78. package/lib/module/assets/icons/b3.svg +99 -0
  79. package/lib/module/assets/icons/b4.svg +80 -0
  80. package/lib/module/assets/icons/b5.svg +76 -0
  81. package/lib/module/assets/icons/b6.svg +74 -0
  82. package/lib/module/assets/icons/close.svg +6 -0
  83. package/lib/module/assets/icons/close2.svg +6 -0
  84. package/lib/module/assets/icons/guideline.svg +12 -0
  85. package/lib/module/assets/icons/index.js +1 -1
  86. package/lib/module/assets/icons/index.js.map +1 -1
  87. package/lib/module/assets/icons/line.svg +6 -0
  88. package/lib/module/assets/img/b1.png +0 -0
  89. package/lib/module/assets/img/b2.png +0 -0
  90. package/lib/module/assets/img/b3.png +0 -0
  91. package/lib/module/assets/img/b4.png +0 -0
  92. package/lib/module/assets/img/b5.png +0 -0
  93. package/lib/module/assets/img/b6.png +0 -0
  94. package/lib/module/navigation/primary-navigator.js +1 -1
  95. package/lib/module/navigation/primary-navigator.js.map +1 -1
  96. package/lib/module/screens/full-submit/selfie.js +1 -1
  97. package/lib/module/screens/full-submit/selfie.js.map +1 -1
  98. package/lib/module/screens/home/index.js +1 -1
  99. package/lib/module/screens/home/index.js.map +1 -1
  100. package/lib/module/screens/loginWithPassword/index.js +1 -1
  101. package/lib/module/screens/loginWithPassword/index.js.map +1 -1
  102. package/lib/module/screens/loginWithPassword/store.js +1 -1
  103. package/lib/module/screens/loginWithPassword/store.js.map +1 -1
  104. package/lib/module/screens/main/index.js +1 -1
  105. package/lib/module/screens/main/index.js.map +1 -1
  106. package/lib/module/screens/nationalID/index.js +1 -1
  107. package/lib/module/screens/nationalID/index.js.map +1 -1
  108. package/lib/module/screens/nationalIDBack/index.js +1 -1
  109. package/lib/module/screens/nationalIDBack/index.js.map +1 -1
  110. package/lib/module/screens/otp/Store.js +1 -1
  111. package/lib/module/screens/otp/Store.js.map +1 -1
  112. package/lib/module/screens/payment-evidence/Guideline.js +2 -0
  113. package/lib/module/screens/payment-evidence/Guideline.js.map +1 -0
  114. package/lib/module/screens/payment-evidence/ModalGuideline.js +2 -0
  115. package/lib/module/screens/payment-evidence/ModalGuideline.js.map +1 -0
  116. package/lib/module/screens/payment-evidence/index.js +1 -1
  117. package/lib/module/screens/payment-evidence/index.js.map +1 -1
  118. package/lib/module/screens/quick-submit/index.js +1 -1
  119. package/lib/module/screens/quick-submit/index.js.map +1 -1
  120. package/lib/module/screens/selfie/index.js +1 -1
  121. package/lib/module/screens/selfie/index.js.map +1 -1
  122. package/lib/module/screens/setPassword/store.js +1 -1
  123. package/lib/module/screens/setPassword/store.js.map +1 -1
  124. package/lib/module/screens/splash/index.js +1 -1
  125. package/lib/module/screens/splash/index.js.map +1 -1
  126. package/lib/module/services/api/api-config.js.map +1 -1
  127. package/lib/module/services/api/api.js +1 -1
  128. package/lib/module/services/api/api.js.map +1 -1
  129. package/lib/module/services/reactotron/reactotron.js +1 -1
  130. package/lib/module/services/reactotron/reactotron.js.map +1 -1
  131. package/lib/typescript/assets/icons/index.d.ts +117 -107
  132. package/lib/typescript/assets/icons/index.d.ts.map +1 -1
  133. package/lib/typescript/navigation/primary-navigator.d.ts +1 -0
  134. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  135. package/lib/typescript/screens/full-submit/selfie.d.ts.map +1 -1
  136. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  137. package/lib/typescript/screens/loginWithPassword/index.d.ts.map +1 -1
  138. package/lib/typescript/screens/main/index.d.ts.map +1 -1
  139. package/lib/typescript/screens/nationalID/index.d.ts.map +1 -1
  140. package/lib/typescript/screens/nationalIDBack/index.d.ts.map +1 -1
  141. package/lib/typescript/screens/payment-evidence/Guideline.d.ts +2 -0
  142. package/lib/typescript/screens/payment-evidence/Guideline.d.ts.map +1 -0
  143. package/lib/typescript/screens/payment-evidence/ModalGuideline.d.ts +7 -0
  144. package/lib/typescript/screens/payment-evidence/ModalGuideline.d.ts.map +1 -0
  145. package/lib/typescript/screens/payment-evidence/index.d.ts.map +1 -1
  146. package/lib/typescript/screens/quick-submit/index.d.ts.map +1 -1
  147. package/lib/typescript/screens/selfie/index.d.ts.map +1 -1
  148. package/lib/typescript/screens/setPassword/store.d.ts.map +1 -1
  149. package/lib/typescript/screens/splash/index.d.ts.map +1 -1
  150. package/lib/typescript/services/api/api-config.d.ts +0 -12
  151. package/lib/typescript/services/api/api-config.d.ts.map +1 -1
  152. package/lib/typescript/services/api/api.d.ts +1 -11
  153. package/lib/typescript/services/api/api.d.ts.map +1 -1
  154. package/package.json +2 -1
  155. package/src/assets/icons/b1.svg +75 -0
  156. package/src/assets/icons/b2.svg +74 -0
  157. package/src/assets/icons/b3.svg +99 -0
  158. package/src/assets/icons/b4.svg +80 -0
  159. package/src/assets/icons/b5.svg +76 -0
  160. package/src/assets/icons/b6.svg +74 -0
  161. package/src/assets/icons/close.svg +6 -0
  162. package/src/assets/icons/close2.svg +6 -0
  163. package/src/assets/icons/guideline.svg +12 -0
  164. package/src/assets/icons/index.tsx +127 -107
  165. package/src/assets/icons/line.svg +6 -0
  166. package/src/assets/img/b1.png +0 -0
  167. package/src/assets/img/b2.png +0 -0
  168. package/src/assets/img/b3.png +0 -0
  169. package/src/assets/img/b4.png +0 -0
  170. package/src/assets/img/b5.png +0 -0
  171. package/src/assets/img/b6.png +0 -0
  172. package/src/navigation/primary-navigator.tsx +4 -1
  173. package/src/screens/full-submit/selfie.tsx +7 -1
  174. package/src/screens/home/index.tsx +295 -534
  175. package/src/screens/loginWithPassword/index.tsx +8 -6
  176. package/src/screens/loginWithPassword/store.tsx +1 -1
  177. package/src/screens/main/index.tsx +18 -70
  178. package/src/screens/nationalID/index.tsx +8 -18
  179. package/src/screens/nationalIDBack/index.tsx +7 -1
  180. package/src/screens/otp/Store.tsx +1 -1
  181. package/src/screens/payment-evidence/Guideline.tsx +117 -0
  182. package/src/screens/payment-evidence/ModalGuideline.tsx +131 -0
  183. package/src/screens/payment-evidence/index.tsx +22 -2
  184. package/src/screens/quick-submit/index.tsx +20 -15
  185. package/src/screens/selfie/index.tsx +7 -1
  186. package/src/screens/setPassword/store.tsx +1 -3
  187. package/src/screens/splash/index.tsx +5 -15
  188. package/src/services/api/api-config.ts +0 -19
  189. package/src/services/api/api.ts +4 -17
  190. package/src/services/reactotron/reactotron.ts +1 -1
@@ -9,6 +9,7 @@ import {
9
9
  RefreshControl,
10
10
  SafeAreaView,
11
11
  ScrollView,
12
+ StatusBar,
12
13
  TouchableOpacity,
13
14
  View,
14
15
  } from 'react-native';
@@ -24,10 +25,12 @@ import {
24
25
  AddInfo,
25
26
  AddInfoDisable,
26
27
  CIMBSmall,
28
+ CloseIcon,
27
29
  Contract,
28
30
  ContractActive,
29
31
  ContractTimeIcon,
30
32
  IconEviden,
33
+ IconNavClose,
31
34
  IconNotify,
32
35
  IconSchedule,
33
36
  IconSign2,
@@ -67,7 +70,6 @@ export const Home = observer(function Home() {
67
70
  const navigation = useNavigation();
68
71
  const [showModal, setShowModal] = useState(false);
69
72
  const onRefresh = () => {
70
- notificationStore.getNotification();
71
73
  homeStore.getListLoan();
72
74
  homeStore.getListLoanPending((loan) => {
73
75
  homeStore.getCheckEKYC({ loanBriefId: loan.id });
@@ -81,10 +83,6 @@ export const Home = observer(function Home() {
81
83
  }, []);
82
84
 
83
85
  useEffect(() => {
84
- // FullSubmitStore.getListJobTitle()
85
- // FullSubmitStore.getListSourceFund()
86
- // FullSubmitStore.getListStatusWorking()
87
- // QuickSubmitStore.getOccupation()
88
86
  FullSubmitStore.getTypeMerried();
89
87
  FullSubmitStore.getListBank();
90
88
  }, []);
@@ -109,47 +107,6 @@ export const Home = observer(function Home() {
109
107
  });
110
108
  };
111
109
 
112
- // const sendInfo = async () => {
113
- // const result = await Geolocation.requestAuthorization("always")
114
- // if (result === "granted") {
115
- // Geolocation.getCurrentPosition(
116
- // (position) => {
117
- // let deviceId = getUniqueId()
118
- // if (appStore.loanData.length > 0) {
119
- // axios
120
- // .post(
121
- // "https://gateway.tima-ai.dev/data-center/imei-customer/create",
122
- // {
123
- // loanBriefId: appStore.loanData[0]?.loanBriefId,
124
- // phone: appStore.phone,
125
- // imei: deviceId,
126
- // latitude: position.coords.latitude,
127
- // longtitude: position.coords.longitude,
128
- // loanStatus: appStore.loanData[0]?.status
129
- // },
130
- // {
131
- // headers: {
132
- // Authorization:
133
- // "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJpbWVpX2N1c3RvbWVyIiwiYXV0aG9yaXRpZXMiOlsiUk9MRV9kYXRhLWNlbnRlciJdLCJpYXQiOjE2NjMyMjk5MzYsImV4cCI6MzMxOTkyMjk5MzZ9.SgM9rnKIecfwe_4qYKBrPzQKUfueZhGip5Fj1iI0uoxDL_WCN_aU2VLzyHFAz0bMO6GwgsyNuH4jivJBO_totg",
134
- // },
135
- // },
136
- // )
137
- // .then((response) => console.log(response, "send Imei"))
138
- // }
139
- // },
140
- // (error) => {
141
- // // See error code charts below.
142
- // console.log(error.code, error.message)
143
- // },
144
- // { enableHighAccuracy: true, timeout: 15000, maximumAge: 10000 },
145
- // )
146
- // }
147
- // }
148
-
149
- // useEffect(() => {
150
- // sendInfo()
151
- // }, [])
152
-
153
110
  const requestPermissions = () => {
154
111
  request(
155
112
  Platform.OS === 'android'
@@ -258,6 +215,7 @@ export const Home = observer(function Home() {
258
215
  <View
259
216
  style={[commonStyles.fill, { zIndex: 1, backgroundColor: '#FFFFFF' }]}
260
217
  >
218
+ <StatusBar barStyle={'light-content'} />
261
219
  {homeStore.isLoading ? (
262
220
  <View
263
221
  style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}
@@ -266,64 +224,45 @@ export const Home = observer(function Home() {
266
224
  </View>
267
225
  ) : (
268
226
  <>
269
- <SafeAreaView style={{ backgroundColor: '#FFFFFF' }}>
270
- <View
271
- style={{
272
- flexDirection: 'row',
273
- paddingHorizontal: 16,
274
- marginTop: 10,
275
- justifyContent: 'space-between',
276
- }}
277
- >
278
- <View style={{ flexDirection: 'row' }}>
279
- <TimaNormal />
280
- <View style={{ marginLeft: 8 }}>
281
- <MText
282
- style={[commonStyles.textNormalBold, { fontSize: 16 }]}
283
- >
284
- Tima Care
285
- </MText>
286
- <MText style={[commonStyles.textNormal, { fontSize: 12 }]}>
287
- Chúc bạn một ngày vui vẻ!
288
- </MText>
289
- </View>
290
- </View>
291
- <TouchableOpacity
292
- onPress={() =>
293
- navigation.dispatch(
294
- StackActions.push(ScreenNames.Notification)
295
- )
296
- }
227
+ <SafeAreaView>
228
+ <LinearGradient colors={['#FF8E4F', '#EF592E']}>
229
+ <View
230
+ style={{
231
+ flexDirection: 'row',
232
+ justifyContent: 'space-between',
233
+ paddingHorizontal: 16,
234
+ paddingVertical: 16,
235
+ alignItems: 'center',
236
+ }}
297
237
  >
298
- <IconNotify />
299
- <View
238
+ <MText
300
239
  style={{
301
- position: 'absolute',
302
- backgroundColor: '#FB3F2D',
303
- borderRadius: 50,
304
- width: 18,
305
- height: 18,
306
- alignItems: 'center',
240
+ fontWeight: 'bold',
241
+ color: 'white',
242
+ fontSize: 16,
243
+ }}
244
+ >
245
+ Vay nhanh 24/7
246
+ </MText>
247
+ <TouchableOpacity
248
+ style={{
249
+ width: 32,
250
+ height: 32,
251
+ borderRadius: 20,
307
252
  justifyContent: 'center',
308
- right: -8,
309
- top: -8,
253
+ alignItems: 'center',
254
+ borderWidth: 1,
255
+ borderColor: 'white',
256
+ }}
257
+ onPress={() => {
258
+ navigation.push(ScreenNames.PaymentEvidence);
310
259
  }}
311
260
  >
312
- <MText
313
- style={{
314
- color: 'white',
315
- fontSize: notificationStore.data.length > 10 ? 8 : 12,
316
- }}
317
- >
318
- {notificationStore.data.length > 10
319
- ? '10+'
320
- : notificationStore.data.length}
321
- </MText>
322
- </View>
323
- </TouchableOpacity>
324
- </View>
261
+ <CloseIcon />
262
+ </TouchableOpacity>
263
+ </View>
264
+ </LinearGradient>
325
265
  </SafeAreaView>
326
-
327
266
  <ScrollView
328
267
  refreshControl={
329
268
  <RefreshControl
@@ -333,15 +272,6 @@ export const Home = observer(function Home() {
333
272
  }
334
273
  style={{ flex: 1, marginBottom: 16 }}
335
274
  >
336
- <View style={{ marginTop: 16 }}>
337
- <SliderBox
338
- images={listBanners}
339
- autoplay
340
- resizeMethod={'resize'}
341
- resizeMode={'contain'}
342
- ImageComponentStyle={{ borderRadius: 15, width: '92%' }}
343
- />
344
- </View>
345
275
  <View
346
276
  style={[
347
277
  commonStyles.fill,
@@ -350,9 +280,9 @@ export const Home = observer(function Home() {
350
280
  >
351
281
  <View>
352
282
  <MText
353
- style={{ fontSize: 16, fontWeight: '600', marginBottom: 16 }}
283
+ style={{ fontSize: 16, fontWeight: 'bold', marginBottom: 16 }}
354
284
  >
355
- Đăng đơn mới
285
+ Danh sách đơn mới
356
286
  </MText>
357
287
  {!homeStore.listLoanPending ? (
358
288
  <View style={{ alignItems: 'center', marginTop: 20 }}>
@@ -364,470 +294,301 @@ export const Home = observer(function Home() {
364
294
  <>
365
295
  {homeStore.listLoanPending &&
366
296
  homeStore.listLoanPending?.isPipelineCIMB ? (
367
- <View>
368
- {homeStore.listLoanPending?.loanStatus !== null &&
369
- homeStore.listLoanPending?.loanStatus !== '' ? (
370
- <View
371
- style={{
372
- backgroundColor: '#FFFFFF',
373
- paddingHorizontal: 16,
374
- paddingTop: 16,
375
- borderRadius: 8,
376
- borderWidth: 0.5,
377
- borderColor: '#E0E0E0',
378
- }}
297
+ <View
298
+ style={{
299
+ backgroundColor: '#FFFFFF',
300
+ paddingHorizontal: 16,
301
+ paddingTop: 16,
302
+ borderRadius: 8,
303
+ borderWidth: 0.5,
304
+ borderColor: '#E0E0E0',
305
+ }}
306
+ >
307
+ <View
308
+ style={{
309
+ flexDirection: 'row',
310
+ alignItems: 'center',
311
+ }}
312
+ >
313
+ <Contract />
314
+ <View style={{ flex: 1, paddingLeft: 8 }}>
315
+ <MText style={commonStyles.textNormalBold}>
316
+ Mã Đơn vay-{homeStore.listLoanPending?.id}
317
+ </MText>
318
+ <MText style={commonStyles.textNormal}>
319
+ Số tiền vay (VND):{' '}
320
+ {homeStore.listLoanPending?.loanAmountOffer
321
+ ? formatMoney(
322
+ homeStore.listLoanPending?.loanAmountOffer
323
+ )
324
+ : 'Chưa xác định'}
325
+ </MText>
326
+ </View>
327
+ </View>
328
+ <View
329
+ style={{
330
+ height: 1,
331
+ backgroundColor: '#E0E0E0',
332
+ marginVertical: 16,
333
+ }}
334
+ />
335
+ <View
336
+ style={{
337
+ flexDirection: 'row',
338
+ justifyContent: 'space-between',
339
+ }}
340
+ >
341
+ <MText style={commonStyles.textNormal}>
342
+ Trạng thái
343
+ </MText>
344
+ <MText
345
+ style={[
346
+ commonStyles.textNormalBold,
347
+ { color: '#F05123' },
348
+ ]}
379
349
  >
380
- <View
381
- style={{
382
- flexDirection: 'row',
383
- alignItems: 'center',
384
- }}
385
- >
386
- <Contract />
387
- <View style={{ flex: 1, paddingLeft: 8 }}>
388
- <MText style={commonStyles.textNormalBold}>
389
- Mã Đơn vay-{homeStore.listLoanPending?.id}
390
- </MText>
391
- <MText style={commonStyles.textNormal}>
392
- Số tiền vay (VND):{' '}
393
- {homeStore.listLoanPending?.loanAmountOffer
394
- ? formatMoney(
395
- homeStore.listLoanPending
396
- ?.loanAmountOffer
397
- )
398
- : 'Chưa xác định'}
399
- </MText>
400
- </View>
401
- </View>
402
- <View
403
- style={{
404
- height: 1,
405
- backgroundColor: '#E0E0E0',
406
- marginVertical: 16,
407
- }}
408
- />
409
- <View
410
- style={{
411
- flexDirection: 'row',
412
- justifyContent: 'space-between',
350
+ {homeStore?.listLoanPending?.loanStatus}
351
+ </MText>
352
+ </View>
353
+ <View
354
+ style={{
355
+ height: 0.5,
356
+ backgroundColor: '#E0E0E0',
357
+ marginVertical: 16,
358
+ }}
359
+ />
360
+ <View style={{ flexDirection: 'row' }}>
361
+ {homeStore?.listLoanPending?.isUpdateLoan ||
362
+ homeStore?.listLoanPending?.isUpdateInformation ? (
363
+ <TouchableOpacity
364
+ style={{ alignItems: 'center' }}
365
+ onPress={() => {
366
+ if (
367
+ homeStore.listLoanPending?.loanStatus ===
368
+ null ||
369
+ homeStore.listLoanPending?.loanStatus === ''
370
+ ) {
371
+ navigation.dispatch(
372
+ StackActions.push(ScreenNames.CIMBxTima, {
373
+ loan: homeStore.listLoanPending,
374
+ })
375
+ );
376
+ } else if (
377
+ homeStore.listLoanPending?.isUpdateLoan
378
+ ) {
379
+ navigation.dispatch(
380
+ StackActions.push(ScreenNames.CimbSelfie, {
381
+ loan: homeStore.listLoanPending,
382
+ })
383
+ );
384
+ } else {
385
+ navigation.dispatch(
386
+ StackActions.push(ScreenNames.QuickSubmit, {
387
+ loan: homeStore.listLoanPending,
388
+ })
389
+ );
390
+ }
413
391
  }}
414
392
  >
415
- <MText style={commonStyles.textNormal}>
416
- Trạng thái
393
+ <AddInfo />
394
+ <MText
395
+ style={[
396
+ commonStyles.textNormal,
397
+ {
398
+ fontSize: 12,
399
+ fontWeight: '300',
400
+ marginTop: 8,
401
+ textAlign: 'center',
402
+ },
403
+ ]}
404
+ >
405
+ Hoàn thiện{'\n'}cung cấp thông tin
417
406
  </MText>
407
+ </TouchableOpacity>
408
+ ) : (
409
+ <View style={{ alignItems: 'center' }}>
410
+ <AddInfoDisable />
418
411
  <MText
419
412
  style={[
420
- commonStyles.textNormalBold,
421
- { color: '#F05123' },
413
+ commonStyles.textNormal,
414
+ {
415
+ fontSize: 12,
416
+ fontWeight: '300',
417
+ marginTop: 8,
418
+ textAlign: 'center',
419
+ },
422
420
  ]}
423
421
  >
424
- {homeStore?.listLoanPending?.loanStatus}
422
+ Hoàn thiện{'\n'}cung cấp thông tin
425
423
  </MText>
426
424
  </View>
427
- <View
428
- style={{
429
- height: 0.5,
430
- backgroundColor: '#E0E0E0',
431
- marginVertical: 16,
432
- }}
433
- />
434
- <View style={{ flexDirection: 'row' }}>
435
- {homeStore?.listLoanPending?.isUpdateLoan ||
436
- homeStore?.listLoanPending
437
- ?.isUpdateInformation ? (
438
- <TouchableOpacity
439
- style={{ alignItems: 'center' }}
440
- onPress={() => {
441
- if (
442
- homeStore.listLoanPending?.isUpdateLoan
443
- ) {
444
- navigation.dispatch(
445
- StackActions.push(
446
- ScreenNames.CimbSelfie,
447
- {
448
- loan: homeStore.listLoanPending,
449
- }
450
- )
451
- );
452
- } else {
453
- navigation.dispatch(
454
- StackActions.push(
455
- ScreenNames.QuickSubmit,
456
- {
457
- loan: homeStore.listLoanPending,
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
- </TouchableOpacity>
479
- ) : (
480
- <View style={{ alignItems: 'center' }}>
481
- <AddInfoDisable />
482
- <MText
483
- style={[
484
- commonStyles.textNormal,
485
- {
486
- fontSize: 12,
487
- fontWeight: '300',
488
- marginTop: 8,
489
- textAlign: 'center',
490
- },
491
- ]}
492
- >
493
- Hoàn thiện{'\n'}cung cấp thông tin
494
- </MText>
495
- </View>
496
- )}
497
- {homeStore.listLoanPending?.isSignContract && (
498
- <TouchableOpacity
499
- style={{
500
- alignItems: 'center',
501
- marginLeft: 20,
502
- }}
503
- onPress={() => {
504
- if (
505
- homeStore.listLoanPending?.urlSignContract
506
- ) {
507
- navigation.dispatch(
508
- StackActions.push(
509
- ScreenNames.CIMBSign,
510
- {
511
- url: homeStore.listLoanPending
512
- ?.urlSignContract,
513
- }
514
- )
515
- );
516
- } else {
517
- Alert.alert(
518
- 'Thông báo',
519
- 'Bạn chưa thể ký hợp đồng bây giờ?'
520
- );
521
- }
522
- }}
523
- >
524
- <IconSign2 />
525
- <MText
526
- style={[
527
- commonStyles.textNormal,
528
- {
529
- fontSize: 12,
530
- fontWeight: '300',
531
- marginTop: 8,
532
- },
533
- ]}
534
- >
535
- Ký hợp đồng
536
- </MText>
537
- </TouchableOpacity>
538
- )}
539
- {homeStore.listLoanPending
540
- ?.isSignContractTima && (
541
- <TouchableOpacity
542
- style={{
543
- alignItems: 'center',
544
- marginLeft: 20,
545
- }}
546
- onPress={() => {
547
- navigation.dispatch(
548
- StackActions.push(
549
- ScreenNames.ViewContract,
550
- {
551
- loan: homeStore.listLoanPending,
552
- }
553
- )
554
- );
555
- }}
556
- >
557
- <ContractTimeIcon />
558
- <MText
559
- style={[
560
- commonStyles.textNormal,
561
- {
562
- fontSize: 12,
563
- fontWeight: '300',
564
- marginTop: 8,
565
- textAlign: 'center',
566
- },
567
- ]}
568
- >
569
- Hợp đồng{'\n'}dịch vụ
570
- </MText>
571
- </TouchableOpacity>
572
- )}
573
- {homeStore.listLoanPending
574
- ?.paymentEvidenceUrl && (
575
- <TouchableOpacity
576
- style={{
577
- alignItems: 'center',
578
- marginLeft: 20,
579
- }}
580
- onPress={() => {
581
- navigation.dispatch(
582
- StackActions.push(
583
- ScreenNames.PaymentEvidence,
584
- {
585
- url: homeStore.listLoanPending
586
- ?.paymentEvidenceUrl,
587
- }
588
- )
589
- );
590
- }}
591
- >
592
- <IconEviden />
593
- <MText
594
- style={[
595
- commonStyles.textNormal,
596
- {
597
- fontSize: 12,
598
- fontWeight: '300',
599
- marginTop: 8,
600
- textAlign: 'center',
601
- },
602
- ]}
603
- >
604
- Mục đích {'\n'}sử dụng
605
- </MText>
606
- </TouchableOpacity>
607
- )}
608
- {homeStore.listLoanPending?.showPaymentPlan && (
609
- <TouchableOpacity
610
- style={{
611
- alignItems: 'center',
612
- marginLeft: 20,
613
- }}
614
- onPress={() => {
615
- navigation.dispatch(
616
- StackActions.push(
617
- ScreenNames.SchedulePayment,
618
- {
619
- loan: homeStore.listLoanPending,
620
- }
621
- )
622
- );
623
- }}
624
- >
625
- <IconSchedule />
626
- <MText
627
- style={[
628
- commonStyles.textNormal,
629
- {
630
- fontSize: 12,
631
- fontWeight: '300',
632
- marginTop: 8,
633
- },
634
- ]}
635
- >
636
- Lịch dự kiến
637
- </MText>
638
- </TouchableOpacity>
639
- )}
640
- </View>
641
- <View
425
+ )}
426
+ {homeStore.listLoanPending?.isSignContract && (
427
+ <TouchableOpacity
642
428
  style={{
643
- flexDirection: 'row',
644
429
  alignItems: 'center',
645
- backgroundColor: '#FBEFE7',
646
- marginHorizontal: -16,
647
- paddingVertical: 8,
648
- marginTop: 16,
649
- borderBottomRightRadius: 8,
650
- borderBottomLeftRadius: 8,
651
- paddingHorizontal: 16,
430
+ marginLeft: 20,
431
+ }}
432
+ onPress={() => {
433
+ if (
434
+ homeStore.listLoanPending?.urlSignContract
435
+ ) {
436
+ navigation.dispatch(
437
+ StackActions.push(ScreenNames.CIMBSign, {
438
+ url: homeStore.listLoanPending
439
+ ?.urlSignContract,
440
+ })
441
+ );
442
+ } else {
443
+ Alert.alert(
444
+ 'Thông báo',
445
+ 'Bạn chưa thể ký hợp đồng bây giờ?'
446
+ );
447
+ }
652
448
  }}
653
449
  >
654
- <Info />
450
+ <IconSign2 />
655
451
  <MText
656
452
  style={[
453
+ commonStyles.textNormal,
657
454
  {
455
+ fontSize: 12,
658
456
  fontWeight: '300',
659
- fontSize: 10,
660
- fontStyle: 'italic',
661
- color: '#333333',
662
- marginLeft: 8,
457
+ marginTop: 8,
663
458
  },
664
459
  ]}
665
460
  >
666
- {homeStore.listLoanPending?.suggestion
667
- ? homeStore.listLoanPending?.suggestion
668
- : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
461
+ Ký hợp đồng
669
462
  </MText>
670
- </View>
671
- </View>
672
- ) : (
673
- // <View
674
- // style={{
675
- // borderWidth: 0.5,
676
- // borderRadius: 8,
677
- // borderColor: "#EF4123",
678
- // }}
679
- // >
680
- // <View
681
- // style={{
682
- // flexDirection: "row",
683
- // justifyContent: "space-between",
684
- // padding: 16,
685
- // }}
686
- // >
687
- // <View>
688
- // <MText style={{ color: "#333333" }}>
689
- // Bạn đủ điều kiện vay tiêu dùng theo{"\n"}thông tin tài sản sở hữu
690
- // (Xe máy/ Ô tô)
691
- // </MText>
692
- // <MText
693
- // style={{
694
- // color: "#EF4123",
695
- // fontSize: 16,
696
- // fontWeight: "bold",
697
- // marginTop: 8,
698
- // }}
699
- // >
700
- // {/* {homeStore?.listLoanPending?.productCredit}
701
- // {"\n"} */}
702
- // {formatMoney(homeStore.listLoanPending?.loanAmount)} VND
703
- // </MText>
704
- // <TouchableOpacity
705
- // onPress={() => {
706
- // navigation.dispatch(StackActions.push(ScreenNames.CIMBxTima))
707
- // }}
708
- // >
709
- // <LinearGradient
710
- // colors={["#FF7A00", "#EF4123"]}
711
- // style={{
712
- // backgroundColor: "#F36D21",
713
- // marginTop: 20,
714
- // alignItems: "center",
715
- // borderRadius: 30,
716
- // paddingVertical: 8,
717
- // }}
718
- // >
719
- // <MText style={{ color: "#FFFFFF" }}>Hoàn thiện hồ sơ</MText>
720
- // </LinearGradient>
721
- // </TouchableOpacity>
722
- // </View>
723
- // <View>
724
- // <Image source={require("./loan.png")} />
725
- // </View>
726
- // </View>
727
- // <View style={{ height: 0.5, backgroundColor: "#EF4123" }} />
728
- // <View
729
- // style={{
730
- // backgroundColor: "#FFF8F3",
731
- // borderBottomLeftRadius: 8,
732
- // borderBottomRightRadius: 8,
733
- // paddingVertical: 8,
734
- // paddingHorizontal: 16,
735
- // flexDirection: "row",
736
- // alignItems: "center",
737
- // alignContent: "center",
738
- // }}
739
- // >
740
- // <MText style={{ fontSize: 12, color: "#333333" }}>
741
- // Sản phẩm vay tiêu dùng hợp tác giữa{" "}
742
- // </MText>
743
- // <LogoSmall />
744
- // <MText style={{ fontSize: 12, color: "#333333" }}> và </MText>
745
- // <CIMBSmall />
746
- // </View>
747
- // </View>
748
-
749
- <ImageBackground
750
- source={require('../../assets/img/bann.png')}
751
- style={{ flex: 1, padding: 16 }}
752
- resizeMode="cover"
753
- height={220}
754
- borderRadius={8}
755
- >
756
- <MText
757
- style={{
758
- color: '#333333',
759
- fontWeight: 'bold',
760
- fontSize: 12,
761
- }}
762
- >
763
- BẠN ĐỦ ĐIỀU KIỆN VAY TIÊU DÙNG{'\n'}THEO THÔNG TIN
764
- TÀI SẢN SỞ HỮU
765
- {'\n'}
766
- (XE MÁY/ Ô TÔ)
767
- </MText>
768
- <MText
463
+ </TouchableOpacity>
464
+ )}
465
+ {homeStore.listLoanPending?.isSignContractTima && (
466
+ <TouchableOpacity
769
467
  style={{
770
- marginTop: 12,
771
- fontSize: 24,
772
- fontWeight: 'bold',
773
- color: '#EF4123',
468
+ alignItems: 'center',
469
+ marginLeft: 20,
774
470
  }}
775
- >
776
- {formatMoney(
777
- homeStore.listLoanPending?.loanAmount
778
- )}{' '}
779
- VND
780
- </MText>
781
- <TouchableOpacity
782
471
  onPress={() => {
783
472
  navigation.dispatch(
784
- StackActions.push(ScreenNames.CIMBxTima, {
473
+ StackActions.push(ScreenNames.ViewContract, {
785
474
  loan: homeStore.listLoanPending,
786
475
  })
787
476
  );
788
477
  }}
789
478
  >
790
- <LinearGradient
791
- colors={['#FF7A00', '#EF4123']}
792
- style={{
793
- backgroundColor: '#F36D21cd ',
794
- marginTop: 12,
795
- alignItems: 'center',
796
- borderRadius: 30,
797
- paddingVertical: 10,
798
- width: '50%',
799
- }}
479
+ <ContractTimeIcon />
480
+ <MText
481
+ style={[
482
+ commonStyles.textNormal,
483
+ {
484
+ fontSize: 12,
485
+ fontWeight: '300',
486
+ marginTop: 8,
487
+ textAlign: 'center',
488
+ },
489
+ ]}
800
490
  >
801
- <MText
802
- style={{
803
- color: '#FFFFFF',
804
- fontWeight: 'bold',
805
- }}
806
- >
807
- Hoàn thiện hồ sơ
808
- </MText>
809
- </LinearGradient>
491
+ Hợp đồng{'\n'}dịch vụ
492
+ </MText>
810
493
  </TouchableOpacity>
811
- <View
494
+ )}
495
+ {homeStore.listLoanPending?.paymentEvidenceUrl && (
496
+ <TouchableOpacity
812
497
  style={{
813
- flexDirection: 'row',
814
498
  alignItems: 'center',
815
- alignContent: 'center',
816
- marginTop: 16,
499
+ marginLeft: 20,
500
+ }}
501
+ onPress={() => {
502
+ navigation.dispatch(
503
+ StackActions.push(
504
+ ScreenNames.PaymentEvidence,
505
+ {
506
+ url: homeStore.listLoanPending
507
+ ?.paymentEvidenceUrl,
508
+ }
509
+ )
510
+ );
817
511
  }}
818
512
  >
819
- <MText style={{ fontSize: 10, color: '#333333' }}>
820
- SẢN PHẨM VAY TIÊU DÙNG HỢP TÁC GIỮA{' '}
513
+ <IconEviden />
514
+ <MText
515
+ style={[
516
+ commonStyles.textNormal,
517
+ {
518
+ fontSize: 12,
519
+ fontWeight: '300',
520
+ marginTop: 8,
521
+ textAlign: 'center',
522
+ },
523
+ ]}
524
+ >
525
+ Mục đích {'\n'}sử dụng
821
526
  </MText>
822
- <LogoSmall />
823
- <MText style={{ fontSize: 12, color: '#333333' }}>
824
- {' '}
825
- VÀ{' '}
527
+ </TouchableOpacity>
528
+ )}
529
+ {homeStore.listLoanPending?.showPaymentPlan && (
530
+ <TouchableOpacity
531
+ style={{
532
+ alignItems: 'center',
533
+ marginLeft: 20,
534
+ }}
535
+ onPress={() => {
536
+ navigation.dispatch(
537
+ StackActions.push(
538
+ ScreenNames.SchedulePayment,
539
+ {
540
+ loan: homeStore.listLoanPending,
541
+ }
542
+ )
543
+ );
544
+ }}
545
+ >
546
+ <IconSchedule />
547
+ <MText
548
+ style={[
549
+ commonStyles.textNormal,
550
+ {
551
+ fontSize: 12,
552
+ fontWeight: '300',
553
+ marginTop: 8,
554
+ },
555
+ ]}
556
+ >
557
+ Lịch dự kiến
826
558
  </MText>
827
- <CIMBSmall />
828
- </View>
829
- </ImageBackground>
830
- )}
559
+ </TouchableOpacity>
560
+ )}
561
+ </View>
562
+ <View
563
+ style={{
564
+ flexDirection: 'row',
565
+ alignItems: 'center',
566
+ backgroundColor: '#FBEFE7',
567
+ marginHorizontal: -16,
568
+ paddingVertical: 8,
569
+ marginTop: 16,
570
+ borderBottomRightRadius: 8,
571
+ borderBottomLeftRadius: 8,
572
+ paddingHorizontal: 16,
573
+ }}
574
+ >
575
+ <Info />
576
+ <MText
577
+ style={[
578
+ {
579
+ fontWeight: '300',
580
+ fontSize: 10,
581
+ fontStyle: 'italic',
582
+ color: '#333333',
583
+ marginLeft: 8,
584
+ },
585
+ ]}
586
+ >
587
+ {homeStore.listLoanPending?.suggestion
588
+ ? homeStore.listLoanPending?.suggestion
589
+ : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
590
+ </MText>
591
+ </View>
831
592
  </View>
832
593
  ) : (
833
594
  <View