react-native-timacare 3.3.19 → 3.3.21
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/tts/f88.png +0 -0
- package/lib/commonjs/assets/v3/11.svg +13 -0
- package/lib/commonjs/assets/v3/12.svg +21 -0
- package/lib/commonjs/assets/v3/index.js +1 -1
- package/lib/commonjs/assets/v3/index.js.flow +4 -0
- package/lib/commonjs/assets/v3/index.js.map +1 -1
- package/lib/commonjs/components/MSelect.js +1 -1
- package/lib/commonjs/components/MSelect.js.flow +4 -2
- package/lib/commonjs/components/MSelect.js.map +1 -1
- package/lib/commonjs/components/keyboardspace/index.js +1 -1
- package/lib/commonjs/components/keyboardspace/index.js.flow +0 -2
- package/lib/commonjs/components/keyboardspace/index.js.map +1 -1
- package/lib/commonjs/components/select/index.js +1 -1
- package/lib/commonjs/components/select/index.js.flow +4 -2
- package/lib/commonjs/components/select/index.js.map +1 -1
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +15 -0
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/DetailLoanTima.js +1 -1
- package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.flow +29 -4
- package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/Info.js +1 -1
- package/lib/commonjs/screens/detail-loan/Info.js.flow +16 -8
- package/lib/commonjs/screens/detail-loan/Info.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/Payment.js +1 -1
- package/lib/commonjs/screens/detail-loan/Payment.js.flow +19 -7
- package/lib/commonjs/screens/detail-loan/Payment.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentAll.js +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentAll.js.flow +49 -9
- package/lib/commonjs/screens/detail-loan/PaymentAll.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js.flow +735 -85
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js.flow +372 -68
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/index.js +1 -1
- package/lib/commonjs/screens/detail-loan/index.js.flow +37 -33
- package/lib/commonjs/screens/detail-loan/index.js.map +1 -1
- package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js +1 -1
- package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.flow +41 -12
- package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
- package/lib/commonjs/screens/guide-transfer-bank/index.js +1 -1
- package/lib/commonjs/screens/guide-transfer-bank/index.js.flow +228 -237
- package/lib/commonjs/screens/guide-transfer-bank/index.js.map +1 -1
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js +2 -0
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.flow +845 -0
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.map +1 -0
- package/lib/commonjs/screens/home/Store.js +1 -1
- package/lib/commonjs/screens/home/Store.js.flow +4 -1
- package/lib/commonjs/screens/home/Store.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +23 -31
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js.flow +4 -4
- package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
- package/lib/commonjs/screens/motobike/InfoLoanMotobike.js +2 -0
- package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.flow +674 -0
- package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.map +1 -0
- package/lib/commonjs/screens/motobike/PolicyF88.js +2 -0
- package/lib/commonjs/screens/motobike/PolicyF88.js.flow +131 -0
- package/lib/commonjs/screens/motobike/PolicyF88.js.map +1 -0
- package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js +2 -0
- package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.flow +453 -0
- package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +4 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +28 -12
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +96 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/module/assets/tts/f88.png +0 -0
- package/lib/module/assets/v3/11.svg +13 -0
- package/lib/module/assets/v3/12.svg +21 -0
- package/lib/module/assets/v3/index.js +1 -1
- package/lib/module/assets/v3/index.js.map +1 -1
- package/lib/module/components/MSelect.js +1 -1
- package/lib/module/components/MSelect.js.map +1 -1
- package/lib/module/components/keyboardspace/index.js +1 -1
- package/lib/module/components/keyboardspace/index.js.map +1 -1
- package/lib/module/components/select/index.js +1 -1
- package/lib/module/components/select/index.js.map +1 -1
- package/lib/module/navigation/primary-navigator.js +1 -1
- package/lib/module/navigation/primary-navigator.js.map +1 -1
- package/lib/module/screens/detail-loan/DetailLoanTima.js +1 -1
- package/lib/module/screens/detail-loan/DetailLoanTima.js.map +1 -1
- package/lib/module/screens/detail-loan/Info.js +1 -1
- package/lib/module/screens/detail-loan/Info.js.map +1 -1
- package/lib/module/screens/detail-loan/Payment.js +1 -1
- package/lib/module/screens/detail-loan/Payment.js.map +1 -1
- package/lib/module/screens/detail-loan/PaymentAll.js +1 -1
- package/lib/module/screens/detail-loan/PaymentAll.js.map +1 -1
- package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
- package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
- package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
- package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
- package/lib/module/screens/detail-loan/index.js +1 -1
- package/lib/module/screens/detail-loan/index.js.map +1 -1
- package/lib/module/screens/guide-transfer-bank/TransferDetail.js +1 -1
- package/lib/module/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
- package/lib/module/screens/guide-transfer-bank/index.js +1 -1
- package/lib/module/screens/guide-transfer-bank/index.js.map +1 -1
- package/lib/module/screens/home/ItemMotoBikeLoan.js +2 -0
- package/lib/module/screens/home/ItemMotoBikeLoan.js.map +1 -0
- package/lib/module/screens/home/Store.js +1 -1
- package/lib/module/screens/home/Store.js.map +1 -1
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/module/screens/liveness-v2/index.js +1 -1
- package/lib/module/screens/liveness-v2/index.js.map +1 -1
- package/lib/module/screens/motobike/InfoLoanMotobike.js +2 -0
- package/lib/module/screens/motobike/InfoLoanMotobike.js.map +1 -0
- package/lib/module/screens/motobike/PolicyF88.js +2 -0
- package/lib/module/screens/motobike/PolicyF88.js.map +1 -0
- package/lib/module/screens/motobike/ReviewLoanMotobike.js +2 -0
- package/lib/module/screens/motobike/ReviewLoanMotobike.js.map +1 -0
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/module/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/typescript/assets/v3/index.d.ts +3 -1
- package/lib/typescript/assets/v3/index.d.ts.map +1 -1
- package/lib/typescript/components/MSelect.d.ts.map +1 -1
- package/lib/typescript/components/keyboardspace/index.d.ts.map +1 -1
- package/lib/typescript/components/select/index.d.ts.map +1 -1
- package/lib/typescript/navigation/primary-navigator.d.ts +3 -0
- package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/DetailLoanTima.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/Info.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/Payment.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/PaymentAll.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/PaymentInfo.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/ShowQrCode.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/index.d.ts.map +1 -1
- package/lib/typescript/screens/guide-transfer-bank/TransferDetail.d.ts.map +1 -1
- package/lib/typescript/screens/guide-transfer-bank/index.d.ts.map +1 -1
- package/lib/typescript/screens/home/ItemMotoBikeLoan.d.ts +8 -0
- package/lib/typescript/screens/home/ItemMotoBikeLoan.d.ts.map +1 -0
- package/lib/typescript/screens/home/Store.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/motobike/InfoLoanMotobike.d.ts +2 -0
- package/lib/typescript/screens/motobike/InfoLoanMotobike.d.ts.map +1 -0
- package/lib/typescript/screens/motobike/PolicyF88.d.ts +2 -0
- package/lib/typescript/screens/motobike/PolicyF88.d.ts.map +1 -0
- package/lib/typescript/screens/motobike/ReviewLoanMotobike.d.ts +2 -0
- package/lib/typescript/screens/motobike/ReviewLoanMotobike.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts.map +1 -1
- package/lib/typescript/services/api/api.d.ts +96 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/assets/tts/f88.png +0 -0
- package/src/assets/v3/11.svg +13 -0
- package/src/assets/v3/12.svg +21 -0
- package/src/assets/v3/index.tsx +4 -0
- package/src/components/MSelect.tsx +4 -2
- package/src/components/keyboardspace/index.tsx +0 -2
- package/src/components/select/index.tsx +4 -2
- package/src/navigation/primary-navigator.tsx +15 -0
- package/src/screens/detail-loan/DetailLoanTima.tsx +29 -4
- package/src/screens/detail-loan/Info.tsx +16 -8
- package/src/screens/detail-loan/Payment.tsx +19 -7
- package/src/screens/detail-loan/PaymentAll.tsx +49 -9
- package/src/screens/detail-loan/PaymentInfo.tsx +735 -85
- package/src/screens/detail-loan/ShowQrCode.tsx +372 -68
- package/src/screens/detail-loan/index.tsx +37 -33
- package/src/screens/guide-transfer-bank/TransferDetail.tsx +41 -12
- package/src/screens/guide-transfer-bank/index.tsx +228 -237
- package/src/screens/home/ItemMotoBikeLoan.tsx +845 -0
- package/src/screens/home/Store.tsx +4 -1
- package/src/screens/home/index.tsx +23 -31
- package/src/screens/liveness-v2/index.tsx +4 -4
- package/src/screens/motobike/InfoLoanMotobike.tsx +674 -0
- package/src/screens/motobike/PolicyF88.tsx +131 -0
- package/src/screens/motobike/ReviewLoanMotobike.tsx +453 -0
- package/src/screens/toan-trinh-so/TTSSelfie.tsx +4 -0
- package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +28 -12
- package/src/services/api/api.ts +96 -0
- package/lib/commonjs/components/CommonSelect.js +0 -2
- package/lib/commonjs/components/CommonSelect.js.flow +0 -12
- package/lib/commonjs/components/CommonSelect.js.map +0 -1
- package/lib/module/components/CommonSelect.js +0 -2
- package/lib/module/components/CommonSelect.js.map +0 -1
- package/lib/typescript/components/CommonSelect.d.ts +0 -8
- package/lib/typescript/components/CommonSelect.d.ts.map +0 -1
- package/src/components/CommonSelect.tsx +0 -12
|
@@ -134,6 +134,7 @@ class Store {
|
|
|
134
134
|
@action
|
|
135
135
|
async getListLoan(onSuccess?, onFailure?) {
|
|
136
136
|
this.isLoading = true;
|
|
137
|
+
this.listLoan = [];
|
|
137
138
|
const response = await Api.getInstance().listLoan();
|
|
138
139
|
this.isLoading = false;
|
|
139
140
|
myLog(response);
|
|
@@ -143,12 +144,14 @@ class Store {
|
|
|
143
144
|
if (onSuccess) {
|
|
144
145
|
onSuccess(response.data.data);
|
|
145
146
|
}
|
|
146
|
-
} else
|
|
147
|
+
} else {
|
|
148
|
+
this.listLoan = [];
|
|
147
149
|
Alert.alert('Thông báo', response.data.meta.errorMessage, [
|
|
148
150
|
{ text: 'Đồng ý' },
|
|
149
151
|
]);
|
|
150
152
|
}
|
|
151
153
|
} else {
|
|
154
|
+
this.listLoan = [];
|
|
152
155
|
this.isLoading = false;
|
|
153
156
|
Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau!');
|
|
154
157
|
}
|
|
@@ -103,6 +103,7 @@ import AlertLoan from '../../components/AlertLoan';
|
|
|
103
103
|
import DigitalTopupItem from './DigitalTopupItem';
|
|
104
104
|
import ModalOptionLoanDigital from '../../components/ModalOptionLoanDigital';
|
|
105
105
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
106
|
+
import ItemMotoBikeLoan from './ItemMotoBikeLoan';
|
|
106
107
|
|
|
107
108
|
const listBanners = [
|
|
108
109
|
require('../../assets/img/banner1.png'),
|
|
@@ -133,6 +134,7 @@ export const Home = observer(function Home() {
|
|
|
133
134
|
const insets = useSafeAreaInsets();
|
|
134
135
|
|
|
135
136
|
const onRefresh = async () => {
|
|
137
|
+
homeStore.getListLoan();
|
|
136
138
|
setIsLoading(true);
|
|
137
139
|
try {
|
|
138
140
|
const response = await Api.getInstance().listLoanPending();
|
|
@@ -184,6 +186,7 @@ export const Home = observer(function Home() {
|
|
|
184
186
|
const res = await Api.getInstance().getSuggestProduct(
|
|
185
187
|
item?.id
|
|
186
188
|
);
|
|
189
|
+
console.log(res);
|
|
187
190
|
|
|
188
191
|
if (res.kind === 'ok' && res.data?.meta?.errorCode === 200) {
|
|
189
192
|
setDataSuggest({
|
|
@@ -496,25 +499,16 @@ export const Home = observer(function Home() {
|
|
|
496
499
|
style={{ flex: 1, marginBottom: 16 }}
|
|
497
500
|
>
|
|
498
501
|
<View style={[commonStyles.fill, { paddingHorizontal: 16 }]}>
|
|
499
|
-
|
|
500
|
-
style={{
|
|
501
|
-
fontSize: 16,
|
|
502
|
-
fontWeight: 'bold',
|
|
503
|
-
marginTop: 10,
|
|
504
|
-
marginBottom: 8,
|
|
505
|
-
}}
|
|
506
|
-
>
|
|
507
|
-
Đơn chờ hoàn thiện
|
|
508
|
-
</MText>
|
|
509
|
-
{listLoan?.length === 0 && (
|
|
502
|
+
{listLoan?.length > 0 && (
|
|
510
503
|
<MText
|
|
511
504
|
style={{
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
505
|
+
fontSize: 16,
|
|
506
|
+
fontWeight: 'bold',
|
|
507
|
+
marginTop: 10,
|
|
508
|
+
marginBottom: 8,
|
|
515
509
|
}}
|
|
516
510
|
>
|
|
517
|
-
Danh sách đơn mới
|
|
511
|
+
Danh sách đơn mới
|
|
518
512
|
</MText>
|
|
519
513
|
)}
|
|
520
514
|
|
|
@@ -534,6 +528,13 @@ export const Home = observer(function Home() {
|
|
|
534
528
|
navigation={navigation}
|
|
535
529
|
callback={() => onRefresh()}
|
|
536
530
|
/>
|
|
531
|
+
) : // vay mua xe máy
|
|
532
|
+
item?.typeLoan === 8 ? (
|
|
533
|
+
<ItemMotoBikeLoan
|
|
534
|
+
item={item}
|
|
535
|
+
navigation={navigation}
|
|
536
|
+
callback={onRefresh}
|
|
537
|
+
/>
|
|
537
538
|
) : (
|
|
538
539
|
<View>
|
|
539
540
|
{/* // luồng CIMB */}
|
|
@@ -2149,28 +2150,19 @@ export const Home = observer(function Home() {
|
|
|
2149
2150
|
</View>
|
|
2150
2151
|
);
|
|
2151
2152
|
})}
|
|
2152
|
-
|
|
2153
2153
|
<Observer>
|
|
2154
2154
|
{() => (
|
|
2155
2155
|
<View>
|
|
2156
|
-
|
|
2157
|
-
style={{
|
|
2158
|
-
fontSize: 16,
|
|
2159
|
-
fontWeight: 'bold',
|
|
2160
|
-
marginBottom: 8,
|
|
2161
|
-
}}
|
|
2162
|
-
>
|
|
2163
|
-
Danh sách đơn đang vay
|
|
2164
|
-
</MText>
|
|
2165
|
-
{homeStore?.listLoan?.length === 0 && (
|
|
2156
|
+
{homeStore?.listLoan?.length > 0 && (
|
|
2166
2157
|
<MText
|
|
2167
2158
|
style={{
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2159
|
+
fontSize: 16,
|
|
2160
|
+
fontWeight: 'bold',
|
|
2161
|
+
marginBottom: 8,
|
|
2162
|
+
marginTop: 10,
|
|
2171
2163
|
}}
|
|
2172
2164
|
>
|
|
2173
|
-
Danh sách đơn
|
|
2165
|
+
Danh sách đơn đang vay
|
|
2174
2166
|
</MText>
|
|
2175
2167
|
)}
|
|
2176
2168
|
{homeStore?.listLoan &&
|
|
@@ -2731,7 +2723,7 @@ export const Home = observer(function Home() {
|
|
|
2731
2723
|
}}
|
|
2732
2724
|
/>
|
|
2733
2725
|
</ScrollView>
|
|
2734
|
-
<Loading isLoading={isLoading} />
|
|
2726
|
+
<Loading isLoading={isLoading || homeStore.isLoading} />
|
|
2735
2727
|
</View>
|
|
2736
2728
|
);
|
|
2737
2729
|
});
|
|
@@ -505,10 +505,10 @@ export const LivenessV2 = observer(function LivenessV2(props: any) {
|
|
|
505
505
|
|
|
506
506
|
<View style={styles.circularProgress}>
|
|
507
507
|
<CircularProgress
|
|
508
|
-
dashedStrokeConfig={{
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}}
|
|
508
|
+
// dashedStrokeConfig={{
|
|
509
|
+
// count: 100,
|
|
510
|
+
// width: 7,
|
|
511
|
+
// }}
|
|
512
512
|
value={
|
|
513
513
|
livenessStore.listAction.length === 3
|
|
514
514
|
? 0
|