flat: 添加企业2
This commit is contained in:
6
App.vue
6
App.vue
@@ -69,4 +69,10 @@
|
|||||||
/* .uni-tabbar__label{
|
/* .uni-tabbar__label{
|
||||||
font-size: 14px !important;
|
font-size: 14px !important;
|
||||||
} */
|
} */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'uicon-iconfont';
|
||||||
|
font-weight: mormal;
|
||||||
|
font-style: mormal;
|
||||||
|
src: url('/static/font/font_2225171_8kdcwk4po24.ttf') format('truetype');
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
52
api/upload.js
Normal file
52
api/upload.js
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
import {
|
||||||
|
request
|
||||||
|
} from '@/untils/AxiosUtils.js';
|
||||||
|
import {
|
||||||
|
baseUrl
|
||||||
|
} from '@/config/env.js'
|
||||||
|
import {
|
||||||
|
getStore
|
||||||
|
} from '@/untils/store.js'
|
||||||
|
import {
|
||||||
|
Base64
|
||||||
|
} from 'js-base64'
|
||||||
|
import website from "@/config/website.js"
|
||||||
|
|
||||||
|
export async function uploadFile(file) {
|
||||||
|
uni.showLoading({
|
||||||
|
title: '上传中'
|
||||||
|
})
|
||||||
|
var token = getStore({
|
||||||
|
name: 'token'
|
||||||
|
})
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
const header = {
|
||||||
|
'Authorization': `Basic ${Base64.encode(`${website.clientId}:${website.clientSecret}`)}`,
|
||||||
|
}
|
||||||
|
header[website.tokenName] = "bearer " + token
|
||||||
|
uni.uploadFile({
|
||||||
|
url: `${baseUrl}/api/jobslink-api/resource/file/save?bussinessType=5`,
|
||||||
|
header,
|
||||||
|
filePath: file.url,
|
||||||
|
// formData: formdata,
|
||||||
|
name: 'file',
|
||||||
|
success: ({
|
||||||
|
statusCode,
|
||||||
|
data
|
||||||
|
}) => {
|
||||||
|
const resp = JSON.parse(data)
|
||||||
|
if (statusCode === 200 && resp.code === 200) {
|
||||||
|
resolve(resp.msg)
|
||||||
|
} else {
|
||||||
|
reject(new Error('数据异常'))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: (uploadFileRes) => {
|
||||||
|
reject(uploadFileRes)
|
||||||
|
},
|
||||||
|
complete: () => {
|
||||||
|
uni.hideLoading()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -4,6 +4,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
getStore
|
getStore
|
||||||
} from '@/untils/store.js'
|
} from '@/untils/store.js'
|
||||||
|
|
||||||
function getHeader() {
|
function getHeader() {
|
||||||
const platformId = getStore({
|
const platformId = getStore({
|
||||||
name: 'platformId'
|
name: 'platformId'
|
||||||
@@ -91,3 +92,15 @@ export const findTradeList = () => {
|
|||||||
// params
|
// params
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const addInviteCompanyAuth = ({
|
||||||
|
params,
|
||||||
|
data
|
||||||
|
}) => {
|
||||||
|
return request({
|
||||||
|
url: '/api/jobslink-api/tenant/company/app/inviteCompany/auth',
|
||||||
|
method: 'post',
|
||||||
|
data,
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
143
common/dic.js
143
common/dic.js
@@ -269,41 +269,137 @@ const expeArr = [
|
|||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
const companyEnum = [
|
const companyEnum = [{
|
||||||
{ value: 1, label: "机关/事业单位" },
|
value: 1,
|
||||||
{ value: 2, label: "国有企业" },
|
label: "机关/事业单位"
|
||||||
{ value: 3, label: "私营企业" },
|
},
|
||||||
{ value: 4, label: "外商及港澳台投资企业" },
|
{
|
||||||
{ value: 5, label: "股份制企业" },
|
value: 2,
|
||||||
{ value: 6, label: "学校/下级学院" },
|
label: "国有企业"
|
||||||
{ value: 7, label: "医院" },
|
},
|
||||||
{ value: 8, label: "律师事务所" },
|
{
|
||||||
{ value: 9, label: "银行" },
|
value: 3,
|
||||||
{ value: 10, label: "非盈利社会组织" },
|
label: "私营企业"
|
||||||
{ value: 11, label: "其它" },
|
},
|
||||||
|
{
|
||||||
|
value: 4,
|
||||||
|
label: "外商及港澳台投资企业"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 5,
|
||||||
|
label: "股份制企业"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 6,
|
||||||
|
label: "学校/下级学院"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 7,
|
||||||
|
label: "医院"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 8,
|
||||||
|
label: "律师事务所"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 9,
|
||||||
|
label: "银行"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 10,
|
||||||
|
label: "非盈利社会组织"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 11,
|
||||||
|
label: "其它"
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const wageUnitCategoryState = [[
|
const wageUnitCategoryState = [
|
||||||
{ id: 1, label: "元/人·时", disable: false },
|
[{
|
||||||
{ id: 2, label: "元/人·天", disable: false },
|
id: 1,
|
||||||
{ id: 3, label: "元/人·月", disable: false },
|
label: "元/人·时",
|
||||||
{ id: 4, label: "其他", disable: false },
|
disable: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
label: "元/人·天",
|
||||||
|
disable: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
label: "元/人·月",
|
||||||
|
disable: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 4,
|
||||||
|
label: "其他",
|
||||||
|
disable: false
|
||||||
|
},
|
||||||
// { value: 0, label: "元/人·次", disable: true },
|
// { value: 0, label: "元/人·次", disable: true },
|
||||||
// { value: 4, label: "元/人·周", disable: true },
|
// { value: 4, label: "元/人·周", disable: true },
|
||||||
// { value: 5, label: "元/人·个", disable: true },
|
// { value: 5, label: "元/人·个", disable: true },
|
||||||
// { value: 6, label: "元/人·件", disable: true },
|
// { value: 6, label: "元/人·件", disable: true },
|
||||||
]];
|
]
|
||||||
|
];
|
||||||
|
|
||||||
const workwageUnitCategoryState = [[
|
const workwageUnitCategoryState = [
|
||||||
|
[
|
||||||
// { id: 1, label: "元/人·时", disable: false },
|
// { id: 1, label: "元/人·时", disable: false },
|
||||||
// { id: 2, label: "元/人·天", disable: false },
|
// { id: 2, label: "元/人·天", disable: false },
|
||||||
{ id: 3, label: "元/人·月", disable: true },
|
{
|
||||||
{ id: 4, label: "其他", disable: true },
|
id: 3,
|
||||||
|
label: "元/人·月",
|
||||||
|
disable: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 4,
|
||||||
|
label: "其他",
|
||||||
|
disable: true
|
||||||
|
},
|
||||||
// { value: 0, label: "元/人·次", disable: true },
|
// { value: 0, label: "元/人·次", disable: true },
|
||||||
// { value: 4, label: "元/人·周", disable: true },
|
// { value: 4, label: "元/人·周", disable: true },
|
||||||
// { value: 5, label: "元/人·个", disable: true },
|
// { value: 5, label: "元/人·个", disable: true },
|
||||||
// { value: 6, label: "元/人·件", disable: true },
|
// { value: 6, label: "元/人·件", disable: true },
|
||||||
]];
|
]
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
const addressColumn = [
|
||||||
|
[{
|
||||||
|
value: '95',
|
||||||
|
label: "绵竹市"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '185',
|
||||||
|
label: "绵竹市"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '143',
|
||||||
|
label: "旌阳区"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '150',
|
||||||
|
label: "罗江区"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '42',
|
||||||
|
label: "什邡市"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '156',
|
||||||
|
label: "中江县"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '44139628',
|
||||||
|
label: "经济技术开发区"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: '79194151',
|
||||||
|
label: "德阳市开发区"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
]
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
salary,
|
salary,
|
||||||
@@ -315,5 +411,6 @@ export default {
|
|||||||
expeArr,
|
expeArr,
|
||||||
companyEnum,
|
companyEnum,
|
||||||
wageUnitCategoryState,
|
wageUnitCategoryState,
|
||||||
workwageUnitCategoryState
|
workwageUnitCategoryState,
|
||||||
|
addressColumn
|
||||||
}
|
}
|
||||||
@@ -7,7 +7,8 @@
|
|||||||
<!-- <image src="../../static/img/search.svg" style="width: 32rpx;height: 32rpx; color: blue;" mode=""></image> -->
|
<!-- <image src="../../static/img/search.svg" style="width: 32rpx;height: 32rpx; color: blue;" mode=""></image> -->
|
||||||
<view class="headd_left">
|
<view class="headd_left">
|
||||||
<u-icon name="search" color="#2297fa" size="24"></u-icon>
|
<u-icon name="search" color="#2297fa" size="24"></u-icon>
|
||||||
<input placeholder-class="search_style" type="text" confirm-type="搜索" v-model="keywords" placeholder="搜任务/搜岗位/搜个体户招工/搜政策" />
|
<input placeholder-class="search_style" type="text" confirm-type="搜索" v-model="keywords"
|
||||||
|
placeholder="搜任务/搜岗位/搜个体户招工/搜政策" />
|
||||||
</view>
|
</view>
|
||||||
<view class="headd_right">
|
<view class="headd_right">
|
||||||
搜索
|
搜索
|
||||||
@@ -16,8 +17,8 @@
|
|||||||
</uni-nav-bar>
|
</uni-nav-bar>
|
||||||
<!-- <view class="homeHead"> -->
|
<!-- <view class="homeHead"> -->
|
||||||
<view class="headSwiper">
|
<view class="headSwiper">
|
||||||
<swiper :indicator-dots="true" indicator-active-color="#fff" indicator-color="rgba(255,255,255,0.80)" :autoplay="true"
|
<swiper :indicator-dots="true" indicator-active-color="#fff" indicator-color="rgba(255,255,255,0.80)"
|
||||||
:interval="3000" :duration="1000" class="yswiper" :circular="true">
|
:autoplay="true" :interval="3000" :duration="1000" class="yswiper" :circular="true">
|
||||||
<swiper-item v-for="(item,index) in swiperList" :key="index" v-if="item.isShow !== '2'">
|
<swiper-item v-for="(item,index) in swiperList" :key="index" v-if="item.isShow !== '2'">
|
||||||
<view class="swiper-item">
|
<view class="swiper-item">
|
||||||
<image :src="item.image" mode="" class="swiperImg"></image>
|
<image :src="item.image" mode="" class="swiperImg"></image>
|
||||||
@@ -30,13 +31,18 @@
|
|||||||
<view class="policyImgIndex">
|
<view class="policyImgIndex">
|
||||||
<image src="../../static/img/index/newPolicy.png"></image>
|
<image src="../../static/img/index/newPolicy.png"></image>
|
||||||
</view>
|
</view>
|
||||||
<swiper style="width: 100%;height: 100rpx; line-height: 100rpx;margin-left: 164rpx;" :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" :vertical="true" :circular="true">
|
<swiper style="width: 100%;height: 100rpx; line-height: 100rpx;margin-left: 164rpx;"
|
||||||
<swiper-item v-for="(item,index) in policyContentList" :key="index" @click="goPolicyInfo(item.id)">
|
:indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" :vertical="true"
|
||||||
|
:circular="true">
|
||||||
|
<swiper-item v-for="(item,index) in policyContentList" :key="index"
|
||||||
|
@click="goPolicyInfo(item.id)">
|
||||||
<view class="swiper-item">
|
<view class="swiper-item">
|
||||||
<view class="policyText">
|
<view class="policyText">
|
||||||
<view class="textTitle">{{item.articleTitle}}</view>
|
<view class="textTitle">{{item.articleTitle}}</view>
|
||||||
<view class="textDate">{{dateFormat(item.createTime)}}</view>
|
<view class="textDate">{{dateFormat(item.createTime)}}</view>
|
||||||
<image src="../../static/img/right.svg" mode="" style="width: 18rpx;height: 32rpx;position:absolute;top: 12rpx;right:0;"></image>
|
<image src="../../static/img/right.svg" mode=""
|
||||||
|
style="width: 18rpx;height: 32rpx;position:absolute;top: 12rpx;right:0;">
|
||||||
|
</image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
@@ -197,7 +203,8 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="latestMission">
|
<view class="latestMission">
|
||||||
<view class="cardTips" style="margin: 0 26rpx;display: flex;align-items: center;justify-content: space-between;padding-bottom: 10rpx;">
|
<view class="cardTips"
|
||||||
|
style="margin: 0 26rpx;display: flex;align-items: center;justify-content: space-between;padding-bottom: 10rpx;">
|
||||||
<view>政策资讯</view>
|
<view>政策资讯</view>
|
||||||
<view style="display: flex;align-items: center;" @click="toNewProject">
|
<view style="display: flex;align-items: center;" @click="toNewProject">
|
||||||
<view style="color:#707070;font-size:26rpx;margin-right: 10rpx;">更多</view>
|
<view style="color:#707070;font-size:26rpx;margin-right: 10rpx;">更多</view>
|
||||||
@@ -211,8 +218,11 @@
|
|||||||
<company-list :companyitem="item"></company-list>
|
<company-list :companyitem="item"></company-list>
|
||||||
</block> -->
|
</block> -->
|
||||||
<view style="background-color: #fff;padding: 20rpx 30rpx;">
|
<view style="background-color: #fff;padding: 20rpx 30rpx;">
|
||||||
<view v-for="(item,index) in policyContentList" :key="index" style="display: flex;align-items: center;padding: 20rpx 0;" @click="toArticleDetail(item.id)">
|
<view v-for="(item,index) in policyContentList" :key="index"
|
||||||
<image :src="item.headPic" style="width: 80rpx;height: 80rpx;margin-right: 20rpx;border-radius: 10rpx;" mode=""></image>
|
style="display: flex;align-items: center;padding: 20rpx 0;" @click="toArticleDetail(item.id)">
|
||||||
|
<image :src="item.headPic"
|
||||||
|
style="width: 80rpx;height: 80rpx;margin-right: 20rpx;border-radius: 10rpx;" mode="">
|
||||||
|
</image>
|
||||||
<view style="font-size: 28rpx;">{{ item.articleTitle }}</view>
|
<view style="font-size: 28rpx;">{{ item.articleTitle }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -251,7 +261,10 @@
|
|||||||
setStore,
|
setStore,
|
||||||
getStore
|
getStore
|
||||||
} from '@/untils/store.js'
|
} from '@/untils/store.js'
|
||||||
import {getSwiperList,getPolicyContent} from '@/api/newIndex.js'
|
import {
|
||||||
|
getSwiperList,
|
||||||
|
getPolicyContent
|
||||||
|
} from '@/api/newIndex.js'
|
||||||
import {
|
import {
|
||||||
dateFormat
|
dateFormat
|
||||||
} from "../../untils/format.js";
|
} from "../../untils/format.js";
|
||||||
@@ -516,8 +529,7 @@
|
|||||||
url: `/pages/user/policyContent?id=${data}`
|
url: `/pages/user/policyContent?id=${data}`
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
// uni.showToast({
|
// uni.showToast({
|
||||||
// title:'暂无内容',
|
// title:'暂无内容',
|
||||||
// icon:'none'
|
// icon:'none'
|
||||||
@@ -537,6 +549,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.market_top {
|
.market_top {
|
||||||
background: url(@/static/img/index/bannerBg.png) no-repeat center center;
|
background: url(@/static/img/index/bannerBg.png) no-repeat center center;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
@@ -545,6 +558,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 24rpx;
|
padding: 24rpx;
|
||||||
|
|
||||||
.top_log {
|
.top_log {
|
||||||
background: url(@/static/img/index/inLogo.png) no-repeat center center;
|
background: url(@/static/img/index/inLogo.png) no-repeat center center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
@@ -552,6 +566,7 @@
|
|||||||
width: 450rpx;
|
width: 450rpx;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.next_market {
|
.next_market {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
@@ -564,18 +579,21 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.market_bottom {
|
.market_bottom {
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
|
|
||||||
view {
|
view {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.home_logo {
|
.home_logo {
|
||||||
background: url(@/static/img/index/inLogo.png) no-repeat center center;
|
background: url(@/static/img/index/inLogo.png) no-repeat center center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
@@ -583,15 +601,18 @@
|
|||||||
width: 560rpx;
|
width: 560rpx;
|
||||||
margin: 24rpx 24rpx 24rpx 24rpx;
|
margin: 24rpx 24rpx 24rpx 24rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.body_header {
|
.body_header {
|
||||||
background: url(@/static/img/index/bannerBg.png) no-repeat center center;
|
background: url(@/static/img/index/bannerBg.png) no-repeat center center;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
padding-top: 24rpx;
|
padding-top: 24rpx;
|
||||||
padding-bottom: 18rpx;
|
padding-bottom: 18rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search_style {
|
.search_style {
|
||||||
color: #2297fa;
|
color: #2297fa;
|
||||||
}
|
}
|
||||||
|
|
||||||
.home-body {
|
.home-body {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
/* background-color: #FFFFFF; */
|
/* background-color: #FFFFFF; */
|
||||||
@@ -621,12 +642,14 @@
|
|||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
|
|
||||||
.headd_left {
|
.headd_left {
|
||||||
padding-left: 15rpx;
|
padding-left: 15rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.headd_right {
|
.headd_right {
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
color: #2297fa;
|
color: #2297fa;
|
||||||
@@ -637,6 +660,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.headd_right::before {
|
.headd_right::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
content: '';
|
content: '';
|
||||||
@@ -711,6 +735,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 48rpx;
|
top: 48rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.policyImgIndex image {
|
.policyImgIndex image {
|
||||||
width: 140rpx;
|
width: 140rpx;
|
||||||
height: 48rpx;
|
height: 48rpx;
|
||||||
@@ -805,10 +830,12 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hotFunction .hot_img {
|
.hotFunction .hot_img {
|
||||||
width: 144rpx;
|
width: 144rpx;
|
||||||
height: 34rpx;
|
height: 34rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hotFunction .text {
|
.hotFunction .text {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -939,6 +966,7 @@
|
|||||||
height: 64rpx;
|
height: 64rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.serviceItemContent .itemIcon {
|
.serviceItemContent .itemIcon {
|
||||||
background-color: rgba(0, 0, 0, 0.06);
|
background-color: rgba(0, 0, 0, 0.06);
|
||||||
width: 90rpx;
|
width: 90rpx;
|
||||||
|
|||||||
@@ -1,21 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="select">用工单位发布招工</view>
|
<view class="select">企业申请认证后</view>
|
||||||
<view class="select-text">提交申请资料,通过认证后可快速发布招工信息</view>
|
<view class="select-text">即可发布零工任务或者发布正规岗位</view>
|
||||||
<!-- <view class="block" @click="next(0)">
|
<!-- <view class="block" @click="next(0)">
|
||||||
<img src="../../static/img/zhao_icon1.png" alt="" />
|
<img src="../../static/img/zhao_icon1.png" alt="" />
|
||||||
<view class="block-text">个体户招工</view>
|
<view class="block-text">个体户招工</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="block" @click="next(1)">
|
<view class="block" @click="next(1)">
|
||||||
<img src="../../static/img/zhao_icon2.png" alt="" />
|
<img src="../../static/img/zhao_icon2.png" alt="" />
|
||||||
<view class="block-text" style="background-color: #4171F9;">我要招工</view>
|
<view class="block-text" style="background-color: #4171F9;">企业招工</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {seeIsHaveCodep} from '@/api/userrecruit.js'
|
import {
|
||||||
import { mapState } from 'vuex'
|
seeIsHaveCodep
|
||||||
|
} from '@/api/userrecruit.js'
|
||||||
|
import {
|
||||||
|
mapState
|
||||||
|
} from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -24,7 +28,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState({idNumber: (state) => state.auth.authInfo.idNumber}),
|
...mapState({
|
||||||
|
idNumber: (state) => state.auth.authInfo.idNumber
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
next(type) {
|
next(type) {
|
||||||
@@ -44,16 +50,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
isHaveCode(idNumber) {
|
isHaveCode(idNumber) {
|
||||||
uni.showLoading({ title:'请求中' })
|
uni.showLoading({
|
||||||
|
title: '请求中'
|
||||||
|
})
|
||||||
return new Promise(async (resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
let resData = await seeIsHaveCodep({idNumber})
|
let resData = await seeIsHaveCodep({
|
||||||
|
idNumber
|
||||||
|
})
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
if (resData.data.code === 200) {
|
if (resData.data.code === 200) {
|
||||||
if (false && resData.data.data) {
|
if (false && resData.data.data) {
|
||||||
resolve()
|
resolve()
|
||||||
} else {
|
} else {
|
||||||
// this.$api.msg('您未申请开通该功能,请联系工作人员')
|
// this.$api.msg('您未申请开通该功能,请联系工作人员')
|
||||||
this.navTo('/pages/recruit/subPage/enterpriceCertification/enterpriceCertification')
|
this.navTo(
|
||||||
|
'/pages/recruit/subPage/enterpriceCertification/enterpriceCertification'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
reject()
|
reject()
|
||||||
@@ -67,15 +79,18 @@
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.container {
|
.container {
|
||||||
padding: 60rpx;
|
padding: 60rpx;
|
||||||
|
|
||||||
.select {
|
.select {
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select-text {
|
.select-text {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block {
|
.block {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 300rpx;
|
height: 300rpx;
|
||||||
@@ -85,6 +100,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.block-text {
|
.block-text {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
@@ -99,6 +115,7 @@
|
|||||||
top: 50%;
|
top: 50%;
|
||||||
margin-top: -30rpx;
|
margin-top: -30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 300rpx;
|
width: 300rpx;
|
||||||
margin-left: 50rpx;
|
margin-left: 50rpx;
|
||||||
|
|||||||
@@ -1,54 +1,100 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<u--form labelPosition="left" :model="model1" :rules="rules" ref="uForm">
|
<u--form labelPosition="left" :model="formData" :rules="rules" ref="uForm">
|
||||||
<u-form-item label="企业名称" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
<view class="card">
|
||||||
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
<view class="card_title">企业信息</view>
|
||||||
|
<u-form-item label="企业名称" labelWidth="100" prop="comname" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.comname" placeholder="请输入企业名称"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="统一信用代码" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
<u-form-item label="统一信用代码" labelWidth="100" prop="companyTid" borderBottom ref="item1">
|
||||||
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
<u--input v-model="formData.companyTid" placeholder="请输入统一信用代码"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="法人姓名" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
<u-form-item label="法人姓名" labelWidth="100" prop="masterName" borderBottom ref="item1">
|
||||||
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
<u--input v-model="formData.masterName" placeholder="请输入法人姓名"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="法人身份证号" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
<u-form-item label="法人身份证号" labelWidth="100" prop="masterIdentity" borderBottom ref="item1">
|
||||||
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
<u--input v-model="formData.masterIdentity" placeholder="请输入法人身份证号"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="所在地区" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
<u-form-item label="所在地区" labelWidth="100" prop="cityId" borderBottom ref="item1"
|
||||||
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
@click="showAddress = true; hideKeyboard()">
|
||||||
|
<PickerList placeholder="请选择所在地区" :columns="dic.addressColumn" :visibel="showAddress"
|
||||||
|
v-model="formData.cityId" @cancel="showAddress = false">
|
||||||
|
</PickerList>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="详细地址" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
<u-form-item label="详细地址" labelWidth="100" prop="companyAddress" borderBottom ref="item1">
|
||||||
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
<u--input v-model="formData.companyAddress" placeholder="请输入详细地址"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="联系人" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
<u-form-item label="企业性质" labelWidth="100" prop="nature" borderBottom ref="item1"
|
||||||
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
@click="showJobCompanyNature = true; hideKeyboard()">
|
||||||
|
<PickerList placeholder="请选择企业性质" :columns="[dic.companyEnum]" :visibel="showJobCompanyNature"
|
||||||
|
v-model="formData.nature" @cancel="showJobCompanyNature = false">
|
||||||
|
</PickerList>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="手机号码" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
<u-form-item label="行业" labelWidth="100" prop="tradeId" borderBottom ref="item1"
|
||||||
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
@click="showjobCompanyIndustry = true; hideKeyboard()">
|
||||||
|
<PickerList placeholder="请选择行业" :columns="dic.tradeArr" labelName="name" valueName="id"
|
||||||
|
:visibel="showjobCompanyIndustry" v-model="formData.tradeId"
|
||||||
|
@cancel="showjobCompanyIndustry = false">
|
||||||
|
</PickerList>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="企业性质" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
<u-form-item label="企业介绍" labelWidth="100" labelPosition="top" prop="companyDesc" borderBottom
|
||||||
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
|
||||||
</u-form-item>
|
|
||||||
<u-form-item label="行业" labelWidth="100" prop="userInfo.name" borderBottom ref="item1">
|
|
||||||
<u--input v-model="formData.name" placeholder="请输入企业名称"></u--input>
|
|
||||||
</u-form-item>
|
|
||||||
<u-form-item label="企业介绍" labelWidth="100" labelPosition="top" prop="userInfo.name" borderBottom
|
|
||||||
ref="item1">
|
ref="item1">
|
||||||
<u--textarea v-model="formData.name" placeholder="请输入内容"></u--textarea>
|
<u--textarea v-model="formData.companyDesc" placeholder="请输入内容"></u--textarea>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
</view>
|
||||||
|
<view class="card">
|
||||||
|
<view class="card_title">用户信息</view>
|
||||||
|
<u-form-item label="联系人" labelWidth="100" prop="manager" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.manager" placeholder="请输入联系人"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
<u-form-item label="手机号码" labelWidth="100" prop="telphone" borderBottom ref="item1">
|
||||||
|
<u--input v-model="formData.telphone" placeholder="请输入手机号码"></u--input>
|
||||||
|
</u-form-item>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="card">
|
||||||
|
<view class="card_title">相关资料</view>
|
||||||
|
<view class="card_content">
|
||||||
|
<UploadIdNumber v-model="formData.identityUrl4Id" backImg="/static/img/idcard.png">
|
||||||
|
</UploadIdNumber>
|
||||||
|
<UploadIdNumber v-model="formData.identityUrl5Id" backImg="/static/img/backidcard1.png">
|
||||||
|
</UploadIdNumber>
|
||||||
|
<UploadIdNumber v-model="formData.authUrlId" backImg="/static/img/idcard.png"></UploadIdNumber>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="card">
|
||||||
|
<u-button type="primary" text="提交" customStyle="margin-top: 50px" @click="submit"></u-button>
|
||||||
|
<u-button type="error" text="重置" customStyle="margin-top: 10px" @click="reset"></u-button>
|
||||||
|
</view>
|
||||||
</u--form>
|
</u--form>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import UploadIdNumber from './uploadIdNumber.vue';
|
||||||
|
import dic from '@/common/dic.js'
|
||||||
|
import PickerList from './pickerList.vue';
|
||||||
|
import {
|
||||||
|
addInviteCompanyAuth
|
||||||
|
} from '@/api/userrecruit.js'
|
||||||
const rules = []
|
const rules = []
|
||||||
import {
|
import {
|
||||||
mapState
|
mapState
|
||||||
} from 'vuex'
|
} from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
UploadIdNumber,
|
||||||
|
PickerList
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
showAddress: false,
|
||||||
|
showJobCompanyNature: false,
|
||||||
|
showjobCompanyIndustry: false,
|
||||||
|
dic,
|
||||||
formData: {},
|
formData: {},
|
||||||
rules
|
rules
|
||||||
};
|
};
|
||||||
@@ -60,16 +106,60 @@
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.formData.manager = this.authInfo.realName
|
||||||
|
this.formData.idNumber = this.authInfo.idNumber
|
||||||
|
console.log(this.authInfo)
|
||||||
|
console.log(this.userInfo)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
hideKeyboard() {
|
||||||
|
uni.hideKeyboard()
|
||||||
|
},
|
||||||
|
async submit() {
|
||||||
|
let data = {
|
||||||
|
...this.formData,
|
||||||
|
nature: Number(this.formData.nature),
|
||||||
|
cityId: Number(this.formData.cityId),
|
||||||
|
tradeId: Number(this.formData.tradeId),
|
||||||
}
|
}
|
||||||
|
let params = {
|
||||||
|
// auth: this.authInfo.authValue
|
||||||
|
}
|
||||||
|
let resData = await addInviteCompanyAuth({
|
||||||
|
params,
|
||||||
|
data
|
||||||
|
})
|
||||||
|
console.log(resData)
|
||||||
|
},
|
||||||
|
reset() {
|
||||||
|
const _this = this
|
||||||
|
uni.showModal({
|
||||||
|
content: '重置将清空表单,确定重置吗?',
|
||||||
|
success() {
|
||||||
|
_this.formData = {}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.content {
|
.content {
|
||||||
padding: 24rpx;
|
padding: 24rpx;
|
||||||
|
|
||||||
|
.card {
|
||||||
|
.card_title {
|
||||||
|
font-weight: bold;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card_content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
72
pages/recruit/subPage/enterpriceCertification/pickerList.vue
Normal file
72
pages/recruit/subPage/enterpriceCertification/pickerList.vue
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
<template>
|
||||||
|
<view style="width: 100%">
|
||||||
|
<u--input :value="valueEnum[value]" disabledColor="#ffffff" :placeholder="placeholder"></u--input>
|
||||||
|
<u-picker :show="visibel" :keyName="labelName" :columns="columns" @confirm="skillConfirm" @cancel="skillClose"
|
||||||
|
@close="skillClose"></u-picker>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
valueEnum: {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
props: {
|
||||||
|
valueName: {
|
||||||
|
type: String,
|
||||||
|
default: 'value'
|
||||||
|
},
|
||||||
|
labelName: {
|
||||||
|
type: String,
|
||||||
|
default: 'label'
|
||||||
|
},
|
||||||
|
placeholder: {
|
||||||
|
type: String,
|
||||||
|
require: ''
|
||||||
|
},
|
||||||
|
visibel: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
|
columns: {
|
||||||
|
type: Array,
|
||||||
|
require: true
|
||||||
|
},
|
||||||
|
value: {
|
||||||
|
type: String,
|
||||||
|
require: ''
|
||||||
|
},
|
||||||
|
cancel: {
|
||||||
|
type: Function
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
if (Array.isArray(this.columns)) {
|
||||||
|
this.columns.map((item) => {
|
||||||
|
item.map((child) => {
|
||||||
|
this.valueEnum[child[this.valueName]] = child[this.labelName]
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
skillConfirm({
|
||||||
|
index,
|
||||||
|
value,
|
||||||
|
values
|
||||||
|
}) {
|
||||||
|
this.$emit("input", String(value[0][this.valueName]));
|
||||||
|
this.$emit("cancel");
|
||||||
|
},
|
||||||
|
skillClose() {
|
||||||
|
this.$emit("cancel");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
<template>
|
||||||
|
<view class="content">
|
||||||
|
<u-upload :fileList="ImgUrl" @afterRead="afterRead" :deletable="true" @delete="deletePic" name="6" :maxCount="1"
|
||||||
|
width="280" height="150">
|
||||||
|
<image :src="backImg" mode="widthFix" style="width: 280px;height: 150px;"></image>
|
||||||
|
</u-upload>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
uploadFile
|
||||||
|
} from '@/api/upload.js'
|
||||||
|
export default {
|
||||||
|
name: 'UploadIdNumber',
|
||||||
|
props: {
|
||||||
|
backImg: {
|
||||||
|
type: String,
|
||||||
|
require: true,
|
||||||
|
},
|
||||||
|
value: {
|
||||||
|
type: String,
|
||||||
|
default: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
ImgUrl(val) {
|
||||||
|
return this.value ? [this.value] : []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
afterRead({
|
||||||
|
file,
|
||||||
|
index,
|
||||||
|
name
|
||||||
|
}) {
|
||||||
|
// this.$emit("input", file);
|
||||||
|
uploadFile(file).then((url) => {
|
||||||
|
this.$emit("input", url);
|
||||||
|
})
|
||||||
|
},
|
||||||
|
deletePic() {
|
||||||
|
this.$emit("input", null);
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.content {
|
||||||
|
margin: 20rpx 0 0 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
BIN
static/font/font_2225171_8kdcwk4po24.ttf
Normal file
BIN
static/font/font_2225171_8kdcwk4po24.ttf
Normal file
Binary file not shown.
BIN
static/img/backidcard1.png
Normal file
BIN
static/img/backidcard1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
BIN
static/img/idcard.png
Normal file
BIN
static/img/idcard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -67,7 +67,9 @@ const user = {
|
|||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
//用户点击radio按钮
|
//用户点击radio按钮
|
||||||
UserCheckedBtn({commit},val){
|
UserCheckedBtn({
|
||||||
|
commit
|
||||||
|
}, val) {
|
||||||
commit('SET_USER_CHECKED', val);
|
commit('SET_USER_CHECKED', val);
|
||||||
},
|
},
|
||||||
//根据用户名登录
|
//根据用户名登录
|
||||||
@@ -76,7 +78,8 @@ const user = {
|
|||||||
dispatch
|
dispatch
|
||||||
}, userInfo) {
|
}, userInfo) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
loginByUsername(userInfo.tenantId, userInfo.username, md5(userInfo.password), userInfo.type, userInfo.key,
|
loginByUsername(userInfo.tenantId, userInfo.username, md5(userInfo.password), userInfo.type,
|
||||||
|
userInfo.key,
|
||||||
userInfo.code, userInfo.token).then(res => {
|
userInfo.code, userInfo.token).then(res => {
|
||||||
|
|
||||||
const data = res.data;
|
const data = res.data;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ module.exports = {
|
|||||||
port: 1887,
|
port: 1887,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://10.165.0.173:8000',
|
target: 'http://192.168.1.106:8000',
|
||||||
ws: true,
|
ws: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/api': '/'
|
'^/api': '/'
|
||||||
|
|||||||
Reference in New Issue
Block a user