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
00051574
Commit
00051574
authored
Mar 17, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update monent
parent
c2e7556c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
11 deletions
+39
-11
DepositView.js
src/Screens/Action/Deposit/DepositView.js
+1
-4
Withdraw.js
src/Screens/Action/Withdraw/Withdraw.js
+24
-2
Item.js
src/Screens/Notification/Item.js
+1
-1
Widthdraw.js
src/apis/Functions/Widthdraw.js
+8
-0
url.js
src/apis/url.js
+1
-0
HeaderHome.js
src/components/Header/HeaderHome.js
+2
-2
PlussModal.js
src/routers/PlussModal.js
+2
-2
No files found.
src/Screens/Action/Deposit/DepositView.js
View file @
00051574
import
React
,
{
useState
}
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
View
,
Text
,
StyleSheet
}
from
'react-native'
;
import
{
View
,
Text
,
StyleSheet
}
from
'react-native'
;
import
HeaderBack
from
'../../../components/Header/HeaderBack'
;
import
HeaderBack
from
'../../../components/Header/HeaderBack'
;
import
TextField
from
'../../../components/Input/TextField'
;
import
TextMulti
from
'../../../components/Input/TextMulti'
;
import
Button
from
'../../../components/Button'
;
import
{
HEIGHTXD
}
from
'../../../Config/Functions'
;
import
{
WebView
}
from
'react-native-webview'
;
import
{
WebView
}
from
'react-native-webview'
;
const
DepositView
=
(
props
)
=>
{
const
DepositView
=
(
props
)
=>
{
...
...
src/Screens/Action/Withdraw/Withdraw.js
View file @
00051574
import
React
from
'react'
;
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Platform
}
from
'react-native'
;
import
WithdrawView
from
'./WithdrawView'
;
import
WithdrawView
from
'./WithdrawView'
;
import
{
getListWidthDraw
}
from
'../../../apis/Functions/Widthdraw'
;
import
{
Alert
}
from
'react-native'
;
const
Withdraw
=
(
props
)
=>
{
const
Withdraw
=
(
props
)
=>
{
const
[
listMethod
,
setListMethod
]
=
useState
([]);
useEffect
(()
=>
{
getData
();
},
[]);
const
getData
=
async
()
=>
{
const
res
=
await
getListWidthDraw
({
page_index
:
1
,
page_size
:
20
,
platform
:
Platform
.
OS
,
});
if
(
res
.
data
.
code
==
200
)
{
setListMethod
(
res
.
data
.
data
);
}
else
{
Alert
.
alert
(
'Lấy danh sách phương thức rút tiền thất bại!'
);
}
};
return
<
WithdrawView
/>
;
return
<
WithdrawView
/>
;
};
};
...
...
src/Screens/Notification/Item.js
View file @
00051574
...
@@ -13,7 +13,7 @@ const Item = (props) => {
...
@@ -13,7 +13,7 @@ const Item = (props) => {
<
Block
flex
=
{
1
}
row
>
<
Block
flex
=
{
1
}
row
>
<
View
style
=
{
styles
.
wrapLeft
}
/
>
<
View
style
=
{
styles
.
wrapLeft
}
/
>
<
View
style
=
{
styles
.
wrapDate
}
>
<
View
style
=
{
styles
.
wrapDate
}
>
<
Image
source
=
{
R
.
images
.
icon
DepositNoti
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
icon
Recharge
}
style
=
{
styles
.
imgIcon
}
/
>
<
/View
>
<
/View
>
<
Block
padding
=
{[
5
,
10
]}
space
=
{
'between'
}
flex
=
{
1
}
>
<
Block
padding
=
{[
5
,
10
]}
space
=
{
'between'
}
flex
=
{
1
}
>
<
View
style
=
{{
justifyContent
:
'center'
,
flex
:
1
}}
>
<
View
style
=
{{
justifyContent
:
'center'
,
flex
:
1
}}
>
...
...
src/apis/Functions/Widthdraw.js
0 → 100644
View file @
00051574
import
{
PostLogin
,
GetData
,
PostData
}
from
'../helpers'
;
import
url
from
'../url'
;
export
const
getListWidthDraw
=
async
(
body
)
=>
GetData
(
url
.
urlGetListWithDraw
,
body
)
.
then
((
res
)
=>
res
)
.
catch
((
err
)
=>
err
);
src/apis/url.js
View file @
00051574
...
@@ -6,4 +6,5 @@ export default {
...
@@ -6,4 +6,5 @@ export default {
urlGetOTP
:
root
+
'api/auth/customer-get-otp'
,
urlGetOTP
:
root
+
'api/auth/customer-get-otp'
,
urlVerifyOTP
:
root
+
'api/auth/customer-verify-otp'
,
urlVerifyOTP
:
root
+
'api/auth/customer-verify-otp'
,
urlForgotPassword
:
root
+
'api/auth/customer-forgot-password'
,
urlForgotPassword
:
root
+
'api/auth/customer-forgot-password'
,
urlGetListWithDraw
:
root
+
'api/v1/payments/get-list-withdraw-method'
,
};
};
src/components/Header/HeaderHome.js
View file @
00051574
...
@@ -48,14 +48,14 @@ const HeaderHome = (props) => {
...
@@ -48,14 +48,14 @@ const HeaderHome = (props) => {
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
CHOOSEMETHOD
)}
onPress
=
{()
=>
navigate
.
navigate
(
CHOOSEMETHOD
)}
style
=
{
styles
.
wraper
}
>
style
=
{
styles
.
wraper
}
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
icon
Deposit
}
/
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
icon
Recharge
}
/
>
<
Text
style
=
{
styles
.
txt
}
>
N
ạ
p
ti
ề
n
<
/Text
>
<
Text
style
=
{
styles
.
txt
}
>
N
ạ
p
ti
ề
n
<
/Text
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
WITHDRAW
)}
onPress
=
{()
=>
navigate
.
navigate
(
WITHDRAW
)}
style
=
{
styles
.
wraper
}
>
style
=
{
styles
.
wraper
}
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
iconWithdraw
}
/
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
iconWithdraw
al
}
/
>
<
Text
style
=
{
styles
.
txt
}
>
R
ú
t
ti
ề
n
<
/Text
>
<
Text
style
=
{
styles
.
txt
}
>
R
ú
t
ti
ề
n
<
/Text
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
...
...
src/routers/PlussModal.js
View file @
00051574
...
@@ -50,7 +50,7 @@ const PlussModal = (props) => {
...
@@ -50,7 +50,7 @@ const PlussModal = (props) => {
toggleModal
();
toggleModal
();
}}
}}
style
=
{
styles
.
wraper1
}
>
style
=
{
styles
.
wraper1
}
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
icon
Deposit
}
/
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
icon
Recharge
}
/
>
<
Text
style
=
{
styles
.
txt
}
>
N
ạ
p
ti
ề
n
<
/Text
>
<
Text
style
=
{
styles
.
txt
}
>
N
ạ
p
ti
ề
n
<
/Text
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
...
@@ -60,7 +60,7 @@ const PlussModal = (props) => {
...
@@ -60,7 +60,7 @@ const PlussModal = (props) => {
toggleModal
();
toggleModal
();
}}
}}
style
=
{
styles
.
wraper1
}
>
style
=
{
styles
.
wraper1
}
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
iconWithdraw
}
/
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
iconWithdraw
al
}
/
>
<
Text
style
=
{
styles
.
txt
}
>
R
ú
t
ti
ề
n
<
/Text
>
<
Text
style
=
{
styles
.
txt
}
>
R
ú
t
ti
ề
n
<
/Text
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
...
...
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