react-native-timacare 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/assets/icons/index.js +1 -1
- package/lib/commonjs/assets/icons/index.js.flow +2 -0
- package/lib/commonjs/assets/icons/index.js.map +1 -1
- package/lib/commonjs/assets/icons/update.svg +5 -0
- package/lib/commonjs/screens/digital-lending/Step1.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step1.js.flow +80 -71
- package/lib/commonjs/screens/digital-lending/Step1.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step2.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step2.js.flow +3 -0
- package/lib/commonjs/screens/digital-lending/Step2.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step3.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step3.js.flow +4 -0
- package/lib/commonjs/screens/digital-lending/Step3.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step4.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step4.js.flow +1 -0
- package/lib/commonjs/screens/digital-lending/Step4.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step6.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step6.js.flow +4 -1
- package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +211 -51
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/module/assets/icons/index.js +1 -1
- package/lib/module/assets/icons/index.js.map +1 -1
- package/lib/module/assets/icons/update.svg +5 -0
- package/lib/module/screens/digital-lending/Step1.js +1 -1
- package/lib/module/screens/digital-lending/Step1.js.map +1 -1
- package/lib/module/screens/digital-lending/Step2.js +1 -1
- package/lib/module/screens/digital-lending/Step2.js.map +1 -1
- package/lib/module/screens/digital-lending/Step3.js +1 -1
- package/lib/module/screens/digital-lending/Step3.js.map +1 -1
- package/lib/module/screens/digital-lending/Step4.js +1 -1
- package/lib/module/screens/digital-lending/Step4.js.map +1 -1
- package/lib/module/screens/digital-lending/Step6.js +1 -1
- package/lib/module/screens/digital-lending/Step6.js.map +1 -1
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/typescript/assets/icons/index.d.ts +2 -1
- package/lib/typescript/assets/icons/index.d.ts.map +1 -1
- package/lib/typescript/screens/digital-lending/Step1.d.ts.map +1 -1
- package/lib/typescript/screens/digital-lending/Step2.d.ts.map +1 -1
- package/lib/typescript/screens/digital-lending/Step3.d.ts.map +1 -1
- package/lib/typescript/screens/digital-lending/Step4.d.ts.map +1 -1
- package/lib/typescript/screens/digital-lending/Step6.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/icons/index.tsx +2 -0
- package/src/assets/icons/update.svg +5 -0
- package/src/screens/digital-lending/Step1.tsx +80 -71
- package/src/screens/digital-lending/Step2.tsx +3 -0
- package/src/screens/digital-lending/Step3.tsx +4 -0
- package/src/screens/digital-lending/Step4.tsx +1 -0
- package/src/screens/digital-lending/Step6.tsx +4 -1
- package/src/screens/home/index.tsx +211 -51
|
@@ -47,6 +47,7 @@ import {
|
|
|
47
47
|
LogoSmall,
|
|
48
48
|
SignDisable,
|
|
49
49
|
TimaNormal,
|
|
50
|
+
UpdateIcon,
|
|
50
51
|
} from '../../assets/icons';
|
|
51
52
|
import Geolocation from 'react-native-geolocation-service';
|
|
52
53
|
import axios from 'axios';
|
|
@@ -1236,13 +1237,20 @@ export const Home = observer(function Home() {
|
|
|
1236
1237
|
<LinearGradient
|
|
1237
1238
|
style={{
|
|
1238
1239
|
height: 36,
|
|
1239
|
-
justifyContent: 'center',
|
|
1240
1240
|
borderRadius: 30,
|
|
1241
1241
|
paddingHorizontal: 20,
|
|
1242
|
+
flexDirection: 'row',
|
|
1243
|
+
alignItems: 'center',
|
|
1242
1244
|
}}
|
|
1243
1245
|
colors={['#FF8E4F', '#EF592E']}
|
|
1244
1246
|
>
|
|
1245
|
-
<
|
|
1247
|
+
<UpdateIcon />
|
|
1248
|
+
<MText
|
|
1249
|
+
style={{
|
|
1250
|
+
color: 'white',
|
|
1251
|
+
marginLeft: 10,
|
|
1252
|
+
}}
|
|
1253
|
+
>
|
|
1246
1254
|
Hoàn thiện hồ sơ
|
|
1247
1255
|
</MText>
|
|
1248
1256
|
</LinearGradient>
|
|
@@ -1259,30 +1267,19 @@ export const Home = observer(function Home() {
|
|
|
1259
1267
|
}}
|
|
1260
1268
|
/>
|
|
1261
1269
|
<View style={{ flexDirection: 'row' }}>
|
|
1262
|
-
{item?.
|
|
1263
|
-
item?.
|
|
1264
|
-
<
|
|
1270
|
+
{item?.loanStatus === null ||
|
|
1271
|
+
item?.loanStatus === '' ? (
|
|
1272
|
+
<MButton
|
|
1265
1273
|
style={{ alignItems: 'center' }}
|
|
1266
1274
|
onPress={() => {
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
);
|
|
1276
|
-
} else {
|
|
1277
|
-
navigation.dispatch(
|
|
1278
|
-
StackActions.push(
|
|
1279
|
-
ScreenNames.QuickSubmit,
|
|
1280
|
-
{
|
|
1281
|
-
loan: item,
|
|
1282
|
-
}
|
|
1283
|
-
)
|
|
1284
|
-
);
|
|
1285
|
-
}
|
|
1275
|
+
navigation.dispatch(
|
|
1276
|
+
StackActions.push(
|
|
1277
|
+
ScreenNames.CIMBxTima,
|
|
1278
|
+
{
|
|
1279
|
+
loan: item,
|
|
1280
|
+
}
|
|
1281
|
+
)
|
|
1282
|
+
);
|
|
1286
1283
|
}}
|
|
1287
1284
|
>
|
|
1288
1285
|
<AddInfo />
|
|
@@ -1300,30 +1297,81 @@ export const Home = observer(function Home() {
|
|
|
1300
1297
|
Hoàn thiện{'\n'}cung cấp thông
|
|
1301
1298
|
tin
|
|
1302
1299
|
</MText>
|
|
1303
|
-
</
|
|
1300
|
+
</MButton>
|
|
1304
1301
|
) : (
|
|
1305
|
-
<View
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
{
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1302
|
+
<View>
|
|
1303
|
+
{item?.isUpdateLoan ||
|
|
1304
|
+
item?.isUpdateInformation ? (
|
|
1305
|
+
<TouchableOpacity
|
|
1306
|
+
style={{
|
|
1307
|
+
alignItems: 'center',
|
|
1308
|
+
}}
|
|
1309
|
+
onPress={() => {
|
|
1310
|
+
if (item?.isUpdateLoan) {
|
|
1311
|
+
navigation.dispatch(
|
|
1312
|
+
StackActions.push(
|
|
1313
|
+
ScreenNames.CimbSelfie,
|
|
1314
|
+
{
|
|
1315
|
+
loan: item,
|
|
1316
|
+
}
|
|
1317
|
+
)
|
|
1318
|
+
);
|
|
1319
|
+
} else {
|
|
1320
|
+
navigation.dispatch(
|
|
1321
|
+
StackActions.push(
|
|
1322
|
+
ScreenNames.QuickSubmit,
|
|
1323
|
+
{
|
|
1324
|
+
loan: item,
|
|
1325
|
+
}
|
|
1326
|
+
)
|
|
1327
|
+
);
|
|
1328
|
+
}
|
|
1329
|
+
}}
|
|
1330
|
+
>
|
|
1331
|
+
<AddInfo />
|
|
1332
|
+
<MText
|
|
1333
|
+
style={[
|
|
1334
|
+
commonStyles.textNormal,
|
|
1335
|
+
{
|
|
1336
|
+
fontSize: 12,
|
|
1337
|
+
fontWeight: '300',
|
|
1338
|
+
marginTop: 8,
|
|
1339
|
+
textAlign: 'center',
|
|
1340
|
+
},
|
|
1341
|
+
]}
|
|
1342
|
+
>
|
|
1343
|
+
Hoàn thiện{'\n'}cung cấp
|
|
1344
|
+
thông tin
|
|
1345
|
+
</MText>
|
|
1346
|
+
</TouchableOpacity>
|
|
1347
|
+
) : (
|
|
1348
|
+
<View
|
|
1349
|
+
style={{
|
|
1350
|
+
alignItems: 'center',
|
|
1351
|
+
}}
|
|
1352
|
+
>
|
|
1353
|
+
<AddInfoDisable />
|
|
1354
|
+
<MText
|
|
1355
|
+
style={[
|
|
1356
|
+
commonStyles.textNormal,
|
|
1357
|
+
{
|
|
1358
|
+
fontSize: 12,
|
|
1359
|
+
fontWeight: '300',
|
|
1360
|
+
marginTop: 8,
|
|
1361
|
+
textAlign: 'center',
|
|
1362
|
+
},
|
|
1363
|
+
]}
|
|
1364
|
+
>
|
|
1365
|
+
Hoàn thiện{'\n'}cung cấp
|
|
1366
|
+
thông tin
|
|
1367
|
+
</MText>
|
|
1368
|
+
</View>
|
|
1369
|
+
)}
|
|
1323
1370
|
</View>
|
|
1324
1371
|
)}
|
|
1372
|
+
|
|
1325
1373
|
{item?.isSignContract && (
|
|
1326
|
-
<
|
|
1374
|
+
<MButton
|
|
1327
1375
|
style={{
|
|
1328
1376
|
alignItems: 'center',
|
|
1329
1377
|
marginLeft: 20,
|
|
@@ -1359,10 +1407,10 @@ export const Home = observer(function Home() {
|
|
|
1359
1407
|
>
|
|
1360
1408
|
Ký hợp đồng
|
|
1361
1409
|
</MText>
|
|
1362
|
-
</
|
|
1410
|
+
</MButton>
|
|
1363
1411
|
)}
|
|
1364
1412
|
{item?.isSignContractTima && (
|
|
1365
|
-
<
|
|
1413
|
+
<MButton
|
|
1366
1414
|
style={{
|
|
1367
1415
|
alignItems: 'center',
|
|
1368
1416
|
marginLeft: 20,
|
|
@@ -1392,10 +1440,10 @@ export const Home = observer(function Home() {
|
|
|
1392
1440
|
>
|
|
1393
1441
|
Hợp đồng{'\n'}dịch vụ
|
|
1394
1442
|
</MText>
|
|
1395
|
-
</
|
|
1443
|
+
</MButton>
|
|
1396
1444
|
)}
|
|
1397
1445
|
{item?.paymentEvidenceUrl && (
|
|
1398
|
-
<
|
|
1446
|
+
<MButton
|
|
1399
1447
|
style={{
|
|
1400
1448
|
alignItems: 'center',
|
|
1401
1449
|
marginLeft: 20,
|
|
@@ -1425,10 +1473,10 @@ export const Home = observer(function Home() {
|
|
|
1425
1473
|
>
|
|
1426
1474
|
Mục đích {'\n'}sử dụng
|
|
1427
1475
|
</MText>
|
|
1428
|
-
</
|
|
1476
|
+
</MButton>
|
|
1429
1477
|
)}
|
|
1430
1478
|
{item?.showPaymentPlan && (
|
|
1431
|
-
<
|
|
1479
|
+
<MButton
|
|
1432
1480
|
style={{
|
|
1433
1481
|
alignItems: 'center',
|
|
1434
1482
|
marginLeft: 20,
|
|
@@ -1457,9 +1505,121 @@ export const Home = observer(function Home() {
|
|
|
1457
1505
|
>
|
|
1458
1506
|
Lịch dự kiến
|
|
1459
1507
|
</MText>
|
|
1460
|
-
</
|
|
1508
|
+
</MButton>
|
|
1461
1509
|
)}
|
|
1462
1510
|
</View>
|
|
1511
|
+
|
|
1512
|
+
{item.messageErrorCIMB !== '' &&
|
|
1513
|
+
item?.messageErrorCIMB &&
|
|
1514
|
+
item?.isCimbApproveFull === null ? (
|
|
1515
|
+
<View
|
|
1516
|
+
style={{
|
|
1517
|
+
backgroundColor: '#FBEFE7',
|
|
1518
|
+
marginHorizontal: -16,
|
|
1519
|
+
paddingVertical: 8,
|
|
1520
|
+
marginTop: 16,
|
|
1521
|
+
borderBottomRightRadius: 8,
|
|
1522
|
+
borderBottomLeftRadius: 8,
|
|
1523
|
+
paddingHorizontal: 16,
|
|
1524
|
+
}}
|
|
1525
|
+
>
|
|
1526
|
+
<View
|
|
1527
|
+
style={{
|
|
1528
|
+
flexDirection: 'row',
|
|
1529
|
+
justifyContent: 'space-between',
|
|
1530
|
+
alignItems: 'center',
|
|
1531
|
+
}}
|
|
1532
|
+
>
|
|
1533
|
+
<View
|
|
1534
|
+
style={{
|
|
1535
|
+
flex: 1,
|
|
1536
|
+
flexDirection: 'row',
|
|
1537
|
+
paddingRight: 20,
|
|
1538
|
+
}}
|
|
1539
|
+
>
|
|
1540
|
+
<Image
|
|
1541
|
+
source={require('./error.png')}
|
|
1542
|
+
style={{
|
|
1543
|
+
width: 16,
|
|
1544
|
+
height: 16,
|
|
1545
|
+
}}
|
|
1546
|
+
/>
|
|
1547
|
+
<MText
|
|
1548
|
+
style={{ marginLeft: 5 }}
|
|
1549
|
+
>
|
|
1550
|
+
Đơn vay của bạn gặp gián đoạn,
|
|
1551
|
+
vui lòng liên hệ tổng đài
|
|
1552
|
+
1900633688
|
|
1553
|
+
</MText>
|
|
1554
|
+
</View>
|
|
1555
|
+
|
|
1556
|
+
<TouchableOpacity
|
|
1557
|
+
onPress={() => {
|
|
1558
|
+
Linking.openURL(
|
|
1559
|
+
`tel:1900633688`
|
|
1560
|
+
);
|
|
1561
|
+
}}
|
|
1562
|
+
>
|
|
1563
|
+
<LinearGradient
|
|
1564
|
+
colors={[
|
|
1565
|
+
'#FF8E4F',
|
|
1566
|
+
'#EF592E',
|
|
1567
|
+
]}
|
|
1568
|
+
style={{
|
|
1569
|
+
paddingHorizontal: 10,
|
|
1570
|
+
height: 30,
|
|
1571
|
+
borderRadius: 30,
|
|
1572
|
+
justifyContent: 'center',
|
|
1573
|
+
alignItems: 'center',
|
|
1574
|
+
flexDirection: 'row',
|
|
1575
|
+
}}
|
|
1576
|
+
>
|
|
1577
|
+
<Call />
|
|
1578
|
+
<MText
|
|
1579
|
+
style={{
|
|
1580
|
+
color: 'white',
|
|
1581
|
+
fontSize: 12,
|
|
1582
|
+
marginLeft: 5,
|
|
1583
|
+
}}
|
|
1584
|
+
>
|
|
1585
|
+
Liên hệ
|
|
1586
|
+
</MText>
|
|
1587
|
+
</LinearGradient>
|
|
1588
|
+
</TouchableOpacity>
|
|
1589
|
+
</View>
|
|
1590
|
+
</View>
|
|
1591
|
+
) : (
|
|
1592
|
+
<View
|
|
1593
|
+
style={{
|
|
1594
|
+
flexDirection: 'row',
|
|
1595
|
+
alignItems: 'center',
|
|
1596
|
+
backgroundColor: '#FBEFE7',
|
|
1597
|
+
marginHorizontal: -16,
|
|
1598
|
+
paddingVertical: 8,
|
|
1599
|
+
marginTop: 16,
|
|
1600
|
+
borderBottomRightRadius: 8,
|
|
1601
|
+
borderBottomLeftRadius: 8,
|
|
1602
|
+
paddingHorizontal: 16,
|
|
1603
|
+
}}
|
|
1604
|
+
>
|
|
1605
|
+
<Info />
|
|
1606
|
+
<MText
|
|
1607
|
+
style={[
|
|
1608
|
+
{
|
|
1609
|
+
fontWeight: '300',
|
|
1610
|
+
fontSize: 10,
|
|
1611
|
+
fontStyle: 'italic',
|
|
1612
|
+
color: '#333333',
|
|
1613
|
+
marginLeft: 8,
|
|
1614
|
+
},
|
|
1615
|
+
]}
|
|
1616
|
+
>
|
|
1617
|
+
{item?.suggestion
|
|
1618
|
+
? item?.suggestion
|
|
1619
|
+
: 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
|
|
1620
|
+
</MText>
|
|
1621
|
+
</View>
|
|
1622
|
+
)}
|
|
1463
1623
|
</View>
|
|
1464
1624
|
) : (
|
|
1465
1625
|
<View>
|