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
7bb18693
Commit
7bb18693
authored
May 31, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit home
parent
bd1a3c70
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
82 additions
and
45 deletions
+82
-45
project.pbxproj
ios/Invest.xcodeproj/project.pbxproj
+2
-2
Footer.js
src/Screens/Account/PacrtCQG/Footer.js
+8
-3
OTPWallet.js
src/Screens/Action/Wallet/OTPWallet.js
+3
-2
WalletWithdraw.js
src/Screens/Action/Wallet/WalletWithdraw.js
+25
-18
HeaderHome.js
src/components/Header/HeaderHome.js
+41
-20
en.js
src/helper/i18/locales/en.js
+2
-0
vn.js
src/helper/i18/locales/vn.js
+1
-0
No files found.
ios/Invest.xcodeproj/project.pbxproj
View file @
7bb18693
...
...
@@ -903,7 +903,7 @@
CODE_SIGN_ENTITLEMENTS
=
Invest/Invest.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
4
;
CURRENT_PROJECT_VERSION
=
5
;
DEVELOPMENT_TEAM
=
MXZ24GRH48
;
ENABLE_BITCODE
=
NO
;
GCC_PREPROCESSOR_DEFINITIONS
=
(
...
...
@@ -937,7 +937,7 @@
CODE_SIGN_ENTITLEMENTS
=
Invest/Invest.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
4
;
CURRENT_PROJECT_VERSION
=
5
;
DEVELOPMENT_TEAM
=
MXZ24GRH48
;
INFOPLIST_FILE
=
Invest/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
...
...
src/Screens/Account/PacrtCQG/Footer.js
View file @
7bb18693
import
React
,
{
Component
}
from
'react'
;
import
{
View
,
Text
,
StyleSheet
,
TouchableOpacity
,
Linking
}
from
'react-native'
;
import
{
getFontXD
,
toPriceVnd
}
from
'../../../Config/Functions'
;
import
{
getFontXD
,
toPriceVnd
,
WIDTHXD
,
HEIGHTXD
,
}
from
'../../../Config/Functions'
;
import
R
from
'../../../assets/R'
;
import
AppText
from
'../../../components/AppText'
;
import
I18n
from
'../../../helper/i18/i18n'
;
...
...
@@ -44,8 +49,8 @@ const styles = StyleSheet.create({
fontWeight
:
'bold'
,
},
btnSend
:
{
width
:
140
,
height
:
40
,
width
:
WIDTHXD
(
400
)
,
height
:
HEIGHTXD
(
120
)
,
backgroundColor
:
R
.
colors
.
main
,
borderRadius
:
10
,
justifyContent
:
'center'
,
...
...
src/Screens/Action/Wallet/OTPWallet.js
View file @
7bb18693
...
...
@@ -70,6 +70,7 @@ const ConfirmOTP = (propsa) => {
if
(
propsa
.
route
.
params
.
type
==
'DEPOSIT'
)
{
const
{
amount
,
notes
}
=
propsa
.
route
.
params
;
res
=
await
walletDeposit
({
amount
,
platform
:
Platform
.
OS
,
...
...
@@ -96,10 +97,10 @@ const ConfirmOTP = (propsa) => {
navigate
.
navigate
(
TABNAVIGATOR
);
},
500
);
}
else
{
showAlert
(
TYPE
.
SUCCESS
,
I18n
.
t
(
'Notification'
),
res
.
data
.
message
);
showAlert
(
TYPE
.
ERROR
,
I18n
.
t
(
'Notification'
),
res
.
data
.
message
);
}
}
else
{
showAlert
(
TYPE
.
SUCCESS
,
I18n
.
t
(
'Notification'
),
res
.
data
.
message
);
showAlert
(
TYPE
.
ERROR
,
I18n
.
t
(
'Notification'
),
res1
.
data
.
message
);
}
propsa
.
hideLoading
();
...
...
src/Screens/Action/Wallet/WalletWithdraw.js
View file @
7bb18693
...
...
@@ -94,26 +94,33 @@ const WalletWithdraw = (props) => {
const
index
=
checkFormatArray
([
type
,
amount
]);
if
(
index
===
true
)
{
props
.
showLoading
();
const
res
=
await
getOTPApi
({
platform
:
Platform
.
OS
,
otp_by
:
props
.
user
.
email
,
type
:
'REQUEST_WITHDRAW'
,
});
props
.
hideLoading
();
if
(
res
.
data
.
code
==
200
)
{
navigate
.
navigate
(
OTPWALLET
,
{
type
:
'WITHDRAW'
,
src
,
receiving_account
:
type
.
id
,
amount
,
notes
,
if
(
amount
>=
props
.
user
.
configs
.
request_withdraw_amount_min
)
{
props
.
showLoading
();
const
res
=
await
getOTPApi
({
platform
:
Platform
.
OS
,
otp_by
:
props
.
user
.
email
,
type
:
'REQUEST_WITHDRAW'
,
});
props
.
hideLoading
();
if
(
res
.
data
.
code
==
200
)
{
navigate
.
navigate
(
OTPWALLET
,
{
type
:
'WITHDRAW'
,
src
,
receiving_account
:
type
.
id
,
amount
,
notes
,
});
}
else
{
showAlert
(
TYPE
.
ERROR
,
I18n
.
t
(
'Notification'
),
res
.
data
.
message
);
}
props
.
hideLoading
();
}
else
{
showAlert
(
TYPE
.
ERROR
,
I18n
.
t
(
'Notification'
),
res
.
data
.
message
);
showAlert
(
TYPE
.
WARN
,
I18n
.
t
(
'Notification'
),
I18n
.
t
(
'WarnMinReqestWithdraw'
),
);
}
props
.
hideLoading
();
}
else
{
showAlert
(
TYPE
.
WARN
,
...
...
@@ -265,7 +272,7 @@ const styles = StyleSheet.create({
},
btnSend
:
{
width
:
WIDTHXD
(
400
),
height
:
HEIGHTXD
(
1
0
0
),
height
:
HEIGHTXD
(
1
2
0
),
backgroundColor
:
R
.
colors
.
main
,
borderRadius
:
10
,
justifyContent
:
'center'
,
...
...
src/components/Header/HeaderHome.js
View file @
7bb18693
...
...
@@ -195,14 +195,25 @@ const renderActions = (onClickDetail) => {
<
AppText
i18nKey
=
{
'History'
}
style
=
{
styles
.
txt
}
/
>
<
/TouchableOpacity
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
<
View
style
=
{{
width
:
30
,
height
:
20
}}
>
<
TouchableOpacity
onPress
=
{()
=>
onClickDetail
()}
style
=
{
styles
.
containerBtn
}
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
,
}}
>
<
TouchableOpacity
onPress
=
{()
=>
{
onClickDetail
();
}}
style
=
{{
width
:
HEIGHTXD
(
160
),
height
:
HEIGHTXD
(
80
),
justifyContent
:
'center'
,
alignItems
:
'center'
,
}}
>
<
View
style
=
{
styles
.
containerBtn
}
>
<
Icon
name
=
{
'up'
}
size
=
{
18
}
color
=
{
R
.
colors
.
color777
}
/
>
<
/
TouchableOpacity
>
<
/
View
>
<
/
View
>
<
/
TouchableOpacity
>
<
/View
>
<
/View
>
);
...
...
@@ -280,14 +291,25 @@ const HeaderHome = (props) => {
{
detail
?
(
renderActions
(
onClickDetail
)
)
:
(
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
<
View
style
=
{{
width
:
HEIGHTXD
(
80
),
height
:
HEIGHTXD
(
60
)}}
>
<
TouchableOpacity
onPress
=
{
onClickDetail
}
style
=
{
styles
.
containerBtn
}
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
,
}}
>
<
TouchableOpacity
onPress
=
{()
=>
{
onClickDetail
();
}}
style
=
{{
width
:
HEIGHTXD
(
160
),
height
:
HEIGHTXD
(
80
),
justifyContent
:
'center'
,
alignItems
:
'center'
,
}}
>
<
View
style
=
{
styles
.
containerBtn
}
>
<
Icon
name
=
{
'down'
}
size
=
{
18
}
color
=
{
R
.
colors
.
color777
}
/
>
<
/
TouchableOpacity
>
<
/
View
>
<
/
View
>
<
/
TouchableOpacity
>
<
/View
>
)}
<
/View
>
...
...
@@ -317,23 +339,22 @@ const styles = StyleSheet.create({
borderBottomColor
:
'#EDEDF1'
,
},
containerBtn
:
{
position
:
'absolute'
,
width
:
HEIGHTXD
(
80
),
height
:
HEIGHTXD
(
80
),
justifyContent
:
'center'
,
alignItems
:
'center'
,
backgroundColor
:
R
.
colors
.
white
,
borderRadius
:
HEIGHTXD
(
80
),
top
:
HEIGHTXD
(
20
),
shadowColor
:
'#000'
,
marginTop
:
15
,
shadowOffset
:
{
width
:
0
,
height
:
1
,
width
:
1
,
height
:
2
,
},
shadowOpacity
:
0
.25
,
shadowOpacity
:
1
.25
,
shadowRadius
:
1.84
,
elevation
:
1
,
elevation
:
3
,
},
img
:
{
height
:
Platform
.
OS
==
'ios'
?
HEIGHTXD
(
728
)
:
HEIGHTXD
(
808
),
...
...
src/helper/i18/locales/en.js
View file @
7bb18693
...
...
@@ -286,4 +286,6 @@ export default {
WaitUpdateCQG
:
'Waiting Update CQG'
,
code
:
'Code'
,
AvailableMargin
:
'Available margin'
,
WarnMinReqestWithdraw
:
'The withdrawal amount must be more than 1 million dong'
,
};
src/helper/i18/locales/vn.js
View file @
7bb18693
...
...
@@ -287,4 +287,5 @@ export default {
Calculator
:
'Tính'
,
_Sell
:
'Bán'
,
FirstEscrow
:
'Ký quỹ ban đầu (VNĐ) '
,
WarnMinReqestWithdraw
:
'Số tiền rút phải lớn hơn 1 triệu đồ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