智能推荐
This commit is contained in:
@@ -13,6 +13,8 @@ export default {
|
|||||||
// 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',
|
||||||
|
jobRecommendUrl:'http://222.80.110.161:11111/api', //岗位推荐的三方url
|
||||||
|
policyRecommendUrl:'http://222.80.110.161:11111/sdrc-api', //政策推荐的三方url
|
||||||
LCBaseUrl:'https://www.xjksly.cn/prod-api',//内网端口
|
LCBaseUrl:'https://www.xjksly.cn/prod-api',//内网端口
|
||||||
LCBaseUrlInner:'https://www.xjksly.cn/prod-psout-api',//招聘、培训、帮扶
|
LCBaseUrlInner:'https://www.xjksly.cn/prod-psout-api',//招聘、培训、帮扶
|
||||||
imgBaseUrl:'https://www.xjksly.cn/images', //图片基础url
|
imgBaseUrl:'https://www.xjksly.cn/images', //图片基础url
|
||||||
|
|||||||
@@ -387,7 +387,7 @@ function goFollow(item){
|
|||||||
navTo('/packageB/priority/recordFollow?name='+item.name+'&taskType='+item.task_type+'&taskId='+item.task_id+'&personId='+item.person_id+'&goalPersonId='+item.goal_person_id);
|
navTo('/packageB/priority/recordFollow?name='+item.name+'&taskType='+item.task_type+'&taskId='+item.task_id+'&personId='+item.person_id+'&goalPersonId='+item.goal_person_id);
|
||||||
}
|
}
|
||||||
function goRecommend(item){
|
function goRecommend(item){
|
||||||
navTo('/packageB/priority/smartRecommend');
|
navTo('/packageB/priority/smartRecommend?goalPersonId='+item.goal_person_id);
|
||||||
}
|
}
|
||||||
function goJobWill(item){
|
function goJobWill(item){
|
||||||
navTo('/packageB/priority/jobWill?id='+item.person_id+'&goalPersonId='+item.goal_person_id);
|
navTo('/packageB/priority/jobWill?id='+item.person_id+'&goalPersonId='+item.goal_person_id);
|
||||||
|
|||||||
@@ -1,131 +1,225 @@
|
|||||||
<template>
|
<template>
|
||||||
<AppLayout :title="title" :show-bg-image="false" >
|
<AppLayout :title="title" :show-bg-image="false" >
|
||||||
<view class="tab-list" >
|
<view class="tab-list" >
|
||||||
<view class="tab" :class="{active: activeType == 1}" >求职<br>需求
|
<view class="tab" :class="{active: activeType == 1}" @click="tabChange(1)">岗位推荐
|
||||||
</view>
|
</view>
|
||||||
<view class="tab" :class="{active: activeType == 2}" >创业<br>需求
|
<view class="tab" :class="{active: activeType == 2}" @click="tabChange(2)">政策推荐
|
||||||
</view>
|
</view>
|
||||||
<view class="tab" :class="{active: activeType == 3}" >培训<br>需求
|
<view class="tab" :class="{active: activeType == 3}" @click="tabChange(3)">培训推荐
|
||||||
</view>
|
|
||||||
<view class="tab" :class="{active: activeType == 4}" >其他<br>需求
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="main-list" :style="getBackgroundStyle('k.png')">
|
<view class="page-container" >
|
||||||
<view class="list-top">
|
<scroll-view :scroll-y="true" class="nearby-scroll" @scrolltolower="scrollBottom" lower-threshold="50">
|
||||||
<view class="list-title">
|
<view class="main-list" :style="getBackgroundStyle('k.png')" v-if="activeType==1">
|
||||||
<text>帮扶记录详情</text>
|
<view class="list-top">
|
||||||
<view class="title-line"></view>
|
<view class="list-title">
|
||||||
|
<text>推荐岗位列表</text>
|
||||||
|
<view class="title-line" style="left: 70rpx;"></view>
|
||||||
|
</view>
|
||||||
|
<view class="title-total">
|
||||||
|
共<text class="total-num">{{totalNum}}</text>个
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="list-box" v-if="dataList.length>0">
|
||||||
|
<view class="con-box" v-for="(item,index) in dataList" :key="index">
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/person.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
岗位名称:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.jobTitle}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/help.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
公司名称:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.companyName}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/base.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
薪资待遇:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.minSalary}}-{{item.maxSalary}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/num.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
工作地点:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.jobLocation}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<empty v-else pdTop="200"></empty>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
<view class="main-list" :style="getBackgroundStyle('k.png')" v-if="activeType==2">
|
||||||
<view class="form-container">
|
<view class="list-top">
|
||||||
<view class="form-item">
|
<view class="list-title">
|
||||||
<view class="item-label">
|
<text>推荐政策列表</text>
|
||||||
人员姓名:
|
<view class="title-line" style="left: 70rpx;"></view>
|
||||||
|
</view>
|
||||||
|
<view class="title-total">
|
||||||
|
共<text class="total-num">{{totalNum}}</text>项
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-value">
|
<view class="list-box" v-if="dataList.length>0">
|
||||||
{{formData.name}}
|
<view class="con-box" v-for="(item,index) in dataList" :key="index">
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/person.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
政策名称:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.zcmc}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/help.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
政策类型:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{ item.type === '3' ? '个人就业政策' : '单位就业政策' }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/base.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
政策级别:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{ item.zcLevel }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/num.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
发文单位:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.sourceUnit}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/date.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
发布时间:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.publishTime}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<empty v-else pdTop="200"></empty>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-item">
|
<view class="main-list" :style="getBackgroundStyle('k.png')" v-if="activeType==3">
|
||||||
<view class="item-label">
|
<view class="list-top">
|
||||||
身份证号:
|
<view class="list-title">
|
||||||
|
<text>推荐培训列表</text>
|
||||||
|
<view class="title-line" style="left: 70rpx;"></view>
|
||||||
|
</view>
|
||||||
|
<view class="title-total">
|
||||||
|
共<text class="total-num">{{totalNum}}</text>门
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-value">
|
<view class="list-box" v-if="dataList.length>0">
|
||||||
{{formData.id_card}}
|
<view class="con-box" v-for="(item,index) in dataList" :key="index">
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/person.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
课程标题:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.videoTitle}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item">
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/help.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
课程分类:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{getabelByValue(item.category,classificationOptions)}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/base.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
讲师:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{item.teacherName}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="form-item" >
|
||||||
|
<view class="item-left">
|
||||||
|
<image class="item-img" :src="baseUrl+'/dispatch/num.png'" mode=""></image>
|
||||||
|
<view class="item-label">
|
||||||
|
时长:
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-right">
|
||||||
|
{{formatDuration(item.hour)}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<empty v-else pdTop="200"></empty>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-item">
|
</scroll-view>
|
||||||
<view class="item-label">
|
</view>
|
||||||
联系电话:
|
|
||||||
</view>
|
|
||||||
<view class="item-value">
|
|
||||||
{{formData.phone}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="form-item">
|
|
||||||
<view class="item-label">
|
|
||||||
帮扶类型:
|
|
||||||
</view>
|
|
||||||
<view class="item-value">
|
|
||||||
{{formData.task_type}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="form-item">
|
|
||||||
<view class="item-label">
|
|
||||||
帮扶人员:
|
|
||||||
</view>
|
|
||||||
<view class="item-value" >
|
|
||||||
{{formData.create_by_name}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="form-item">
|
|
||||||
<view class="item-label">
|
|
||||||
帮扶日期:
|
|
||||||
</view>
|
|
||||||
<view class="item-value">
|
|
||||||
{{formData.follow_date}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="form-item">
|
|
||||||
<view class="item-label">
|
|
||||||
下次联系:
|
|
||||||
</view>
|
|
||||||
<view class="item-value">
|
|
||||||
{{formData.next_contact_date}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="form-item">
|
|
||||||
<view class="item-label">
|
|
||||||
人员标签:
|
|
||||||
</view>
|
|
||||||
<view class="item-value">
|
|
||||||
{{formData.tag_name}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="form-item">
|
|
||||||
<view class="item-label">
|
|
||||||
帮扶内容:
|
|
||||||
</view>
|
|
||||||
<view class="item-value">
|
|
||||||
{{formData.detailRecords}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</AppLayout>
|
</AppLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { inject, ref, reactive,onMounted } from 'vue';
|
import { inject, ref, reactive, onMounted } from 'vue';
|
||||||
import { onLoad } from '@dcloudio/uni-app';
|
import { onLoad,onShow } from '@dcloudio/uni-app';
|
||||||
const { $api, navTo, navBack } = inject('globalFunction');
|
const { $api, navTo, navBack } = inject('globalFunction');
|
||||||
import config from "@/config.js"
|
import config from "@/config.js"
|
||||||
|
|
||||||
const title = ref('');
|
const title = ref('');
|
||||||
const activeType = ref(1)
|
const activeType = ref(1)
|
||||||
const formData = reactive({
|
const pageNum = ref(1)
|
||||||
taskName: '',
|
const pageSize = ref(10)
|
||||||
taskType: '',
|
const totalNum=ref(0)
|
||||||
priority: '',
|
const dataList=ref([])
|
||||||
createTime:'',
|
const classificationOptions=ref([])
|
||||||
allocationStatus:'',
|
const goalPersonId=ref([])
|
||||||
taskAllocation: {
|
|
||||||
goalPersonCount: null,
|
|
||||||
executeDeptId: '',
|
|
||||||
executeDeptName: '',
|
|
||||||
executeDeptAncestors: '',
|
|
||||||
allocationStatus: '1',
|
|
||||||
allocationNote: '',
|
|
||||||
deadline: null,
|
|
||||||
goalPersonList: []
|
|
||||||
}
|
|
||||||
})
|
|
||||||
const taskTypeOptions=ref([])
|
|
||||||
const priorityOptions=ref([])
|
|
||||||
const allocationStatusOptions=ref([])
|
|
||||||
const executeDeptOptions=ref([])
|
|
||||||
// 表单引用
|
|
||||||
const formRef = ref(null)
|
|
||||||
const baseUrl = config.imgBaseUrl
|
const baseUrl = config.imgBaseUrl
|
||||||
const getBackgroundStyle = (imageName) => ({
|
const getBackgroundStyle = (imageName) => ({
|
||||||
backgroundImage: `url(${baseUrl}/dispatch/${imageName})`,
|
backgroundImage: `url(${baseUrl}/dispatch/${imageName})`,
|
||||||
@@ -133,34 +227,41 @@ const getBackgroundStyle = (imageName) => ({
|
|||||||
backgroundPosition: 'center', // 居中
|
backgroundPosition: 'center', // 居中
|
||||||
backgroundRepeat: 'no-repeat'
|
backgroundRepeat: 'no-repeat'
|
||||||
});
|
});
|
||||||
|
function tabChange(val){
|
||||||
|
activeType.value=val
|
||||||
|
getDataList()
|
||||||
|
}
|
||||||
|
function formatDuration(duration) {
|
||||||
|
// 如果已经是字符串格式,直接返回
|
||||||
|
if (typeof duration === 'string') {
|
||||||
|
return duration
|
||||||
|
}
|
||||||
|
// 如果是数字(秒数),格式化为时间字符串
|
||||||
|
if (typeof duration === 'number') {
|
||||||
|
const hours = Math.floor(duration / 3600)
|
||||||
|
const minutes = Math.floor((duration % 3600) / 60)
|
||||||
|
const secs = duration % 60
|
||||||
|
if (hours > 0) {
|
||||||
|
return `${hours}:${minutes.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`
|
||||||
|
} else {
|
||||||
|
return `${minutes}:${secs.toString().padStart(2, '0')}`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return duration
|
||||||
|
}
|
||||||
function getDictionary(){
|
function getDictionary(){
|
||||||
$api.myRequest('/system/public/dict/data/type/assist_task_type').then((resData) => {
|
$api.myRequest('/system/public/dict/data/type/question_classification').then((resData) => {
|
||||||
if(resData && resData.code == 200){
|
if(resData && resData.code == 200){
|
||||||
resData.data.forEach(item=>{
|
resData.data.forEach(item=>{
|
||||||
const obj = {
|
const obj = {
|
||||||
value: item.dictValue,
|
value: item.dictValue,
|
||||||
text: item.dictLabel
|
text: item.dictLabel
|
||||||
}
|
}
|
||||||
taskTypeOptions.value.push(obj)
|
classificationOptions.value.push(obj)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function getDetail(id){
|
|
||||||
let header={
|
|
||||||
'Authorization':uni.getStorageSync('Padmin-Token'),
|
|
||||||
'Content-Type': "application/x-www-form-urlencoded"
|
|
||||||
}
|
|
||||||
let params={
|
|
||||||
goalPersonId:id
|
|
||||||
}
|
|
||||||
$api.myRequest('/dispatch/assist/records/getDetail',params,'get',9100,header).then((resData) => {
|
|
||||||
console.log("resData",resData)
|
|
||||||
resData.data.task_type=getabelByValue(resData.data.task_type,taskTypeOptions.value)
|
|
||||||
Object.assign(formData, resData.data)
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function getabelByValue(value,arr) {
|
function getabelByValue(value,arr) {
|
||||||
if (!Array.isArray(arr)) {
|
if (!Array.isArray(arr)) {
|
||||||
return ''
|
return ''
|
||||||
@@ -168,34 +269,143 @@ function getabelByValue(value,arr) {
|
|||||||
const item = arr.find(item => item.value === String(value))
|
const item = arr.find(item => item.value === String(value))
|
||||||
return item ? item.text : '暂无'
|
return item ? item.text : '暂无'
|
||||||
}
|
}
|
||||||
onLoad((options) => {
|
function getDataList(){
|
||||||
runAsyncTasks(options)
|
dataList.value=[]
|
||||||
});
|
let header={
|
||||||
const runAsyncTasks = async (options) => {
|
'Authorization':uni.getStorageSync('Padmin-Token'),
|
||||||
await getDictionary()
|
'Content-Type': "application/x-www-form-urlencoded"
|
||||||
await getDetail(options.id)
|
}
|
||||||
|
if(activeType.value==1){
|
||||||
|
let params={
|
||||||
|
goalPersonId: goalPersonId.value,
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 1
|
||||||
|
}
|
||||||
|
$api.myRequest('/dispatch/job/willingness/list',params,'get',9100,header).then((resData) => {
|
||||||
|
if(resData.rows&&resData.rows.length>0){
|
||||||
|
const education = resData.rows[0].education?resData.rows[0].education:''
|
||||||
|
const jobType = resData.rows[0].jobType?resData.rows[0].jobType:''
|
||||||
|
const type = resData.rows[0].type?resData.rows[0].type:''
|
||||||
|
const jobParams = {
|
||||||
|
education,
|
||||||
|
jobType,
|
||||||
|
type
|
||||||
|
};
|
||||||
|
$api.myRequest('/ks/cms/job/recommend?education',jobParams,'get',9100,header,false,'jobRecommend').then((resData) => {
|
||||||
|
dataList.value=resData.data
|
||||||
|
if(dataList.value.length>10){
|
||||||
|
dataList.value=dataList.value.slice(0,10)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
$api.myRequest('/ks/cms/job/recommend?education',{},'get',9100,header,false,'jobRecommend').then((resData) => {
|
||||||
|
dataList.value=resData.data
|
||||||
|
if(dataList.value.length>10){
|
||||||
|
dataList.value=dataList.value.slice(0,10)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}else if(activeType.value==2){
|
||||||
|
let policyParams={
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 5
|
||||||
|
}
|
||||||
|
$api.myRequest('/portal/policyInfo/portalList',policyParams,'get',9100,header,false,'policyRecommend').then((resData) => {
|
||||||
|
dataList.value=resData.rows
|
||||||
|
})
|
||||||
|
}else if(activeType.value==3){
|
||||||
|
let willingParams = {
|
||||||
|
goalPersonId: goalPersonId.value,
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 1
|
||||||
|
}
|
||||||
|
$api.myRequest('/dispatch/train/willingness/list',willingParams,'get',9100,header).then((resData) => {
|
||||||
|
if(resData.code==200){
|
||||||
|
let train = {};
|
||||||
|
if (resData.rows && resData.rows.length > 0) {
|
||||||
|
train = resData.rows[0];
|
||||||
|
}
|
||||||
|
let trainParams = {
|
||||||
|
category: train.courseType || '',
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 5
|
||||||
|
};
|
||||||
|
$api.myRequest('/dispatch/train/trainVideo/table',trainParams,'get',9100,header).then((resData) => {
|
||||||
|
dataList.value=resData.rows
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
function scrollBottom(){
|
||||||
|
// if(pageNum.value<totalNum.value/pageSize.value){
|
||||||
|
// pageNum.value++
|
||||||
|
// getDataList()
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
onLoad((options) => {
|
||||||
|
goalPersonId.value=options.goalPersonId
|
||||||
|
});
|
||||||
|
const runAsyncTasks = async () => {
|
||||||
|
await getDictionary()
|
||||||
|
await getDataList()
|
||||||
|
}
|
||||||
|
onShow(()=>{
|
||||||
|
dataList.value=[]
|
||||||
|
pageNum.value=1
|
||||||
|
runAsyncTasks()
|
||||||
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
.tab-list
|
.tab-list
|
||||||
display: flex
|
display: flex
|
||||||
margin: 16rpx 30rpx 30rpx
|
margin: 16rpx 30rpx 0rpx
|
||||||
text-align: center
|
text-align: center
|
||||||
border-radius: 16rpx
|
border-radius: 16rpx
|
||||||
background: #fff
|
background: #fff
|
||||||
align-items: center
|
align-items: center
|
||||||
justify-content: space-between
|
justify-content: space-between
|
||||||
|
padding:20rpx 40rpx 0rpx
|
||||||
|
.tab
|
||||||
|
padding-bottom: 10rpx
|
||||||
|
font-size: 30rpx
|
||||||
.active
|
.active
|
||||||
background: #1A62CE
|
color: #1A62CE
|
||||||
color: #fff
|
border-bottom: 4rpx solid #1A62CE
|
||||||
position: relative
|
position: relative
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
image
|
image
|
||||||
height: 100%
|
height: 100%
|
||||||
width: 100%
|
width: 100%
|
||||||
|
.page-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: calc(100vh - var(--window-top)); /* 如果 AppLayout 有 header,需减去 */
|
||||||
|
/* 或者简单用:height: 100vh; */
|
||||||
|
padding-bottom: 140rpx
|
||||||
|
}
|
||||||
|
.nearby-scroll
|
||||||
|
// 使用flex布局让scroll-view自适应高度,占据剩余空间
|
||||||
|
flex: 1
|
||||||
|
// overflow: hidden;
|
||||||
|
.task-box
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
.task-label
|
||||||
|
font-size: 30rpx
|
||||||
|
color: #6E7E9B
|
||||||
|
.task-name
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 30rpx
|
||||||
|
color: #3D61AC
|
||||||
.main-list
|
.main-list
|
||||||
background-color: #ffffff
|
background-color: #ffffff
|
||||||
padding: 20rpx 20rpx 28rpx 20rpx
|
padding: 20rpx 20rpx 28rpx 20rpx
|
||||||
@@ -229,15 +439,50 @@ image
|
|||||||
margin-right: 4rpx
|
margin-right: 4rpx
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
font-size: 26rpx
|
font-size: 26rpx
|
||||||
|
|
||||||
|
.list-box
|
||||||
|
margin-top: 40rpx
|
||||||
|
|
||||||
|
:deep(.uni-forms-item__label)
|
||||||
|
width: 194rpx !important
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #404040;
|
||||||
|
|
||||||
|
.search-container
|
||||||
|
padding: 20rpx 0rpx 0rpx 0rpx
|
||||||
|
.title-total
|
||||||
|
font-size: 24rpx
|
||||||
|
color: #999999
|
||||||
|
.total-num
|
||||||
|
color: #3088FF
|
||||||
|
margin-left: 4rpx
|
||||||
|
margin-right: 4rpx
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 26rpx
|
||||||
|
.search-item
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
margin-bottom: 30rpx
|
||||||
|
|
||||||
|
.label
|
||||||
|
width: 160rpx
|
||||||
|
font-size: 28rpx
|
||||||
|
color: #404040
|
||||||
|
flex-shrink: 0
|
||||||
|
|
||||||
.input,
|
.input,
|
||||||
.picker
|
.picker
|
||||||
|
background: #FFFFFF
|
||||||
flex: 1
|
flex: 1
|
||||||
|
min-width: 0
|
||||||
.picker-value
|
.search-box-btn
|
||||||
color: #666
|
border-radius: 32rpx !important
|
||||||
|
background: #3088FF !important
|
||||||
.form-container
|
margin-right: 16rpx
|
||||||
margin-top: 30rpx
|
.reset-box-btn
|
||||||
|
border-radius: 32rpx !important
|
||||||
|
background: #02B44D
|
||||||
|
color: #fff
|
||||||
.con-box
|
.con-box
|
||||||
background: #fff
|
background: #fff
|
||||||
padding: 20rpx
|
padding: 20rpx
|
||||||
@@ -245,12 +490,26 @@ image
|
|||||||
border-radius: 24rpx
|
border-radius: 24rpx
|
||||||
border: 1rpx solid #EDF5FF
|
border: 1rpx solid #EDF5FF
|
||||||
margin-top: 30rpx
|
margin-top: 30rpx
|
||||||
|
.form-title
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
|
||||||
|
.form-name
|
||||||
|
font-weight: bold
|
||||||
|
font-size: 30rpx
|
||||||
|
color: #595959
|
||||||
|
margin-right:16rpx
|
||||||
|
.form-type
|
||||||
|
border-radius: 8rpx;
|
||||||
|
border: 2rpx solid #FF7D26;
|
||||||
|
font-size: 24rpx
|
||||||
|
color: #F1690E
|
||||||
|
padding: 4rpx 10rpx
|
||||||
.form-item
|
.form-item
|
||||||
display: flex
|
display: flex
|
||||||
align-items: center
|
align-items: center
|
||||||
margin-bottom: 20rpx
|
justify-content: space-between
|
||||||
.mb-30
|
margin-top: 30rpx
|
||||||
margin-bottom: 30rpx
|
|
||||||
.item-left
|
.item-left
|
||||||
display: flex
|
display: flex
|
||||||
align-items: center
|
align-items: center
|
||||||
@@ -258,38 +517,54 @@ image
|
|||||||
width: 26rpx
|
width: 26rpx
|
||||||
height: 26rpx
|
height: 26rpx
|
||||||
margin-right: 10rpx
|
margin-right: 10rpx
|
||||||
.item-label1
|
.item-label
|
||||||
font-size: 26rpx
|
font-size: 26rpx
|
||||||
color: #B3B3B3
|
color: #B3B3B3
|
||||||
width: 130rpx
|
width: 190rpx
|
||||||
.item-label
|
.item-right
|
||||||
width:200rpx
|
font-size: 26rpx
|
||||||
text-align: left
|
color: #737373
|
||||||
font-size: 30rpx
|
// overflow: hidden
|
||||||
color: #606266
|
// text-overflow: ellipsis
|
||||||
height: 72rpx
|
// white-space: nowrap
|
||||||
padding: 0 24rpx 0 0
|
word-wrap: break-word
|
||||||
vertical-align: middle
|
overflow-wrap: break-word
|
||||||
flex-shrink: 0
|
white-space: normal
|
||||||
box-sizing: border-box
|
.form-btns
|
||||||
.item-value
|
margin-top:30rpx
|
||||||
color: #333
|
.form-box-btn
|
||||||
font-size: 30rpx
|
border-radius: 50rpx !important
|
||||||
height: 72rpx
|
margin-right: 24rpx
|
||||||
padding: 0 24rpx 0 0
|
padding: 0rpx 40rpx
|
||||||
vertical-align: middle
|
.detail-btn
|
||||||
flex-shrink: 0
|
background: #EDF5FF
|
||||||
box-sizing: border-box
|
border: 1px solid #3088FF
|
||||||
:deep(.uni-forms-item__label)
|
font-size: 28rpx
|
||||||
width: 194rpx !important
|
color: #3088FF
|
||||||
font-size: 28rpx;
|
.follow-btn
|
||||||
color: #404040;
|
background: #EEF9F3
|
||||||
|
border: 1px solid #00933E
|
||||||
.button-group {
|
font-size: 28rpx
|
||||||
display: flex;
|
color: #00933E
|
||||||
justify-content: space-between;
|
.recommend-btn
|
||||||
padding: 40rpx 20rpx 20rpx;
|
background: linear-gradient(92deg, #0DCCFF 0%, #4760FF 100%)
|
||||||
}
|
font-size: 28rpx
|
||||||
|
color: #FFFFFF
|
||||||
|
.button-group
|
||||||
|
position: fixed
|
||||||
|
bottom: 0
|
||||||
|
left: 0
|
||||||
|
width: 100%
|
||||||
|
height: 120rpx
|
||||||
|
background: #fff
|
||||||
|
.btns
|
||||||
|
height: 120rpx
|
||||||
|
width: 100%
|
||||||
|
line-height: 120px
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
justify-content: space-between
|
||||||
|
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1)
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
width: 45%;
|
width: 45%;
|
||||||
@@ -307,15 +582,16 @@ image
|
|||||||
background-color: #368BFF;
|
background-color: #368BFF;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
.choice-btn{
|
.float-btn{
|
||||||
width: 100%;
|
position: fixed;
|
||||||
height: 70rpx;
|
bottom: 100rpx;
|
||||||
font-size: 28rpx;
|
right: 50rpx;
|
||||||
border-radius: 8rpx;
|
background: #368BFF;
|
||||||
background-color: #368BFF;
|
width: 100rpx;
|
||||||
color: white;
|
height: 100rpx;
|
||||||
margin-left: 0;
|
border-radius: 50%;
|
||||||
|
line-height: 100rpx;
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
:deep(.uni-easyinput__content)
|
|
||||||
background: rgba(0,0,0,0) !important
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -176,11 +176,16 @@ export function uploadFile(tempFilePaths, loading = false) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function myRequest(url, data = {}, method = 'GET', port = 9100, headers = {}, loading = false) {
|
export function myRequest(url, data = {}, method = 'GET', port = 9100, headers = {}, loading = false,urlType='') {
|
||||||
let LCBaseUrl = config.LCBaseUrl
|
let LCBaseUrl = config.LCBaseUrl
|
||||||
if (port != 9100) {
|
if (port != 9100) {
|
||||||
LCBaseUrl = config.LCBaseUrlInner
|
LCBaseUrl = config.LCBaseUrlInner
|
||||||
}
|
}
|
||||||
|
if(urlType=='jobRecommend'){
|
||||||
|
LCBaseUrl=config.jobRecommendUrl
|
||||||
|
}else if(urlType=='policyRecommend'){
|
||||||
|
LCBaseUrl=config.policyRecommendUrl
|
||||||
|
}
|
||||||
const header = headers || {};
|
const header = headers || {};
|
||||||
// 上下文
|
// 上下文
|
||||||
// /jobfair-api/jobfair/public 招聘会
|
// /jobfair-api/jobfair/public 招聘会
|
||||||
|
|||||||
Reference in New Issue
Block a user