You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

344 lines
7.0 KiB

<template>
<view class="main">
<view class="topCard flex jcsb">
<view class="leftBox flex">
<view class="txt">
<view class="txtItem">精准人才卡</view>
<view style="color: #999999;font-size: 28upx;">根据职位条件推送牛人</view>
<view style="color: #999999;font-size: 28upx;">向企业精准推送符合条件人员简历</view>
</view>
</view>
<view class="rightBox">
<image src="../../../../static/jingz.png"></image>
</view>
</view>
<view>
<view v-if="show" class="selectBox">
<view class="title">
选择职位
</view>
<view class="flex jcsb mb40" v-for="(item ,index) in perData.filter_data.recruit" :key="index">
<view class="selectItem" :class="item.recruit_id == selectType ? 'sType' : 'dType'"
@click="clickItem(item, 1)">
{{ item.recruit_title }}
</view>
<input class="inputSel" v-model="item.num" :disabled="item.recruit_id != selectType" :style="item.recruit_id == selectType ? 'border: 1px solid #85BAFC' : 'border: 1px solid #ffffff'" type="number" placeholder-style="color: #CACACA" placeholder="请输入使用份数" />
</view>
<image style="width: 50%;height: 45upx;margin: 0 auto;display: block;" src="../../../../static/shaix.png"></image>
<view class="gaijBox mb40">
<view class="title">
毕业院校
</view>
<view style="flex-wrap: wrap;" class="flex">
<view class="gaojItem" :class="item == selectType2 ? 'sType' : 'dType'" v-for="(item, index) in perData.filter_data.school" :key="index" @click="clickItem(item, 3)">
{{ item }}
</view>
</view>
</view>
<view class="gaijBox mb40">
<view class="title">
优先选项
</view>
<view style="flex-wrap: wrap;" class="flex">
<view class="gaojItem" :class="item == selectType3 ? 'sType' : 'dType'" :key="index" @click="clickItem(item, 4)" v-for="(item, index) in perData.filter_data.experience">
{{ item }}
</view>
</view>
</view>
<view style="font-size: 32upx;" class="selectBtn">确认使用</view>
</view>
<view v-else style="text-align: center;font-size: 30upx;margin: 60upx; 0;color: #999;">暂无职位</view>
</view>
<view class="buyBox">
<view class="flex jcsb mb40">
<view class="title">购买份数</view>
<view style="color: #BBBBBB;font-size: 30upx;">剩余: 0天</view>
</view>
<view style="margin-bottom: 40upx;align-items: center;" class="flex">
<view style="margin-right: 20upx;font-size: 28upx;">自定义份数:</view>
<input style="text-align: left;padding-left: 18upx;width: 72%;" class="inputNum" type="number" placeholder-style="color: #CACACA" placeholder="请输入使用份数" />
</view>
<view class="selectDay flex jcsb">
<view class="dayItem" :class="item == selectType1 ? 'sType' : 'dType'" v-for="(item, index) in perData.num_data" :key="index" @click="clickItem(item, 2)">
{{ item }}
</view>
</view>
</view>
<view class="submitBtn">
立即支付 ¥100.00/10份
</view>
<view style="height: 50upx;"></view>
</view>
</template>
<script>
import App from '@/common/js/app.js';
export default {
data() {
return {
list2: [
{
id: 1,
txt: '10份'
},
{
id: 2,
txt: '30份'
},
{
id: 3,
txt: '50份'
},
{
id: 4,
txt: '100份'
}
],
selectType: 1,
selectType1: 1,
selectType2: 0,
selectType3: 0,
dayNum: '',
perData: '',
show: true
};
},
mounted() {
let data = {
rights_id: 5
};
App._post_form('&p=rights&do=getRightsTypeInfo', data, res => {
res.data.filter_data.recruit.map(item =>{
item.num = ''
})
this.perData = res.data
// this.perData.filter_data.recruit = []
this.show = this.perData.filter_data.recruit.length>0 ? true : false
console.log(this.perData)
})
},
methods: {
clickItem(val, type){
if(type == 1){
this.perData.filter_data.recruit.map(item => {
item.num = ''
})
this.selectType = val.recruit_id
}
if(type == 2){
this.selectType1 = val
}
if(type == 3){
this.selectType2 = val
}
if(type == 4){
this.selectType3 = val
}
}
}
}
</script>
<style lang="less">
.main{
padding-top: 40upx;
}
page{
background-color: white;
}
.flex{
display: flex;
}
.jcsb{
justify-content: space-between;
}
.mb40{
margin-bottom: 40upx;
}
.topCard{
width: 94%;
height: 300upx;
// border: 1px solid red;
margin: 0 auto;
border-radius: 20upx;
box-shadow:#C9E4FF 0px 0px 5px;
background-color: white;
.leftBox{
width: 66%;
height: 300upx;
// border: 1px solid red;
align-items: center;
.txt{
width: 100%;
// padding: 0% ;
padding-left: 30upx;
line-height: 55upx;
}
.txtItem{
font-weight: bold;
font-size: 40upx;
font-family: 'PingFangSC-semiBold';
color: #444444;
margin-bottom: 10upx;
}
}
.rightBox{
width: 34%;
height: 300upx;
// border: 1px solid blue;
display: flex;
align-items: center;
position: relative;
image{
width: 220upx;
height: 210upx;
position: absolute;
left: -6upx;
}
}
}
.selectBox{
width: 94%;
margin: 0 auto;
margin-top: 9%;
// border: 1px solid red;
.title{
color: #484848;
font-size: 32upx;
margin-bottom: 40upx;
}
.selectItem{
width: 60%;
height: 80upx;
border-radius: 10upx;
text-align: center;
line-height: 80upx;
font-size: 26upx;
}
.selectBtn{
width: 60%;
height: 80upx;
line-height: 80upx;
border-radius: 10upx;
color: white;
text-align: center;
background-color: #509DFD;
margin: 0 auto;
}
}
.inputNum{
background-color: #FAFAFA;
font-size: 26upx;
height: 80upx;
text-align: center;
border-radius: 10upx;
width: 80%;
}
.inputSel{
background-color: #FAFAFA;
font-size: 26upx;
height: 80upx;
text-align: center;
border-radius: 10upx;
width: 37%;
}
.sType{
background-color: #F2F8FF;
color: #6DADFD;
}
.dType{
background-color: #FAFAFA;
color: #CACACA;
}
.buyBox{
width: 94%;
margin: 0 auto;
margin-top: 9%;
// border: 1px solid red;
.title{
color: #484848;
font-size: 32upx;
}
.selectDay{
.dayItem{
width: 22%;
height: 70upx;
border-radius: 10upx;
text-align: center;
line-height: 70upx;
font-size: 30upx;
}
}
}
.submitBtn{
width: 94%;
height: 90upx;
border: 1px solid #65A9FD;
margin: 0 auto;
margin-top: 40upx;
border-radius: 50upx;
margin-bottom: 50upx;
text-align: center;
line-height: 90upx;
color: #64A8FD;
font-size: 30upx;
}
.gaijBox{
.title{
color: #484848;
font-size: 30upx;
margin-bottom: 40upx;
}
.gaojItem{
width: 30%;
height: 80upx;
background-color: #FAFAFA;
text-align: center;
line-height: 80upx;
color: #999999;
border-radius: 10upx;
margin-right: 20upx;
font-size: 26upx;
margin-bottom: 15upx;
}
.sType{
background-color: #F2F8FF;
color: #6DADFD;
}
.dType{
background-color: #FAFAFA;
color: #999999;
}
}
</style>