diff --git a/ruoyi-ui/src/api/business/openapi/aword.js b/ruoyi-ui/src/api/business/openapi/aword.js index 68e26e38..79cca363 100644 --- a/ruoyi-ui/src/api/business/openapi/aword.js +++ b/ruoyi-ui/src/api/business/openapi/aword.js @@ -25,3 +25,13 @@ export function delAword(id) { method: 'delete' }) } + +// 查询英语单词列表 +export function getApiAWord(query) { + return request({ + url: '/openapi/aword/', + method: 'get', + params: query + }) +} + diff --git a/ruoyi-ui/src/api/index.js b/ruoyi-ui/src/api/index.js index 09d33c84..b915f2da 100644 --- a/ruoyi-ui/src/api/index.js +++ b/ruoyi-ui/src/api/index.js @@ -3,11 +3,3 @@ import request from '@/utils/request' -// 查询英语单词列表 -export function getApiAWord(query) { - return request({ - url: '/openapi/aword/', - method: 'get', - params: query - }) -} diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index cc441886..d48c762a 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -13,8 +13,9 @@ - +
{{cast.dayweather}} @@ -149,6 +150,9 @@ export default { data() { return { + // 遮罩层 + loading: false, + //预警数据 warnData: {}, @@ -205,9 +209,10 @@ export default { methods: { //获取预报天气 getForecastWeather() { - console.log("点击了") + this.loading = true; getForecastWeather().then(res => { this.forecastWeatherData = res.data + this.loading = false; }) }, diff --git a/ruoyi-ui/src/views/business/openapi/translation/index.vue b/ruoyi-ui/src/views/business/openapi/translation/index.vue index 0e1437d1..ba86610e 100644 --- a/ruoyi-ui/src/views/business/openapi/translation/index.vue +++ b/ruoyi-ui/src/views/business/openapi/translation/index.vue @@ -2,19 +2,20 @@
-
- - -
- {{responseCopyWriting.content}} -
- -
- {{responseCopyWriting.source}} -
+
+ + +
+ {{ responseCopyWriting.content }}
+ +
+ {{ responseCopyWriting.source }} +
+
+ @@ -38,7 +39,7 @@ - + @@ -65,14 +66,51 @@ + + +
+
+ + +
+ +
+ +
+ +
+

+ {{apiAWord.content}} +

+
+ +
+

+ {{apiAWord.note}} +

+
+
+ +
+
diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue index 7f6848cc..7e1628bf 100644 --- a/ruoyi-ui/src/views/index.vue +++ b/ruoyi-ui/src/views/index.vue @@ -1,75 +1,27 @@