# luaQueryJson ^8.0
lua查询家电情况
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
params | Object | N/A | 查询/控制参数 |
applianceId | String | N/A | 设备id |
# 接口调用示例
const params = {
params: {}, //查询/控制参数,
applianceId: '' // 设备id name mock Data文件名,于dummy文件夹下,通过name匹配相应模拟数据文件
}
this.$bridge
.luaQueryJson(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
# 返回参数
- 成功时返回
Prop | Type | Default | Description |
---|---|---|---|
errorMessage | String | N/A | 错误消息 |
errorCode | Number | N/A | 错误码,0成功 |
- 失败时返回