Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_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
clone_excelso
Commits
1b94e9d7
Commit
1b94e9d7
authored
Oct 12, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch 1(edit alamat)
parent
9b0d2086
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
54 deletions
+49
-54
AddreesDetail.js
view/AddreesDetail.js
+49
-51
DeliveryAddrees.js
view/DeliveryAddrees.js
+0
-3
No files found.
view/AddreesDetail.js
View file @
1b94e9d7
...
...
@@ -241,25 +241,23 @@ class AddreesDetail extends React.Component {
if
(
this
.
props
.
edit_address
==
true
)
{
name
=
this
.
state
.
address_edit
description
=
this
.
state
.
description_edit
address_id
=
this
.
props
.
route
.
params
.
data_address
.
id
description
=
this
.
state
.
description_edit
address_id
=
this
.
props
.
route
.
params
.
data_address
.
id
}
else
{
name
=
this
.
state
.
name
description
=
this
.
state
.
description
name
=
this
.
state
.
name
description
=
this
.
state
.
description
address_id
=
""
}
let
params
=
{
session_id
:
this
.
props
.
session_id
,
address
:
this
.
state
.
street
+
' '
+
this
.
state
.
city
+
' '
+
this
.
state
.
region
+
' '
+
this
.
state
.
postalCode
,
name
:
name
,
description
:
description
,
lat
:
this
.
state
.
latitude
,
address_id
:
address_id
,
long
:
this
.
state
.
longitude
session_id
:
this
.
props
.
session_id
,
address
:
this
.
state
.
street
+
' '
+
this
.
state
.
city
+
' '
+
this
.
state
.
region
+
' '
+
this
.
state
.
postalCode
,
name
:
name
,
description
:
description
,
lat
:
this
.
state
.
latitude
,
address_id
:
address_id
,
long
:
this
.
state
.
longitude
}
// console.log(params)
Axios
.
post
(
this
.
props
.
BASE_URL
+
'crm/v2/member/set_address'
,
params
).
then
(
res
=>
{
Alert
.
alert
(
i18n
.
t
(
'alertSuccessAddAddressTitle'
),
...
...
view/DeliveryAddrees.js
View file @
1b94e9d7
...
...
@@ -86,8 +86,6 @@ class DeliveryAddrees extends React.Component {
})
}
getRate
(
address_id
)
{
// console.log('ADdress id : ' + address_id)
...
...
@@ -139,7 +137,6 @@ class DeliveryAddrees extends React.Component {
addAdreess
()
{
this
.
props
.
navigation
.
navigate
(
'Address Detail'
,
{
data_address
:
""
,
'data'
:
'sample'
,
onChangeAddress
:
this
.
onChangeAddress
})
}
EditAdreess
(
data_address
)
{
...
...
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