# getWeatherInfo ^7.8

获取指定城市的天气信息

# 请求参数

Prop Type Default Comment
cityNo String N/A 位置信息

# 接口调用示例

const params = {
    "cityNo": "位置信息"
}
this.$bridge
  .getWeatherInfo(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

1
2
3
4
5
6
7
8
9
10
11
12

# 接口返回示例

{
    "data": {},
    "status": 0
}


1
2
3
4
5
6
更新时间: 7/27/2021, 11:23:45 AM