getDeviceIconList ^8.8
获取设备icon
#请求参数
| Prop |
Type |
Default |
Comment |
deviceInfoList |
Array<Object> |
N/A |
查询设备的数据,详细看下表 |
| Prop |
Type |
Default |
Comment |
appType |
string |
N/A |
设备类型 |
sn8 |
string |
N/A |
设备的sn8 |
#接口调用示例
const params = {
"deviceInfoList": [{"appType":"", "sn8":""}]
}
this.$bridge
.getDeviceIconList(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
#返回参数
| Prop |
Type |
Default |
Comment |
code |
String |
N/A |
返回码 0成功 |
deviceIconList |
Array<string> |
N/A |
设备图标列表 |
| Prop |
Type |
Default |
Comment |
code |
String |
N/A |
code -1001:参数错误;xxx:其他错误代码 |
#接口返回示例
{
code:0,
eviceIconList:["", "", ""],
msg:""
}