# createHome ^7.9
创建家庭
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
name | String | N/A | 家庭名称 |
# 接口调用示例
const params = {
"name": "家庭名称"
}
this.$bridge
.createHome(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# 接口返回示例
{
"address": "",
"coordinate": "123.123,30.122",
"roleId": "1001",
"areaid": "101010300",
"createUserUid": "369ae3682b714836bf296c63cfd0351d",
"homegroupId": "151230",
"number": "151230",
"isDefault": "",
"des": "测试家庭2",
"profilePicUrl": "",
"createTime": "Fri Jun 29 21:29:30 CST 2018",
"name": "18682212804的家2",
"nickname": "",
"roomList": [
{
"name": "客厅",
"homegroupId": "151230",
"roomId": "1521",
"desc": "系统默认的客厅"
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25