From bdd6ce0af7395157a34ffa8b02a45a145149534c Mon Sep 17 00:00:00 2001 From: Apcallover <1503963513@qq.com> Date: Wed, 8 May 2024 10:57:47 +0800 Subject: [PATCH] flat: workId --- api/mission.js | 9 +++++++++ pages/my/Browsinghistory.vue | 2 +- pages/projectInfo/projectInfo.vue | 13 ++++++++++++- pages/seach/seach.vue | 1 + 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/api/mission.js b/api/mission.js index 65c8ab2..f9a9462 100644 --- a/api/mission.js +++ b/api/mission.js @@ -209,6 +209,15 @@ export const missionDetail = (missionNo) => { } }) } +export const missionDetailById = (workId) => { + return request({ + url: '/api/jobslink-api/missions/front/mission/detailById', + method: 'get', + params: { + workId + } + }) +} /*任务详情*/ export const recruit_missionDetail = (missionNo, type) => { return request({ diff --git a/pages/my/Browsinghistory.vue b/pages/my/Browsinghistory.vue index aea4c70..e9d0749 100644 --- a/pages/my/Browsinghistory.vue +++ b/pages/my/Browsinghistory.vue @@ -106,7 +106,7 @@ // 判断是岗位还是任务 0:任务,1:岗位,2:政策 if (item.type == 0) { uni.navigateTo({ - url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(no)}&isCan=1` + url: `/pages/projectInfo/projectInfo?missionNo=${encodeURIComponent(no)}&isCan=1&isInvite=1` }) } else if (item.type == 1) { uni.navigateTo({ diff --git a/pages/projectInfo/projectInfo.vue b/pages/projectInfo/projectInfo.vue index c8f53ad..57223d7 100644 --- a/pages/projectInfo/projectInfo.vue +++ b/pages/projectInfo/projectInfo.vue @@ -190,6 +190,7 @@ } from 'vuex' import { missionDetail, + missionDetailById, submit, getCollectState, updateCollectStatus @@ -245,6 +246,7 @@ maxlength: 6, collectStatus: 0, // 收藏状态 showPopUp: false, + isInvite: false } }, components: { @@ -266,6 +268,9 @@ if (option.id) { this.id = option.id; //消息id } + if (option.isInvite) { + this.isInvite = true + } }, onShow: function() { this.showDetail = true @@ -305,7 +310,13 @@ }, getData: function() { const self = this; - missionDetail(self.missionNo).then(res => { + let detail = null + if (this.isInvite) { + detail = missionDetailById + } else { + detail = missionDetail + } + detail(self.missionNo).then(res => { self.info = res.data.data; self.status = res.data.data.detailStatus; AddressToLocation({ diff --git a/pages/seach/seach.vue b/pages/seach/seach.vue index e3e4e71..d96ccbd 100644 --- a/pages/seach/seach.vue +++ b/pages/seach/seach.vue @@ -282,6 +282,7 @@ changeTab: function(e) { this.activeTab = e; + console.log(e) }, // 清空搜索历史 clearKeyWords() {