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
c7660df9
Commit
c7660df9
authored
May 28, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://repo.cs.co.id:2222/wahyu/bahanoprek
parents
69ddd765
f2be04f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
ProfilePage.js
view/ProfilePage.js
+9
-1
No files found.
view/ProfilePage.js
View file @
c7660df9
...
@@ -17,6 +17,7 @@ class ProfilePage extends PureComponent {
...
@@ -17,6 +17,7 @@ class ProfilePage extends PureComponent {
dob_year
:
''
,
dob_year
:
''
,
gender
:
''
,
gender
:
''
,
email
:
''
,
email
:
''
,
mobile_phone
:
''
,
onClicked
:
false
,
onClicked
:
false
,
}
}
}
}
...
@@ -33,6 +34,7 @@ class ProfilePage extends PureComponent {
...
@@ -33,6 +34,7 @@ class ProfilePage extends PureComponent {
Axios
.
post
(
'https://excelsocrm.ravintoladev.com/crm/v2/member/get_profile'
,
params
).
then
(
res
=>
{
Axios
.
post
(
'https://excelsocrm.ravintoladev.com/crm/v2/member/get_profile'
,
params
).
then
(
res
=>
{
let
data
=
res
.
data
let
data
=
res
.
data
console
.
log
(
"INI DATANYA : "
+
JSON
.
stringify
(
data
));
this
.
setState
({
this
.
setState
({
full_name
:
data
.
name
,
full_name
:
data
.
name
,
...
@@ -41,6 +43,7 @@ class ProfilePage extends PureComponent {
...
@@ -41,6 +43,7 @@ class ProfilePage extends PureComponent {
dob_month
:
data
.
dob_month
,
dob_month
:
data
.
dob_month
,
dob_year
:
data
.
dob_year
,
dob_year
:
data
.
dob_year
,
gender
:
data
.
gender_display
,
gender
:
data
.
gender_display
,
mobile_phone
:
data
.
mobile_phone
})
})
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
...
@@ -112,11 +115,16 @@ class ProfilePage extends PureComponent {
...
@@ -112,11 +115,16 @@ class ProfilePage extends PureComponent {
<
/View
>
<
/View
>
<
View
style
=
{{
top
:
30
}}
>
<
View
style
=
{{
top
:
30
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
18
,
textAlign
:
'center'
}}
>
Phone
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#838383'
,
fontSize
:
14
,
textAlign
:
'center'
}}
>
{
this
.
state
.
mobile_phone
}
<
/Text
>
<
/View
>
<
View
style
=
{{
top
:
40
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
18
,
textAlign
:
'center'
}}
>
Date
of
Birth
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
18
,
textAlign
:
'center'
}}
>
Date
of
Birth
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#838383'
,
fontSize
:
14
,
textAlign
:
'center'
}}
>
{
this
.
state
.
dob_day
}
/ {this.state.dob_month} /
{
this
.
state
.
dob_year
}
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#838383'
,
fontSize
:
14
,
textAlign
:
'center'
}}
>
{
this
.
state
.
dob_day
}
/ {this.state.dob_month} /
{
this
.
state
.
dob_year
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
top
:
40
,
marginBottom
:
4
0
}}
>
<
View
style
=
{{
top
:
50
,
marginBottom
:
5
0
}}
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
18
,
textAlign
:
'center'
}}
>
Gender
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
18
,
textAlign
:
'center'
}}
>
Gender
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#838383'
,
fontSize
:
14
,
textAlign
:
'center'
}}
>
{
this
.
state
.
gender
}
<
/Text
>
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#838383'
,
fontSize
:
14
,
textAlign
:
'center'
}}
>
{
this
.
state
.
gender
}
<
/Text
>
<
/View
>
<
/View
>
...
...
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