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
6ebd08d4
Commit
6ebd08d4
authored
May 11, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
dc328c41
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
34 additions
and
21 deletions
+34
-21
BankInfor.js
src/Screens/AccountVerification/Tab/BankInfor.js
+2
-0
Item.js
src/Screens/Action/Wallet/Tab/Item.js
+18
-3
Success.js
src/Screens/Action/Wallet/Tab/Success.js
+1
-3
Watting.js
src/Screens/Action/Wallet/Tab/Watting.js
+0
-2
Wallet.js
src/Screens/Action/Wallet/Wallet.js
+1
-1
AddMethod.js
src/Screens/MethodPay/AddMethod.js
+5
-5
Item.js
src/Screens/Notification/Item.js
+6
-7
url.js
src/apis/url.js
+1
-0
No files found.
src/Screens/AccountVerification/Tab/BankInfor.js
View file @
6ebd08d4
...
...
@@ -79,6 +79,8 @@ const BankInfor = (props) => {
return
data
;
};
const
onPress
=
async
()
=>
{
const
titles
=
[
I18n
.
t
(
'CardType'
).
toLowerCase
(),
I18n
.
t
(
'BankCode'
).
toLowerCase
(),
I18n
.
t
(
'CardNumberOrAccount'
).
toLowerCase
()];
const
index
=
checkFormatArray
([
acc_type
,
bank_no
,
account_no
]);
...
...
src/Screens/Action/Wallet/Tab/Item.js
View file @
6ebd08d4
...
...
@@ -11,7 +11,7 @@ import R from '../../../../assets/R';
import
Block
from
'../../../../components/Block'
;
import
{
useNavigation
}
from
'@react-navigation/native'
;
import
{
DETAIL_REQUIRE_MONEY
}
from
'../../../../routers/ScreenNames'
;
import
AppText
from
'../../../../components/AppText'
;
const
Item
=
(
props
)
=>
{
const
{
item
}
=
props
;
const
navigate
=
useNavigation
();
...
...
@@ -44,7 +44,23 @@ const Item = (props) => {
<
Text
numberOfLines
=
{
2
}
style
=
{
styles
.
txt
}
>
{
item
.
comments
}
<
/Text
>
<
Text
style
=
{
styles
.
txtDate
}
>
{
item
.
transection_date_timestamp
}
<
/Text
>
<
View
style
=
{{
flexDirection
:
'row'
,
alignItems
:
'center'
,
justifyContent
:
'space-between'
,
}}
>
<
Text
style
=
{
styles
.
txtDate
}
>
{
item
.
transection_date_timestamp
}
<
/Text
>
{
item
.
status
==
0
?
(
<
AppText
style
=
{{
color
:
'#FFB721'
}}
i18nKey
=
{
'Waiting'
}
><
/AppText
>
)
:
(
<
AppText
style
=
{{
color
:
R
.
colors
.
green
}}
i18nKey
=
{
'Success'
}
><
/AppText
>
)}
<
/View
>
<
/Block
>
<
/Block
>
<
/View
>
...
...
@@ -95,7 +111,6 @@ const styles = StyleSheet.create({
txtDate
:
{
fontSize
:
getFontXD
(
39
),
color
:
'#363636'
,
fontStyle
:
'italic'
,
},
rowBet
:
{
flexDirection
:
'row'
,
...
...
src/Screens/Action/Wallet/Tab/Success.js
View file @
6ebd08d4
...
...
@@ -24,12 +24,11 @@ const Success = (props) => {
type
:
'ALL'
,
platform
:
Platform
.
OS
,
page_size
:
10
,
status
:
-
1
,
status
:
1
,
page_index
:
1
,
start_date
:
''
,
end_date
:
''
,
});
console
.
log
(
res
.
data
);
setisRefresh
(
false
);
if
((
res
.
data
.
code
=
200
&&
res
.
data
.
data
))
{
setData
(
res
.
data
.
data
);
...
...
@@ -44,7 +43,6 @@ const Success = (props) => {
};
const
onLoadMore
=
()
=>
{
console
.
log
(
tottalPage
);
if
(
page
<
tottalPage
)
getDataLoadMore
();
};
...
...
src/Screens/Action/Wallet/Tab/Watting.js
View file @
6ebd08d4
...
...
@@ -36,7 +36,6 @@ const Watting = (props) => {
start_date
:
''
,
end_date
:
''
,
});
console
.
log
(
res
.
data
);
setisRefresh
(
false
);
if
((
res
.
data
.
code
=
200
&&
res
.
data
.
data
))
{
setData
(
res
.
data
.
data
);
...
...
@@ -51,7 +50,6 @@ const Watting = (props) => {
};
const
onLoadMore
=
()
=>
{
console
.
log
(
tottalPage
);
if
(
page
<
tottalPage
)
getDataLoadMore
();
};
...
...
src/Screens/Action/Wallet/Wallet.js
View file @
6ebd08d4
...
...
@@ -15,7 +15,7 @@ const Wallet = (props) => {
const
navigate
=
useNavigation
();
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
HeaderBack
isWhite
=
{
true
}
title
=
{
'
Transfer
'
}
/
>
<
HeaderBack
isWhite
=
{
true
}
title
=
{
'
Wallet
'
}
/
>
<
View
style
=
{{
flex
:
1
,
backgroundColor
:
'red'
}}
>
<
Tab
.
Navigator
...
...
src/Screens/MethodPay/AddMethod.js
View file @
6ebd08d4
...
...
@@ -113,11 +113,11 @@ const AddMethodPay = (props) => {
{
/* }}*/
}
{
/*/>*/
}
<
SelectBankModal
title
=
{
I18n
.
t
(
'SelectBank'
)}
data
=
{
data
}
onPressItem
=
{(
item
)
=>
{
setBankID
(
item
)
}}
title
=
{
I18n
.
t
(
'SelectBank'
)}
data
=
{
data
}
onPressItem
=
{(
item
)
=>
{
setBankID
(
item
);
}}
/
>
<
TextField
onChangeText
=
{(
val
)
=>
setBankName
(
val
)}
...
...
src/Screens/Notification/Item.js
View file @
6ebd08d4
...
...
@@ -13,18 +13,17 @@ import Block from '../../components/Block';
const
Item
=
(
props
)
=>
{
const
{
item
}
=
props
;
console
.
log
(
'noti'
,
item
);
return
(
<
View
style
=
{
styles
.
container
}
>
<
Block
flex
=
{
1
}
row
>
<
View
style
=
{
styles
.
wrapDate
}
>
<
Image
source
=
{
R
.
images
.
iconRecharge
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
{
uri
:
item
.
icon
}
}
style
=
{
styles
.
imgIcon
}
/
>
<
/View
>
<
Block
padding
=
{[
5
,
10
]}
space
=
{
'between'
}
flex
=
{
1
}
>
<
View
style
=
{{
justifyContent
:
'center'
,
flex
:
1
}}
>
<
Text
numberOfLines
=
{
2
}
style
=
{
styles
.
txtBlack
}
>
{
item
.
body
}
<
/Text
>
<
/View
>
<
Text
numberOfLines
=
{
2
}
style
=
{
styles
.
txtBlack
}
>
{
item
.
body
}
<
/Text
>
<
Text
style
=
{
styles
.
txt
}
>
{
item
.
pushed_at
}
<
/Text
>
<
/Block
>
<
/Block
>
...
...
@@ -77,7 +76,7 @@ const styles = StyleSheet.create({
alignItems
:
'center'
,
},
txtBlack
:
{
fontSize
:
getFontXD
(
42
),
fontSize
:
getFontXD
(
36
),
color
:
'black'
,
},
imgIcon
:
{
...
...
src/apis/url.js
View file @
6ebd08d4
...
...
@@ -22,6 +22,7 @@ export default {
urlAddMethodBank
:
root
+
'api/v1/customers/store-payment-method'
,
urlDeleteMethodBank
:
root
+
'api/v1/customers/delete-payment-method'
,
urlUpdateMethodBank
:
root
+
'api/v1/customers/update-payment-method'
,
urlGetDetailUser
:
root
+
'api/v1/customers/detail'
,
//Home
urlGetTransaction
:
root
+
'api/v1/customers/statistic-transaction'
,
...
...
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