From 1cf1f19d301e58d4954d6d3e78c7bff8a9ccf50e Mon Sep 17 00:00:00 2001 From: Fox-33 <1466778434@qq.com> Date: Fri, 25 Jul 2025 16:14:01 +0800 Subject: [PATCH] feat: page-case; --- api/api.js | 2 +- api/model/case.js | 41 ++++++++ components/base/arrow.vue | 43 ++++++++ components/base/suspendDropdown.vue | 158 ++++++++++++++++++++++++++++ pages.json | 4 +- pages/index/case.vue | 198 ++++++++++++++++++++++++++++++++++++ pages_order/case/index.vue | 160 +++++++++++++++++++++++++++++ pages_order/thesis/index.vue | 4 +- uni.scss | 4 +- 9 files changed, 609 insertions(+), 5 deletions(-) create mode 100644 api/model/case.js create mode 100644 components/base/arrow.vue create mode 100644 components/base/suspendDropdown.vue create mode 100644 pages_order/case/index.vue diff --git a/api/api.js b/api/api.js index 154d37a..6c54159 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'] +const models = ['index', 'case'] const config = { // 示例 diff --git a/api/model/case.js b/api/model/case.js new file mode 100644 index 0000000..86e3193 --- /dev/null +++ b/api/model/case.js @@ -0,0 +1,41 @@ +// 案例相关接口 + +const api = { + /** + * 获取服务分类列表 + */ + queryCategoryServiceList: { + url: '/config/queryCategoryServiceList', + method: 'GET', + }, + /** + * 获取专业分类列表 + */ + queryCategoryMajorList: { + url: '/config/queryCategoryMajorList', + method: 'GET', + }, + /** + * 获取阶段分类列表 + */ + queryCategoryPeriodList: { + url: '/config/queryCategoryPeriodList', + method: 'GET', + }, + /** + * 获取案例文章列表 + */ + queryAriticleList: { + url: '/index/queryAriticleList', + method: 'GET', + }, + /** + * 获取案例文章详情 + */ + queryAriticleById: { + url: '/index/queryAriticleById', + method: 'GET', + }, +} + +export default api \ No newline at end of file diff --git a/components/base/arrow.vue b/components/base/arrow.vue new file mode 100644 index 0000000..e76b152 --- /dev/null +++ b/components/base/arrow.vue @@ -0,0 +1,43 @@ + + + + + \ No newline at end of file diff --git a/components/base/suspendDropdown.vue b/components/base/suspendDropdown.vue new file mode 100644 index 0000000..bb1e5f3 --- /dev/null +++ b/components/base/suspendDropdown.vue @@ -0,0 +1,158 @@ + + + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index 1a680f5..60262c1 100644 --- a/pages.json +++ b/pages.json @@ -34,8 +34,10 @@ "root": "pages_order", "pages": [{ "path": "thesis/search" - },{ + }, { "path": "thesis/index" + }, { + "path": "case/index" } ] }], diff --git a/pages/index/case.vue b/pages/index/case.vue index 5258586..05b463a 100644 --- a/pages/index/case.vue +++ b/pages/index/case.vue @@ -1,20 +1,218 @@ \ No newline at end of file diff --git a/pages_order/case/index.vue b/pages_order/case/index.vue new file mode 100644 index 0000000..b86c7de --- /dev/null +++ b/pages_order/case/index.vue @@ -0,0 +1,160 @@ + + + + + \ No newline at end of file diff --git a/pages_order/thesis/index.vue b/pages_order/thesis/index.vue index 7b82631..0f8bc0c 100644 --- a/pages_order/thesis/index.vue +++ b/pages_order/thesis/index.vue @@ -171,8 +171,8 @@ attachment: [], } }, - onLoad({ id }) { - this.getData(id) + onLoad({ thesisId }) { + this.getData(thesisId) }, methods: { async getData(thesisId) { diff --git a/uni.scss b/uni.scss index b53f9e4..1dceb74 100644 --- a/uni.scss +++ b/uni.scss @@ -93,4 +93,6 @@ $uni-font-size-paragraph:15px; color: $uni-color; text-align: center; font-size: 28rpx; -} \ No newline at end of file +} + +$navbar-height: 100rpx;