Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service
This commit is contained in:
@@ -50,7 +50,8 @@ const prePage = () => {
|
|||||||
return prePage.$vm;
|
return prePage.$vm;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const urls ='http://10.110.145.145/images/train/'
|
// export const urls ='http://10.110.145.145/images/train/'
|
||||||
|
export const urls ='http://222.80.110.161:11111/images/train/'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 页面跳转封装,支持 query 参数传递和返回回调
|
* 页面跳转封装,支持 query 参数传递和返回回调
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="job-info">
|
<view class="job-info">
|
||||||
<view class="job-name">{{ item.jobTitle }}</view>
|
<view class="job-name">{{ item.jobTitle }}</view>
|
||||||
<view class="salary">{{ item.salaryRange }}元/月</view>
|
<view class="salary">{{ item.minSalary }} - {{ item.maxSalary }}元/月</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
16
config.js
16
config.js
@@ -1,12 +1,16 @@
|
|||||||
export default {
|
export default {
|
||||||
// baseUrl: 'http://39.98.44.136:8080', // 测试
|
// baseUrl: 'http://39.98.44.136:8080', // 测试
|
||||||
// baseUrl: 'http://222.80.110.161:11111/api/ks', // 测试
|
baseUrl: 'http://222.80.110.161:11111/api/ks', // 正式环境
|
||||||
baseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 测试
|
// baseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 测试
|
||||||
|
|
||||||
LCBaseUrl:'http://10.110.145.145:9100',//招聘、培训、帮扶
|
// LCBaseUrl:'http://10.110.145.145:9100',//内网端口
|
||||||
LCBaseUrlInner:'http://10.110.145.145:10100',//内网端口
|
// LCBaseUrlInner:'http://10.110.145.145:10100',//招聘、培训、帮扶
|
||||||
imgBaseUrl:'http://10.110.145.145/images', //图片基础url
|
// imgBaseUrl:'http://10.110.145.145/images', //图片基础url
|
||||||
trainVideoImgUrl:'http://10.110.145.145:9100/file/file/minio',
|
// trainVideoImgUrl:'http://10.110.145.145:9100/file/file/minio',
|
||||||
|
LCBaseUrl:'http://222.80.110.161:11111/prod-api',//内网端口
|
||||||
|
LCBaseUrlInner:'http://222.80.110.161:11111/prod-psout-api',//招聘、培训、帮扶
|
||||||
|
imgBaseUrl:'http://222.80.110.161:11111/images', //图片基础url
|
||||||
|
trainVideoImgUrl:'http://222.80.110.161:11111/prod-api/file/file/minio',
|
||||||
// sseAI+
|
// sseAI+
|
||||||
// StreamBaseURl: 'http://39.98.44.136:8000',
|
// StreamBaseURl: 'http://39.98.44.136:8000',
|
||||||
StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai',
|
StreamBaseURl: 'https://qd.zhaopinzao8dian.com/ai',
|
||||||
|
|||||||
@@ -68,6 +68,39 @@
|
|||||||
{{ jobInfo.description }}
|
{{ jobInfo.description }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 职位图片 -->
|
||||||
|
<view class="content-card" v-if="jobInfo.filesList && jobInfo.filesList.length > 0">
|
||||||
|
<view class="card-title">
|
||||||
|
<text class="title">职位图片</text>
|
||||||
|
</view>
|
||||||
|
<view class="job-images">
|
||||||
|
<view class="image-item" v-for="(file, index) in jobInfo.filesList" :key="file.id">
|
||||||
|
<image :src="file.fileUrl" mode="aspectFit" @click="previewImage(file.fileUrl, index)"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 联系人信息 -->
|
||||||
|
<view class="content-card" v-if="jobInfo.jobContactList && jobInfo.jobContactList.length > 0">
|
||||||
|
<view class="card-title">
|
||||||
|
<text class="title">联系人信息</text>
|
||||||
|
</view>
|
||||||
|
<view class="contact-list">
|
||||||
|
<view class="contact-item" v-for="(contact, index) in jobInfo.jobContactList" :key="index">
|
||||||
|
<view class="contact-info">
|
||||||
|
<view class="contact-label">联系人:</view>
|
||||||
|
<view class="contact-value">{{ contact.contactPerson }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="contact-info">
|
||||||
|
<view class="contact-label">职位:</view>
|
||||||
|
<view class="contact-value">{{ contact.position }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="contact-info">
|
||||||
|
<view class="contact-label">电话:</view>
|
||||||
|
<view class="contact-value">{{ contact.contactPersonPhone }}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<!-- 公司信息 -->
|
<!-- 公司信息 -->
|
||||||
<view class="content-card">
|
<view class="content-card">
|
||||||
<view class="card-title">
|
<view class="card-title">
|
||||||
@@ -482,6 +515,16 @@ function formatPublishTime(dateString) {
|
|||||||
return `${year}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;
|
return `${year}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 预览图片
|
||||||
|
function previewImage(url, index) {
|
||||||
|
// 获取所有图片的URL列表
|
||||||
|
const allImageUrls = jobInfo.value.filesList.map(file => file.fileUrl);
|
||||||
|
uni.previewImage({
|
||||||
|
urls: allImageUrls,
|
||||||
|
current: index
|
||||||
|
});
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
@@ -583,6 +626,55 @@ for i in 0..100
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 职位图片样式
|
||||||
|
.job-images{
|
||||||
|
margin-top: 30rpx
|
||||||
|
display: flex
|
||||||
|
flex-wrap: wrap
|
||||||
|
gap: 20rpx
|
||||||
|
.image-item{
|
||||||
|
width: calc(50% - 10rpx)
|
||||||
|
height: 300rpx
|
||||||
|
border-radius: 12rpx
|
||||||
|
overflow: hidden
|
||||||
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1)
|
||||||
|
image{
|
||||||
|
width: 100%
|
||||||
|
height: 100%
|
||||||
|
object-fit: cover
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 联系人信息样式
|
||||||
|
.contact-list{
|
||||||
|
margin-top: 30rpx
|
||||||
|
.contact-item{
|
||||||
|
padding: 20rpx
|
||||||
|
background-color: #f8f9fa
|
||||||
|
border-radius: 12rpx
|
||||||
|
.contact-info{
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
margin-bottom: 15rpx
|
||||||
|
&:last-child{
|
||||||
|
margin-bottom: 0
|
||||||
|
}
|
||||||
|
.contact-label{
|
||||||
|
font-weight: 500
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #333333
|
||||||
|
width: 120rpx
|
||||||
|
}
|
||||||
|
.contact-value{
|
||||||
|
font-weight: 400
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #495265
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// ai
|
// ai
|
||||||
.ai-explain{
|
.ai-explain{
|
||||||
margin-top: 28rpx
|
margin-top: 28rpx
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<AppLayout title="" :use-scroll-view="false">
|
<AppLayout title="" :use-scroll-view="false">
|
||||||
<view class="wrap">
|
<view class="wrap">
|
||||||
<view class="login_index">
|
<!-- <view class="login_index">
|
||||||
<input class="input" placeholder="请输入账号" placeholder-class="inputplace" v-model="form.username" />
|
<input class="input" placeholder="请输入账号" placeholder-class="inputplace" v-model="form.username" />
|
||||||
<view class="login_yzm">
|
<view class="login_yzm">
|
||||||
<input class="input" type="password" placeholder="请输入密码" placeholder-class="inputplace"
|
<input class="input" type="password" placeholder="请输入密码" placeholder-class="inputplace"
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<button class="com-btn" @click="register">登 录</button>
|
<button class="com-btn" @click="register">登 录</button>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</AppLayout>
|
</AppLayout>
|
||||||
</template>
|
</template>
|
||||||
@@ -43,8 +43,8 @@
|
|||||||
const flag=ref('hlw')
|
const flag=ref('hlw')
|
||||||
|
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
username: 'langchaojituan',
|
username: '913700004941904564',
|
||||||
password: 'Aa123456?',
|
password: '913700004941904564',
|
||||||
rememberMe: false,
|
rememberMe: false,
|
||||||
code: '',
|
code: '',
|
||||||
uuid: ''
|
uuid: ''
|
||||||
@@ -57,7 +57,43 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getCodeImg()
|
// getCodeImg()
|
||||||
|
let form={}
|
||||||
|
if (uni.getStorageSync('userInfo').isCompanyUser=='1') {
|
||||||
|
form={
|
||||||
|
usertype: '1',
|
||||||
|
idno: uni.getStorageSync('userInfo').idCard,
|
||||||
|
name: uni.getStorageSync('userInfo').name,
|
||||||
|
enterprisecode:"",
|
||||||
|
enterprisename: "",
|
||||||
|
contactperson: "",
|
||||||
|
contactphone: "",
|
||||||
|
}
|
||||||
|
}else if (uni.getStorageSync('userInfo').isCompanyUser=='0') {
|
||||||
|
form={
|
||||||
|
usertype: "2",
|
||||||
|
enterprisecode: uni.getStorageSync('userInfo').idCard,
|
||||||
|
enterprisename: uni.getStorageSync('userInfo').name,
|
||||||
|
contactperson: "",
|
||||||
|
contactphone: "",
|
||||||
|
idno: "",
|
||||||
|
name: ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$api.myRequest('/auth/login2/ks',form,'post',10100).then((res) => {
|
||||||
|
if (res.code=='200') {
|
||||||
|
uni.setStorageSync('Padmin-Token', res.data.access_token)
|
||||||
|
uni.navigateBack({
|
||||||
|
delta:2
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
uni.hideLoading()
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: '登录失败,请重试'
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
function register() {
|
function register() {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<view class="tab-container">
|
<view class="tab-container">
|
||||||
<image src="/packageB/static/images/train/bj.jpg" mode=""></image>
|
<image src="/packageB/static/images/train/bj.jpg" mode=""></image>
|
||||||
<view>
|
<view>
|
||||||
<view class="btns" @click="jumps('/packageB/train/video/videoList')">
|
<!-- <view class="btns" @click="jumps('/packageB/train/video/videoList')">
|
||||||
<image src="/packageB/static/images/train/spxx-k.png" mode=""></image>
|
<image src="/packageB/static/images/train/spxx-k.png" mode=""></image>
|
||||||
<view>
|
<view>
|
||||||
<text>培训视频</text>
|
<text>培训视频</text>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<image src="/packageB/static/images/train/arrow.png" mode=""></image>
|
<image src="/packageB/static/images/train/arrow.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="btns" @click="jumps('/packageB/train/practice/startPracticing')">
|
<view class="btns" @click="jumps('/packageB/train/practice/startPracticing')">
|
||||||
<image src="/packageB/static/images/train/zxxl-k.png" mode=""></image>
|
<image src="/packageB/static/images/train/zxxl-k.png" mode=""></image>
|
||||||
<view>
|
<view>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="btns" @click="jumps('/packageB/train/wrongAnswer/mistakeNotebook')">
|
<!-- <view class="btns" @click="jumps('/packageB/train/wrongAnswer/mistakeNotebook')">
|
||||||
<image src="/packageB/static/images/train/ctb-k.png" mode=""></image>
|
<image src="/packageB/static/images/train/ctb-k.png" mode=""></image>
|
||||||
<view>
|
<view>
|
||||||
<text>错题本 </text>
|
<text>错题本 </text>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- </AppLayout> -->
|
<!-- </AppLayout> -->
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/search/search",
|
"path": "pages/search/search",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": ""
|
"navigationBarTitleText": "搜索职位"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,9 +13,9 @@
|
|||||||
<view class="header-btnLf button-click" @click="seemsg(3)" :class="{ active: state.current === 3 }">
|
<view class="header-btnLf button-click" @click="seemsg(3)" :class="{ active: state.current === 3 }">
|
||||||
我参与的
|
我参与的
|
||||||
</view>
|
</view>
|
||||||
<view class="header-btnLf button-click" @click="navTo('/packageB/login')">
|
<!-- <view class="header-btnLf button-click" @click="navTo('/packageB/login')">
|
||||||
登录
|
登录
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="header-input btn-feel">
|
<view class="header-input btn-feel">
|
||||||
<uni-icons class="iconsearch" color="#666666" type="search" size="18"
|
<uni-icons class="iconsearch" color="#666666" type="search" size="18"
|
||||||
|
|||||||
@@ -117,20 +117,20 @@
|
|||||||
<view class="service-icon service-icon-5">
|
<view class="service-icon service-icon-5">
|
||||||
<IconfontIcon name="jinengpeixun" :size="48" color="#FFFFFF" />
|
<IconfontIcon name="jinengpeixun" :size="48" color="#FFFFFF" />
|
||||||
</view>
|
</view>
|
||||||
<view class="service-title">技能培训信息</view>
|
<view class="service-title">技能培训</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="service-item press-button" @click="handleServiceClick('skill-evaluation')">
|
<view class="service-item press-button" @click="handleServiceClick('skill-evaluation')">
|
||||||
<view class="service-icon service-icon-6">
|
<view class="service-icon service-icon-6">
|
||||||
<IconfontIcon name="jinengpingjia" :size="48" color="#FFFFFF" />
|
<IconfontIcon name="jinengpingjia" :size="48" color="#FFFFFF" />
|
||||||
</view>
|
</view>
|
||||||
<view class="service-title">技能评价指引</view>
|
<view class="service-title">技能评价</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="service-item press-button" @click="handleServiceClick('question-bank')">
|
<!-- <view class="service-item press-button" @click="handleServiceClick('question-bank')">
|
||||||
<view class="service-icon service-icon-7">
|
<view class="service-icon service-icon-7">
|
||||||
<IconfontIcon name="suzhicepingtiku" :size="48" color="#FFFFFF" />
|
<IconfontIcon name="suzhicepingtiku" :size="48" color="#FFFFFF" />
|
||||||
</view>
|
</view>
|
||||||
<view class="service-title">题库和考试</view>
|
<view class="service-title">题库和考试</view>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="service-item press-button" @click="goCa()">
|
<view class="service-item press-button" @click="goCa()">
|
||||||
<view class="service-icon service-icon-8">
|
<view class="service-icon service-icon-8">
|
||||||
<IconfontIcon name="suzhicepingtiku" :size="48" color="#FFFFFF" />
|
<IconfontIcon name="suzhicepingtiku" :size="48" color="#FFFFFF" />
|
||||||
@@ -862,7 +862,8 @@ function navToService(serviceType) {
|
|||||||
'public-recruitment': '/pages/service/public-recruitment',
|
'public-recruitment': '/pages/service/public-recruitment',
|
||||||
'resume-creation': '/pages/resume-guide/resume-guide',
|
'resume-creation': '/pages/resume-guide/resume-guide',
|
||||||
'labor-policy': '/pages/service/labor-policy',
|
'labor-policy': '/pages/service/labor-policy',
|
||||||
'skill-training': '/pages/service/skill-training',
|
'skill-training': '/packageB/train/video/videoList',
|
||||||
|
'skill-evaluation': '/packageB/train/index',
|
||||||
// 'skill-evaluation': '/pages/service/skill-evaluation',
|
// 'skill-evaluation': '/pages/service/skill-evaluation',
|
||||||
'question-bank': '/pages/service/question-bank',
|
'question-bank': '/pages/service/question-bank',
|
||||||
// 'quality-assessment': '/packageCa/search/search',
|
// 'quality-assessment': '/packageCa/search/search',
|
||||||
@@ -874,9 +875,11 @@ function navToService(serviceType) {
|
|||||||
'interview-tips': '/pages/service/interview-tips',
|
'interview-tips': '/pages/service/interview-tips',
|
||||||
'employment-news': '/pages/service/employment-news',
|
'employment-news': '/pages/service/employment-news',
|
||||||
'more-services': '/pages/service/more-services',
|
'more-services': '/pages/service/more-services',
|
||||||
'skill-evaluation': '/packageB/train/index'
|
|
||||||
};
|
};
|
||||||
|
if((serviceType=='skill-training'||serviceType=='skill-evaluation')&&!uni.getStorageSync('userInfo').idCard){
|
||||||
|
$api.msg('请先完善信息');
|
||||||
|
return
|
||||||
|
}
|
||||||
const route = serviceRoutes[serviceType];
|
const route = serviceRoutes[serviceType];
|
||||||
if (route) {
|
if (route) {
|
||||||
navTo(route);
|
navTo(route);
|
||||||
|
|||||||
@@ -134,7 +134,38 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 岗位描述区块 -->
|
<!-- 图片上传区块 -->
|
||||||
|
<view class="form-block">
|
||||||
|
<view class="section-title">岗位图片</view>
|
||||||
|
<view class="form-group">
|
||||||
|
<view class="upload-container">
|
||||||
|
<view
|
||||||
|
class="upload-item upload-btn"
|
||||||
|
v-if="formData.images.length < 3"
|
||||||
|
@click="chooseImage"
|
||||||
|
>
|
||||||
|
<view class="upload-icon">+</view>
|
||||||
|
<view class="upload-text">上传图片</view>
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
class="upload-item preview-item"
|
||||||
|
v-for="(image, index) in formData.images"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
|
<image
|
||||||
|
:src="image.filePath"
|
||||||
|
class="preview-img"
|
||||||
|
@click="previewImage(index)"
|
||||||
|
></image>
|
||||||
|
<view class="delete-img-btn" @click="deleteImage(index)">
|
||||||
|
<view class="delete-icon">×</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 岗位描述区块 -->
|
||||||
<view class="form-block">
|
<view class="form-block">
|
||||||
<view class="section-title">岗位描述</view>
|
<view class="section-title">岗位描述</view>
|
||||||
<view class="form-group">
|
<view class="form-group">
|
||||||
@@ -222,6 +253,7 @@ import { ref, reactive, onMounted, onUnmounted } from 'vue';
|
|||||||
import { onShow } from '@dcloudio/uni-app';
|
import { onShow } from '@dcloudio/uni-app';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
import { createRequest } from '@/utils/request';
|
import { createRequest } from '@/utils/request';
|
||||||
|
import config from '@/config.js';
|
||||||
import useDictStore from '@/stores/useDictStore';
|
import useDictStore from '@/stores/useDictStore';
|
||||||
import useUserStore from '@/stores/useUserStore';
|
import useUserStore from '@/stores/useUserStore';
|
||||||
import UniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue';
|
import UniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue';
|
||||||
@@ -244,6 +276,7 @@ const formData = reactive({
|
|||||||
jobLocationAreaCode: '', // 新增:工作地点区县字典代码
|
jobLocationAreaCode: '', // 新增:工作地点区县字典代码
|
||||||
education: '', // 新增:学历要求字典值
|
education: '', // 新增:学历要求字典值
|
||||||
experience: '', // 新增:工作经验字典值
|
experience: '', // 新增:工作经验字典值
|
||||||
|
images: [], // 新增:岗位图片
|
||||||
contacts: [
|
contacts: [
|
||||||
{
|
{
|
||||||
name: '',
|
name: '',
|
||||||
@@ -490,6 +523,101 @@ const goToCompanySearch = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 图片选择
|
||||||
|
const chooseImage = () => {
|
||||||
|
uni.chooseImage({
|
||||||
|
count: 3 - formData.images.length, // 最多可选择的图片数量
|
||||||
|
success: async (res) => {
|
||||||
|
uni.showLoading({
|
||||||
|
title: '上传中...'
|
||||||
|
});
|
||||||
|
|
||||||
|
try {
|
||||||
|
for (const tempFilePath of res.tempFilePaths) {
|
||||||
|
const uploadResult = await uploadImage(tempFilePath);
|
||||||
|
formData.images.push(uploadResult);
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error('上传失败:', error);
|
||||||
|
uni.showToast({
|
||||||
|
title: '上传失败,请重试',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
} finally {
|
||||||
|
uni.hideLoading();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: (err) => {
|
||||||
|
console.error('选择图片失败:', err);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// 图片上传
|
||||||
|
const uploadImage = (tempFilePath) => {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
let Authorization = '';
|
||||||
|
if (useUserStore().token) {
|
||||||
|
Authorization = `${useUserStore().token}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
uni.uploadFile({
|
||||||
|
url: config.baseUrl + '/app/file/uploadFile',
|
||||||
|
filePath: tempFilePath,
|
||||||
|
name: 'file',
|
||||||
|
header: {
|
||||||
|
'Authorization': encodeURIComponent(Authorization)
|
||||||
|
},
|
||||||
|
success: (uploadFileRes) => {
|
||||||
|
if (uploadFileRes.statusCode === 200) {
|
||||||
|
try {
|
||||||
|
const result = JSON.parse(uploadFileRes.data);
|
||||||
|
if (result.code === 200) {
|
||||||
|
resolve(result);
|
||||||
|
} else {
|
||||||
|
reject(new Error(result.msg || '上传失败'));
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
reject(new Error('解析上传结果失败'));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
reject(new Error('网络请求失败'));
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: (err) => {
|
||||||
|
reject(err);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
// 删除图片
|
||||||
|
const deleteImage = async (index) => {
|
||||||
|
const image = formData.images[index];
|
||||||
|
if (image.id) {
|
||||||
|
try {
|
||||||
|
await createRequest(`/app/file/${image.id}`, {}, 'DELETE', true);
|
||||||
|
} catch (error) {
|
||||||
|
console.error('删除图片失败:', error);
|
||||||
|
uni.showToast({
|
||||||
|
title: '删除图片失败',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
formData.images.splice(index, 1);
|
||||||
|
};
|
||||||
|
|
||||||
|
// 预览图片
|
||||||
|
const previewImage = (index) => {
|
||||||
|
const urls = formData.images.map(image => image.filePath);
|
||||||
|
uni.previewImage({
|
||||||
|
current: index,
|
||||||
|
urls: urls
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
// 处理企业选择
|
// 处理企业选择
|
||||||
const handleCompanySelected = (company) => {
|
const handleCompanySelected = (company) => {
|
||||||
formData.companyName = company.name;
|
formData.companyName = company.name;
|
||||||
@@ -525,7 +653,8 @@ const publishJob = async () => {
|
|||||||
jobCategory: formData.jobCategory,
|
jobCategory: formData.jobCategory,
|
||||||
companyId: formData.companyId,
|
companyId: formData.companyId,
|
||||||
companyName: formData.companyName,
|
companyName: formData.companyName,
|
||||||
jobContactList: formData.contacts.filter(contact => contact.name.trim() && contact.phone.trim())
|
jobContactList: formData.contacts.filter(contact => contact.name.trim() && contact.phone.trim()),
|
||||||
|
filesList: formData.images.map(image => ({ bussinessid: image.bussinessid })) // 新增:岗位图片列表,使用bussinessid
|
||||||
};
|
};
|
||||||
|
|
||||||
// 调试信息:打印companyId
|
// 调试信息:打印companyId
|
||||||
@@ -1034,6 +1163,85 @@ const validateForm = () => {
|
|||||||
}
|
}
|
||||||
/* #endif */
|
/* #endif */
|
||||||
|
|
||||||
|
/* 图片上传样式 */
|
||||||
|
.upload-container {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 20rpx;
|
||||||
|
padding: 20rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload-item {
|
||||||
|
width: 200rpx;
|
||||||
|
height: 200rpx;
|
||||||
|
border-radius: 12rpx;
|
||||||
|
position: relative;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload-btn {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border: 2rpx dashed #ddd;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: #e8e8e8;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload-icon {
|
||||||
|
font-size: 60rpx;
|
||||||
|
color: #999;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload-text {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preview-item {
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.preview-img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.delete-img-btn {
|
||||||
|
position: absolute;
|
||||||
|
top: 10rpx;
|
||||||
|
right: 10rpx;
|
||||||
|
width: 40rpx;
|
||||||
|
height: 40rpx;
|
||||||
|
background-color: rgba(0, 0, 0, 0.6);
|
||||||
|
border-radius: 50%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: rgba(0, 0, 0, 0.8);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.delete-icon {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
/* #ifdef MP-WEIXIN */
|
/* #ifdef MP-WEIXIN */
|
||||||
.publish-job-page {
|
.publish-job-page {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container safe-area-top">
|
<view class="container safe-area-top">
|
||||||
<view>
|
<!-- 自定义头部搜索框 -->
|
||||||
|
<view class="custom-header">
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<image class="btnback button-click" src="@/static/icon/back.png" @click="navBack"></image>
|
<!-- <image class="btnback button-click" src="@/static/icon/back.png" @click="navBack"></image> -->
|
||||||
<view class="search-box">
|
<view class="search-box">
|
||||||
<uni-icons
|
<uni-icons
|
||||||
class="iconsearch"
|
class="iconsearch"
|
||||||
color="#666666"
|
color="#666666"
|
||||||
type="search"
|
type="search"
|
||||||
size="18"
|
size="18"
|
||||||
@confirm="searchCollection"
|
|
||||||
></uni-icons>
|
></uni-icons>
|
||||||
<input
|
<input
|
||||||
class="inputed"
|
class="inputed"
|
||||||
@@ -200,61 +200,16 @@ function dataToImg(data) {
|
|||||||
display: flex
|
display: flex
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
background: #F4f4f4
|
background: #F4f4f4
|
||||||
height: calc(100vh - var(--window-top) - var(--status-bar-height) - var(--window-bottom));
|
height: 100vh;
|
||||||
.view-top{
|
.custom-header {
|
||||||
display: flex;
|
background-color: #fff;
|
||||||
justify-content: space-around
|
padding:0;
|
||||||
background: #FFFFFF;
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
||||||
.top-item{
|
position: fixed;
|
||||||
padding: 6rpx 0 18rpx 0
|
top: 0;
|
||||||
}
|
left: 0;
|
||||||
.active{
|
right: 0;
|
||||||
color: #256BFA;
|
z-index: 999;
|
||||||
font-weight: 500;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.active::after{
|
|
||||||
position: absolute;
|
|
||||||
content: ''
|
|
||||||
left: calc(50% - 12rpx)
|
|
||||||
bottom: 10rpx
|
|
||||||
width: 24rpx
|
|
||||||
height: 6rpx
|
|
||||||
background: #256BFA
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.main-content{
|
|
||||||
background: #FFFFFF
|
|
||||||
height: 100%
|
|
||||||
.content-top{
|
|
||||||
padding: 28rpx
|
|
||||||
display: flex
|
|
||||||
justify-content: space-between
|
|
||||||
align-items: center
|
|
||||||
.top-left{
|
|
||||||
font-weight: 600;
|
|
||||||
font-size: 36rpx;
|
|
||||||
color: #000000;
|
|
||||||
line-height: 42rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.content-history{
|
|
||||||
padding: 0 28rpx;
|
|
||||||
display: flex
|
|
||||||
flex-wrap: wrap
|
|
||||||
.history-tag{
|
|
||||||
margin-right: 40rpx
|
|
||||||
margin-bottom: 20rpx
|
|
||||||
white-space: nowrap
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #333333;
|
|
||||||
background: #F5F5F5;
|
|
||||||
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
|
||||||
width: fit-content;
|
|
||||||
padding: 12rpx 20rpx
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.top {
|
.top {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -262,8 +217,6 @@ function dataToImg(data) {
|
|||||||
justify-content: space-between
|
justify-content: space-between
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding: 20rpx 20rpx;
|
padding: 20rpx 20rpx;
|
||||||
position: sticky;
|
|
||||||
top: 0
|
|
||||||
.btnback{
|
.btnback{
|
||||||
width: 60rpx;
|
width: 60rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
@@ -304,6 +257,45 @@ function dataToImg(data) {
|
|||||||
color: #256BFA;
|
color: #256BFA;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.main-content{
|
||||||
|
background: #FFFFFF
|
||||||
|
height: 100%
|
||||||
|
margin-top: 140rpx;
|
||||||
|
.content-top{
|
||||||
|
padding: 28rpx
|
||||||
|
display: flex
|
||||||
|
justify-content: space-between
|
||||||
|
align-items: center
|
||||||
|
.top-left{
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 36rpx;
|
||||||
|
color: #000000;
|
||||||
|
line-height: 42rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.content-history{
|
||||||
|
padding: 0 28rpx;
|
||||||
|
display: flex
|
||||||
|
flex-wrap: wrap
|
||||||
|
.history-tag{
|
||||||
|
margin-right: 40rpx
|
||||||
|
margin-bottom: 20rpx
|
||||||
|
white-space: nowrap
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333333;
|
||||||
|
background: #F5F5F5;
|
||||||
|
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
||||||
|
width: fit-content;
|
||||||
|
padding: 12rpx 20rpx
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.Detailscroll-view{
|
||||||
|
flex: 1
|
||||||
|
overflow: hidden
|
||||||
|
margin-top: 140rpx;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.slot-item
|
.slot-item
|
||||||
|
|||||||
69
unpackage/dist/dev/mp-weixin/project.config.json
vendored
69
unpackage/dist/dev/mp-weixin/project.config.json
vendored
@@ -1,35 +1,40 @@
|
|||||||
{
|
{
|
||||||
"setting": {
|
"setting": {
|
||||||
"es6": true,
|
"es6": true,
|
||||||
"postcss": true,
|
"postcss": true,
|
||||||
"minified": true,
|
"minified": true,
|
||||||
"uglifyFileName": false,
|
"uglifyFileName": false,
|
||||||
"enhance": true,
|
"enhance": true,
|
||||||
"packNpmRelationList": [],
|
"packNpmRelationList": [],
|
||||||
"babelSetting": {
|
"babelSetting": {
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"disablePlugins": [],
|
"disablePlugins": [],
|
||||||
"outputPath": ""
|
"outputPath": ""
|
||||||
|
},
|
||||||
|
"useCompilerPlugins": false,
|
||||||
|
"minifyWXML": true,
|
||||||
|
"compileWorklet": false,
|
||||||
|
"uploadWithSourceMap": true,
|
||||||
|
"packNpmManually": false,
|
||||||
|
"minifyWXSS": true,
|
||||||
|
"localPlugins": false,
|
||||||
|
"disableUseStrict": false,
|
||||||
|
"condition": false,
|
||||||
|
"swc": false,
|
||||||
|
"disableSWC": true,
|
||||||
|
"ignoreUploadUnusedFiles": false
|
||||||
},
|
},
|
||||||
"useCompilerPlugins": false,
|
"compileType": "miniprogram",
|
||||||
"minifyWXML": true,
|
"simulatorPluginLibVersion": {},
|
||||||
"compileWorklet": false,
|
"packOptions": {
|
||||||
"uploadWithSourceMap": true,
|
"ignore": [],
|
||||||
"packNpmManually": false,
|
"include": []
|
||||||
"minifyWXSS": true,
|
},
|
||||||
"localPlugins": false,
|
"appid": "wx4aa34488b965a331",
|
||||||
"disableUseStrict": false,
|
"editorSetting": {
|
||||||
"condition": false,
|
"tabIndent": "insertSpaces",
|
||||||
"swc": false,
|
"tabSize": 4
|
||||||
"disableSWC": true
|
},
|
||||||
},
|
"libVersion": "3.11.1",
|
||||||
"compileType": "miniprogram",
|
"condition": {}
|
||||||
"simulatorPluginLibVersion": {},
|
|
||||||
"packOptions": {
|
|
||||||
"ignore": [],
|
|
||||||
"include": []
|
|
||||||
},
|
|
||||||
"appid": "wx4aa34488b965a331",
|
|
||||||
"editorSetting": {},
|
|
||||||
"libVersion": "3.11.1"
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user