From 79f6e441855a5c3c19de4f5cea5a932bfcbd093c Mon Sep 17 00:00:00 2001
From: wxy <14293288+zysysys@user.noreply.gitee.com>
Date: Fri, 6 Sep 2024 19:03:32 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91=EF=BC=9A?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0API=E6=B5=8B=E8=AF=95=E6=8C=89=E9=92=AE?=
=?UTF-8?q?=E5=92=8C=E7=9B=B8=E5=85=B3=E5=AF=B9=E8=AF=9D=E6=A1=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
在系统接口页面添加了六个API测试按钮,对应不同的接口测试功能。每个按钮触发相应的测试函数,弹出相关对话框,展示请求结果。实现了手机号码、IP地址、天气预报等信息的查询功能。
- 新增了IP查询归属地、天气预报、新闻头条、气象预警、生辰助手、邮编查询的API测试按钮和对话框。
- 对话框中包含输入字段和请求结果展示区域,用户可以输入参数并发起请求。
- 实现了API测试功能,便于用户在页面上直接测试各个接口的响应数据。
---
src/views/port/sys/index.vue | 291 ++++++++++++++++++++++++++++++++++-
1 file changed, 284 insertions(+), 7 deletions(-)
diff --git a/src/views/port/sys/index.vue b/src/views/port/sys/index.vue
index 1ba0e6b..9fbca79 100644
--- a/src/views/port/sys/index.vue
+++ b/src/views/port/sys/index.vue
@@ -10,12 +10,12 @@
+ 省份:{{this.formIp.province}}
+ 城市:{{this.formIp.city}}
+ 运营商:{{this.formIp.isp}}
+
+
+ 天气:{{this.formWeatherForecast.info}}
+ 温度:{{this.formWeatherForecast.temperature}}
+ 湿度:{{this.formWeatherForecast.humidity}}
+ 风向:{{this.formWeatherForecast.direct}}
+ 风力:{{this.formWeatherForecast.power}}
+ 空气质量:{{this.formWeatherForecast.aqi}}
+
+
+ months: {{this.formBirthday.months}}
+ days: {{this.formBirthday.days}}
+ animal: {{this.formBirthday.animal}}
+ imonthcn: {{this.formBirthday.imonthcn}}
+ idaycn: {{this.formBirthday.idaycn}}
+ cyear: {{this.formBirthday.cyear}}
+ cmonth: {{this.formBirthday.cmonth}}
+ cday: {{this.formBirthday.cday}}
+ gzyear: {{this.formBirthday.gzyear}}
+ gzmonth: {{this.formBirthday.gzmonth}}
+ gzday: {{this.formBirthday.gzday}}
+ isleap: {{this.formBirthday.isleap}}
+ ncweek: {{this.formBirthday.ncweek}}
+ isterm: {{this.formBirthday.isterm}}
+ term: {{this.formBirthday.term}}
+ astro: {{this.formBirthday.astro}}
+ eightall: {{this.formBirthday.eightall}}
+ fiveall: {{this.formBirthday.fiveall}}
+
+