Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Giang Tran
InvestCustomer
Commits
c8fb8023
Commit
c8fb8023
authored
Mar 29, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit drawer
parent
a7c661dd
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
12 deletions
+54
-12
BankInfor.js
src/Screens/AccountVerification/Tab/BankInfor.js
+18
-2
GeneralInfor.js
src/Screens/AccountVerification/Tab/GeneralInfor.js
+4
-4
actionTypes.js
src/actions/actionTypes.js
+5
-5
images.js
src/assets/images.js
+1
-0
iconRight2.png
src/assets/images/iconRight2.png
+0
-0
Drawer.js
src/components/Header/Drawer.js
+26
-1
No files found.
src/Screens/AccountVerification/Tab/BankInfor.js
View file @
c8fb8023
...
...
@@ -21,6 +21,7 @@ import PickerItem from '../../../components/Picker/PickerItem';
import
{
verifyAccountApi
}
from
'../../../apis/Functions/users'
;
import
{
connect
}
from
'react-redux'
;
import
{
showLoading
,
hideLoading
}
from
'../../../actions/loadingAction'
;
import
{
useNavigation
}
from
'@react-navigation/native'
;
const
{
width
}
=
Dimensions
.
get
(
'window'
);
const
dataType
=
[
...
...
@@ -39,6 +40,8 @@ const BankInfor = (props) => {
const
[
bank_no
,
setBackNo
]
=
useState
(
''
);
const
[
account_no
,
setAccountNo
]
=
useState
(
''
);
console
.
log
(
props
.
user
.
uid
);
const
createFormData
=
(
identity_after
,
identity_before
,
sign_img
,
body
)
=>
{
const
data
=
new
FormData
();
...
...
@@ -76,7 +79,7 @@ const BankInfor = (props) => {
const
onPress
=
async
()
=>
{
const
titles
=
[
'loại thẻ'
,
'mã ngân hàng'
,
'số thẻ/tài khoản'
];
const
index
=
checkFormatArray
([
acc_type
,
bank_no
,
account_no
]);
console
.
log
(
props
.
route
.
params
.
body
);
if
(
index
===
true
)
{
const
data
=
createFormData
(
props
.
route
.
params
.
img
.
urlBack
,
...
...
@@ -90,9 +93,22 @@ const BankInfor = (props) => {
...
props
.
route
.
params
.
body
,
},
);
props
.
showLoading
();
const
res
=
await
verifyAccountApi
(
data
);
props
.
hideLoading
();
console
.
log
(
'Response'
,
res
.
data
);
if
(
res
.
data
.
code
==
200
)
{
setTimeout
(()
=>
{
Alert
.
alert
(
'Thông báo!'
,
res
.
data
.
message
);
},
500
);
setBackNo
(
''
);
setAccountNo
(
''
);
setAccType
(
''
);
}
else
{
setTimeout
(()
=>
{
Alert
.
alert
(
'Thông báo!'
,
res
.
data
.
message
);
},
500
);
}
}
else
{
Alert
.
alert
(
'Vui lòng điền '
+
titles
[
index
]);
}
...
...
src/Screens/AccountVerification/Tab/GeneralInfor.js
View file @
c8fb8023
...
...
@@ -57,15 +57,15 @@ const GeneralInfor = (props) => {
<
View
style
=
{{
flexDirection
:
'row'
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
TextField
title
=
{
'
Tên
'
}
onChangeText
=
{(
val
)
=>
set
La
stName
(
val
)}
title
=
{
'
Họ và tên đệm
'
}
onChangeText
=
{(
val
)
=>
set
Fir
stName
(
val
)}
/
>
<
/View
>
<
View
style
=
{{
width
:
20
}}
/
>
<
View
style
=
{{
flex
:
1
}}
>
<
TextField
title
=
{
'
Họ
'
}
onChangeText
=
{(
val
)
=>
set
Fir
stName
(
val
)}
title
=
{
'
Tên
'
}
onChangeText
=
{(
val
)
=>
set
La
stName
(
val
)}
/
>
<
/View
>
<
/View
>
...
...
src/actions/actionTypes.js
View file @
c8fb8023
...
...
@@ -9,11 +9,11 @@ export const HIDELOADING = 'HIDELOADING';
export
const
PUSHNOTI
=
'PUSHNOTI'
;
export
const
HIDENOTI
=
'HIDENOTI'
;
export
const
UPDATE_NOTIFICATION
=
'UPDATE_NOTIFICATION'
;
export
const
UPDATE_NOTIFICATION_SUCCESSED
=
"UPDATE_NOTIFICATION_SUCCESSED"
export
const
UPDATE_NOTIFICATION_FAIL
=
"UPDATE_NOTIeFICATION_FAIL"
export
const
UPDATE_NOTIFICATION_SUCCESSED
=
'UPDATE_NOTIFICATION_SUCCESSED'
;
export
const
UPDATE_NOTIFICATION_FAIL
=
'UPDATE_NOTIeFICATION_FAIL'
;
export
const
UPDATE_REPORT_SUCCESSED
=
"UPDATE_REPORT_SUCCESSED"
export
const
UPDATE_REPORT_SUCCESSED
=
'UPDATE_REPORT_SUCCESSED'
;
export
const
UPDATE_REPORT
=
"UPDATE_REPORT"
export
const
UPDATE_REPORT
=
'UPDATE_REPORT'
;
export
const
SAVENAVIGATE
=
'SAVENAVIGATE'
;
src/assets/images.js
View file @
c8fb8023
...
...
@@ -45,6 +45,7 @@ const images = {
iconEmail
:
require
(
'./images/iconEmail1.png'
),
iconUser3
:
require
(
'./images/iconUser3.png'
),
iconRight1
:
require
(
'./images/iconRight1.png'
),
iconRight2
:
require
(
'./images/iconRight2.png'
),
iconNganLuong
:
require
(
'./images/iconNganLuong.png'
),
iconVisa
:
require
(
'./images/iconVisa.png'
),
...
...
src/assets/images/iconRight2.png
0 → 100644
View file @
c8fb8023
1.7 KB
src/components/Header/Drawer.js
View file @
c8fb8023
...
...
@@ -12,6 +12,7 @@ import {
SETTING
,
NOTIFICATION
,
AUTHEN
,
PROFILE
,
}
from
'../../routers/ScreenNames'
;
import
{
useNavigation
}
from
'@react-navigation/native'
;
...
...
@@ -55,7 +56,21 @@ const Drawer = (props) => {
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
header
}
>
<
Image
source
=
{
R
.
images
.
avartar
}
style
=
{
styles
.
imgAvatar
}
/
>
<
Text
style
=
{
styles
.
txtTitle
}
>
NGUYEN
VAN
A
<
/Text
>
<
TouchableOpacity
onPress
=
{()
=>
{
props
.
toggleModal
();
navigate
.
navigate
(
PROFILE
);
}}
>
<
Text
style
=
{
styles
.
txtTop
}
>
NGUYEN
VAN
A
<
/Text
>
<
Text
>
SponsorIDLink
<
/Text
>
<
/TouchableOpacity
>
<
TouchableOpacity
onPress
=
{()
=>
{
props
.
toggleModal
();
navigate
.
navigate
(
PROFILE
);
}}
>
<
Image
source
=
{
R
.
images
.
iconRight2
}
style
=
{
styles
.
imgIcon
}
/
>
<
/TouchableOpacity
>
<
/View
>
<
View
style
=
{
styles
.
body
}
>
...
...
@@ -103,6 +118,7 @@ const styles = StyleSheet.create({
flexDirection
:
'row'
,
alignItems
:
'center'
,
paddingHorizontal
:
10
,
justifyContent
:
'space-around'
,
},
body
:
{
flex
:
1
,
...
...
@@ -124,6 +140,15 @@ const styles = StyleSheet.create({
marginLeft
:
10
,
color
:
'#0C0D2C'
,
},
txtTop
:
{
fontSize
:
getFontXD
(
42
),
color
:
'#1E2F70'
,
},
txtLink
:
{
fontSize
:
getFontXD
(
36
),
color
:
'#929292'
,
},
footer
:
{
paddingVertical
:
10
,
backgroundColor
:
'#EEEEEE'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment