From 46dd60788bc30edd991bbd75add618922276ad73 Mon Sep 17 00:00:00 2001 From: 易尊强 <306277016@qq.com> Date: Thu, 29 Feb 2024 16:32:41 +0800 Subject: [PATCH] 人才搜索 --- apis/talent/talent.js | 3 +++ components/qj-fuzzy-search/index.vue | 8 ++++++-- package (4).json | 19 +++++++++++++++++++ pages.json | 2 +- pages/home/home.vue | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++------ pages/recommend/recommend.vue | 5 +++-- 6 files changed, 85 insertions(+), 11 deletions(-) create mode 100644 package (4).json diff --git a/apis/talent/talent.js b/apis/talent/talent.js index 6b134ae..728df14 100644 --- a/apis/talent/talent.js +++ b/apis/talent/talent.js @@ -9,6 +9,9 @@ export default{ getTalentList(data){ return request.get('/Extend/basetalentrecruitment/GetListByApp',data) }, + getRecommendList(data){ + return request.get('/SubDev/basetalentrecommendation/GetListByApp',data) + }, // 人才招聘发布 postTalent(data){ return request.post('/Extend/basetalentrecruitment',data) diff --git a/components/qj-fuzzy-search/index.vue b/components/qj-fuzzy-search/index.vue index 73567d6..a5a6001 100644 --- a/components/qj-fuzzy-search/index.vue +++ b/components/qj-fuzzy-search/index.vue @@ -43,10 +43,14 @@ export default { type: String, default: 'value' }, + categoryIdName: { + type: String, + default: 'categoryId' + }, /** 无内容时显示的内容 */ noData: { type: String, - default: '暂无匹配企业...' + default: '暂无匹配数据...' }, /** item的对齐样式 */ align: { @@ -105,7 +109,7 @@ export default { .list { box-sizing: border-box; - max-height: 100rpx; + max-height: 200rpx; overflow: hidden; .item { diff --git a/package (4).json b/package (4).json new file mode 100644 index 0000000..19ab787 --- /dev/null +++ b/package (4).json @@ -0,0 +1,19 @@ +{ + "id": "qj-fuzzy-search", + "name": "模糊查询组件", + "displayName": "模糊查询组件", + "version": "1.1.1", + "description": "因为在公司的小程序,app项目中涉及到了模糊查询的需求,我翻看了uniapp插件市场中的此类插件,发现并无特别符合心意,于是自己就动手写了一个,没有什么动画样式,样式也比较丑,多多包涵", + "keywords": [ + "模糊", + "模糊搜索", + "模糊查询", + "查询" + ], + "dcloudext": { + "category": [ + "前端组件", + "通用组件" + ] + } +} \ No newline at end of file diff --git a/pages.json b/pages.json index 5c10249..3bda65a 100644 --- a/pages.json +++ b/pages.json @@ -248,7 +248,7 @@ { "path": "pages/newsDetail/newsDetail", "style": { - "navigationBarTitleText": "新闻详情", + "navigationBarTitleText": "新闻/公示公告详情", "enablePullDownRefresh": false } }, diff --git a/pages/home/home.vue b/pages/home/home.vue index 36b1419..b141e7b 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -14,12 +14,14 @@ - + 搜索 + @@ -97,7 +99,7 @@ 更多... - · + · {{it.title}} @@ -131,7 +133,7 @@ 更多... - · + · {{it.title}}