diff --git a/ruoyi-ui/src/api/business/openapi/apitools.js b/ruoyi-ui/src/api/business/openapi/apitools.js index da79bf1b..8f2da1f1 100644 --- a/ruoyi-ui/src/api/business/openapi/apitools.js +++ b/ruoyi-ui/src/api/business/openapi/apitools.js @@ -34,3 +34,33 @@ export function getIdCardQuery(idCard) { method: 'get', }) } + + +//获取手机归属地信息 +export function getMobileBelong(mobile) { + return request({ + url: '/openapi/apitools/mobilebelong/'+mobile, + method: 'get', + }) +} + + +//获取实时天气信息 +export function getNowWeather(city) { + return request({ + url: '/openapi/apitools/nowweather/'+city, + method: 'get', + }) +} + + +//获取预报天气信息 +export function getForecastWeather(city) { + return request({ + url: '/openapi/apitools/forecastweather/'+city, + method: 'get', + }) +} + + + diff --git a/ruoyi-ui/src/views/business/tools/apitools/index.vue b/ruoyi-ui/src/views/business/tools/apitools/index.vue index c36015b6..02b8bf65 100644 --- a/ruoyi-ui/src/views/business/tools/apitools/index.vue +++ b/ruoyi-ui/src/views/business/tools/apitools/index.vue @@ -18,8 +18,8 @@ v-loading="loading1" placement="bottom" width="400" + trigger="manual" v-model="holidayVisible"> -
 {{ data.holidayName }}   ------  @@ -28,6 +28,8 @@ 还剩 {{ data.residueDays }} 天
+ 搜索 @@ -44,12 +46,15 @@ v-loading="loading2" placement="bottom" width="988" + trigger="manual" v-model="beautyPictureVisible"> + 搜索 @@ -67,6 +72,7 @@ v-loading="loading3" placement="right" width="400" + trigger="manual" v-model="historyTodayVisible">
@@ -79,7 +85,8 @@
- + 搜索 @@ -98,9 +105,9 @@
@@ -118,6 +125,8 @@
+ 搜索
@@ -137,36 +146,111 @@
-
- - - + + + - 搜索 + +
+ + +
+ + 搜索 +
- - - + + + - 搜索 + +
+ 地理位置:{{ nowWeatherData.address }}
+ 空气湿度:{{ nowWeatherData.humidity }}
+ 实时温度:{{ nowWeatherData.temp }}
+ 实时风力:{{ nowWeatherData.winddirection }} {{ nowWeatherData.windpower }}
+ + + {{ + nowWeatherData.weather + }} + +
+ + 搜索 +
- - - + + + - 搜索 + +
+ +
+ {{ forecastWeatherData.address }} +
+
+
    +
  • + + 今天({{data.dayOfWeek}}) + + + 明天({{data.dayOfWeek}}) + + + 后天({{data.dayOfWeek}}) + + + 大后({{data.dayOfWeek}}) + + + + {{data.nighttemp}}~{{data.daytemp}} + + + {{data.dayweather}} + +
  • +
+
+
+
+
+ + 搜索 + +
@@ -213,7 +297,17 @@