|
|
|
@ -138,7 +138,7 @@ |
|
|
|
|
<view style='display:flex;align-items: center;margin-bottom:15px;'> |
|
|
|
|
<!-- <img style="width:50px;height:50px;margin-right:5px" src="/static/crowd/crowdlogo.png" alt="" /> --> |
|
|
|
|
<img style="width:50px;height:50px;margin-right:5px;border-radius: 50%;" :src="crowddata.task.avatar" |
|
|
|
|
alt="" @click="goCompanyInfo"/> |
|
|
|
|
alt="" @click="goCompanyInfo" /> |
|
|
|
|
<view> |
|
|
|
|
<view style="display: flex;margin:5px 0;align-items: center;"> |
|
|
|
|
<p style="color:#4D4D4D ; font-size:13px ;font-weight: bold;">{{crowddata.task.company_name}} |
|
|
|
@ -152,14 +152,15 @@ |
|
|
|
|
<span>发包总数:</span> |
|
|
|
|
<span style="color:#1578ED;">{{crowddata.task.publish_task_count}}</span> |
|
|
|
|
<!-- <span style="color:#1578ED;">{{(crowddata.task.company_app_count + crowddata.task.personal_app_count) == 20 ? "已满":(crowddata.task.company_app_count + crowddata.task.personal_app_count)}}</span> --> |
|
|
|
|
<span style="margin:0 6px"> l </span> |
|
|
|
|
<span style="margin:0 6px"> l </span> |
|
|
|
|
<block v-if="crowddata.task.commentsStar && crowddata.task.commentsStar != 0"> |
|
|
|
|
<span> 评分:</span> |
|
|
|
|
<span style="color: #FA9C22;margin-right: 5rpx;">{{crowddata.task.commentsStar}}</span> |
|
|
|
|
<u-rate :current="crowddata.task.commentsStar" :disabled="true" active-color="#fa9c22" inactive-color="#CDCECE"></u-rate> |
|
|
|
|
<u-rate :current="crowddata.task.commentsStar" :disabled="true" active-color="#fa9c22" |
|
|
|
|
inactive-color="#CDCECE"></u-rate> |
|
|
|
|
</block> |
|
|
|
|
<span v-else>暂无评价</span> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</p> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -498,41 +499,8 @@ |
|
|
|
|
this.http.quickGet(`/tester/cert/apply/${this.userinform.userId}`, true).then(res => { |
|
|
|
|
// console.log('竞标实名认证信息---',res) |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.testerdata = res.data.data |
|
|
|
|
if (parseInt(this.userinform.userId) == this.crowddata.task.publisher_id) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '您是发布者,无法竞标自己发布的任务。', |
|
|
|
|
icon: 'warning', |
|
|
|
|
duration: 2000 |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
console.log('testerdata.status---', this.testerdata) |
|
|
|
|
if (this.testerdata) { |
|
|
|
|
if (this.testerdata.status != 1) { //不是测试者或认证尚未成功 |
|
|
|
|
this.certifshow = true; |
|
|
|
|
} else { |
|
|
|
|
if (this.crowddata.task.applicant_type != 2) { //2是个人测试者或企业测试都都可以 |
|
|
|
|
if (this.crowddata.task.applicant_type == 0) { //要求个人测试者 |
|
|
|
|
if (this.userinform.companyStatus != 0) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '您是认证测试公司或正在申请成为认证测试公司,无法认证该任务,该任务只允许个人测试者竞标。', |
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 1000 |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} else { //要求企业测试者 |
|
|
|
|
if (this.userinform.companyStatus != 2) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '对不起,您是个人测试者,该任务只允许认证测试公司竞标。', |
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 3000 |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (res.data.data.applyId) { |
|
|
|
|
if (res.data.data.status == 1) { |
|
|
|
|
this.isPopupShow = true |
|
|
|
|
this.biddingobj = { |
|
|
|
|
taskId: '', |
|
|
|
@ -541,10 +509,69 @@ |
|
|
|
|
competitionEdge: '', |
|
|
|
|
attachment: '' |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
this.certifshow = true; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
this.certifshow = true; |
|
|
|
|
} |
|
|
|
|
if (res.data.data.companyApplyId) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '仅支持个人用户竞标报名', |
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 2000 |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this.testerdata = res.data.data |
|
|
|
|
// if (parseInt(this.userinform.userId) == this.crowddata.task.publisher_id) { |
|
|
|
|
// uni.showToast({ |
|
|
|
|
// title: '您是发布者,无法竞标自己发布的任务。', |
|
|
|
|
// icon: 'warning', |
|
|
|
|
// duration: 2000 |
|
|
|
|
// }); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
// console.log('testerdata.status---', this.testerdata) |
|
|
|
|
// if (this.testerdata) { |
|
|
|
|
// if (this.testerdata.status != 1) { //不是测试者或认证尚未成功 |
|
|
|
|
// this.certifshow = true; |
|
|
|
|
// } else { |
|
|
|
|
// if (this.crowddata.task.applicant_type != 2) { //2是个人测试者或企业测试都都可以 |
|
|
|
|
// if (this.crowddata.task.applicant_type == 0) { //要求个人测试者 |
|
|
|
|
// if (this.userinform.companyStatus != 0) { |
|
|
|
|
// uni.showToast({ |
|
|
|
|
// title: '您是认证测试公司或正在申请成为认证测试公司,无法认证该任务,该任务只允许个人测试者竞标。', |
|
|
|
|
// icon: 'none', |
|
|
|
|
// duration: 1000 |
|
|
|
|
// }); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
// } else { //要求企业测试者 |
|
|
|
|
// if (this.userinform.companyStatus != 2) { |
|
|
|
|
// uni.showToast({ |
|
|
|
|
// title: '对不起,您是个人测试者,该任务只允许认证测试公司竞标。', |
|
|
|
|
// icon: 'none', |
|
|
|
|
// duration: 3000 |
|
|
|
|
// }); |
|
|
|
|
// return; |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// this.isPopupShow = true |
|
|
|
|
// this.biddingobj = { |
|
|
|
|
// taskId: '', |
|
|
|
|
// applicantId: '', |
|
|
|
|
// period: '', |
|
|
|
|
// competitionEdge: '', |
|
|
|
|
// attachment: '' |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// } else { |
|
|
|
|
// this.certifshow = true; |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
@ -769,6 +796,7 @@ |
|
|
|
|
.ratebox ::v-deep .u-icon { |
|
|
|
|
font-size: 13px !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.logobg { |
|
|
|
|
width: 100vw; |
|
|
|
|
object-fit: contain; |
|
|
|
|