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
e9659596
Commit
e9659596
authored
3 years ago
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update phone registor
parent
5bb75b8e
switch_rsa
…
05_May
08_April
build_0106
build_01_July
build_02_July
build_06_07
build_11_June
build_1305
build_1405
build_14_June
build_15_july
build_2405
build_2505
build_2805
build_30_June
build_release_1806
build_server_new
dev_0106
dev_01_July
dev_05_July
dev_09_June
dev_10_June
dev_11_June
dev_14_July
dev_14_May
dev_18_June
dev_2605
dev_phase2
ekyc
enter_smart_otp
fix_bug_image
forgot_smart_otp_pin
func_fingerprint_login
func_smart_otp
new_09_June
new_10_June
phase2_home
phase2_tool
phase2_transation_intergate_api
phase_2_check_version
search_period
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
6 deletions
+32
-6
Registor.js
src/Screens/Authen/Registor.js
+22
-3
EscrowView.js
src/Screens/Transaction/Escrow/EscrowView.js
+6
-3
InputIcon.js
src/components/Input/InputIcon.js
+2
-0
en.js
src/helper/i18/locales/en.js
+1
-0
vn.js
src/helper/i18/locales/vn.js
+1
-0
No files found.
src/Screens/Authen/Registor.js
View file @
e9659596
...
...
@@ -24,10 +24,21 @@ const Registor = (props) => {
const
[
password
,
setPassword
]
=
useState
(
''
);
const
[
password_confirmation
,
setPasswordConfirm
]
=
useState
(
''
);
const
[
sponsor_id
,
setSponsor_id
]
=
useState
(
''
);
const
[
phone
,
setPhone
]
=
useState
(
''
);
const
registorClick
=
async
()
=>
{
const
titles
=
[
'email'
,
I18n
.
t
(
'Password'
).
toLowerCase
(),
I18n
.
t
(
'ConfirmPassword'
).
toLowerCase
()];
const
index
=
checkFormatArray
([
email
,
password
,
password_confirmation
]);
const
titles
=
[
'email'
,
I18n
.
t
(
'Password'
).
toLowerCase
(),
I18n
.
t
(
'ConfirmPassword'
).
toLowerCase
(),
I18n
.
t
(
'Phone'
).
toLowerCase
(),
];
const
index
=
checkFormatArray
([
email
,
password
,
password_confirmation
,
phone
,
]);
if
(
index
===
true
)
{
let
res
;
...
...
@@ -39,6 +50,7 @@ const Registor = (props) => {
platform
:
Platform
.
OS
,
password_confirmation
,
sponsor_id
,
phone
,
});
}
else
{
res
=
await
registorApi
({
...
...
@@ -46,6 +58,7 @@ const Registor = (props) => {
password
,
platform
:
Platform
.
OS
,
password_confirmation
,
phone
,
});
}
...
...
@@ -99,11 +112,17 @@ const Registor = (props) => {
isPassWord
=
{
true
}
/
>
<
InputIcon
icon
=
{
R
.
images
.
iconPhone3
}
title
=
{
'Phone'
}
placeholder
=
{
I18n
.
t
(
'Enter_Phone'
)}
onChangeText
=
{(
val
)
=>
setPhone
(
val
)}
isNumber
=
{
true
}
/
>
<
InputIcon
icon
=
{
R
.
images
.
iconIntroduct
}
title
=
{
'Code_introduce'
}
placeholder
=
{
I18n
.
t
(
'EnterReferralCode'
)}
onChangeText
=
{(
val
)
=>
setSponsor_id
(
val
)}
isPassWord
=
{
true
}
/
>
<
View
...
...
This diff is collapsed.
Click to expand it.
src/Screens/Transaction/Escrow/EscrowView.js
View file @
e9659596
...
...
@@ -84,9 +84,12 @@ const EscrowView = (props) => {
onEndReached
=
{(
info
)
=>
{
onLoadMore
();
}}
renderItem
=
{({
item
})
=>
<
Item
item
=
{
item
}
onPress
=
{(
item
)
=>
navigate
.
navigate
(
PRODUCTDETAIL
)}
/>
}
renderItem
=
{({
item
})
=>
(
<
Item
item
=
{
item
}
onPress
=
{(
item
)
=>
navigate
.
navigate
(
PRODUCTDETAIL
)}
/
>
)}
/
>
)}
<
/View
>
...
...
This diff is collapsed.
Click to expand it.
src/components/Input/InputIcon.js
View file @
e9659596
...
...
@@ -13,6 +13,7 @@ const InputIcon = (props) => {
maxLength
,
isPassWord
,
value
,
isNumber
,
}
=
props
;
const
{
wrapLeft
,
wrapRight
,
container
,
iconImg
,
txtInput
}
=
styles
;
return
(
...
...
@@ -29,6 +30,7 @@ const InputIcon = (props) => {
placeholder
=
{
placeholder
}
secureTextEntry
=
{
isPassWord
}
value
=
{
value
}
isNumber
=
{
isNumber
}
/
>
<
/View
>
<
/View
>
...
...
This diff is collapsed.
Click to expand it.
src/helper/i18/locales/en.js
View file @
e9659596
...
...
@@ -60,6 +60,7 @@ export default {
Male
:
'Male'
,
Status
:
'Status'
,
Phone
:
'Phone'
,
Enter_Phone
:
'Enter phone'
,
Address
:
'Address'
,
Update
:
'Update'
,
ContactCode
:
'Contact code'
,
...
...
This diff is collapsed.
Click to expand it.
src/helper/i18/locales/vn.js
View file @
e9659596
...
...
@@ -219,4 +219,5 @@ export default {
Price_List
:
'Bảng phí'
,
Time_Transaction
:
'Thời gian GD'
,
Due_Date
:
'Lịch đáo hạn'
,
Enter_Phone
:
'Nhập số điện thoại'
,
};
This diff is collapsed.
Click to expand it.
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