Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
momo的小宝贝
vue2-elm
提交
dc516d20
V
vue2-elm
项目概览
momo的小宝贝
/
vue2-elm
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue2-elm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
dc516d20
编写于
2月 28, 2017
作者:
M
maguohua
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
6855b1cd
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
72 addition
and
28 deletion
+72
-28
src/page/profile/children/children/children/add.vue
src/page/profile/children/children/children/add.vue
+13
-5
src/page/profile/children/children/children/children/addDetail.vue
...profile/children/children/children/children/addDetail.vue
+4
-8
src/page/profile/children/info.vue
src/page/profile/children/info.vue
+1
-1
src/service/getData.js
src/service/getData.js
+11
-9
src/service/tempdata/addDetail.js
src/service/tempdata/addDetail.js
+1
-0
src/service/tempdata/address.js
src/service/tempdata/address.js
+1
-0
src/store/index.js
src/store/index.js
+10
-1
src/store/mutation-types.js
src/store/mutation-types.js
+4
-4
src/store/mutations.js
src/store/mutations.js
+27
-0
未找到文件。
src/page/profile/children/children/children/add.vue
浏览文件 @
dc516d20
...
...
@@ -2,7 +2,7 @@
<div
class=
"rating_page"
>
<head-top
head-title=
"新增地址"
go-back=
'true'
></head-top>
<section
class=
"adddetail"
>
<form
action=
""
>
<form
action=
""
>
<section
class=
"ui-padding-block"
>
<div
class=
"input-new"
>
<input
type=
"text"
placeholder=
"请填写你的姓名"
:class=
"
{verifies:verify}" v-model="message" @input="inputThing">
...
...
@@ -27,7 +27,7 @@
</div>
</section>
<section
class=
"addbutton"
>
<button
:class=
"
{butopacity:butpart}">新增地址
</button>
<button
:class=
"
{butopacity:butpart}"
@click="submitThing"
>新增地址
</button>
</section>
</form>
</section>
...
...
@@ -38,7 +38,7 @@
<
script
>
import
headTop
from
'
../../../../../components/header/head
'
import
{
getImgPath
}
from
'
../../../../../components/common/mixin
'
import
{
mapState
}
from
'
vuex
'
import
{
mapState
,
mapMutations
}
from
'
vuex
'
export
default
{
data
(){
return
{
...
...
@@ -56,6 +56,7 @@
standbytele
:
''
,
standbytelenum
:
''
,
addSearch
:
false
,
//newAddress:{}, //增加数组的元素
}
},
created
(){
...
...
@@ -68,9 +69,11 @@
},
computed
:{
...
mapState
([
'
addAddress
'
'
addAddress
'
,
]),
...
mapMutations
([
'
ADD_ADDRESS
'
])
},
props
:[],
methods
:
{
...
...
@@ -117,6 +120,11 @@
}
else
{
this
.
butpart
=
false
;
}
},
submitThing
(){
if
(
this
.
butpart
){
//this.ADD_ADDRESS({"name":this.message,"address":this.mesthree,"address_detail":})
}
}
}
}
...
...
src/page/profile/children/children/children/children/addDetail.vue
浏览文件 @
dc516d20
...
...
@@ -3,7 +3,7 @@
<head-top
head-title=
"搜索地址"
go-back=
'true'
></head-top>
<section>
<div
class=
"add-detail"
>
<input
type=
"text"
placeholder=
"请输入小区/写字楼/学校等"
v-model=
"
addAd
dress"
@
input=
"inputThing"
>
<input
type=
"text"
placeholder=
"请输入小区/写字楼/学校等"
v-model=
"
inputA
dress"
@
input=
"inputThing"
>
<button
@
click=
"inputThing"
>
确认
</button>
</div>
<div
class=
"warnpart"
>
为了满足商家的送餐要求,建议您从列表中选择地址
</div>
...
...
@@ -38,11 +38,10 @@
}
},
created
(){
this
.
inputAdress
=
this
.
addAddress
?
this
.
addAddress
:
this
.
inputAdress
},
mounted
(){
getSearchAddress
(
this
.
inputAdress
).
then
(
res
=>
{
this
.
adressList
=
res
;
this
.
warning
=
true
;
...
...
@@ -59,16 +58,14 @@
mixins
:
[
getImgPath
],
components
:
{
headTop
,
},
computed
:{
...
mapState
([
'
addAddress
'
])
'
addAddress
'
])
},
props
:[],
methods
:
{
...
mapMutations
([
'
SAVE_ADDDETAIL
'
]),
...
...
@@ -87,7 +84,6 @@
});
},
listClick
(
index
){
console
.
log
(
this
.
adressList
[
index
].
name
)
this
.
SAVE_ADDDETAIL
(
this
.
adressList
[
index
].
name
);
this
.
$router
.
go
(
-
1
);
}
...
...
src/page/profile/children/info.vue
浏览文件 @
dc516d20
...
...
@@ -102,7 +102,7 @@
</
template
>
<
script
>
import
{
mapMutations
,
mapState
}
from
'
vuex
'
import
{
mapMutations
,
mapState
}
from
'
vuex
'
import
headTop
from
'
../../../components/header/head
'
import
{
imgBaseUrl
}
from
'
../../../config/env
'
//import {getImgPath} from '../../../components/common/mixin'
...
...
src/service/getData.js
浏览文件 @
dc516d20
...
...
@@ -9,8 +9,8 @@ import * as login from './tempdata/login'
import
*
as
confirm
from
'
./tempdata/confirm
'
import
*
as
order
from
'
./tempdata/order
'
import
*
as
service
from
'
./tempdata/service
'
import
*
as
addDetail
from
'
./tempdata/addDetail
'
import
*
as
addresspart
from
'
./tempdata/address
'
// /**
// * 获取首页默认地址
...
...
@@ -423,14 +423,16 @@ import * as service from './tempdata/service'
/**
*个人中心里编辑地址
*/
export
const
getAddressList
=
(
user_id
)
=>
fetch
(
'
GET
'
,
'
/v1/users/
'
+
user_id
+
'
/addresses
'
)
//export const getAddressList = (user_id) => fetch('GET', '/v1/users/'+user_id+'/addresses')
/**
*个人中心里搜索地址
*/
export
const
getSearchAddress
=
(
keyword
)
=>
fetch
(
'
GET
'
,
'
v1/pois
'
,{
keyword
:
keyword
,
type
:
'
nearby
'
})
// export const getSearchAddress=(keyword) => fetch('GET','v1/pois',{
// keyword:keyword,
// type:'nearby'
// })
/**
...
...
@@ -494,5 +496,5 @@ export const sendLogin = (code, mobile, validate_token) => setpromise(login.user
export
const
getOrderList
=
(
user_id
,
offset
)
=>
setpromise
(
order
.
orderList
);
export
const
getOrderDetail
=
(
user_id
,
orderid
)
=>
setpromise
(
order
.
orderDetail
);
export
const
getAddressList
=
(
user_id
)
=>
setpromise
(
addresspart
.
address
)
export
const
getSearchAddress
=
(
keyword
)
=>
setpromise
(
addDetail
.
addData
)
src/service/tempdata/addDetail.js
0 → 100644
浏览文件 @
dc516d20
export
const
addData
=
[{
"
name
"
:
"
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5171
\
u548c
\
u65b0
\
u8def2266
\
u53f7
"
,
"
latitude
"
:
31.27812
,
"
longitude
"
:
121.45154
,
"
geohash
"
:
"
wtw3gwn2600
"
},{
"
name
"
:
"
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce[
\
u5730
\
u94c1
\
u7ad9] [
\
u5730
\
u94c1
\
u7ad9]
"
,
"
address
"
:
"
\
u5730
\
u94c11
\
u53f7
\
u7ebf
"
,
"
latitude
"
:
31.27956
,
"
longitude
"
:
121.452043
,
"
geohash
"
:
"
wtw3gwq8tsx5
"
},{
"
name
"
:
"
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
\
u7ad92
\
u53f7
\
u53e3
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5e7f
\
u4e2d
\
u8def99
\
u5e7f
\
u4e2d
\
u7eff
\
u5730
"
,
"
latitude
"
:
31.27921
,
"
longitude
"
:
121.45291
,
"
geohash
"
:
"
wtw3gwpq9gm
"
},{
"
name
"
:
"
hello key
\
u7cd5
\
u70b9(
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
\
u86cb
\
u7cd5
\
u5e97)
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5171
\
u548c
\
u65b0
\
u8def2418
\
u53f74-1
\
u53f7
"
,
"
latitude
"
:
31.27997
,
"
longitude
"
:
121.45155
,
"
geohash
"
:
"
wtw3gwq741p
"
},{
"
name
"
:
"
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
\
u73af
\
u5f62
\
u5927
\
u5267
\
u573a
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5171
\
u548c
\
u65b0
\
u8def2266
\
u53f7
"
,
"
latitude
"
:
31.27815
,
"
longitude
"
:
121.45158
,
"
geohash
"
:
"
wtw3gwn26vv
"
},{
"
name
"
:
"
\
u4e2d
\
u56fd
\
u5de5
\
u5546
\
u94f6
\
u884c(
\
u9a6c
\
u620f
\
u57ce
\
u652f
\
u884c)
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5171
\
u548c
\
u65b0
\
u8def2411
"
,
"
latitude
"
:
31.28016
,
"
longitude
"
:
121.45281
,
"
geohash
"
:
"
wtw3gwrhps6
"
},{
"
name
"
:
"
\
u6e29
\
u97f5
\
u7434
\
u884c(
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
\
u5e97)
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5e7f
\
u5ef6
\
u8def580
\
u53f7
"
,
"
latitude
"
:
31.28101
,
"
longitude
"
:
121.45484
,
"
geohash
"
:
"
wtw3gy89nfu
"
},{
"
name
"
:
"
\
u5168
\
u5bb6(
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
\
u5e97)
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u8f68
\
u9053
\
u4ea4
\
u901a
\
u4e00
\
u53f7
\
u7ebf
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
\
u7ad91-103
"
,
"
latitude
"
:
31.27921
,
"
longitude
"
:
121.45291
,
"
geohash
"
:
"
wtw3gwpq9gm
"
},{
"
name
"
:
"
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
\
u7ad94
\
u53f7
\
u53e3
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5171
\
u548c
\
u65b0
\
u8def2480
"
,
"
latitude
"
:
31.28046
,
"
longitude
"
:
121.45161
,
"
geohash
"
:
"
wtw3gwqmgsk
"
},{
"
name
"
:
"
\
u4e2d
\
u56fd
\
u519c
\
u4e1a
\
u94f6
\
u884c24
\
u5c0f
\
u65f6
\
u81ea
\
u52a9
\
u94f6
\
u884c(
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
\
u652f
\
u884c)
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5e7f
\
u4e2d
\
u8def977
\
u53f7(
\
u8fd1
\
u5171
\
u548c
\
u65b0
\
u8def,
\
u5730
\
u94c11
\
u53f7
\
u7ebf
\
u9a6c
\
u620f
\
u57ce
\
u7ad9)
"
,
"
latitude
"
:
31.2798
,
"
longitude
"
:
121.45316
,
"
geohash
"
:
"
wtw3gwr6p9r
"
},{
"
name
"
:
"
\
u798f
\
u7f8e
\
u6765
\
u4e0d
\
u52a8
\
u4ea7(
\
u9a6c
\
u620f
\
u57ce
\
u5e97)
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5171
\
u548c
\
u65b0
\
u8def2508
"
,
"
latitude
"
:
31.28137
,
"
longitude
"
:
121.45138
,
"
geohash
"
:
"
wtw3gww5nq0
"
},{
"
name
"
:
"
NICE TO MEAT U
\
u9996
\
u5c14
\
u70ad
\
u706b
\
u70e4
\
u8089(
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
\
u5e97)
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5171
\
u548c
\
u65b0
\
u8def2524
\
u53f7(
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
\
u5730
\
u94c1
\
u7ad94
\
u53f7
\
u53e3
\
u76f4
\
u884c100
\
u7c73)
"
,
"
latitude
"
:
31.28177
,
"
longitude
"
:
121.45139
,
"
geohash
"
:
"
wtw3gwwjw88
"
},{
"
name
"
:
"
\
u5929
\
u60a6
\
u821e
\
u8e48(
\
u9a6c
\
u620f
\
u57ce
\
u5e97)
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5171
\
u548c
\
u65b0
\
u8def2623
\
u53f7
\
u4f01
\
u8054
\
u5927
\
u53a62
\
u53f7
\
u697c3
\
u697c
"
,
"
latitude
"
:
31.28243
,
"
longitude
"
:
121.4523
,
"
geohash
"
:
"
wtw3gwyc7ew
"
},{
"
name
"
:
"
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
\
u552e
\
u7968
\
u5904
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5171
\
u548c
\
u65b0
\
u8def2440
\
u53f7
"
,
"
latitude
"
:
31.27866
,
"
longitude
"
:
121.45148
,
"
geohash
"
:
"
wtw3gwn72sg
"
},{
"
name
"
:
"
\
u5982
\
u5bb6
\
u5feb
\
u6377
\
u9152
\
u5e97(
\
u4e0a
\
u6d77
\
u5927
\
u5b81
\
u56fd
\
u9645
\
u5e7f
\
u4e2d
\
u8def
\
u9a6c
\
u620f
\
u57ce
\
u5e97)
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5e7f
\
u4e2d
\
u8def809
\
u53f7(
\
u539f
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
\
u5e97)(
\
u8fd1
\
u5e7f
\
u5ef6
\
u8def)
"
,
"
latitude
"
:
31.28009
,
"
longitude
"
:
121.45674
,
"
geohash
"
:
"
wtw3gy65epm
"
},{
"
name
"
:
"
\
u4e2d
\
u56fd
\
u90ae
\
u653f
\
u50a8
\
u84c4
\
u94f6
\
u884c(
\
u9759
\
u5b89
\
u533a
\
u9a6c
\
u620f
\
u57ce
\
u652f
\
u884c)
"
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u5e02
\
u9759
\
u5b89
\
u533a
\
u5e7f
\
u4e2d
\
u8def945
\
u53f7
"
,
"
latitude
"
:
31.27984
,
"
longitude
"
:
121.45402
,
"
geohash
"
:
"
wtw3gy247bc
"
}]
\ No newline at end of file
src/service/tempdata/address.js
0 → 100644
浏览文件 @
dc516d20
export
const
address
=
[{
"
id
"
:
280523044
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
"
,
"
phone
"
:
"
15800319949
"
,
"
is_valid
"
:
1
,
"
created_at
"
:
"
2017-02-28T12:53:35+0800
"
,
"
phone_bk
"
:
""
,
"
name
"
:
"
\
u60f3
\
u5b66
\
u4e60
"
,
"
st_geohash
"
:
"
wtw2cqxgvwm
"
,
"
address_detail
"
:
"
\
u4e0a
\
u6d77
\
u5eb7
\
u57ce
"
,
"
poi_type
"
:
0
,
"
sex
"
:
0
,
"
city_id
"
:
1
,
"
tag
"
:
""
,
"
is_user_default
"
:
true
,
"
is_deliverable
"
:
true
,
"
agent_fee
"
:
0
,
"
deliver_amount
"
:
0
,
"
phone_had_bound
"
:
true
},{
"
id
"
:
280521215
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
"
,
"
phone
"
:
"
15800319949
"
,
"
is_valid
"
:
1
,
"
created_at
"
:
"
2017-02-28T12:50:46+0800
"
,
"
phone_bk
"
:
"
15800319949
"
,
"
name
"
:
"
\
u5f90
\
u8fde
\
u6770
"
,
"
st_geohash
"
:
"
wtw3gwn2600
"
,
"
address_detail
"
:
"
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
"
,
"
poi_type
"
:
0
,
"
sex
"
:
0
,
"
city_id
"
:
1
,
"
tag
"
:
""
,
"
is_user_default
"
:
false
,
"
is_deliverable
"
:
true
,
"
agent_fee
"
:
0
,
"
deliver_amount
"
:
0
,
"
phone_had_bound
"
:
true
},{
"
id
"
:
280105517
,
"
address
"
:
"
\
u4e0a
\
u6d77
\
u4e0a
\
u6d77
\
u4e0a
\
u6d77
"
,
"
phone
"
:
"
15800319949
"
,
"
is_valid
"
:
1
,
"
created_at
"
:
"
2017-02-27T14:54:48+0800
"
,
"
phone_bk
"
:
"
15800319949
"
,
"
name
"
:
"
\
u56fd
\
u5bb6
\
u7684
\
u5496
\
u5561
\
u9986
"
,
"
st_geohash
"
:
"
wtw3gwn2600
"
,
"
address_detail
"
:
"
\
u4e0a
\
u6d77
\
u9a6c
\
u620f
\
u57ce
"
,
"
poi_type
"
:
0
,
"
sex
"
:
0
,
"
city_id
"
:
1
,
"
tag
"
:
""
,
"
is_user_default
"
:
false
,
"
is_deliverable
"
:
true
,
"
agent_fee
"
:
0
,
"
deliver_amount
"
:
0
,
"
phone_had_bound
"
:
true
},{
"
id
"
:
188290780
,
"
address
"
:
"
\
u534e
\
u6e05
\
u5927
\
u53a6
"
,
"
phone
"
:
"
15800319949
"
,
"
is_valid
"
:
1
,
"
created_at
"
:
"
2016-08-30T11:56:31+0800
"
,
"
phone_bk
"
:
""
,
"
name
"
:
"
\
u5f90
\
u8fde
\
u6770
"
,
"
st_geohash
"
:
"
wtw3gqhcqp34
"
,
"
address_detail
"
:
"
\
u5e7f
\
u4e2d
\
u897f
\
u8def777
\
u5f0410
\
u53f7
\
u697c
\
u521b
\
u56fe
\
u79d1
\
u62804
\
u697c
"
,
"
poi_type
"
:
0
,
"
sex
"
:
2
,
"
city_id
"
:
1
,
"
tag
"
:
"
\
u516c
\
u53f8
"
,
"
is_user_default
"
:
false
,
"
is_deliverable
"
:
true
,
"
agent_fee
"
:
0
,
"
deliver_amount
"
:
0
,
"
phone_had_bound
"
:
true
}]
\ No newline at end of file
src/store/index.js
浏览文件 @
dc516d20
...
...
@@ -31,7 +31,16 @@ const state = {
removeAddress
:[],
//移除地址
addAddress
:
''
,
//新增地址
question
:
null
,
//问题详情
//增加地址的几个key值
newAddress
:{},
// address:null,
// address_detail:null,
// geohash:null,
// name:null,
// phone:null,
// phone_bk:null,
// poi:null,
// poi_type:null,
}
export
default
new
Vuex
.
Store
({
...
...
src/store/mutation-types.js
浏览文件 @
dc516d20
...
...
@@ -21,7 +21,7 @@ export const SAVE_ORDER = 'SAVE_ORDER'
export
const
OUT_LOGIN
=
'
OUT_LOGIN
'
export
const
RETSET_NAME
=
'
RETSET_NAME
'
export
const
SAVE_AVANDER
=
'
SAVE_AVANDER
'
export
const
SAVE_ADDDETAIL
=
'
SAVE_ADDDETAIL
'
export
const
SAVE_ADDRESS
=
'
SAVE_ADDRESS
'
export
const
SAVE_QUESTION
=
'
SAVE_QUESTION
'
export
const
SAVE_ADDDETAIL
=
'
SAVE_ADDDETAIL
'
export
const
SAVE_ADDRESS
=
'
SAVE_ADDRESS
'
export
const
SAVE_QUESTION
=
'
SAVE_QUESTION
'
export
const
ADD_ADDRESS
=
'
ADD_ADDRESS
'
src/store/mutations.js
浏览文件 @
dc516d20
...
...
@@ -25,6 +25,7 @@ import {
SAVE_ADDRESS
,
SAVE_ADDDETAIL
,
SAVE_QUESTION
,
ADD_ADDRESS
,
}
from
'
./mutation-types.js
'
import
{
setStore
,
...
...
@@ -257,5 +258,31 @@ export default {
//保存所选问题标题和详情
[
SAVE_QUESTION
](
state
,
question
)
{
state
.
question
=
{...
question
};
},
// [ADD_ADDRESS](state, {
// address,
// address_detail,
// geohash,
// name,
// phone,
// phone_bk,
// poi,
// poi_type,
// }){
// let addressList = state.newAddress;
// addressList['address']=address;
// addressList['address_detail']=address_detail;
// addressList['geohash']=geohash;
// addressList['name']=name;
// addressList['phone']=phone;
// addressList['phone_bk']=phone_bk;
// addressList['poi']=poi;
// addressList['poi_type']=poi_type;
// state.newAddress = Object.assign({}, addressList);
// state.removeAddress = state.removeAddress.unshift(state.newAddress)
// }
[
ADD_ADDRESS
](
state
,
obj
){
state
.
newAddress
=
{...
obj
};
state
.
removeAddress
=
state
.
removeAddress
.
unshift
(
state
.
newAddress
)
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录