react-native-timacare 1.0.1 → 1.0.2
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/back2.svg +13 -0
- package/lib/commonjs/assets/icons/check1.svg +4 -0
- package/lib/commonjs/assets/icons/check2.svg +9 -0
- package/lib/commonjs/assets/icons/error.svg +6 -0
- package/lib/commonjs/assets/icons/index.js +1 -1
- package/lib/commonjs/assets/icons/index.js.flow +14 -0
- package/lib/commonjs/assets/icons/index.js.map +1 -1
- package/lib/commonjs/assets/icons/line2.svg +12 -0
- package/lib/commonjs/assets/icons/next.svg +6 -0
- package/lib/commonjs/assets/icons/step.svg +9 -0
- package/lib/commonjs/components/CommonSelect.js +2 -0
- package/lib/commonjs/components/CommonSelect.js.flow +12 -0
- package/lib/commonjs/components/CommonSelect.js.map +1 -0
- package/lib/commonjs/components/MText.js +1 -1
- package/lib/commonjs/components/MText.js.flow +2 -2
- package/lib/commonjs/components/MText.js.map +1 -1
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +6 -0
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step1.js +2 -0
- package/lib/commonjs/screens/digital-lending/Step1.js.flow +661 -0
- package/lib/commonjs/screens/digital-lending/Step1.js.map +1 -0
- package/lib/commonjs/screens/digital-lending/Step2.js +2 -0
- package/lib/commonjs/screens/digital-lending/Step2.js.flow +610 -0
- package/lib/commonjs/screens/digital-lending/Step2.js.map +1 -0
- package/lib/commonjs/screens/digital-lending/Step3.js +2 -0
- package/lib/commonjs/screens/digital-lending/Step3.js.flow +602 -0
- package/lib/commonjs/screens/digital-lending/Step3.js.map +1 -0
- package/lib/commonjs/screens/digital-lending/Step4.js +2 -0
- package/lib/commonjs/screens/digital-lending/Step4.js.flow +495 -0
- package/lib/commonjs/screens/digital-lending/Step4.js.map +1 -0
- package/lib/commonjs/screens/digital-lending/Step5.js +2 -0
- package/lib/commonjs/screens/digital-lending/Step5.js.flow +350 -0
- package/lib/commonjs/screens/digital-lending/Step5.js.map +1 -0
- package/lib/commonjs/screens/digital-lending/Step6.js +2 -0
- package/lib/commonjs/screens/digital-lending/Step6.js.flow +366 -0
- package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -0
- package/lib/commonjs/screens/digital-lending/index.js +2 -0
- package/lib/commonjs/screens/digital-lending/index.js.flow +110 -0
- package/lib/commonjs/screens/digital-lending/index.js.map +1 -0
- package/lib/commonjs/screens/digital-lending/store.js +2 -0
- package/lib/commonjs/screens/digital-lending/store.js.flow +294 -0
- package/lib/commonjs/screens/digital-lending/store.js.map +1 -0
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +467 -0
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/register/index.js +1 -1
- package/lib/commonjs/screens/register/index.js.flow +1 -1
- package/lib/commonjs/services/api/api-config.js +1 -1
- package/lib/commonjs/services/api/api-config.js.flow +2 -2
- package/lib/commonjs/services/api/api-config.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +95 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/module/assets/icons/back2.svg +13 -0
- package/lib/module/assets/icons/check1.svg +4 -0
- package/lib/module/assets/icons/check2.svg +9 -0
- package/lib/module/assets/icons/error.svg +6 -0
- package/lib/module/assets/icons/index.js +1 -1
- package/lib/module/assets/icons/index.js.map +1 -1
- package/lib/module/assets/icons/line2.svg +12 -0
- package/lib/module/assets/icons/next.svg +6 -0
- package/lib/module/assets/icons/step.svg +9 -0
- package/lib/module/components/CommonSelect.js +2 -0
- package/lib/module/components/CommonSelect.js.map +1 -0
- package/lib/module/components/MText.js +1 -1
- package/lib/module/components/MText.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/digital-lending/Step1.js +2 -0
- package/lib/module/screens/digital-lending/Step1.js.map +1 -0
- package/lib/module/screens/digital-lending/Step2.js +2 -0
- package/lib/module/screens/digital-lending/Step2.js.map +1 -0
- package/lib/module/screens/digital-lending/Step3.js +2 -0
- package/lib/module/screens/digital-lending/Step3.js.map +1 -0
- package/lib/module/screens/digital-lending/Step4.js +2 -0
- package/lib/module/screens/digital-lending/Step4.js.map +1 -0
- package/lib/module/screens/digital-lending/Step5.js +2 -0
- package/lib/module/screens/digital-lending/Step5.js.map +1 -0
- package/lib/module/screens/digital-lending/Step6.js +2 -0
- package/lib/module/screens/digital-lending/Step6.js.map +1 -0
- package/lib/module/screens/digital-lending/index.js +2 -0
- package/lib/module/screens/digital-lending/index.js.map +1 -0
- package/lib/module/screens/digital-lending/store.js +2 -0
- package/lib/module/screens/digital-lending/store.js.map +1 -0
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/module/screens/register/index.js +1 -1
- package/lib/module/services/api/api-config.js +1 -1
- package/lib/module/services/api/api-config.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/icons/index.d.ts +8 -1
- package/lib/typescript/assets/icons/index.d.ts.map +1 -1
- package/lib/typescript/components/CommonSelect.d.ts +8 -0
- package/lib/typescript/components/CommonSelect.d.ts.map +1 -0
- package/lib/typescript/navigation/primary-navigator.d.ts +1 -0
- package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
- package/lib/typescript/screens/digital-lending/Step1.d.ts +2 -0
- package/lib/typescript/screens/digital-lending/Step1.d.ts.map +1 -0
- package/lib/typescript/screens/digital-lending/Step2.d.ts +2 -0
- package/lib/typescript/screens/digital-lending/Step2.d.ts.map +1 -0
- package/lib/typescript/screens/digital-lending/Step3.d.ts +2 -0
- package/lib/typescript/screens/digital-lending/Step3.d.ts.map +1 -0
- package/lib/typescript/screens/digital-lending/Step4.d.ts +2 -0
- package/lib/typescript/screens/digital-lending/Step4.d.ts.map +1 -0
- package/lib/typescript/screens/digital-lending/Step5.d.ts +2 -0
- package/lib/typescript/screens/digital-lending/Step5.d.ts.map +1 -0
- package/lib/typescript/screens/digital-lending/Step6.d.ts +2 -0
- package/lib/typescript/screens/digital-lending/Step6.d.ts.map +1 -0
- package/lib/typescript/screens/digital-lending/index.d.ts +2 -0
- package/lib/typescript/screens/digital-lending/index.d.ts.map +1 -0
- package/lib/typescript/screens/digital-lending/store.d.ts +35 -0
- package/lib/typescript/screens/digital-lending/store.d.ts.map +1 -0
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/services/api/api.d.ts +80 -19
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/icons/back2.svg +13 -0
- package/src/assets/icons/check1.svg +4 -0
- package/src/assets/icons/check2.svg +9 -0
- package/src/assets/icons/error.svg +6 -0
- package/src/assets/icons/index.tsx +14 -0
- package/src/assets/icons/line2.svg +12 -0
- package/src/assets/icons/next.svg +6 -0
- package/src/assets/icons/step.svg +9 -0
- package/src/components/CommonSelect.tsx +12 -0
- package/src/components/MText.tsx +2 -2
- package/src/navigation/primary-navigator.tsx +6 -0
- package/src/screens/digital-lending/Step1.tsx +661 -0
- package/src/screens/digital-lending/Step2.tsx +610 -0
- package/src/screens/digital-lending/Step3.tsx +602 -0
- package/src/screens/digital-lending/Step4.tsx +495 -0
- package/src/screens/digital-lending/Step5.tsx +350 -0
- package/src/screens/digital-lending/Step6.tsx +366 -0
- package/src/screens/digital-lending/index.tsx +110 -0
- package/src/screens/digital-lending/store.tsx +294 -0
- package/src/screens/home/index.tsx +467 -0
- package/src/screens/register/index.tsx +1 -1
- package/src/services/api/api-config.ts +2 -2
- package/src/services/api/api.ts +95 -0
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { useNavigation } from '@react-navigation/native';
|
|
4
|
+
import { observer } from 'mobx-react-lite';
|
|
5
|
+
import {
|
|
6
|
+
Alert,
|
|
7
|
+
Dimensions,
|
|
8
|
+
Image,
|
|
9
|
+
ScrollView,
|
|
10
|
+
TouchableOpacity,
|
|
11
|
+
View,
|
|
12
|
+
} from 'react-native';
|
|
13
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
14
|
+
import {
|
|
15
|
+
Back2Icon,
|
|
16
|
+
StepIcon,
|
|
17
|
+
NextIcon,
|
|
18
|
+
Line2Icon,
|
|
19
|
+
WarningIcon,
|
|
20
|
+
ErrorIcon,
|
|
21
|
+
Check2Icon,
|
|
22
|
+
Check1Icon,
|
|
23
|
+
IConCamera,
|
|
24
|
+
} from '../../assets/icons';
|
|
25
|
+
import { MText } from '../../components/MText';
|
|
26
|
+
import digitalLendingStore from './store';
|
|
27
|
+
import { ScreenNames } from '../../navigation';
|
|
28
|
+
|
|
29
|
+
export const Step6 = observer(function Step6() {
|
|
30
|
+
const navigation = useNavigation();
|
|
31
|
+
const [check, setCheck] = useState(1);
|
|
32
|
+
const [photo, setPhoto] = useState(null);
|
|
33
|
+
return (
|
|
34
|
+
<View style={{ flex: 1 }}>
|
|
35
|
+
<ScrollView style={{ paddingHorizontal: 12 }}>
|
|
36
|
+
<View
|
|
37
|
+
style={{
|
|
38
|
+
flexDirection: 'row',
|
|
39
|
+
justifyContent: 'space-between',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
paddingVertical: 16,
|
|
42
|
+
}}
|
|
43
|
+
>
|
|
44
|
+
<View
|
|
45
|
+
style={{
|
|
46
|
+
width: 40,
|
|
47
|
+
height: 40,
|
|
48
|
+
borderRadius: 40,
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
justifyContent: 'center',
|
|
51
|
+
shadowRadius: 40,
|
|
52
|
+
backgroundColor: '#FFF3E9',
|
|
53
|
+
borderWidth: 1,
|
|
54
|
+
borderColor: '#FF8E4F',
|
|
55
|
+
}}
|
|
56
|
+
>
|
|
57
|
+
<MText style={{ fontWeight: 'bold', color: '#FF8E4F' }}>01</MText>
|
|
58
|
+
</View>
|
|
59
|
+
<View
|
|
60
|
+
style={{
|
|
61
|
+
width: 40,
|
|
62
|
+
height: 40,
|
|
63
|
+
borderRadius: 40,
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
justifyContent: 'center',
|
|
66
|
+
shadowRadius: 40,
|
|
67
|
+
backgroundColor: '#FFF3E9',
|
|
68
|
+
borderWidth: 1,
|
|
69
|
+
borderColor: '#FF8E4F',
|
|
70
|
+
}}
|
|
71
|
+
>
|
|
72
|
+
<MText style={{ color: '#FF8E4F', fontWeight: 'bold' }}>02</MText>
|
|
73
|
+
</View>
|
|
74
|
+
<View
|
|
75
|
+
style={{
|
|
76
|
+
width: 40,
|
|
77
|
+
height: 40,
|
|
78
|
+
borderRadius: 40,
|
|
79
|
+
alignItems: 'center',
|
|
80
|
+
justifyContent: 'center',
|
|
81
|
+
shadowRadius: 40,
|
|
82
|
+
backgroundColor: '#FFF3E9',
|
|
83
|
+
borderWidth: 1,
|
|
84
|
+
borderColor: '#FF8E4F',
|
|
85
|
+
}}
|
|
86
|
+
>
|
|
87
|
+
<MText style={{ color: '#FF8E4F', fontWeight: 'bold' }}>03</MText>
|
|
88
|
+
</View>
|
|
89
|
+
<View
|
|
90
|
+
style={{
|
|
91
|
+
width: 40,
|
|
92
|
+
height: 40,
|
|
93
|
+
borderRadius: 40,
|
|
94
|
+
alignItems: 'center',
|
|
95
|
+
justifyContent: 'center',
|
|
96
|
+
shadowRadius: 40,
|
|
97
|
+
backgroundColor: '#FFF3E9',
|
|
98
|
+
borderWidth: 1,
|
|
99
|
+
borderColor: '#FF8E4F',
|
|
100
|
+
}}
|
|
101
|
+
>
|
|
102
|
+
<MText style={{ color: '#FF8E4F', fontWeight: 'bold' }}>04</MText>
|
|
103
|
+
</View>
|
|
104
|
+
<View
|
|
105
|
+
style={{
|
|
106
|
+
width: 40,
|
|
107
|
+
height: 40,
|
|
108
|
+
borderRadius: 40,
|
|
109
|
+
alignItems: 'center',
|
|
110
|
+
justifyContent: 'center',
|
|
111
|
+
shadowRadius: 40,
|
|
112
|
+
backgroundColor: '#FFF3E9',
|
|
113
|
+
borderWidth: 1,
|
|
114
|
+
borderColor: '#FF8E4F',
|
|
115
|
+
}}
|
|
116
|
+
>
|
|
117
|
+
<MText style={{ color: '#FF8E4F', fontWeight: 'bold' }}>05</MText>
|
|
118
|
+
</View>
|
|
119
|
+
<LinearGradient
|
|
120
|
+
colors={['#FF8E4F', '#EF592E']}
|
|
121
|
+
style={{
|
|
122
|
+
width: 40,
|
|
123
|
+
height: 40,
|
|
124
|
+
borderRadius: 40,
|
|
125
|
+
alignItems: 'center',
|
|
126
|
+
justifyContent: 'center',
|
|
127
|
+
}}
|
|
128
|
+
>
|
|
129
|
+
<MText style={{ fontWeight: 'bold', color: 'white' }}>06</MText>
|
|
130
|
+
</LinearGradient>
|
|
131
|
+
<Line2Icon />
|
|
132
|
+
</View>
|
|
133
|
+
<MText style={{ fontWeight: 'bold' }}>THÔNG TIN CÀ VẸT XE</MText>
|
|
134
|
+
<View
|
|
135
|
+
style={{
|
|
136
|
+
marginVertical: 8,
|
|
137
|
+
borderWidth: 1,
|
|
138
|
+
borderRadius: 8,
|
|
139
|
+
borderColor: '#EB5757',
|
|
140
|
+
padding: 12,
|
|
141
|
+
flexDirection: 'row',
|
|
142
|
+
}}
|
|
143
|
+
>
|
|
144
|
+
<ErrorIcon />
|
|
145
|
+
<MText style={{ fontSize: 12, flex: 1, marginLeft: 10 }}>
|
|
146
|
+
Cung cấp hình ảnh đăng ký xe là điều kiện bắt buộc, bạn vui lòng
|
|
147
|
+
cung cấp hình ảnh đăng ký xe để đơn được đẩy đi nhanh hơn.
|
|
148
|
+
</MText>
|
|
149
|
+
</View>
|
|
150
|
+
<View style={{ height: 1, backgroundColor: '#BDBDBD', marginTop: 8 }} />
|
|
151
|
+
<View style={{ flexDirection: 'row', marginTop: 12 }}>
|
|
152
|
+
<TouchableOpacity onPress={() => setCheck(1)}>
|
|
153
|
+
{check === 1 ? <Check2Icon /> : <Check1Icon />}
|
|
154
|
+
</TouchableOpacity>
|
|
155
|
+
<View style={{ flex: 1, marginLeft: 12 }}>
|
|
156
|
+
<MText style={{ flex: 1 }}>
|
|
157
|
+
Tôi chưa từng cung cấp hình ảnh đăng ký xe cho Tima
|
|
158
|
+
</MText>
|
|
159
|
+
{check === 1 && (
|
|
160
|
+
<View style={{ flexDirection: 'row', marginTop: 12 }}>
|
|
161
|
+
{photo === null ? (
|
|
162
|
+
<TouchableOpacity
|
|
163
|
+
onPress={() => {
|
|
164
|
+
navigation.push(ScreenNames.Camera, {
|
|
165
|
+
front: false,
|
|
166
|
+
callback: (photo) => {
|
|
167
|
+
const formData = new FormData();
|
|
168
|
+
formData.append(
|
|
169
|
+
'loanbriefId',
|
|
170
|
+
digitalLendingStore?.data?.loanBriefId
|
|
171
|
+
);
|
|
172
|
+
formData.append('TypeDocumentId', 314);
|
|
173
|
+
formData.append('image', {
|
|
174
|
+
uri: photo,
|
|
175
|
+
type: 'image/jpg',
|
|
176
|
+
name: 'image.jpg',
|
|
177
|
+
});
|
|
178
|
+
digitalLendingStore.uploadCavet(formData, () => {
|
|
179
|
+
setPhoto(photo);
|
|
180
|
+
});
|
|
181
|
+
},
|
|
182
|
+
});
|
|
183
|
+
}}
|
|
184
|
+
style={{
|
|
185
|
+
flexDirection: 'row',
|
|
186
|
+
alignItems: 'center',
|
|
187
|
+
padding: 8,
|
|
188
|
+
borderWidth: 1,
|
|
189
|
+
borderRadius: 6,
|
|
190
|
+
borderColor: '#FF8E4F',
|
|
191
|
+
}}
|
|
192
|
+
>
|
|
193
|
+
<IConCamera />
|
|
194
|
+
<MText style={{ color: '#FF8E4F', marginLeft: 12 }}>
|
|
195
|
+
Chụp ảnh đăng ký xe
|
|
196
|
+
</MText>
|
|
197
|
+
</TouchableOpacity>
|
|
198
|
+
) : (
|
|
199
|
+
<View>
|
|
200
|
+
<Image
|
|
201
|
+
source={{ uri: photo }}
|
|
202
|
+
style={{
|
|
203
|
+
width: Dimensions.get('window').width - 150,
|
|
204
|
+
height:
|
|
205
|
+
((Dimensions.get('window').width - 120) * 216) / 360,
|
|
206
|
+
borderWidth: 8,
|
|
207
|
+
borderRadius: 6,
|
|
208
|
+
}}
|
|
209
|
+
/>
|
|
210
|
+
<View style={{ flexDirection: 'row', marginTop: 12 }}>
|
|
211
|
+
<TouchableOpacity
|
|
212
|
+
onPress={() => {
|
|
213
|
+
navigation.push(ScreenNames.Camera, {
|
|
214
|
+
front: false,
|
|
215
|
+
callback: (photo) => {
|
|
216
|
+
setPhoto(photo);
|
|
217
|
+
},
|
|
218
|
+
});
|
|
219
|
+
}}
|
|
220
|
+
style={{
|
|
221
|
+
flexDirection: 'row',
|
|
222
|
+
alignItems: 'center',
|
|
223
|
+
padding: 8,
|
|
224
|
+
borderWidth: 1,
|
|
225
|
+
borderRadius: 6,
|
|
226
|
+
borderColor: '#FF8E4F',
|
|
227
|
+
}}
|
|
228
|
+
>
|
|
229
|
+
<IConCamera />
|
|
230
|
+
<MText style={{ color: '#FF8E4F', marginLeft: 12 }}>
|
|
231
|
+
Chụp lại
|
|
232
|
+
</MText>
|
|
233
|
+
</TouchableOpacity>
|
|
234
|
+
</View>
|
|
235
|
+
</View>
|
|
236
|
+
)}
|
|
237
|
+
</View>
|
|
238
|
+
)}
|
|
239
|
+
</View>
|
|
240
|
+
</View>
|
|
241
|
+
<View style={{ flexDirection: 'row', marginTop: 12 }}>
|
|
242
|
+
<TouchableOpacity
|
|
243
|
+
onPress={() => {
|
|
244
|
+
setCheck(2);
|
|
245
|
+
setPhoto(null);
|
|
246
|
+
}}
|
|
247
|
+
>
|
|
248
|
+
{check === 2 ? <Check2Icon /> : <Check1Icon />}
|
|
249
|
+
</TouchableOpacity>
|
|
250
|
+
<View style={{ flex: 1, marginLeft: 12 }}>
|
|
251
|
+
<MText style={{ flex: 1 }}>
|
|
252
|
+
Đăng ký xe của tôi hiện đang được Tima giữ
|
|
253
|
+
</MText>
|
|
254
|
+
</View>
|
|
255
|
+
</View>
|
|
256
|
+
</ScrollView>
|
|
257
|
+
<View
|
|
258
|
+
style={{
|
|
259
|
+
backgroundColor: 'white',
|
|
260
|
+
shadowOffset: {
|
|
261
|
+
width: 2,
|
|
262
|
+
height: 1,
|
|
263
|
+
},
|
|
264
|
+
...Platform.select({
|
|
265
|
+
ios: {
|
|
266
|
+
shadowColor: 'rgba(0, 0, 0, 0.10)',
|
|
267
|
+
shadowOpacity: 0.2,
|
|
268
|
+
},
|
|
269
|
+
android: {
|
|
270
|
+
elevation: 10,
|
|
271
|
+
},
|
|
272
|
+
}),
|
|
273
|
+
paddingTop: 12,
|
|
274
|
+
paddingHorizontal: 12,
|
|
275
|
+
flexDirection: 'row',
|
|
276
|
+
paddingBottom: 16,
|
|
277
|
+
justifyContent: 'space-between',
|
|
278
|
+
alignItems: 'center',
|
|
279
|
+
}}
|
|
280
|
+
>
|
|
281
|
+
<TouchableOpacity
|
|
282
|
+
onPress={() => (digitalLendingStore.step = 5)}
|
|
283
|
+
style={{
|
|
284
|
+
paddingHorizontal: 12,
|
|
285
|
+
paddingVertical: 8,
|
|
286
|
+
borderRadius: 40,
|
|
287
|
+
flexDirection: 'row',
|
|
288
|
+
alignItems: 'center',
|
|
289
|
+
borderWidth: 1,
|
|
290
|
+
borderColor: '#FF8E4F',
|
|
291
|
+
}}
|
|
292
|
+
>
|
|
293
|
+
<Back2Icon />
|
|
294
|
+
<MText
|
|
295
|
+
style={{
|
|
296
|
+
marginLeft: 5,
|
|
297
|
+
color: '#FF8E4F',
|
|
298
|
+
fontSize: 16,
|
|
299
|
+
fontWeight: '500',
|
|
300
|
+
}}
|
|
301
|
+
>
|
|
302
|
+
Trở lại
|
|
303
|
+
</MText>
|
|
304
|
+
</TouchableOpacity>
|
|
305
|
+
<StepIcon />
|
|
306
|
+
<TouchableOpacity
|
|
307
|
+
onPress={() => {
|
|
308
|
+
Alert.alert(
|
|
309
|
+
'Vui lòng xác nhận lại',
|
|
310
|
+
'Những thông tin đã đúng với thông tin của bạn chưa?',
|
|
311
|
+
[
|
|
312
|
+
{
|
|
313
|
+
text: 'Xác nhận',
|
|
314
|
+
onPress: () => {
|
|
315
|
+
digitalLendingStore.uploadLoanReborrow(
|
|
316
|
+
digitalLendingStore.body,
|
|
317
|
+
() => {
|
|
318
|
+
Alert.alert('Cập nhật thông tin thành công', '', [
|
|
319
|
+
{
|
|
320
|
+
text: 'Đồng ý',
|
|
321
|
+
onPress: () => navigation.pop(),
|
|
322
|
+
},
|
|
323
|
+
]);
|
|
324
|
+
}
|
|
325
|
+
);
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
text: 'Huỷ',
|
|
330
|
+
},
|
|
331
|
+
]
|
|
332
|
+
);
|
|
333
|
+
}}
|
|
334
|
+
disabled={check === 1 && photo === null ? true : false}
|
|
335
|
+
>
|
|
336
|
+
<LinearGradient
|
|
337
|
+
colors={
|
|
338
|
+
check === 1 && photo === null
|
|
339
|
+
? ['#E0E0E0', '#E0E0E0']
|
|
340
|
+
: ['#FF8E4F', '#EF592E']
|
|
341
|
+
}
|
|
342
|
+
style={{
|
|
343
|
+
paddingHorizontal: 15,
|
|
344
|
+
paddingVertical: 8,
|
|
345
|
+
borderRadius: 40,
|
|
346
|
+
flexDirection: 'row',
|
|
347
|
+
alignItems: 'center',
|
|
348
|
+
}}
|
|
349
|
+
>
|
|
350
|
+
<MText
|
|
351
|
+
style={{
|
|
352
|
+
color: 'white',
|
|
353
|
+
fontSize: 16,
|
|
354
|
+
fontWeight: '500',
|
|
355
|
+
marginRight: 5,
|
|
356
|
+
}}
|
|
357
|
+
>
|
|
358
|
+
Lưu
|
|
359
|
+
</MText>
|
|
360
|
+
<NextIcon />
|
|
361
|
+
</LinearGradient>
|
|
362
|
+
</TouchableOpacity>
|
|
363
|
+
</View>
|
|
364
|
+
</View>
|
|
365
|
+
);
|
|
366
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_native","_mobxReactLite","_reactNative","_reactNativeLinearGradient","_interopRequireDefault","_icons","_MText","_store","_navigation","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Step6","exports","observer","navigation","useNavigation","_useState","useState","_useState2","_slicedToArray2","check","setCheck","_useState3","_useState4","photo","setPhoto","createElement","View","style","flex","__self","__source","fileName","lineNumber","columnNumber","ScrollView","paddingHorizontal","flexDirection","justifyContent","alignItems","paddingVertical","width","height","borderRadius","shadowRadius","backgroundColor","borderWidth","borderColor","MText","fontWeight","color","colors","Line2Icon","marginVertical","padding","ErrorIcon","fontSize","marginLeft","marginTop","TouchableOpacity","onPress","Check2Icon","Check1Icon","push","ScreenNames","Camera","front","callback","_digitalLendingStore$","formData","FormData","append","digitalLendingStore","data","loanBriefId","uri","type","name","uploadCavet","IConCamera","Image","source","Dimensions","_extends2","shadowOffset","Platform","select","ios","shadowColor","shadowOpacity","android","elevation","paddingTop","paddingBottom","step","Back2Icon","StepIcon","Alert","alert","text","uploadLoanReborrow","body","pop","disabled","marginRight","NextIcon"],"sourceRoot":"../../../../src","sources":["screens/digital-lending/Step6.tsx"],"mappings":"6UACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,OAAA,CAAAD,OAAA,6BACA,IAAAE,cAAA,CAAAF,OAAA,oBACA,IAAAG,YAAA,CAAAH,OAAA,iBAQA,IAAAI,0BAAA,CAAAC,sBAAA,CAAAL,OAAA,kCACA,IAAAM,MAAA,CAAAN,OAAA,uBAWA,IAAAO,MAAA,CAAAP,OAAA,2BACA,IAAAQ,MAAA,CAAAH,sBAAA,CAAAL,OAAA,aACA,IAAAS,WAAA,CAAAT,OAAA,qBAA+C,IAAAU,YAAA,8FAAAC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AA,KAAE,CACG,CACA,CACd,CACF,CAAC,CAEX,CAAC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.DigitalLending=void 0;var _react=_interopRequireWildcard(require("react"));var _mobxReactLite=require("mobx-react-lite");var _reactNative=require("react-native");var _native=require("@react-navigation/native");var _CommonStyles=require("../CommonStyles");var _MText=require("../../components/MText");var _icons=require("../../assets/icons");var _MButton=_interopRequireDefault(require("../../components/MButton"));var _reactNativeLinearGradient=_interopRequireDefault(require("react-native-linear-gradient"));var _store=_interopRequireDefault(require("./store"));var _Step=require("./Step1");var _Step2=require("./Step2");var _Step3=require("./Step3");var _Step4=require("./Step4");var _Step5=require("./Step5");var _Step6=require("./Step6");var _Loading=_interopRequireDefault(require("../../components/Loading"));var _jsxFileName="/Users/quangduc/Documents/Tima/tima-care-v2/src/screens/digital-lending/index.tsx";function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap(),t=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r;})(e);}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u];}return n.default=e,t&&t.set(e,n),n;}var DigitalLending=exports.DigitalLending=(0,_mobxReactLite.observer)(function DigitalLending(props){var _props$route,_this=this;var navigation=(0,_native.useNavigation)();var loan=props==null?void 0:(_props$route=props.route)==null?void 0:_props$route.params;(0,_react.useEffect)(function(){_store.default.getDetailLoan(loan==null?void 0:loan.id);_store.default.getProvinces();_store.default.getJob();_store.default.getBrandProduct();_store.default.getBank();},[]);var renderView=function renderView(step){switch(step){case 1:return _react.default.createElement(_Step.Step1,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:46,columnNumber:16}});case 2:return _react.default.createElement(_Step2.Step2,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:48,columnNumber:16}});case 3:return _react.default.createElement(_Step3.Step3,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:50,columnNumber:16}});case 4:return _react.default.createElement(_Step4.Step4,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:52,columnNumber:16}});case 5:return _react.default.createElement(_Step5.Step5,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:54,columnNumber:16}});case 6:return _react.default.createElement(_Step6.Step6,{__self:_this,__source:{fileName:_jsxFileName,lineNumber:56,columnNumber:16}});default:null;}};return _react.default.createElement(_reactNative.View,{style:[_CommonStyles.commonStyles.fill,{zIndex:1,backgroundColor:'white'}],__self:this,__source:{fileName:_jsxFileName,lineNumber:63,columnNumber:5}},_react.default.createElement(_reactNativeLinearGradient.default,{colors:['#FF8E4F','#EF592E'],__self:this,__source:{fileName:_jsxFileName,lineNumber:64,columnNumber:7}},_react.default.createElement(_reactNative.SafeAreaView,{style:{},__self:this,__source:{fileName:_jsxFileName,lineNumber:65,columnNumber:9}},_react.default.createElement(_reactNative.View,{style:{flexDirection:'row',justifyContent:'center',paddingHorizontal:16,alignItems:'center',height:60},__self:this,__source:{fileName:_jsxFileName,lineNumber:66,columnNumber:11}},_store.default.step===1&&_react.default.createElement(_MButton.default,{style:{height:32,width:32,borderRadius:30,alignItems:'center',justifyContent:'center',position:'absolute',left:16},onPress:function onPress(){navigation.pop();_store.default.clear();},__self:this,__source:{fileName:_jsxFileName,lineNumber:76,columnNumber:15}},_react.default.createElement(_icons.IconBackWhite,{__self:this,__source:{fileName:_jsxFileName,lineNumber:91,columnNumber:17}})),_react.default.createElement(_MText.MText,{style:{fontWeight:'bold',color:'white',fontSize:16},__self:this,__source:{fileName:_jsxFileName,lineNumber:94,columnNumber:13}},"Th\xF4ng tin c\xE1 nh\xE2n")))),renderView(_store.default.step),_react.default.createElement(_Loading.default,{isLoading:_store.default.isLoading,__self:this,__source:{fileName:_jsxFileName,lineNumber:107,columnNumber:7}}));});
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import React, { useEffect } from 'react';
|
|
3
|
+
import { observer } from 'mobx-react-lite';
|
|
4
|
+
import {
|
|
5
|
+
Platform,
|
|
6
|
+
SafeAreaView,
|
|
7
|
+
ScrollView,
|
|
8
|
+
TouchableOpacity,
|
|
9
|
+
View,
|
|
10
|
+
} from 'react-native';
|
|
11
|
+
import { useNavigation } from '@react-navigation/native';
|
|
12
|
+
import { commonStyles } from '../CommonStyles';
|
|
13
|
+
import { MText } from '../../components/MText';
|
|
14
|
+
import {
|
|
15
|
+
Back2Icon,
|
|
16
|
+
IconBackWhite,
|
|
17
|
+
NextIcon,
|
|
18
|
+
StepIcon,
|
|
19
|
+
} from '../../assets/icons';
|
|
20
|
+
import MButton from '../../components/MButton';
|
|
21
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
22
|
+
import digitalLendingStore from './store';
|
|
23
|
+
import { Step1 } from './Step1';
|
|
24
|
+
import { Step2 } from './Step2';
|
|
25
|
+
import { Step3 } from './Step3';
|
|
26
|
+
import { Step4 } from './Step4';
|
|
27
|
+
import { Step5 } from './Step5';
|
|
28
|
+
import { Step6 } from './Step6';
|
|
29
|
+
import Loading from '../../components/Loading';
|
|
30
|
+
|
|
31
|
+
export const DigitalLending = observer(function DigitalLending(props: any) {
|
|
32
|
+
const navigation = useNavigation();
|
|
33
|
+
const loan = props?.route?.params;
|
|
34
|
+
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
digitalLendingStore.getDetailLoan(loan?.id);
|
|
37
|
+
digitalLendingStore.getProvinces();
|
|
38
|
+
digitalLendingStore.getJob();
|
|
39
|
+
digitalLendingStore.getBrandProduct();
|
|
40
|
+
digitalLendingStore.getBank();
|
|
41
|
+
}, []);
|
|
42
|
+
|
|
43
|
+
const renderView = (step: number) => {
|
|
44
|
+
switch (step) {
|
|
45
|
+
case 1:
|
|
46
|
+
return <Step1 />;
|
|
47
|
+
case 2:
|
|
48
|
+
return <Step2 />;
|
|
49
|
+
case 3:
|
|
50
|
+
return <Step3 />;
|
|
51
|
+
case 4:
|
|
52
|
+
return <Step4 />;
|
|
53
|
+
case 5:
|
|
54
|
+
return <Step5 />;
|
|
55
|
+
case 6:
|
|
56
|
+
return <Step6 />;
|
|
57
|
+
default:
|
|
58
|
+
null;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<View style={[commonStyles.fill, { zIndex: 1, backgroundColor: 'white' }]}>
|
|
64
|
+
<LinearGradient colors={['#FF8E4F', '#EF592E']}>
|
|
65
|
+
<SafeAreaView style={{}}>
|
|
66
|
+
<View
|
|
67
|
+
style={{
|
|
68
|
+
flexDirection: 'row',
|
|
69
|
+
justifyContent: 'center',
|
|
70
|
+
paddingHorizontal: 16,
|
|
71
|
+
alignItems: 'center',
|
|
72
|
+
height: 60,
|
|
73
|
+
}}
|
|
74
|
+
>
|
|
75
|
+
{digitalLendingStore.step === 1 && (
|
|
76
|
+
<MButton
|
|
77
|
+
style={{
|
|
78
|
+
height: 32,
|
|
79
|
+
width: 32,
|
|
80
|
+
borderRadius: 30,
|
|
81
|
+
alignItems: 'center',
|
|
82
|
+
justifyContent: 'center',
|
|
83
|
+
position: 'absolute',
|
|
84
|
+
left: 16,
|
|
85
|
+
}}
|
|
86
|
+
onPress={() => {
|
|
87
|
+
navigation.pop();
|
|
88
|
+
digitalLendingStore.clear();
|
|
89
|
+
}}
|
|
90
|
+
>
|
|
91
|
+
<IconBackWhite />
|
|
92
|
+
</MButton>
|
|
93
|
+
)}
|
|
94
|
+
<MText
|
|
95
|
+
style={{
|
|
96
|
+
fontWeight: 'bold',
|
|
97
|
+
color: 'white',
|
|
98
|
+
fontSize: 16,
|
|
99
|
+
}}
|
|
100
|
+
>
|
|
101
|
+
Thông tin cá nhân
|
|
102
|
+
</MText>
|
|
103
|
+
</View>
|
|
104
|
+
</SafeAreaView>
|
|
105
|
+
</LinearGradient>
|
|
106
|
+
{renderView(digitalLendingStore.step)}
|
|
107
|
+
<Loading isLoading={digitalLendingStore.isLoading} />
|
|
108
|
+
</View>
|
|
109
|
+
);
|
|
110
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_reactNative","_native","_CommonStyles","_MText","_icons","_MButton","_interopRequireDefault","_reactNativeLinearGradient","_store","_Step","_Step2","_Step3","_Step4","_Step5","_Step6","_Loading","_jsxFileName","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","DigitalLending","exports","observer","props","_props$route","_this","navigation","useNavigation","loan","route","params","useEffect","digitalLendingStore","getDetailLoan","id","getProvinces","getJob","getBrandProduct","getBank","renderView","step","createElement","Step1","__self","__source","fileName","lineNumber","columnNumber","Step2","Step3","Step4","Step5","Step6","View","style","commonStyles","fill","zIndex","backgroundColor","colors","SafeAreaView","flexDirection","justifyContent","paddingHorizontal","alignItems","height","width","borderRadius","position","left","onPress","pop","clear","IconBackWhite","MText","fontWeight","color","fontSize","isLoading"],"sourceRoot":"../../../../src","sources":["screens/digital-lending/index.tsx"],"mappings":"0KACA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,cAAA,CAAAD,OAAA,oBACA,IAAAE,YAAA,CAAAF,OAAA,iBAOA,IAAAG,OAAA,CAAAH,OAAA,6BACA,IAAAI,aAAA,CAAAJ,OAAA,oBACA,IAAAK,MAAA,CAAAL,OAAA,2BACA,IAAAM,MAAA,CAAAN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,EAAAC,QAAA,CAAA/C,YAAA,CAAAgD,UAAA,IAAAC,YAAA,MAEFrE,MAAA,CAAA2B,OAAA,CAAAoC,aAAA,CAACvD,MAAA,CAAAuF,aAAa,EAAA9B,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/C,YAAA,CAAAgD,UAAA,IAAAC,YAAA,KAAE,CACT,CACV,CACDrE,MAAA,CAAA2B,OAAA,CAAAoC,aAAA,CAACxD,MAAA,CAAAyF,KAAK,EACJpB,KAAK,CAAE,CACLqB,UAAU,CAAE,MAAM,CAClBC,KAAK,CAAE,OAAO,CACdC,QAAQ,CAAE,EACZ,CAAE,CAAAlC,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/C,YAAA,CAAAgD,UAAA,IAAAC,YAAA,MACH,4BAEM,CACH,CACM,CACA,CAAC,CAChBR,UAAU,CAACP,cAAmB,CAACQ,IAAI,CAAC,CACrC9D,MAAA,CAAA2B,OAAA,CAAAoC,aAAA,CAAC5C,QAAA,CAAAQ,OAAO,EAACyE,SAAS,CAAE9C,cAAmB,CAAC8C,SAAU,CAAAnC,MAAA,MAAAC,QAAA,EAAAC,QAAA,CAAA/C,YAAA,CAAAgD,UAAA,KAAAC,YAAA,IAAE,CAChD,CAAC,CAEX,CAAC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _initializerDefineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/initializerDefineProperty"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _applyDecoratedDescriptor2=_interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));var _initializerWarningHelper2=_interopRequireDefault(require("@babel/runtime/helpers/initializerWarningHelper"));var _mobx=require("mobx");var _reactNative=require("react-native");var _api=require("../../services/api");var _class,_descriptor,_descriptor2,_descriptor3,_descriptor4,_descriptor5,_descriptor6,_descriptor7,_descriptor8,_descriptor9,_descriptor10,_descriptor11,_descriptor12,_descriptor13,_descriptor14,_descriptor15,_descriptor16,_descriptor17;var Store=(_class=function(){function Store(){(0,_classCallCheck2.default)(this,Store);(0,_initializerDefineProperty2.default)(this,"isLoading",_descriptor,this);(0,_initializerDefineProperty2.default)(this,"step",_descriptor2,this);(0,_initializerDefineProperty2.default)(this,"data",_descriptor3,this);(0,_initializerDefineProperty2.default)(this,"listProvinces",_descriptor4,this);(0,_initializerDefineProperty2.default)(this,"listDistricts",_descriptor5,this);(0,_initializerDefineProperty2.default)(this,"listWards",_descriptor6,this);(0,_initializerDefineProperty2.default)(this,"householdListDistricts",_descriptor7,this);(0,_initializerDefineProperty2.default)(this,"householdListWards",_descriptor8,this);(0,_initializerDefineProperty2.default)(this,"companyListDistricts",_descriptor9,this);(0,_initializerDefineProperty2.default)(this,"companyListWards",_descriptor10,this);(0,_initializerDefineProperty2.default)(this,"listJob",_descriptor11,this);(0,_initializerDefineProperty2.default)(this,"listJobDescription",_descriptor12,this);(0,_initializerDefineProperty2.default)(this,"listBrand",_descriptor13,this);(0,_initializerDefineProperty2.default)(this,"listBrandName",_descriptor14,this);(0,_initializerDefineProperty2.default)(this,"listBank",_descriptor15,this);(0,_initializerDefineProperty2.default)(this,"loadingDocument",_descriptor16,this);(0,_initializerDefineProperty2.default)(this,"body",_descriptor17,this);(0,_mobx.makeAutoObservable)(this);}(0,_createClass2.default)(Store,[{key:"clear",value:function clear(){this.body={};this.data=null;this.step=1;}},{key:"uploadLoanReborrow",value:function uploadLoanReborrow(body,onSuccess){var response;return _regenerator.default.async(function uploadLoanReborrow$(_context){while(1)switch(_context.prev=_context.next){case 0:this.isLoading=true;_context.prev=1;_context.next=4;return _regenerator.default.awrap(_api.Api.getInstance().updateLoanReborrow(body));case 4:response=_context.sent;console.log(response);this.isLoading=false;if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess();}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');}_context.next=15;break;case 10:_context.prev=10;_context.t0=_context["catch"](1);this.isLoading=false;_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');console.log(_context.t0);case 15:case"end":return _context.stop();}},null,this,[[1,10]],Promise);}},{key:"uploadCavet",value:function uploadCavet(body,onSuccess){var response;return _regenerator.default.async(function uploadCavet$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:this.loadingDocument=true;_context2.prev=1;_context2.next=4;return _regenerator.default.awrap(_api.Api.getInstance().uploadDocument(body));case 4:response=_context2.sent;this.loadingDocument=false;if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess)onSuccess();}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');}_context2.next=14;break;case 9:_context2.prev=9;_context2.t0=_context2["catch"](1);this.loadingDocument=false;_reactNative.Alert.alert('Thông báo','Có lỗi xảy ra. Vui lòng thử lại sau.');console.log(_context2.t0);case 14:case"end":return _context2.stop();}},null,this,[[1,9]],Promise);}},{key:"getBank",value:function getBank(){var response;return _regenerator.default.async(function getBank$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.prev=0;_context3.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getBanks());case 3:response=_context3.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listBank=response.data.data.map(function(item){return{id:item.bankId,name:item.name};});}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{}_context3.next=11;break;case 8:_context3.prev=8;_context3.t0=_context3["catch"](0);console.log(_context3.t0);case 11:case"end":return _context3.stop();}},null,this,[[0,8]],Promise);}},{key:"getBrandName",value:function getBrandName(id){var response;return _regenerator.default.async(function getBrandName$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.prev=0;_context4.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getNameBrand(id));case 3:response=_context4.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listBrandName=response.data.data.map(function(item){return{id:item.id,name:item.fullName};});}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{}_context4.next=11;break;case 8:_context4.prev=8;_context4.t0=_context4["catch"](0);console.log(_context4.t0);case 11:case"end":return _context4.stop();}},null,this,[[0,8]],Promise);}},{key:"getBrandProduct",value:function getBrandProduct(){var response;return _regenerator.default.async(function getBrandProduct$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.prev=0;_context5.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getBrandProduct());case 3:response=_context5.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listBrand=response.data.data;}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{}_context5.next=11;break;case 8:_context5.prev=8;_context5.t0=_context5["catch"](0);console.log(_context5.t0);case 11:case"end":return _context5.stop();}},null,this,[[0,8]],Promise);}},{key:"getJob",value:function getJob(){var response;return _regenerator.default.async(function getJob$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.prev=0;_context6.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getJobTima());case 3:response=_context6.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listJob=response.data.data;}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{}_context6.next=11;break;case 8:_context6.prev=8;_context6.t0=_context6["catch"](0);console.log(_context6.t0);case 11:case"end":return _context6.stop();}},null,this,[[0,8]],Promise);}},{key:"getJobDescription",value:function getJobDescription(id){var response;return _regenerator.default.async(function getJobDescription$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.prev=0;_context7.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getJobDescriptionTima(id));case 3:response=_context7.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listJobDescription=response.data.data.map(function(item){return{id:item.jobId,name:item.name};});}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{}_context7.next=11;break;case 8:_context7.prev=8;_context7.t0=_context7["catch"](0);console.log(_context7.t0);case 11:case"end":return _context7.stop();}},null,this,[[0,8]],Promise);}},{key:"getDistricts",value:function getDistricts(id,onSuccess){var response;return _regenerator.default.async(function getDistricts$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.prev=0;_context8.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getDistricts(id));case 3:response=_context8.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess){onSuccess(response.data.data.map(function(item){return{id:item.districtId,name:item.name};}));}else{this.listDistricts=response.data.data.map(function(item){return{id:item.districtId,name:item.name};});}}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Không lấy được danh sách quận huyện.');}_context8.next=11;break;case 8:_context8.prev=8;_context8.t0=_context8["catch"](0);console.log(_context8.t0);case 11:case"end":return _context8.stop();}},null,this,[[0,8]],Promise);}},{key:"getWards",value:function getWards(id,onSuccess){var response;return _regenerator.default.async(function getWards$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.prev=0;_context9.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getWards(id));case 3:response=_context9.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){if(onSuccess){onSuccess(response.data.data.map(function(item){return{id:item.wardId,name:item.name};}));}else{this.listWards=response.data.data.map(function(item){return{id:item.wardId,name:item.name};});}}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Không lấy được danh sách quận huyện.');}_context9.next=11;break;case 8:_context9.prev=8;_context9.t0=_context9["catch"](0);console.log(_context9.t0);case 11:case"end":return _context9.stop();}},null,this,[[0,8]],Promise);}},{key:"getDetailLoan",value:function getDetailLoan(id,onSuccess){var response,_response$data,_response$data$meta,_response$data2,_response$data3,_response$data3$data,_response$data5,_response$data5$data,_response$data4,_response$data4$data,_response$data6,_response$data6$data,_response$data7,_response$data7$meta;return _regenerator.default.async(function getDetailLoan$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:this.isLoading=true;_context10.prev=1;_context10.next=4;return _regenerator.default.awrap(_api.Api.getInstance().detailLoanReborrow(id));case 4:response=_context10.sent;console.log(response,'Detail');this.isLoading=false;if(response.kind==='ok'){if(((_response$data=response.data)==null?void 0:(_response$data$meta=_response$data.meta)==null?void 0:_response$data$meta.errorCode)===200){if(onSuccess)onSuccess();this.data=(_response$data2=response.data)==null?void 0:_response$data2.data;if((_response$data3=response.data)!=null&&(_response$data3$data=_response$data3.data)!=null&&_response$data3$data.provinceId){digitalLendingStore.getDistricts((_response$data4=response.data)==null?void 0:(_response$data4$data=_response$data4.data)==null?void 0:_response$data4$data.provinceId);}if((_response$data5=response.data)!=null&&(_response$data5$data=_response$data5.data)!=null&&_response$data5$data.wardId){digitalLendingStore.getWards((_response$data6=response.data)==null?void 0:(_response$data6$data=_response$data6.data)==null?void 0:_response$data6$data.districtId);}}else{_reactNative.Alert.alert((_response$data7=response.data)==null?void 0:(_response$data7$meta=_response$data7.meta)==null?void 0:_response$data7$meta.errorMessage);}}else{_reactNative.Alert.alert('Có lỗi xảy ra. Vui lòng thử lại sau!');}_context10.next=14;break;case 10:_context10.prev=10;_context10.t0=_context10["catch"](1);console.log(_context10.t0);this.isLoading=false;case 14:case"end":return _context10.stop();}},null,this,[[1,10]],Promise);}},{key:"getProvinces",value:function getProvinces(){var response;return _regenerator.default.async(function getProvinces$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.prev=0;_context11.next=3;return _regenerator.default.awrap(_api.Api.getInstance().getProvinces({}));case 3:response=_context11.sent;console.log(response);if(response.kind==='ok'){if(response.data.meta.errorCode===200){this.listProvinces=response.data.data.map(function(item){return{id:item.provinceId,name:item.name};});}else{_reactNative.Alert.alert('Thông báo',response.data.meta.errorMessage);}}else{_reactNative.Alert.alert('Thông báo','Không lấy được danh sách thành phố.');}_context11.next=11;break;case 8:_context11.prev=8;_context11.t0=_context11["catch"](0);console.log(_context11.t0);case 11:case"end":return _context11.stop();}},null,this,[[0,8]],Promise);}}]);return Store;}(),(_descriptor=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"isLoading",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor2=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"step",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return 1;}}),_descriptor3=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"data",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return undefined;}}),_descriptor4=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listProvinces",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor5=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listDistricts",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor6=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listWards",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor7=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"householdListDistricts",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor8=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"householdListWards",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor9=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"companyListDistricts",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor10=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"companyListWards",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor11=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listJob",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor12=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listJobDescription",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor13=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listBrand",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor14=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listBrandName",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor15=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"listBank",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return[];}}),_descriptor16=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"loadingDocument",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return false;}}),_descriptor17=(0,_applyDecoratedDescriptor2.default)(_class.prototype,"body",[_mobx.observable],{configurable:true,enumerable:true,writable:true,initializer:function initializer(){return{};}}),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"clear",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"clear"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"uploadLoanReborrow",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"uploadLoanReborrow"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"uploadCavet",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"uploadCavet"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getBank",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getBank"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getBrandName",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getBrandName"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getBrandProduct",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getBrandProduct"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getJob",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getJob"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getJobDescription",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getJobDescription"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getDistricts",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getDistricts"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getWards",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getWards"),_class.prototype),(0,_applyDecoratedDescriptor2.default)(_class.prototype,"getProvinces",[_mobx.action],Object.getOwnPropertyDescriptor(_class.prototype,"getProvinces"),_class.prototype)),_class);var digitalLendingStore=new Store();var _default=exports.default=digitalLendingStore;
|
|
2
|
+
//# sourceMappingURL=store.js.map
|