react-native-timacare 1.0.6 → 1.0.7
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/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +28 -18
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/register/Store.js +1 -1
- package/lib/commonjs/screens/register/Store.js.flow +1 -1
- package/lib/commonjs/screens/sign-tima/ConfirmContract.js +1 -1
- package/lib/commonjs/screens/sign-tima/ConfirmContract.js.flow +1 -15
- package/lib/commonjs/screens/sign-tima/ConfirmContract.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/register/Store.js +1 -1
- package/lib/module/screens/sign-tima/ConfirmContract.js +1 -1
- package/lib/module/screens/sign-tima/ConfirmContract.js.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/sign-tima/ConfirmContract.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/screens/home/index.tsx +28 -18
- package/src/screens/register/Store.tsx +1 -1
- package/src/screens/sign-tima/ConfirmContract.tsx +1 -15
|
@@ -95,26 +95,31 @@ export const Home = observer(function Home() {
|
|
|
95
95
|
homeStore.getListLoanPending(
|
|
96
96
|
async (res) => {
|
|
97
97
|
setListLoan(res);
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
if (item?.typeLoan === 4 && item?.isCimbApproveFull !== null) {
|
|
108
|
-
const checkShow = await load(`SHOW_${item?.id}`);
|
|
109
|
-
if (!checkShow || checkShow !== true) {
|
|
98
|
+
if (res) {
|
|
99
|
+
Promise.all(
|
|
100
|
+
res?.map(async (item) => {
|
|
101
|
+
homeStore.getCheckEKYC(
|
|
102
|
+
{ loanBriefId: item.id },
|
|
103
|
+
(response) => {}
|
|
104
|
+
);
|
|
105
|
+
if (item?.messageErrorCIMB && item.messageErrorCIMB !== '') {
|
|
110
106
|
setLoanCimb(item);
|
|
111
107
|
setTimeout(() => {
|
|
112
|
-
|
|
108
|
+
setShowModal(true);
|
|
113
109
|
}, 200);
|
|
114
110
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
111
|
+
if (item?.typeLoan === 4 && item?.isCimbApproveFull !== null) {
|
|
112
|
+
const checkShow = await load(`SHOW_${item?.id}`);
|
|
113
|
+
if (!checkShow || checkShow !== true) {
|
|
114
|
+
setLoanCimb(item);
|
|
115
|
+
setTimeout(() => {
|
|
116
|
+
setShowModal2(true);
|
|
117
|
+
}, 200);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
);
|
|
122
|
+
}
|
|
118
123
|
setIsLoading(false);
|
|
119
124
|
},
|
|
120
125
|
() => {
|
|
@@ -371,10 +376,12 @@ export const Home = observer(function Home() {
|
|
|
371
376
|
) : (
|
|
372
377
|
<View>
|
|
373
378
|
{listLoan?.map((item, index) => (
|
|
374
|
-
<View style={{ marginBottom: 14 }}>
|
|
379
|
+
<View style={{ marginBottom: 14 }} key={index}>
|
|
375
380
|
<View>
|
|
381
|
+
{/* // luồng CIMB */}
|
|
376
382
|
{item?.isPipelineCIMB ? (
|
|
377
383
|
<View>
|
|
384
|
+
{/* // type 4 digital topup */}
|
|
378
385
|
{item?.typeLoan === 4 ? (
|
|
379
386
|
<View>
|
|
380
387
|
<View
|
|
@@ -774,7 +781,8 @@ export const Home = observer(function Home() {
|
|
|
774
781
|
)}
|
|
775
782
|
</View>
|
|
776
783
|
</View>
|
|
777
|
-
) :
|
|
784
|
+
) : // type 2 tái vay
|
|
785
|
+
item?.typeLoan === 2 ? (
|
|
778
786
|
<Observer>
|
|
779
787
|
{() => (
|
|
780
788
|
<View>
|
|
@@ -834,6 +842,7 @@ export const Home = observer(function Home() {
|
|
|
834
842
|
{item?.loanStatus}
|
|
835
843
|
</MText>
|
|
836
844
|
</View>
|
|
845
|
+
{/* // cho phép update thông tin */}
|
|
837
846
|
{item?.isUpdateLoanReBorrow ? (
|
|
838
847
|
<TouchableOpacity
|
|
839
848
|
style={{ marginTop: 14 }}
|
|
@@ -1237,6 +1246,7 @@ export const Home = observer(function Home() {
|
|
|
1237
1246
|
)}
|
|
1238
1247
|
</Observer>
|
|
1239
1248
|
) : (
|
|
1249
|
+
// cimb thường
|
|
1240
1250
|
<View>
|
|
1241
1251
|
<View>
|
|
1242
1252
|
{item?.loanStatus !== null &&
|
|
@@ -53,7 +53,7 @@ export const ConfirmContract = observer(function ConfirmContract({
|
|
|
53
53
|
const [open, setOpen] = useState(false);
|
|
54
54
|
|
|
55
55
|
useEffect(() => {
|
|
56
|
-
SignTimaStore.getOtpSign(
|
|
56
|
+
SignTimaStore.getOtpSign(2);
|
|
57
57
|
}, []);
|
|
58
58
|
|
|
59
59
|
useEffect(() => {
|
|
@@ -144,7 +144,6 @@ export const ConfirmContract = observer(function ConfirmContract({
|
|
|
144
144
|
textContentType="jobTitle"
|
|
145
145
|
renderCell={({ index, symbol, isFocused }) => (
|
|
146
146
|
<View
|
|
147
|
-
// Make sure that you pass onLayout={getCellOnLayoutHandler(index)} prop to root component of "Cell"
|
|
148
147
|
onLayout={getCellOnLayoutHandler(index)}
|
|
149
148
|
key={index}
|
|
150
149
|
style={{
|
|
@@ -262,7 +261,6 @@ export const ConfirmContract = observer(function ConfirmContract({
|
|
|
262
261
|
</MText>
|
|
263
262
|
</View>
|
|
264
263
|
<View>
|
|
265
|
-
{/* @ts-ignore */}
|
|
266
264
|
<TouchableOpacity
|
|
267
265
|
style={styles.btn}
|
|
268
266
|
onPress={() => {
|
|
@@ -273,7 +271,6 @@ export const ConfirmContract = observer(function ConfirmContract({
|
|
|
273
271
|
>
|
|
274
272
|
<MText>Nhận qua cuộc gọi thoại</MText>
|
|
275
273
|
</TouchableOpacity>
|
|
276
|
-
{/* @ts-ignore */}
|
|
277
274
|
<TouchableOpacity
|
|
278
275
|
style={styles.btn}
|
|
279
276
|
onPress={() => {
|
|
@@ -284,17 +281,6 @@ export const ConfirmContract = observer(function ConfirmContract({
|
|
|
284
281
|
>
|
|
285
282
|
<MText>Nhận qua Zalo</MText>
|
|
286
283
|
</TouchableOpacity>
|
|
287
|
-
{/* @ts-ignore */}
|
|
288
|
-
<TouchableOpacity
|
|
289
|
-
style={[styles.btn, { marginBottom: 16 }]}
|
|
290
|
-
onPress={() => {
|
|
291
|
-
setOpen(false);
|
|
292
|
-
SignTimaStore.getOtpSign(1);
|
|
293
|
-
setExpireTime(300);
|
|
294
|
-
}}
|
|
295
|
-
>
|
|
296
|
-
<MText>Nhận qua SMS</MText>
|
|
297
|
-
</TouchableOpacity>
|
|
298
284
|
</View>
|
|
299
285
|
</View>
|
|
300
286
|
</View>
|