更新消息详情页面

This commit is contained in:
dengxin
2024-03-19 19:29:31 +08:00
parent 4a455b2d9b
commit 78e7726bfa
8 changed files with 4 additions and 1031 deletions

View File

@@ -149,7 +149,7 @@
<script>
import { mapGetters } from 'vuex'
import { recruit_missionDetail, submit, } from '@/api/mission.js';
import { recruit_missionDetail, } from '@/api/mission.js';
import { GoLogin } from '@/untils/AxiosUtils.js';
import { setRead } from '@/api/news.js';
import { checkPass } from '@/api/auth.js';
@@ -245,67 +245,12 @@ export default {
self.covers[0].latitude = self.info.lat;
self.covers[0].longitude = self.info.lon;
self.showDetail = true;
if (!this.seeDeatil) {
if (self.type === 1) {
// 设置已读
setRead(self.id).then(res => {
self.$store.commit("SET_READ");
})
}
}
}
},
submit: function () {
if (!this.$store.state.user.token) {
GoLogin()
return
}
if (this.loading) return
const auth = this.auth
const contractOn = this.info.contractOn
const sealOk = this.autograph && this.autograph.data && this.autograph.data.signSrcUrl
// if (sealOk) {
// console.log('直接抢任务')
// this.submitTask()
// } else
// if (!auth.realNameState || !auth.laborState || !auth.insureState) {
// this.goSign(0)
// } else if (!auth.bankCardState){
// this.goSign(1)
// } else
if (contractOn && !sealOk) {
this.goSign(2)
} else if (sealOk && contractOn) {
this.nextBtn = true
this.lookMask()
} else {
this.submitTask()
}
},
// 查看合同
lookMask() {
this.maskShow = true
},
// 岗位申请
submitTask() {
submit(this.missionNo, 2).then(res => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
});
this.status = null;
this.loading = false
}, error => {
this.loading = false
});
},
// 步骤
goSign(active) {
uni.navigateTo({
url: `/pages/projectInfo/signContract?active=${active}`
})
},
// 关闭弹窗
close() {
this.maskShow = false