Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
abffb723
Commit
abffb723
authored
May 14, 2021
by
Morson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改地址保存问题
parent
77407bcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
20 deletions
+17
-20
addSite.vue
src/pages/mine/address/addSite.vue
+17
-20
No files found.
src/pages/mine/address/addSite.vue
View file @
abffb723
...
...
@@ -79,38 +79,35 @@ export default {
title
:
'新增地址'
,
show
:
false
,
location
:
''
,
address
:
''
,
type
:
'充电桩安装'
,
name
:
'--'
,
mobile
:
''
,
settled
:
null
,
};
},
computed
:
{
settled
()
{
return
this
.
vuex_settled
&&
this
.
vuex_settled
.
record
||
null
},
type
()
{
return
this
.
settled
.
type
||
'充电桩安装'
},
name
()
{
return
this
.
settled
.
id_card_name
||
this
.
settled
.
nickname
||
this
.
settled
.
name
||
'--'
},
mobile
()
{
return
this
.
settled
.
mobile
},
address
()
{
return
this
.
settled
.
address
},
},
computed
:
{},
async
onLoad
(
e
)
{
if
(
e
&&
e
.
title
)
{
this
.
title
=
decodeURIComponent
(
e
.
title
)
}
if
(
!
this
.
vuex_token
)
{
this
.
$u
.
route
({
url
:
'pages/login/index'
})
}
else
if
(
!
this
.
settled
)
{
this
.
getData
();
}
this
.
getData
();
},
methods
:
{
async
getData
()
{
getApp
().
getBaseInfo
(
this
);
const
callback
=
(
vm
,
res
)
=>
{
vm
.
settled
=
res
.
record
vm
.
address
=
vm
.
settled
.
address
vm
.
name
=
vm
.
settled
.
id_card_name
vm
.
mobile
=
vm
.
settled
.
mobile
}
if
(
this
.
vuex_settled
&&
this
.
vuex_settled
.
record
||
null
)
{
callback
(
this
,
this
.
vuex_settled
)
}
getApp
().
getBaseInfo
(
this
,
callback
);
this
.
initLocation
()
},
/**
...
...
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