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
080112fa
Commit
080112fa
authored
3 years ago
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
e87affda
switch_rsa
…
build_0106
build_01_July
build_02_July
build_06_07
build_11_June
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
forgot_smart_otp_pin
func_fingerprint_login
func_smart_otp
new_09_June
new_10_June
phase2_tool
search_period
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
73 additions
and
23 deletions
+73
-23
index.js
index.js
+1
-0
Profile.js
src/Screens/AccountVerification/Tab/Profile.js
+1
-1
CaculatedStopLoss.js
src/Screens/Tool/CaculatedStopLoss.js
+47
-15
ConvertUnit.js
src/Screens/Tool/ConvertUnit.js
+23
-7
vn.js
src/helper/i18/locales/vn.js
+1
-0
No files found.
index.js
View file @
080112fa
...
...
@@ -6,4 +6,5 @@ import {AppRegistry} from 'react-native';
import
App
from
'./App'
;
import
{
name
as
appName
}
from
'./app.json'
;
AppRegistry
.
registerComponent
(
appName
,
()
=>
App
);
This diff is collapsed.
Click to expand it.
src/Screens/AccountVerification/Tab/Profile.js
View file @
080112fa
...
...
@@ -97,7 +97,7 @@ const Profile = (props) => {
const
res
=
await
uploadImage
(
createFormData
(
urlBack
,
{
scope
:
'VERIFY_USER'
,
field_name
:
'identity_
before
'
,
field_name
:
'identity_
after
'
,
platform
:
Platform
.
OS
,
}),
);
...
...
This diff is collapsed.
Click to expand it.
src/Screens/Tool/CaculatedStopLoss.js
View file @
080112fa
...
...
@@ -25,8 +25,8 @@ import RadioForm, {
}
from
'react-native-simple-radio-button'
;
var
radio_props
=
[
{
label
:
'Mua'
,
value
:
0
},
{
label
:
'Bán'
,
value
:
1
},
{
label
:
'Mua'
,
value
:
'BUY'
},
{
label
:
'Bán'
,
value
:
'SALE'
},
];
const
dataType
=
[
...
...
@@ -45,13 +45,18 @@ const {width} = Dimensions.get('window');
const
CaculatedStopLoss
=
(
props
)
=>
{
const
[
product
,
setProduct
]
=
useState
();
const
[
type
,
setType
]
=
useState
(
'BUY'
);
const
[
lot
,
setLot
]
=
useState
(
'BUY'
);
const
[
priceOpen
,
setPriceOpen
]
=
useState
(
525
);
const
[
lot
,
setLot
]
=
useState
(
0
);
const
[
priceOpen
,
setPriceOpen
]
=
useState
(
0
);
const
[
fee
,
setFee
]
=
useState
(
0
);
const
[
surplus
,
setSurplus
]
=
useState
(
0
);
const
[
inSession
,
setInSession
]
=
useState
(
0
);
const
[
priceClose
,
setPriceClose
]
=
useState
(
525
);
const
[
priceClose
,
setPriceClose
]
=
useState
(
0
);
const
[
priceSopLoss
,
setPriceSopLoss
]
=
useState
(
0
);
const
onClick
=
()
=>
{
console
.
log
(
'hello'
);
};
return
(
<
View
style
=
{{
flex
:
1
}}
>
...
...
@@ -71,7 +76,6 @@ const CaculatedStopLoss = (props) => {
setProduct
(
items
);
}}
/
>
<
AppText
style
=
{
styles
.
txtTitle
}
i18nKey
=
{
'Tradding'
}
/
>
<
RadioForm
formHorizontal
=
{
true
}
...
...
@@ -80,19 +84,47 @@ const CaculatedStopLoss = (props) => {
style
=
{
styles
.
row
}
initial
=
{
0
}
onPress
=
{(
value
)
=>
{
console
.
log
({
value
:
value
}
);
setType
(
value
);
}}
/
>
<
TextField
title
=
{
I18n
.
t
(
'CountLotTradding'
)}
/
>
<
TextField
title
=
{
I18n
.
t
(
'PriceOpen'
)}
/
>
<
TextField
title
=
{
I18n
.
t
(
'FeeTradding'
)}
/
>
<
TextField
title
=
{
I18n
.
t
(
'SurpusInit'
)}
/
>
<
TextField
title
=
{
I18n
.
t
(
'withdrawalsSession'
)}
/
>
<
TextField
title
=
{
I18n
.
t
(
'PriceClose'
)}
/
>
<
TextField
title
=
{
I18n
.
t
(
'PriceStopLoss'
)}
/
>
<
TextField
onChangeText
=
{(
val
)
=>
setLot
(
val
)}
isNumber
=
{
true
}
title
=
{
I18n
.
t
(
'CountLotTradding'
)}
/
>
<
TextField
onChangeText
=
{(
val
)
=>
setPriceOpen
(
val
)}
isNumber
=
{
true
}
title
=
{
I18n
.
t
(
'PriceOpen'
)}
/
>
<
TextField
onChangeText
=
{(
val
)
=>
setFee
(
val
)}
isNumber
=
{
true
}
title
=
{
I18n
.
t
(
'FeeTradding'
)}
/
>
<
TextField
onChangeText
=
{(
val
)
=>
setSurplus
(
val
)}
isNumber
=
{
true
}
title
=
{
I18n
.
t
(
'SurpusInit'
)}
/
>
<
TextField
onChangeText
=
{(
val
)
=>
setInSession
(
val
)}
isNumber
=
{
true
}
title
=
{
I18n
.
t
(
'withdrawalsSession'
)}
/
>
<
TextField
onChangeText
=
{(
val
)
=>
setPriceClose
(
val
)}
isNumber
=
{
true
}
title
=
{
I18n
.
t
(
'PriceClose'
)}
/
>
<
TextField
onChangeText
=
{(
val
)
=>
setPriceSopLoss
(
val
)}
isNumber
=
{
true
}
title
=
{
I18n
.
t
(
'PriceStopLoss'
)}
/
>
<
AppText
style
=
{
styles
.
note
}
i18nKey
=
{
'noteStopLoss'
}
/
>
<
View
style
=
{
styles
.
footer
}
>
<
TouchableOpacity
style
=
{
styles
.
btnContainer
}
>
<
TouchableOpacity
onPress
=
{
onClick
}
style
=
{
styles
.
btnContainer
}
>
<
AppText
style
=
{
styles
.
txtBtn
}
i18nKey
=
{
'Caculate'
}
/
>
<
/TouchableOpacity
>
<
/View
>
...
...
This diff is collapsed.
Click to expand it.
src/Screens/Tool/ConvertUnit.js
View file @
080112fa
...
...
@@ -27,7 +27,15 @@ const dataType = [
];
const
ConvertUnit
=
(
props
)
=>
{
const
[
product
,
setProduct
]
=
useState
();
const
[
typeOne
,
setTypeOne
]
=
useState
();
const
[
typeTwo
,
setTypeTwo
]
=
useState
();
const
[
valueOne
,
setValueOne
]
=
useState
();
const
[
valueTwo
,
setValueTwo
]
=
useState
();
const
onClick
=
()
=>
{
console
.
log
(
'Heloo'
,
typeOne
,
typeTwo
,
valueOne
,
valueTwo
);
};
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
HeaderBack
title
=
{
'ConvertUnit'
}
/
>
...
...
@@ -39,10 +47,14 @@ const ConvertUnit = (props) => {
width
=
{
WIDTHXD
(
431
)}
data
=
{
dataType
}
onValueChange
=
{(
value
,
items
)
=>
{
set
Product
(
items
);
set
TypeOne
(
items
);
}}
/
>
<
TextInput
keyboardType
=
{
'number-pad'
}
style
=
{
styles
.
wrapInput
}
/
>
<
TextInput
onChangeText
=
{(
val
)
=>
setValueOne
(
val
)}
keyboardType
=
{
'number-pad'
}
style
=
{
styles
.
wrapInput
}
/
>
<
/View
>
<
Text
style
=
{
styles
.
txtNote
}
>
1
KG
=
2
Pount
<
/Text
>
<
/View
>
...
...
@@ -53,16 +65,20 @@ const ConvertUnit = (props) => {
width
=
{
WIDTHXD
(
431
)}
data
=
{
dataType
}
onValueChange
=
{(
value
,
items
)
=>
{
set
Product
(
items
);
set
TypeTwo
(
items
);
}}
/
>
<
TextInput
keyboardType
=
{
'number-pad'
}
style
=
{
styles
.
wrapInput
}
/
>
<
TextInput
onChangeText
=
{(
val
)
=>
setValueTwo
(
val
)}
keyboardType
=
{
'number-pad'
}
style
=
{
styles
.
wrapInput
}
/
>
<
/View
>
<
Text
style
=
{
styles
.
txtNote
}
>
1
Pount
=
0.5
KG
<
/Text
>
<
/View
>
<
View
style
=
{
styles
.
footer
}
>
<
TouchableOpacity
style
=
{
styles
.
btnContainer
}
>
<
TouchableOpacity
onPress
=
{
onClick
}
style
=
{
styles
.
btnContainer
}
>
<
AppText
style
=
{
styles
.
txtBtn
}
i18nKey
=
{
'Caculate'
}
/
>
<
/TouchableOpacity
>
<
/View
>
...
...
@@ -75,7 +91,7 @@ const styles = StyleSheet.create({
txtTitle
:
{
fontSize
:
getFontXD
(
42
),
color
:
R
.
colors
.
color777
,
margin
Top
:
15
,
margin
Bottom
:
15
,
},
note
:
{
fontSize
:
getFontXD
(
36
),
...
...
This diff is collapsed.
Click to expand it.
src/helper/i18/locales/vn.js
View file @
080112fa
...
...
@@ -257,4 +257,5 @@ export default {
ConvertUSD
:
'Quy đổi USD/Tấn'
,
Saturday
:
'Thứ 7'
,
Sunday
:
'Chủ nhật'
,
};
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