|
|
|
@ -230,13 +230,24 @@ |
|
|
|
|
<template v-if="task.commentsStar && task.commentsStar != 0"> |
|
|
|
|
<p style="font-size: 16px; color: #808080"> |
|
|
|
|
<span>评分:</span> |
|
|
|
|
<span style="color: #f38f0d; font-weight: 600">{{ task.commentsStar}} </span> |
|
|
|
|
<span style="color: #f38f0d; font-weight: 600">{{ task.commentsStar }} </span> |
|
|
|
|
</p> |
|
|
|
|
<div class="ratebox" style="display: flex; justify-content: center"> |
|
|
|
|
<el-rate v-model="task.commentsStar" disabled></el-rate> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<div v-else style="font-weight: 500;font-size: 16px;color: #666666; text-align:center;margin-top: 20px">暂无评分</div> |
|
|
|
|
<div |
|
|
|
|
v-else |
|
|
|
|
style=" |
|
|
|
|
font-weight: 500; |
|
|
|
|
font-size: 16px; |
|
|
|
|
color: #666666; |
|
|
|
|
text-align: center; |
|
|
|
|
margin-top: 20px; |
|
|
|
|
" |
|
|
|
|
> |
|
|
|
|
暂无评分 |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- <div style="display:flex;justify-content: center;"> |
|
|
|
|
<img v-if="task.email" style="width:15px;height:15px;margin:0 5px;" src="/assets/crowd/email.png" alt="" /> |
|
|
|
@ -344,7 +355,7 @@ import NonimageUpload from '@/page/common/NonimageUpload' |
|
|
|
|
|
|
|
|
|
import mixin from '@/mixin/index.js' |
|
|
|
|
import companyReviewVue from '@/page/common/companyReview.vue' |
|
|
|
|
|
|
|
|
|
import { gettesterId } from '@/api/tester/CompanyApply' |
|
|
|
|
export default { |
|
|
|
|
props: ['mydetails'], |
|
|
|
|
mixins: [mixin], |
|
|
|
@ -468,73 +479,104 @@ export default { |
|
|
|
|
// console.log('取消') |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
// console.log('this.task',this.task,this.userId) |
|
|
|
|
if (parseInt(this.userId) == this.task.publisher_id) { |
|
|
|
|
this.$alert('您是发布者,无法竞标自己发布的任务。') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
this.user = this.userinform |
|
|
|
|
// console.log('this.user',this.user) |
|
|
|
|
if (this.user.testerStatus != 2) { |
|
|
|
|
//不是测试者 |
|
|
|
|
gettesterId(this.userId).then((res) => { |
|
|
|
|
if (res.code == 200 && res.data.applyId) { |
|
|
|
|
if (res.data.applyId && res.data.status == 1) { |
|
|
|
|
this.paydiaopen = true |
|
|
|
|
} else { |
|
|
|
|
this.$confirm('未实名认证用户无法报名,请先去个人中心做实名认证', '提示', { |
|
|
|
|
type: 'warning', |
|
|
|
|
confirmButtonText: '去实名认证', |
|
|
|
|
}).then(() => { |
|
|
|
|
this.$router.push(`/console/profile`) |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
if (this.task.applicant_type != 2) { |
|
|
|
|
//2时个人测试者或企业测试都都可以 |
|
|
|
|
if (this.task.applicant_type == 0) { |
|
|
|
|
//要求个人测试者 |
|
|
|
|
if (this.user.companyStatus != 0) { |
|
|
|
|
this.$alert( |
|
|
|
|
'您是认证测试公司或正在申请成为认证测试公司,无法认证该任务,该任务只允许个人测试者竞标。', |
|
|
|
|
) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
//要求企业测试者 |
|
|
|
|
if (this.user.companyStatus != 2) { |
|
|
|
|
this.$alert('对不起,您是个人测试者,该任务只允许认证测试公司竞标。') |
|
|
|
|
return |
|
|
|
|
return this.$message.warning('仅支持个人用户竞标报名') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.paydiaopen = true |
|
|
|
|
// this.$confirm("确定要竞标此众包任务吗?").then(()=>{ |
|
|
|
|
// // return; |
|
|
|
|
// claimTask(this.task.task_id).then(response => { |
|
|
|
|
// if (response.data == 0) { |
|
|
|
|
// this.$notify({ |
|
|
|
|
// title: '竞标成功', |
|
|
|
|
// message: '请在我的参与中查看审核状态', |
|
|
|
|
// align: 'center', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// // this.$alert("应征任务成功,请等待应征结果通知。") |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// this.$router.push("/console/myparticipate") |
|
|
|
|
// },1000); |
|
|
|
|
// } else if (response.data == 1){ |
|
|
|
|
// this.$alert("该任务竞标者人数已满。") |
|
|
|
|
// } else if (response.data == 2){ |
|
|
|
|
// // this.$alert("您已应征了该任务,请等待应征结果通知。") |
|
|
|
|
// this.$notify({ |
|
|
|
|
// title: '您已应征了该任务', |
|
|
|
|
// message: '请等待应征结果通知。', |
|
|
|
|
// align: 'center', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// // this.$alert("应征任务成功,请等待应征结果通知。") |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// this.$router.push("/console/myparticipate") |
|
|
|
|
// },1000); |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
// console.log('this.task',this.task,this.userId) |
|
|
|
|
// if (parseInt(this.userId) == this.task.publisher_id) { |
|
|
|
|
// this.$alert('您是发布者,无法竞标自己发布的任务。') |
|
|
|
|
// return |
|
|
|
|
// } |
|
|
|
|
// this.user = this.userinform |
|
|
|
|
// if (this.user.companyStatus == 2) { |
|
|
|
|
// return this.$message.warning('仅支持个人用户竞标报名') |
|
|
|
|
// } |
|
|
|
|
// if (this.user.testerStatus === 0 || this.user.testerStatus === 2) { |
|
|
|
|
// this.paydiaopen = true |
|
|
|
|
// } |
|
|
|
|
// if (this.user.testerStatus === null) { |
|
|
|
|
// this.$confirm('未实名认证用户无法报名,请先去个人中心做实名认证', '提示', { |
|
|
|
|
// type: 'warning', |
|
|
|
|
// confirmButtonText: '去实名认证', |
|
|
|
|
// }).then(() => { |
|
|
|
|
// this.$router.push(`/console/profile`) |
|
|
|
|
// }) |
|
|
|
|
// } |
|
|
|
|
// console.log('this.user',this.user) |
|
|
|
|
// if (this.user.testerStatus === 0) { |
|
|
|
|
// //不是测试者 |
|
|
|
|
// this.$confirm('未实名认证用户无法报名,请先去个人中心做实名认证', '提示', { |
|
|
|
|
// type: 'warning', |
|
|
|
|
// confirmButtonText: '去实名认证', |
|
|
|
|
// }).then(() => { |
|
|
|
|
// this.$router.push(`/console/profile`) |
|
|
|
|
// }) |
|
|
|
|
} |
|
|
|
|
// } else { |
|
|
|
|
// if (this.task.applicant_type != 2) { |
|
|
|
|
// //2时个人测试者或企业测试都都可以 |
|
|
|
|
// if (this.task.applicant_type == 0) { |
|
|
|
|
// //要求个人测试者 |
|
|
|
|
// if (this.user.companyStatus != 0) { |
|
|
|
|
// this.$alert( |
|
|
|
|
// '您是认证测试公司或正在申请成为认证测试公司,无法认证该任务,该任务只允许个人测试者竞标。', |
|
|
|
|
// ) |
|
|
|
|
// return |
|
|
|
|
// } |
|
|
|
|
// } else { |
|
|
|
|
// //要求企业测试者 |
|
|
|
|
// if (this.user.companyStatus != 2) { |
|
|
|
|
// this.$alert('对不起,您是个人测试者,该任务只允许认证测试公司竞标。') |
|
|
|
|
// return |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// this.paydiaopen = true |
|
|
|
|
// // this.$confirm("确定要竞标此众包任务吗?").then(()=>{ |
|
|
|
|
// // // return; |
|
|
|
|
// // claimTask(this.task.task_id).then(response => { |
|
|
|
|
// // if (response.data == 0) { |
|
|
|
|
// // this.$notify({ |
|
|
|
|
// // title: '竞标成功', |
|
|
|
|
// // message: '请在我的参与中查看审核状态', |
|
|
|
|
// // align: 'center', |
|
|
|
|
// // type: 'success' |
|
|
|
|
// // }); |
|
|
|
|
// // // this.$alert("应征任务成功,请等待应征结果通知。") |
|
|
|
|
// // setTimeout(() => { |
|
|
|
|
// // this.$router.push("/console/myparticipate") |
|
|
|
|
// // },1000); |
|
|
|
|
// // } else if (response.data == 1){ |
|
|
|
|
// // this.$alert("该任务竞标者人数已满。") |
|
|
|
|
// // } else if (response.data == 2){ |
|
|
|
|
// // // this.$alert("您已应征了该任务,请等待应征结果通知。") |
|
|
|
|
// // this.$notify({ |
|
|
|
|
// // title: '您已应征了该任务', |
|
|
|
|
// // message: '请等待应征结果通知。', |
|
|
|
|
// // align: 'center', |
|
|
|
|
// // type: 'success' |
|
|
|
|
// // }); |
|
|
|
|
// // // this.$alert("应征任务成功,请等待应征结果通知。") |
|
|
|
|
// // setTimeout(() => { |
|
|
|
|
// // this.$router.push("/console/myparticipate") |
|
|
|
|
// // },1000); |
|
|
|
|
// // } |
|
|
|
|
// // }) |
|
|
|
|
// // }) |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
resultFn() { |
|
|
|
|