flat: workId

This commit is contained in:
Apcallover
2024-05-08 10:57:47 +08:00
parent 7c586212dd
commit bdd6ce0af7
4 changed files with 23 additions and 2 deletions

View File

@@ -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) => { export const recruit_missionDetail = (missionNo, type) => {
return request({ return request({

View File

@@ -106,7 +106,7 @@
// 判断是岗位还是任务 0任务1岗位2政策 // 判断是岗位还是任务 0任务1岗位2政策
if (item.type == 0) { if (item.type == 0) {
uni.navigateTo({ 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) { } else if (item.type == 1) {
uni.navigateTo({ uni.navigateTo({

View File

@@ -190,6 +190,7 @@
} from 'vuex' } from 'vuex'
import { import {
missionDetail, missionDetail,
missionDetailById,
submit, submit,
getCollectState, getCollectState,
updateCollectStatus updateCollectStatus
@@ -245,6 +246,7 @@
maxlength: 6, maxlength: 6,
collectStatus: 0, // 收藏状态 collectStatus: 0, // 收藏状态
showPopUp: false, showPopUp: false,
isInvite: false
} }
}, },
components: { components: {
@@ -266,6 +268,9 @@
if (option.id) { if (option.id) {
this.id = option.id; //消息id this.id = option.id; //消息id
} }
if (option.isInvite) {
this.isInvite = true
}
}, },
onShow: function() { onShow: function() {
this.showDetail = true this.showDetail = true
@@ -305,7 +310,13 @@
}, },
getData: function() { getData: function() {
const self = this; 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.info = res.data.data;
self.status = res.data.data.detailStatus; self.status = res.data.data.detailStatus;
AddressToLocation({ AddressToLocation({

View File

@@ -282,6 +282,7 @@
changeTab: function(e) { changeTab: function(e) {
this.activeTab = e; this.activeTab = e;
console.log(e)
}, },
// 清空搜索历史 // 清空搜索历史
clearKeyWords() { clearKeyWords() {