diff --git a/api/api.js b/api/api.js index 8ee2b7a..a954e08 100644 --- a/api/api.js +++ b/api/api.js @@ -5,7 +5,7 @@ import utils from '../utils/utils.js' let limit = {} let debounce = {} -const models = ['index', 'case', 'serve'] +const models = ['index', 'case', 'serve', 'other'] const config = { // 示例 diff --git a/api/model/other.js b/api/model/other.js new file mode 100644 index 0000000..8edbabc --- /dev/null +++ b/api/model/other.js @@ -0,0 +1,20 @@ +// 其他相关接口 + +const api = { + /** + * 其他-获取其他模块文章列表 + */ + queryOtherArticleList: { + url: '/index/queryOtherArticleList', + method: 'GET', + }, + /** + * 其他-获取其他模块文章详情 + */ + queryOtherArticleById: { + url: '/index/queryOtherArticleById', + method: 'GET', + }, +} + +export default api \ No newline at end of file diff --git a/pages/index/center.vue b/pages/index/center.vue index 9d2655d..f48ef94 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -15,16 +15,8 @@ - - - - - - - 其他服务 - Other services - - + + @@ -35,14 +27,18 @@