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
67d5a8be
Commit
67d5a8be
authored
May 11, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_phase2' into 05_May
parents
6ebd08d4
b21af32d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
34 additions
and
27 deletions
+34
-27
project.pbxproj
ios/Invest.xcodeproj/project.pbxproj
+2
-2
Info.plist
ios/Invest/Info.plist
+2
-2
Home.js
src/Screens/Home/Home.js
+0
-0
HomeView.js
src/Screens/Home/HomeView.js
+1
-4
ItemPrice.js
src/Screens/Home/ItemPrice.js
+17
-17
PriceListView.js
src/Screens/Home/PriceListView.js
+2
-2
Home.js
src/apis/Functions/Home.js
+8
-0
url.js
src/apis/url.js
+1
-0
colors.js
src/assets/colors.js
+1
-0
No files found.
ios/Invest.xcodeproj/project.pbxproj
View file @
67d5a8be
...
@@ -903,7 +903,7 @@
...
@@ -903,7 +903,7 @@
CODE_SIGN_ENTITLEMENTS
=
Invest/Invest.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Invest/Invest.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
5
;
CURRENT_PROJECT_VERSION
=
7
;
DEVELOPMENT_TEAM
=
MXZ24GRH48
;
DEVELOPMENT_TEAM
=
MXZ24GRH48
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_PREPROCESSOR_DEFINITIONS
=
(
GCC_PREPROCESSOR_DEFINITIONS
=
(
...
@@ -937,7 +937,7 @@
...
@@ -937,7 +937,7 @@
CODE_SIGN_ENTITLEMENTS
=
Invest/Invest.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Invest/Invest.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
5
;
CURRENT_PROJECT_VERSION
=
7
;
DEVELOPMENT_TEAM
=
MXZ24GRH48
;
DEVELOPMENT_TEAM
=
MXZ24GRH48
;
INFOPLIST_FILE
=
Invest/Info.plist
;
INFOPLIST_FILE
=
Invest/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
...
...
ios/Invest/Info.plist
View file @
67d5a8be
...
@@ -24,8 +24,6 @@
...
@@ -24,8 +24,6 @@
<
string
>
$
(
MARKETING_VERSION
)<
/string
>
<
string
>
$
(
MARKETING_VERSION
)<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
string
>
????
<
/string
>
<
k
e
y
>
UIRequiresFullScreen
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
@@ -92,6 +90,8 @@
...
@@ -92,6 +90,8 @@
<
a
rr
a
y
>
<
a
rr
a
y
>
<
string
>
armv7
<
/string
>
<
string
>
armv7
<
/string
>
<
/
a
rr
a
y
>
<
/
a
rr
a
y
>
<
k
e
y
>
UIRequiresFullScreen
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
UISupportedInterfaceOrientations
<
/k
e
y
>
<
k
e
y
>
UISupportedInterfaceOrientations
<
/k
e
y
>
<
a
rr
a
y
>
<
a
rr
a
y
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
...
...
src/Screens/Home/Home.js
View file @
67d5a8be
This diff is collapsed.
Click to expand it.
src/Screens/Home/HomeView.js
View file @
67d5a8be
import
React
from
'react'
;
import
React
from
'react'
;
import
{
import
{
View
,
View
,
Text
,
ImageBackground
,
ImageBackground
,
StyleSheet
,
StyleSheet
,
ScrollView
,
ScrollView
,
}
from
'react-native'
;
}
from
'react-native'
;
import
HeaderHome
from
'../../components/Header/HeaderHome'
;
import
HeaderHome
from
'../../components/Header/HeaderHome'
;
import
Footer
from
'./Footer'
;
import
{
getFontXD
}
from
'../../Config/Functions'
;
import
{
HEIGHT
,
HEIGHTXD
,
toPriceVnd
,
getFontXD
}
from
'../../Config/Functions'
;
import
R
from
'../../assets/R'
;
import
R
from
'../../assets/R'
;
import
AppText
from
'../../components/AppText'
;
import
SwiperComponent
from
'./SwiperComponent'
;
import
SwiperComponent
from
'./SwiperComponent'
;
import
PriceListView
from
'./PriceListView'
;
import
PriceListView
from
'./PriceListView'
;
...
...
src/Screens/Home/ItemPrice.js
View file @
67d5a8be
...
@@ -23,14 +23,14 @@ const ItemPrice = (props) => {
...
@@ -23,14 +23,14 @@ const ItemPrice = (props) => {
<
Text
style
=
{[
styles
.
txtBlack
,
{
marginBottom
:
HEIGHTXD
(
5
)}]}
>
<
Text
style
=
{[
styles
.
txtBlack
,
{
marginBottom
:
HEIGHTXD
(
5
)}]}
>
{
item
.
name
}
{
item
.
name
}
<
/Text
>
<
/Text
>
<
Progress
.
Bar
progress
=
{
item
.
change
}
{
/*<Progress.Bar progress={item.change}*/
}
width
=
{
WIDTHXD
(
200
)
}
{
/* width={WIDTHXD(200)}*/
}
height
=
{
HEIGHTXD
(
8
)
}
{
/* height={HEIGHTXD(8)}*/
}
color
=
{
R
.
colors
.
green
}
{
/* color={R.colors.green}*/
}
backgroundColor
=
{
R
.
colors
.
red
}
{
/* backgroundColor={R.colors.red}*/
}
borderWidth
=
{
0
}
{
/* borderWidth={0}*/
}
borderRadius
=
{
0
}
{
/* borderRadius={0}*/
}
/
>
{
/*/>*/
}
<
/View
>
<
/View
>
<
Block
padding
=
{[
0
,
0
]}
space
=
{
'between'
}
flex
=
{
1
}
>
<
Block
padding
=
{[
0
,
0
]}
space
=
{
'between'
}
flex
=
{
1
}
>
<
View
<
View
...
@@ -47,12 +47,12 @@ const ItemPrice = (props) => {
...
@@ -47,12 +47,12 @@ const ItemPrice = (props) => {
justifyContent
:
'space-between'
,
justifyContent
:
'space-between'
,
alignItems
:
'center'
,
alignItems
:
'center'
,
}}
>
}}
>
<
Image
source
=
{
item
.
is
U
p
?
R
.
images
.
iconTriangleUp
:
R
.
images
.
iconTriangleDown
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
item
.
is
_u
p
?
R
.
images
.
iconTriangleUp
:
R
.
images
.
iconTriangleDown
}
style
=
{
styles
.
imgIcon
}
/
>
<
Text
style
=
{[
styles
.
txtBlack
,
{
flexWrap
:
'wrap'
,
color
:
item
.
is
U
p
?
R
.
colors
.
green
:
R
.
colors
.
red2
}]}
>
<
Text
style
=
{[
styles
.
txtBlack
,
{
flexWrap
:
'wrap'
,
color
:
item
.
is
_u
p
?
R
.
colors
.
green
:
R
.
colors
.
red2
}]}
>
{
item
.
change
}
{
item
.
change
}
<
/Text
>
<
/Text
>
<
/View
>
<
/View
>
<
Text
style
=
{[
styles
.
txtMoney
,
{
color
:
item
.
is
Up
?
R
.
colors
.
green
:
R
.
colors
.
red2
}]}
>
{
`
${
item
.
change
}
%`
}
<
/Text
>
<
Text
style
=
{[
styles
.
txtMoney
,
{
color
:
item
.
is
_up
?
R
.
colors
.
green
:
R
.
colors
.
red2
}]}
>
{
`
${
item
.
change_percent
}
%`
}
<
/Text
>
<
/View
>
<
/View
>
<
/Block
>
<
/Block
>
<
Block
padding
=
{[
0
,
0
]}
space
=
{
'between'
}
flex
=
{
1
}
>
<
Block
padding
=
{[
0
,
0
]}
space
=
{
'between'
}
flex
=
{
1
}
>
...
@@ -73,9 +73,9 @@ const ItemPrice = (props) => {
...
@@ -73,9 +73,9 @@ const ItemPrice = (props) => {
<
Text
style
=
{[
styles
.
txtBlack
,
{
flexWrap
:
'wrap'
}]}
<
Text
style
=
{[
styles
.
txtBlack
,
{
flexWrap
:
'wrap'
}]}
ellipsizeMode
=
'tail'
>
ellipsizeMode
=
'tail'
>
{
item
.
open
P
rice
}
{
item
.
open
_p
rice
}
<
/Text
>
<
/Text
>
<
Image
source
=
{
item
.
is
U
p
?
R
.
images
.
iconTriangleUp
:
R
.
images
.
iconTriangleDown
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
item
.
is
_u
p
?
R
.
images
.
iconTriangleUp
:
R
.
images
.
iconTriangleDown
}
style
=
{
styles
.
imgIcon
}
/
>
<
/View
>
<
/View
>
<
View
<
View
style
=
{{
style
=
{{
...
@@ -84,7 +84,7 @@ const ItemPrice = (props) => {
...
@@ -84,7 +84,7 @@ const ItemPrice = (props) => {
justifyContent
:
'space-between'
,
justifyContent
:
'space-between'
,
alignItems
:
'center'
,
alignItems
:
'center'
,
}}
>
}}
>
<
Text
style
=
{[
styles
.
txtMoney
,
{
color
:
R
.
colors
.
gray
}]}
>
{
item
.
closeP
rice
}
<
/Text
>
<
Text
style
=
{[
styles
.
txtMoney
,
{
color
:
R
.
colors
.
gray
6
}]}
>
{
item
.
close_p
rice
}
<
/Text
>
<
Image
source
=
{
R
.
images
.
iconCheck2
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconCheck2
}
style
=
{
styles
.
imgIcon
}
/
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
@@ -104,7 +104,7 @@ const ItemPrice = (props) => {
...
@@ -104,7 +104,7 @@ const ItemPrice = (props) => {
justifyContent
:
'center'
,
justifyContent
:
'center'
,
}}
>
}}
>
<
Text
style
=
{[
styles
.
txtBlack
,
{
flexWrap
:
'wrap'
}]}
>
<
Text
style
=
{[
styles
.
txtBlack
,
{
flexWrap
:
'wrap'
}]}
>
{
item
.
high
P
rice
}
{
item
.
high
_p
rice
}
<
/Text
>
<
/Text
>
<
Text
style
=
{[
styles
.
txtGray
,
{
flexWrap
:
'wrap'
}]}
>
<
Text
style
=
{[
styles
.
txtGray
,
{
flexWrap
:
'wrap'
}]}
>
H
H
...
@@ -116,7 +116,7 @@ const ItemPrice = (props) => {
...
@@ -116,7 +116,7 @@ const ItemPrice = (props) => {
flexDirection
:
'row'
,
flexDirection
:
'row'
,
justifyContent
:
'center'
,
justifyContent
:
'center'
,
}}
>
}}
>
<
Text
style
=
{
styles
.
txtMoney
}
>
{
item
.
low
P
rice
}
<
/Text
>
<
Text
style
=
{
styles
.
txtMoney
}
>
{
item
.
low
_p
rice
}
<
/Text
>
<
Text
style
=
{[
styles
.
txtGray
,
{
flexWrap
:
'wrap'
}]}
>
<
Text
style
=
{[
styles
.
txtGray
,
{
flexWrap
:
'wrap'
}]}
>
L
L
<
/Text
>
<
/Text
>
...
@@ -167,7 +167,7 @@ const styles = StyleSheet.create({
...
@@ -167,7 +167,7 @@ const styles = StyleSheet.create({
txtGray
:
{
txtGray
:
{
fontSize
:
getFontXD
(
28
),
fontSize
:
getFontXD
(
28
),
color
:
R
.
colors
.
gray
,
color
:
R
.
colors
.
gray
6
,
},
},
txtTime
:
{
txtTime
:
{
...
...
src/Screens/Home/PriceListView.js
View file @
67d5a8be
import
React
,
{
useState
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
import
{
View
,
View
,
Text
,
Text
,
...
@@ -105,7 +105,7 @@ const styles = StyleSheet.create({
...
@@ -105,7 +105,7 @@ const styles = StyleSheet.create({
alignItems
:
'center'
,
alignItems
:
'center'
,
},
},
imgIcon
:
{
imgIcon
:
{
width
:
WIDTHXD
(
3
0
),
width
:
WIDTHXD
(
2
0
),
height
:
WIDTHXD
(
35
),
height
:
WIDTHXD
(
35
),
resizeMode
:
'contain'
,
resizeMode
:
'contain'
,
},
},
...
...
src/apis/Functions/Home.js
0 → 100644
View file @
67d5a8be
import
{
GetData
}
from
'../helpers'
;
import
url
from
'../url'
;
export
const
getPriceTable
=
async
(
body
)
=>
GetData
(
url
.
urlGetPriceTable
,
body
)
.
then
((
res
)
=>
res
)
.
catch
((
err
)
=>
err
);
src/apis/url.js
View file @
67d5a8be
...
@@ -26,6 +26,7 @@ export default {
...
@@ -26,6 +26,7 @@ export default {
//Home
//Home
urlGetTransaction
:
root
+
'api/v1/customers/statistic-transaction'
,
urlGetTransaction
:
root
+
'api/v1/customers/statistic-transaction'
,
urlGetPriceTable
:
`
${
root
}
api/v1/customers/update-price-table`
,
//History
//History
urlGetListHistory
:
root
+
'api/v1/customers/get-list-transaction-history'
,
urlGetListHistory
:
root
+
'api/v1/customers/get-list-transaction-history'
,
...
...
src/assets/colors.js
View file @
67d5a8be
...
@@ -45,6 +45,7 @@ const colors = {
...
@@ -45,6 +45,7 @@ const colors = {
gray1
:
'#bfbfbf'
,
gray1
:
'#bfbfbf'
,
gray4
:
'#e6e6e6'
,
gray4
:
'#e6e6e6'
,
gray5
:
'rgba(226,232,235, 1)'
,
gray5
:
'rgba(226,232,235, 1)'
,
gray6
:
'#929292'
,
orange
:
'#FF9C00'
,
orange
:
'#FF9C00'
,
lightBlue
:
'#1a8cff'
,
lightBlue
:
'#1a8cff'
,
lightBlue1
:
'#008ae6'
,
lightBlue1
:
'#008ae6'
,
...
...
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