|
|
@@ -102,6 +102,12 @@
|
|
|
<div v-else class="action unactive">未达标</div>
|
|
|
<div class="condition-text">在程序员客栈平台累计提现超过10万({{ conditions[3].completed_num }}/ {{ conditions[3].target }})</div>
|
|
|
</div>
|
|
|
+ <div class="condition-item" v-if="conditions[4]" :class="conditions[4] && conditions[4].is_completed ? 'condition-item-completed' : ''">
|
|
|
+ <div class="condition-point"></div>
|
|
|
+ <div v-if="conditions[4] && conditions[4].is_completed" class="action">已达标</div>
|
|
|
+ <div v-else class="action unactive">未达标</div>
|
|
|
+ <div class="condition-text">至少发布一个付费咨询话题({{ conditions[4].completed_num }}/ {{ conditions[4].target }})</div>
|
|
|
+ </div>
|
|
|
<div class="verify-tips" v-if="!f2f3ConditionsCompelete">提示:由于您未在以上条件未达标,您还可以通过提交过往知名互联网公司职级证明,申请人工审核认证</div>
|
|
|
</section>
|
|
|
<!-- F2、F3 上传职级证明图片 -->
|
|
|
@@ -225,6 +231,10 @@ export default {
|
|
|
{ cert_id: id, id },
|
|
|
{ headers, neverLogout: true }
|
|
|
);
|
|
|
+ let freeworkInfo = await $axios.$post(
|
|
|
+ `/api/cert/freeworkInfo`,
|
|
|
+ { headers, neverLogout: true }
|
|
|
+ );
|
|
|
const showCats =
|
|
|
cats.data && cats.data.developers
|
|
|
? cats.data.developers.slice(0, 10)
|
|
|
@@ -240,7 +250,8 @@ export default {
|
|
|
workYearOp: 1,
|
|
|
showCats,
|
|
|
showCount,
|
|
|
- id
|
|
|
+ id,
|
|
|
+ freeworkInfo: {}
|
|
|
};
|
|
|
}
|
|
|
let workYearOp = +data.user_info.work_year_op;
|
|
|
@@ -249,7 +260,8 @@ export default {
|
|
|
workYearOp,
|
|
|
showCats,
|
|
|
showCount,
|
|
|
- id
|
|
|
+ id,
|
|
|
+ freeworkInfo: freeworkInfo.data
|
|
|
};
|
|
|
},
|
|
|
mixins: [WxMixin],
|
|
|
@@ -394,13 +406,25 @@ export default {
|
|
|
window.open("/type/vip/");
|
|
|
},
|
|
|
async clickBtn() {
|
|
|
- // 仅添加前端拦截提示
|
|
|
- if (this.id === '20' && this.userinfo.freework_level == 3) {
|
|
|
- this.$message.info('您已通过F3认证,不能再申请F2认证')
|
|
|
- return
|
|
|
- }
|
|
|
const screenWidth = screen.width
|
|
|
if (this.hasLogined) {
|
|
|
+ // 前端拦截提示
|
|
|
+ if (this.id === '20') {
|
|
|
+ // 做 F2 认证时:1. F3 认证审核中;2. F3 认证已通过;
|
|
|
+ if (this.freeworkInfo[1].status == 1) {
|
|
|
+ this.$message.info('您的F3认证正在审核中,暂不能申请F2认证')
|
|
|
+ return
|
|
|
+ } else if (this.freeworkInfo[1].status == 2) {
|
|
|
+ this.$message.info('您已通过F3认证,不能再申请F2认证')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ } else if (this.id === '21') {
|
|
|
+ // 做 F3 认证时:1. F2 认证审核中
|
|
|
+ if (this.freeworkInfo[0].status == 1) {
|
|
|
+ this.$message.info('您的F2认证正在审核中,暂不能申请F3认证')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
let next = '/cert'
|
|
|
// F2、F3 认证,判断是否已上传图片
|
|
|
if (this.id === '20' || this.id === '21') {
|