| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641 |
- <template>
- <div class="container">
- <skillCertHeader title="技术等级认证"></skillCertHeader>
- <flow :dataList="flowList"></flow>
- <div class="description rule">
- <div class="col-title">
- <span class="label">评级细则</span>
- </div>
- <div class="rule-content">
- <div class="text" v-for="(item,index) in rules" :key="index">
- <p class="text-title">{{item.title}}</p>
- <a v-if="item.linkUrl" class="text-content text-content--a" :href="item.linkUrl" target="view_window">{{item.content}}</a>
- <p v-else class="text-content" v-html="item.content"></p>
- </div>
- </div>
- </div>
- <div class="description condition" style="display: none">
- <div class="col-title">
- <span class="label">申请条件</span>
- </div>
- <div class="item" v-for="(item,index) in conditions" :key="index">
- <span class="text">{{item.text}}</span>
- <a v-if="item.linkUrl" :click="cnzz('技术认证','等级对照表1')" class="action" :href="item.linkUrl" target="view_window">{{item.linkName}}</a>
- </div>
- </div>
- <!-- 技能认证:start -->
- <div class="col-title width-infinity">
- <span class="label">目标技术栈</span>
- </div>
- <div class="skill-cert width-infinity">
- <div class="field-selector skill-cert-status-main">
- <span class="selector-title">选择认证方向:</span>
- <div class="fields skill-cert-select">
- <occupation_direction @change="directionChange"/>
- </div>
- <div class="skill-cert-status">{{freeworkLevel == 0 ? '未认证':'技术'+freeworkLevel+"级"}}</div>
- </div>
- <div class="skill-cret-list">
- <skills></skills>
- </div>
- </div>
- <!-- 技能认证:end -->
- <div class="level-selector">
- <div class="col-title">
- <span class="label">选择认证等级</span>
- </div>
- <span class="action" @click="toLevelsDesc">等级对照表</span>
- <img class="icon" @click="toLevelsDesc" src="@/assets/img/skill_cert/icon_tips.png" alt=""/>
- </div>
- <div class="level-selector">
- <el-select v-model="level" placeholder="认证等级" clearable @change="handleLevelChange">
- <el-option
- v-for="dict in levels"
- :key="dict.item_id"
- :label="dict.name"
- :value="dict.item_id"
- />
- </el-select>
- </div>
- <p class="field-tips" style="padding-top: 15px">最终定级由面试表现协定;认证一般没有失败,除非您的技术能力低于最低要求</p>
- <!-- <p class="field-tips" v-show="currentFieldId" style="margin-top: 10px">参与能力评估,赠送1个月<a href="/type/vip/developer">开发者会员</a></p> -->
- <p class="field-tips" v-show="currentFieldId" style="margin-top: 10px">认证收费将支付给面试官,而非平台,详情见等级对照表</p>
- <div v-show="imgShow" class="col-title width-infinity upload-title">
- <span class="label">上传薪资证明</span>
- </div>
- <p v-show="imgShow" class="field-tips">目标T5级(对标阿里P7),最低40W以上年薪</p>
- <p v-show="imgShow" class="field-tips">目标T6级(对标阿里P8),最低65W以上年薪</p>
- <div v-show="imgShow" class="width-infinity upload-action">
- <el-upload
- class="upload-demo"
- drag
- action="/upload_image"
- :on-success="handleSuccess"
- :on-error="handleError"
- :on-remove="handleRemove"
- :before-upload="beforeAvatarUpload"
- :on-preview="handlePreview"
- :file-list="fileList"
- list-type="picture"
- accept=".jpg,.jpeg,.png,.JPG,.PNG,.JPEG"
- with-credentials
- multiple>
- <i class="el-icon-upload"></i>
- <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
- <div class="el-upload__tip" slot="tip" style="display: flex;flex-direction: column">
- <span>支持5M以内的PNG、JPG、JPEG格式的图片,可上传多张</span>
- <br/>
- <a href="https://jishuin.proginn.com/p/763bfbd72778" target="view_window" style="font-size: 15px">查看常见薪水证明以及获取方式</a>
- </div>
- </el-upload>
- </div>
- <div class="price">
- <span class="text">¥{{price||'0.00'}}</span>
- <span class="unit"> /次</span>
- </div>
- <div class="buttons">
- <el-button class="submit" type="primary" @click="submit">确认提交</el-button>
- </div>
- <el-dialog :visible.sync="dialogVisible">
- <img width="100%" :src="dialogImageUrl" alt="">
- </el-dialog>
- </div>
- </template>
- <script>
- import {mapState} from "vuex"
- import flow from "@/components/flow/flow";
- import skillCertHeader from "@/components/skill_cert_header/skill_cert_header";
- import occupation_direction from "@/components/public/occupation_direction";
- import skills from "./components/skills";
- import resume_improve from "./resume_improve";
- export default {
- name: "profile",
- components: {
- flow, skillCertHeader,skills,occupation_direction,resume_improve
- },
- data() {
- return {
- rules: [{
- title: '1、评估优势',
- content: '* 平台派单时,将第一优先考虑进行过技术认证的用户,技术等级越高,权重越高' +
- '<br/>' +
- '* 依据技术等级将有更高的参考薪酬' +
- '<br/>' +
- '* 认证4级以上用户有机会被内邀为面试官' +
- '<br/>' +
- '* 面试过程中,将与高水平技术官的进行深层次沟通' +
- '<br/>' +
- '* 享有技术专家标识,增加客户信任感',
- linkUrl: ''
- }, {
- title: '2、等级对照表',
- content: '《客栈技术等级对照表》',
- linkUrl: 'https://proginn.feishu.cn/docs/doccnFJSsH0KZ9cTfQNpSRrZ4Of'
- }, {
- title: '3、其他说明',
- content: '* 技术认证采用线上面试的方式进行' + '<br/>' +
- '* 可进行多领域认证,也可就已认证领域再次认证' + '<br/>' +
- '* 评估金额无法退回,请确保已理解所有内容',
- linkUrl: ''
- },],
- dialogImageUrl: '',
- dialogVisible: false,
- imgShow: false,
- levels: [],
- conditions: [],
- fields: [],
- tagsSelected: [],
- tags_2: [],//普通标签
- tags_3: [],//应用标签
- tags_4: [],//行业标签
- flowList: [
- {
- active: true,
- label: '基础信息'
- }, {
- active: false,
- label: '完善简历'
- }, {
- active: false,
- label: '对接面试官'
- }, {
- active: false,
- label: '开始面试'
- }, {
- active: false,
- label: '结束认证'
- },
- ],
- tagText: '',
- form: {
- skill: [],
- pay_status: '1'
- },
- fileList: [],
- level: '',
- price: '',
- directionFirstLevelValue:"",
- directionSecondLevelValue:"",
- freeworkLevel:0,
- };
- },
- computed: {
- ...mapState(["deviceType"]),
- currentFieldId() {
- const field = this.fields.find((ele) => ele.selected);
- if (!field) {
- return null
- }
- return field.occupation_id;
- }
- },
- created() {
- let signLinkUrl;
- if (this.deviceType.ios || this.deviceType.android) {
- signLinkUrl = 'proginn://developer_sign';
- } else {
- signLinkUrl = '/sign/new';
- }
- this.conditions = [
- {
- text: '* 签约程序员客栈',
- linkName: "去签约",
- linkUrl: signLinkUrl,
- }, {
- text: '* 有助于面试官快速了解你',
- linkName: "完善简历",
- linkUrl: `/wo/${this.userinfo.uid}`,
- }, {
- text: '* 客栈头像为本人露脸照片',
- linkName: "",
- linkUrl: "",
- }
- ]
- },
- methods: {
- toLevelsDesc() {
- this.cnzz("技术认证","等级对照表2","")
- window.open(`https://proginn.feishu.cn/docs/doccnFJSsH0KZ9cTfQNpSRrZ4Of`)
- },
- handleLevelChange(value) {
- this.imgShow = value === '1105' || value === '1106';
- const res = this.levels.find((ele) => {
- return ele.item_id === value
- });
- this.price = res.price
- },
- handleSuccess(res, file) {
- this.fileList.push(file);
- },
- handleError(err) {
- console.log(err)
- },
- beforeAvatarUpload(file) {
- const isJPEG = file.type === 'image/jpeg';
- const isJPG = file.type === 'image/jpg';
- const isPNG = file.type === 'image/png';
- const isLt2M = file.size / 1024 / 1024 < 2;
- if (!(isJPG || isPNG || isJPEG)) {
- this.$message.error('上传图片只能是 PNG/JPG/JPEG 格式!');
- }
- if (!isLt2M) {
- this.$message.error('上传图片大小不能超过 2MB!');
- }
- return (isJPG || isJPEG || isPNG) && isLt2M;
- },
- handleRemove(file, fileList) {
- const index = this.fileList.indexOf(file);
- this.fileList.splice(index, 1);
- },
- handlePreview(file) {
- this.dialogImageUrl = file.url;
- this.dialogVisible = true;
- },
- directionChange(value) {
- let firstItem = value[0]
- let secondItem = value[1]
- this.directionFirstLevelValue = firstItem.value;
- this.directionSecondLevelValue = secondItem.value;
- this.freeworkLevel = secondItem.freework_level
- },
- submit() {
- const form = {
- product_type: 12,
- item_id: this.level,
- occupation_id: this.directionFirstLevelValue,//一级方向
- direction_id: this.directionSecondLevelValue,//二级方向
- file: this.fileList.map((ele) => ele.response.filename).join(','),
- id: this.form.id || ''
- };
- this.$axios.$post(`/uapi/cert/add`, form).then((value) => {
- if (value.status === 1) {
- // 1未支付,2已支付
- if (parseInt(this.form.pay_status) === 1) {
- const productId = form.item_id;
- const next = '/frontend/skill_cert/profile';
- if (this.deviceType.ios || this.deviceType.android) {
- location.href = `proginn://pay?product_type=12&product_id=${productId}&next=${next}`
- } else {
- location.href = `/pay?product_type=12&product_id=${productId}&next=${next}`;
- }
- } else if (parseInt(this.form.pay_status) === 2) {
- this.$parent.set_step(2);
- }
- }
- });
- this.cnzz("技术认证","第一步(确认提交)","");
- },
- async getLevels() {
- let res = await this.$axios.$post(`/uapi/pub/freeworklevel`, {occupation_id: 0});
- this.levels = res.data.list.map((ele) => {
- ele.name += ` ¥${ele.price}`;
- ele.name += ele.memo ? ` 【${ele.memo}】` : '';
- return ele
- });
- if (!this.level && this.levels.length) {
- this.level = `${this.levels[0].item_id}`
- }
- this.price = this.levels.find((ele) => {
- return ele.item_id === this.level;
- }).price;
- },
- async getDetail() {
- let res = await this.$axios.$post(`/uapi/cert/info`);
- this.form = res.data;
- }
- },
- async mounted() {
- await this.getDetail();
- await this.getLevels();
- this.cnzz("技术认证","第一步","");
- }
- }
- </script>
- <style lang="scss" scoped>
- .container {
- display: flex;
- width: 100%;
- max-width: 1200px;
- margin: 10px auto;
- background: #ffffff;
- border-radius: 10px;
- padding: 0 25px;
- @media(max-width: 900px) {
- padding: 0 15px;
- }
- box-sizing: border-box;
- }
- .width-infinity {
- width: 100%;
- }
- .description {
- width: 100%;
- background: #f4f5f9;
- border-radius: 8px;
- padding-bottom: 32px;
- }
- .rule {
- margin-top: 20px;
- margin-bottom: 10px;
- .rule-content {
- display: flex;
- flex-direction: column;
- margin: 16px 14px 0 14px;
- .text {
- display: flex;
- flex-direction: column;
- &:not(:first-child) {
- margin-top: 17px;
- }
- .text-title {
- font-size: 15px;
- font-family: PingFangSC, PingFangSC-Semibold, sans-serif;
- font-weight: 600;
- color: #222222;
- line-height: 24px;
- }
- .text-content {
- margin-top: 5px;
- font-size: 15px;
- font-family: PingFangSC, PingFangSC-Regular, sans-serif;
- font-weight: 400;
- color: #222222;
- line-height: 24px;
- &--a {
- color: var(--linkColor)
- }
- }
- }
- }
- }
- .condition {
- .item {
- display: flex;
- flex-wrap: wrap;
- margin-top: 17px;
- .text {
- margin-left: 14px;
- font-size: 15px;
- font-family: PingFangSC, PingFangSC-Regular, sans-serif;
- font-weight: 400;
- text-align: left;
- color: #222222;
- line-height: 24px;
- }
- .action {
- margin-left: 28px;
- margin-right: 14px;
- font-size: 15px;
- font-family: PingFangSC, PingFangSC-Semibold, sans-serif;
- font-weight: 600;
- text-align: left;
- color: #308eff;
- line-height: 24px;
- }
- }
- }
- .col-title {
- display: inline-flex;
- align-items: center;
- height: 43px;
- &::before {
- content: '';
- width: 2px;
- height: 14px;
- background: #308eff;
- border-radius: 2px;
- }
- .label {
- font-size: 16px;
- font-family: PingFangSC, PingFangSC-Semibold, sans-serif;
- font-weight: 600;
- color: #222222;
- padding: 0 10px;
- }
- }
- .field-tips {
- width: 100%;
- margin-top: 5px;
- font-size: 15px;
- font-family: PingFangSC, PingFangSC-Regular, sans-serif;
- font-weight: 400;
- color: #222222;
- line-height: 24px;
- }
- .field-selector {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- width: 100%;
- margin-top: 33px;
- }
- .tag-selector {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- width: 100%;
- margin-top: 23px;
- margin-bottom: 12px;
- .tag-input {
- width: 200px;
- margin-bottom: 10px;
- }
- }
- .selector-title {
- font-size: 14px;
- font-family: PingFangSC, PingFangSC-Semibold, sans-serif;
- font-weight: 600;
- text-align: left;
- color: #222222;
- line-height: 20px;
- margin-right: 16px;
- margin-bottom: 10px;
- }
- .tag {
- display: flex;
- justify-content: center;
- align-items: center;
- height: 38px;
- background: #308eff;
- border-radius: 4px;
- padding: 0 10px;
- margin-right: 7px;
- margin-bottom: 10px;
- cursor: pointer;
- &--disabled {
- cursor: not-allowed;
- }
- &--unchecked {
- opacity: 0.8;
- background: #f4f5f9;
- border-radius: 4px;
- }
- .text {
- font-size: 14px;
- font-family: PingFangSC, PingFangSC-Regular, sans-serif;
- font-weight: 400;
- color: #ffffff;
- &--unchecked {
- opacity: 0.8;
- font-size: 14px;
- font-weight: 400;
- color: #666666;
- line-height: 20px;
- }
- }
- .icon {
- width: 16px;
- height: 16px;
- margin-left: 6px;
- }
- }
- .tags {
- display: flex;
- align-content: flex-start;
- flex-wrap: wrap;
- width: 100%;
- background: #ffffff;
- border: 1px solid #d7dfe8;
- border-radius: 8px;
- padding: 20px;
- margin-bottom: 10px;
- }
- .level-selector {
- display: flex;
- align-items: center;
- width: 100%;
- margin-top: 12px;
- .action {
- margin-left: 15px;
- font-size: 14px;
- font-family: PingFangSC, PingFangSC-Medium, sans-serif;
- font-weight: 500;
- color: #308eff;
- line-height: 20px;
- cursor: pointer;
- }
- .icon {
- width: 16px;
- height: 16px;
- cursor: pointer;
- }
- }
- .upload-title {
- margin-top: 21px;
- }
- .upload-action {
- margin-top: 20px;
- }
- .price {
- display: flex;
- align-items: baseline;
- width: 100%;
- margin-top: 42px;
- margin-bottom: 20px;
- .text {
- font-size: 30px;
- font-family: DIN Alternate, sans-serif;
- font-weight: 600;
- color: #ff6600;
- }
- .unit {
- font-size: 16px;
- font-family: PingFangSC, PingFangSC-Regular, sans-serif;
- font-weight: 600;
- color: #ff6600;
- }
- }
- .buttons {
- width: 100%;
- .submit {
- margin-bottom: 87px;
- width: 267px;
- height: 58px;
- background: #308eff;
- border-radius: 8px;
- font-size: 18px;
- font-family: PingFangSC, PingFangSC-Medium, sans-serif;
- font-weight: 500;
- color: #ffffff;
- line-height: 26px;
- }
- }
- .skill_cert{
- header{
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 13px 20px;
- border-bottom: 1px solid #ebeef5;
- }
- .skill-cert-status-main{
- display: flex;
- align-items: center;
- justify-content:center;
- }
- }
- .skill-cert-status-main{
- .selector-title{
- margin-bottom: 0;
- }
- }
- .skill-cert-select{
- flex:1;
- margin-right: 20px;
- }
- </style>
|