Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
new_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Prasetya Saputra
new_excelso
Commits
e0fb59c8
Commit
e0fb59c8
authored
Aug 06, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 134
parent
2b974709
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
app.json
app.json
+1
-1
Login.js
view/Login.js
+14
-3
RewardsList.js
view/RewardsList.js
+1
-1
No files found.
app.json
View file @
e0fb59c8
{
{
"expo"
:
{
"expo"
:
{
"extra"
:
{
"extra"
:
{
"buildNumber"
:
"13
2
"
,
"buildNumber"
:
"13
4
"
,
"remarks"
:
""
"remarks"
:
""
},
},
...
...
view/Login.js
View file @
e0fb59c8
...
@@ -47,6 +47,16 @@ class Login extends React.Component {
...
@@ -47,6 +47,16 @@ class Login extends React.Component {
}
}
}
}
setBaseUrl
()
{
if
(
this
.
state
.
clickSettings
==
3
)
{
this
.
props
.
navigation
.
navigate
(
'Setting'
)
this
.
setState
({
clickSettings
:
0
})
}
else
{
let
new_count
=
this
.
state
.
clickSettings
this
.
setState
({
clickSettings
:
new_count
+
1
})
}
}
privacyPolicy
()
{
privacyPolicy
()
{
// if (this.state.clickSettings == 3) {
// if (this.state.clickSettings == 3) {
// this.props.navigation.navigate('Setting')
// this.props.navigation.navigate('Setting')
...
@@ -93,7 +103,7 @@ class Login extends React.Component {
...
@@ -93,7 +103,7 @@ class Login extends React.Component {
async
handleLoggin
()
{
async
handleLoggin
()
{
if
(
/
\s
/
.
test
(
this
.
state
.
email
))
{
if
(
/
\s
/
.
test
(
this
.
state
.
email
))
{
Alert
.
alert
(
''
,
i18n
.
t
(
'alertSpaceCharEmail'
))
Alert
.
alert
(
''
,
i18n
.
t
(
'alertSpaceCharEmail'
))
}
else
{
}
else
{
this
.
setState
({
this
.
setState
({
spinner
:
true
,
spinner
:
true
,
...
@@ -280,8 +290,9 @@ class Login extends React.Component {
...
@@ -280,8 +290,9 @@ class Login extends React.Component {
<
StatusBar
hidden
=
{
true
}
/
>
<
StatusBar
hidden
=
{
true
}
/
>
<
ImageBackground
source
=
{
require
(
'../assets/images/loging-background.png'
)}
style
=
{{
width
:
'100%'
,
height
:
'100%'
}}
>
<
ImageBackground
source
=
{
require
(
'../assets/images/loging-background.png'
)}
style
=
{{
width
:
'100%'
,
height
:
'100%'
}}
>
<
View
style
=
{
styles
.
logo
}
>
<
View
style
=
{
styles
.
logo
}
>
<
Image
resizeMode
=
"cover"
source
=
{
require
(
'../assets/images/excelso-log.png'
)}
style
=
{
styles
.
imageslogo
}
><
/Image
>
<
Image
resizeMode
=
"cover"
source
=
{
require
(
'../assets/images/excelso-log.png'
)}
style
=
{
styles
.
imageslogo
}
><
/Image
>
<
TouchableWithoutFeedback
style
=
{{
marginHorizontal
:
50
,
paddingVertical
:
20
}}
onPress
=
{()
=>
this
.
setBaseUrl
()}
/>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
v_form
}
>
<
View
style
=
{
styles
.
v_form
}
>
<
View
style
=
{{
flex
:
1
,
marginRight
:
30
,
marginLeft
:
30
,
justifyContent
:
'center'
}}
removeClippedSubviews
=
{
false
}
>
<
View
style
=
{{
flex
:
1
,
marginRight
:
30
,
marginLeft
:
30
,
justifyContent
:
'center'
}}
removeClippedSubviews
=
{
false
}
>
...
...
view/RewardsList.js
View file @
e0fb59c8
...
@@ -51,7 +51,7 @@ class RewardsList extends React.Component {
...
@@ -51,7 +51,7 @@ class RewardsList extends React.Component {
})
})
Axios
.
post
(
this
.
props
.
BASE_URL
+
'crm/v2/reward/get_list'
,
params
).
then
(
res
=>
{
Axios
.
post
(
this
.
props
.
BASE_URL
+
'crm/v2/reward/get_list'
,
params
).
then
(
res
=>
{
let
data
=
res
.
data
.
rewards
let
data
=
res
.
data
.
rewards
//
console.log(data)
console
.
log
(
data
)
data
.
map
((
item
,
key
)
=>
{
data
.
map
((
item
,
key
)
=>
{
// console.log(item.expire_time)
// console.log(item.expire_time)
item
.
expire_time
=
moment
(
item
.
expire_time
).
format
(
"DD MMMM YYYY"
)
item
.
expire_time
=
moment
(
item
.
expire_time
).
format
(
"DD MMMM YYYY"
)
...
...
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