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
1a31e058
Commit
1a31e058
authored
May 18, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
23060292
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
18 deletions
+30
-18
PacketCQG.js
src/Screens/Account/PacrtCQG/PacketCQG.js
+1
-0
ConvertUnit.js
src/Screens/Tool/ConvertUnit.js
+27
-18
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/Account/PacrtCQG/PacketCQG.js
View file @
1a31e058
...
@@ -117,6 +117,7 @@ const PacketCQG = (props) => {
...
@@ -117,6 +117,7 @@ const PacketCQG = (props) => {
};
};
const
getData
=
async
()
=>
{
const
getData
=
async
()
=>
{
const
res
=
await
getListPacketCQG
({});
const
res
=
await
getListPacketCQG
({});
console
.
log
(
res
.
data
.
data
.
fee
.
data
);
if
((
res
.
data
.
code
=
200
&&
res
.
data
.
data
))
{
if
((
res
.
data
.
code
=
200
&&
res
.
data
.
data
))
{
setListData
(
res
.
data
.
data
.
fee
.
data
);
setListData
(
res
.
data
.
data
.
fee
.
data
);
...
...
src/Screens/Tool/ConvertUnit.js
View file @
1a31e058
...
@@ -14,6 +14,7 @@ import AppText from '../../components/AppText';
...
@@ -14,6 +14,7 @@ import AppText from '../../components/AppText';
import
TextField
from
'../../components/Input/TextField'
;
import
TextField
from
'../../components/Input/TextField'
;
import
{
getFontXD
,
HEIGHTXD
,
WIDTHXD
}
from
'../../Config/Functions'
;
import
{
getFontXD
,
HEIGHTXD
,
WIDTHXD
}
from
'../../Config/Functions'
;
import
R
from
'../../assets/R'
;
import
R
from
'../../assets/R'
;
import
Icon
from
'react-native-vector-icons/FontAwesome'
;
const
dataType
=
[
const
dataType
=
[
{
{
...
@@ -31,6 +32,7 @@ const ConvertUnit = (props) => {
...
@@ -31,6 +32,7 @@ const ConvertUnit = (props) => {
const
[
typeTwo
,
setTypeTwo
]
=
useState
();
const
[
typeTwo
,
setTypeTwo
]
=
useState
();
const
[
valueOne
,
setValueOne
]
=
useState
();
const
[
valueOne
,
setValueOne
]
=
useState
();
const
[
valueTwo
,
setValueTwo
]
=
useState
();
const
[
valueTwo
,
setValueTwo
]
=
useState
();
const
[
result
,
setResult
]
=
useState
();
const
onClick
=
()
=>
{
const
onClick
=
()
=>
{
console
.
log
(
'Heloo'
,
typeOne
,
typeTwo
,
valueOne
,
valueTwo
);
console
.
log
(
'Heloo'
,
typeOne
,
typeTwo
,
valueOne
,
valueTwo
);
...
@@ -40,43 +42,43 @@ const ConvertUnit = (props) => {
...
@@ -40,43 +42,43 @@ const ConvertUnit = (props) => {
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
HeaderBack
title
=
{
'ConvertUnit'
}
/
>
<
HeaderBack
title
=
{
'ConvertUnit'
}
/
>
<
View
style
=
{{
flex
:
1
,
paddingTop
:
20
,
paddingHorizontal
:
20
}}
>
<
View
style
=
{{
flex
:
1
,
paddingTop
:
20
,
paddingHorizontal
:
20
}}
>
<
AppText
style
=
{
styles
.
txtTitle
}
i18nKey
=
{
'Co
nversionUni
t'
}
/
>
<
AppText
style
=
{
styles
.
txtTitle
}
i18nKey
=
{
'Co
un
t'
}
/
>
<
View
style
=
{
styles
.
Item
}
>
<
View
style
=
{
styles
.
Item
}
>
<
View
style
=
{
styles
.
wrap
}
>
<
View
style
=
{
styles
.
wrap
}
>
<
PickerItem
width
=
{
WIDTHXD
(
431
)}
data
=
{
dataType
}
onValueChange
=
{(
value
,
items
)
=>
{
setTypeOne
(
items
);
}}
/
>
<
TextInput
<
TextInput
onChangeText
=
{(
val
)
=>
setValueOne
(
val
)}
onChangeText
=
{(
val
)
=>
setValueOne
(
val
)}
keyboardType
=
{
'number-pad'
}
keyboardType
=
{
'number-pad'
}
style
=
{
styles
.
wrapInput
}
style
=
{
styles
.
wrapInput
}
maxLength
=
{
12
}
/
>
/
>
<
/View
>
<
/View
>
<
Text
style
=
{
styles
.
txtNote
}
>
1
KG
=
2
Pount
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
Item
}
>
<
View
style
=
{
styles
.
Item
}
>
<
View
style
=
{
styles
.
wrap
}
>
<
View
style
=
{
styles
.
wrap
}
>
<
PickerItem
<
PickerItem
width
=
{
WIDTHXD
(
4
31
)}
width
=
{
WIDTHXD
(
4
00
)}
data
=
{
dataType
}
data
=
{
dataType
}
onValueChange
=
{(
value
,
items
)
=>
{
onValueChange
=
{(
value
,
items
)
=>
{
setTypeTwo
(
items
);
setTypeTwo
(
items
);
}}
}}
/
>
/
>
<
TextInput
<
TouchableOpacity
>
onChangeText
=
{(
val
)
=>
setValueTwo
(
val
)}
<
Icon
name
=
{
'exchange'
}
size
=
{
30
}
color
=
{
R
.
colors
.
black
}
/
>
keyboardType
=
{
'number-pad'
}
<
/TouchableOpacity
>
style
=
{
styles
.
wrapInput
}
<
PickerItem
width
=
{
WIDTHXD
(
400
)}
data
=
{
dataType
}
onValueChange
=
{(
value
,
items
)
=>
{
setTypeOne
(
items
);
}}
/
>
/
>
<
/View
>
<
/View
>
<
Text
style
=
{
styles
.
txtNote
}
>
1
Pount
=
0.5
KG
<
/Text
>
<
/View
>
<
/View
>
<
Text
style
=
{
styles
.
txtResult
}
>
K
ế
t
qu
ả
:
{
result
}
<
/Text
>
<
View
style
=
{
styles
.
footer
}
>
<
View
style
=
{
styles
.
footer
}
>
<
TouchableOpacity
onPress
=
{
onClick
}
style
=
{
styles
.
btnContainer
}
>
<
TouchableOpacity
onPress
=
{
onClick
}
style
=
{
styles
.
btnContainer
}
>
<
AppText
style
=
{
styles
.
txtBtn
}
i18nKey
=
{
'Caculate'
}
/
>
<
AppText
style
=
{
styles
.
txtBtn
}
i18nKey
=
{
'Caculate'
}
/
>
...
@@ -91,7 +93,7 @@ const styles = StyleSheet.create({
...
@@ -91,7 +93,7 @@ const styles = StyleSheet.create({
txtTitle
:
{
txtTitle
:
{
fontSize
:
getFontXD
(
42
),
fontSize
:
getFontXD
(
42
),
color
:
R
.
colors
.
color777
,
color
:
R
.
colors
.
color777
,
marginBottom
:
1
5
,
marginBottom
:
5
,
},
},
note
:
{
note
:
{
fontSize
:
getFontXD
(
36
),
fontSize
:
getFontXD
(
36
),
...
@@ -108,7 +110,7 @@ const styles = StyleSheet.create({
...
@@ -108,7 +110,7 @@ const styles = StyleSheet.create({
footer
:
{
footer
:
{
alignItems
:
'center'
,
alignItems
:
'center'
,
justifyContent
:
'center'
,
justifyContent
:
'center'
,
marginTop
:
2
0
,
marginTop
:
4
0
,
},
},
btnContainer
:
{
btnContainer
:
{
width
:
WIDTHXD
(
428
),
width
:
WIDTHXD
(
428
),
...
@@ -124,7 +126,7 @@ const styles = StyleSheet.create({
...
@@ -124,7 +126,7 @@ const styles = StyleSheet.create({
fontWeight
:
'600'
,
fontWeight
:
'600'
,
},
},
wrapInput
:
{
wrapInput
:
{
width
:
WIDTHXD
(
431
)
,
width
:
'100%'
,
backgroundColor
:
R
.
colors
.
white
,
backgroundColor
:
R
.
colors
.
white
,
height
:
HEIGHTXD
(
109
),
height
:
HEIGHTXD
(
109
),
fontSize
:
getFontXD
(
42
),
fontSize
:
getFontXD
(
42
),
...
@@ -152,5 +154,12 @@ const styles = StyleSheet.create({
...
@@ -152,5 +154,12 @@ const styles = StyleSheet.create({
textAlign
:
'right'
,
textAlign
:
'right'
,
marginTop
:
10
,
marginTop
:
10
,
},
},
txtResult
:
{
fontSize
:
getFontXD
(
52
),
color
:
R
.
colors
.
black
,
fontWeight
:
'600'
,
textAlign
:
'center'
,
marginTop
:
20
,
},
});
});
export
default
ConvertUnit
;
export
default
ConvertUnit
;
src/helper/i18/locales/en.js
View file @
1a31e058
...
@@ -276,4 +276,5 @@ export default {
...
@@ -276,4 +276,5 @@ export default {
SELL_OUT
:
'Sell out'
,
SELL_OUT
:
'Sell out'
,
CloseAccount
:
'Close account'
,
CloseAccount
:
'Close account'
,
UpdatePacket
:
'Update packet'
,
UpdatePacket
:
'Update packet'
,
Count
:
'Count'
,
};
};
src/helper/i18/locales/vn.js
View file @
1a31e058
...
@@ -271,4 +271,5 @@ export default {
...
@@ -271,4 +271,5 @@ export default {
FirstEscrowTotal
:
'Ký quỹ khả dụng'
,
FirstEscrowTotal
:
'Ký quỹ khả dụng'
,
CloseAccount
:
'Đóng tài khoản'
,
CloseAccount
:
'Đóng tài khoản'
,
UpdatePacket
:
'Cập nhật gói cước'
,
UpdatePacket
:
'Cập nhật gói cước'
,
Count
:
'Số lượng'
,
};
};
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