From 41ae03e35de92c08823a7c748d43d916ca8e270b Mon Sep 17 00:00:00 2001 From: zxy <353513737@qq.com> Date: Mon, 19 Feb 2024 09:08:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/mission.js | 51 +++++- components/companyList/companyList.vue | 4 +- components/companyList/workList.vue | 211 +++++++++++++++++++++++++ pages/index/index.vue | 12 +- pages/project/project.vue | 31 +++- pages/projectInfo/projectInfo.vue | 45 +++++- pages/seach/seach.vue | 146 +++++++++++++++-- static/img/collect.png | Bin 0 -> 2075 bytes static/img/collect_yes.png | Bin 0 -> 1682 bytes static/img/delete.png | Bin 0 -> 1163 bytes vue.config.js | 2 +- 11 files changed, 469 insertions(+), 33 deletions(-) create mode 100644 components/companyList/workList.vue create mode 100644 static/img/collect.png create mode 100644 static/img/collect_yes.png create mode 100644 static/img/delete.png diff --git a/api/mission.js b/api/mission.js index 40b3963..2e688ed 100644 --- a/api/mission.js +++ b/api/mission.js @@ -40,7 +40,7 @@ export const recMission = () => { /*抢任务-附近任务*/ export const nearMission = (current, size, lat, lon, distance) => { return request({ - url: '/api/jobslink-api/missions/user/mission/nearByList', + url: '/api/jobslink-api/user/userWork/getPushListByUserId', method: 'get', params: { current, @@ -118,3 +118,52 @@ export const missionDetail = (missionNo) => { } }) } + +/*获取收藏状态*/ +export const getCollectState = (workId) => { + return request({ + url: '/api/jobslink-api/works/jkworkscollect/getCollectStatus', + method: 'get', + params: { + workId + } + }) +} + +/*收藏和取消收藏接口*/ +export const updateCollectStatus = (workId, status) => { + return request({ + url: '/api/jobslink-api/works/jkworkscollect/updateCollectStatus', + method: 'get', + params: { + workId, + status + } + }) +} + + +/*获取查询关键字列表*/ +export const getSearchKeyWordsList = () => { + return request({ + url: '/api/jobslink-api/user/userWork/getSearchAllKeyWords', + method: 'get', + }) +} +/*清空搜索历史*/ +export const clearSearchKeyWords = () => { + return request({ + url: '/api/jobslink-api/user/userWork/delSearchAllKeyWords', + method: 'get', + }) +} +/*通过关键字获取面板搜索结果*/ +export const getListByKeyWords = (keywords) => { + return request({ + url: '/api/jobslink-api/user/userWork/searchAll', + method: 'get', + params: { + keywords + } + }) +} diff --git a/components/companyList/companyList.vue b/components/companyList/companyList.vue index a982aef..9d6407a 100644 --- a/components/companyList/companyList.vue +++ b/components/companyList/companyList.vue @@ -19,8 +19,8 @@ {{ companyitem.companyName }} - - 报名截止日期:{{ dateFormat(companyitem.etimePub) }} + + {{ companyitem.missionCompanyName }} {{ companyitem.distanceStr }}km diff --git a/components/companyList/workList.vue b/components/companyList/workList.vue new file mode 100644 index 0000000..dbf007d --- /dev/null +++ b/components/companyList/workList.vue @@ -0,0 +1,211 @@ + + + + + diff --git a/pages/index/index.vue b/pages/index/index.vue index 31cdedc..ba53a61 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,9 +1,9 @@