添加页面
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="page">
|
||||
<view class="page-header">
|
||||
<u-icon class="back-icon" name="arrow-left" color="#fff" size="16" @click="goBack()"></u-icon>
|
||||
<view class="title">需求列表</view>
|
||||
<view style="width: 16rpx;"></view> <!-- 占位,保证左右对称 -->
|
||||
</view>
|
||||
<view class="page" style="background-image: url('../../../packageRc/static/pageBg.png');">
|
||||
<view class="input-outer-part"
|
||||
style="padding-top: 12rpx;margin-top: 16rpx;padding-bottom: 0;max-height: unset;">
|
||||
style="padding-top: 32rpx;padding-bottom: 0;max-height: unset;">
|
||||
<!-- <view class="inner"
|
||||
style="width: calc(100% + 64rpx);margin-left: -32rpx;height: 122rpx;position: relative;z-index: 2;">
|
||||
<PopupList :checkData="checkData" @searchCheck="search" ref="PopupList"
|
||||
@@ -15,9 +10,9 @@
|
||||
</view> -->
|
||||
<scroll-view :scroll-y="true" style="height: calc(100vh - 242rpx);position: relative;z-index: 1;"
|
||||
@scrolltolower="getBottomList">
|
||||
<u-swipe-action>
|
||||
<u-swipe-action-item @click="clickDelete(item)" v-for="(item, index) in tableData" :key="index"
|
||||
style="margin-bottom: 24rpx;border-radius: 16rpx;" :options="options1">
|
||||
<uni-swipe-action>
|
||||
<uni-swipe-action-item @click="clickDelete(item)" v-for="(item, index) in tableData" :key="index"
|
||||
style="margin-bottom: 24rpx;border-radius: 16rpx;" :right-options="options1">
|
||||
<view @click="goNeedsDetail(item)" class="job-item">
|
||||
<view class="title-line" v-if="queryParams.needsType==1">
|
||||
<view class="type-tag qz">求职需求</view>
|
||||
@@ -50,8 +45,8 @@
|
||||
<view style="font-size:12px;">左划删除需求</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-swipe-action-item>
|
||||
</u-swipe-action>
|
||||
</uni-swipe-action-item>
|
||||
</uni-swipe-action>
|
||||
<img v-if="!total&&!loading" src="https://rc.jinan.gov.cn/qcwjyH5/static/images/person/empty.png"
|
||||
style="width: 100%;display: block;margin: 0 auto;" />
|
||||
<view v-if="loading"><u-loading-icon></u-loading-icon>
|
||||
@@ -83,15 +78,15 @@
|
||||
import {
|
||||
listAssistService,
|
||||
delAssistService
|
||||
} from '@/api/apiRc/assistService'
|
||||
} from '@/apiRc/needs/assistService'
|
||||
import {
|
||||
listEntrepreneurshipService,
|
||||
delEntrepreneurshipService
|
||||
} from '@/api/apiRc/entrepreneurshipService'
|
||||
} from '@/apiRc/needs/entrepreneurshipService'
|
||||
import {
|
||||
listTrainService,
|
||||
delTrainService
|
||||
} from '@/api/apiRc/trainService'
|
||||
} from '@/apiRc/needs/trainService'
|
||||
import { listJobType } from "@/apiRc/jobType/index";
|
||||
|
||||
|
||||
@@ -104,6 +99,7 @@ import { listJobType } from "@/apiRc/jobType/index";
|
||||
PopupList,
|
||||
},
|
||||
onShow() {
|
||||
console.log('search',34224234)
|
||||
this.search();
|
||||
},
|
||||
data() {
|
||||
@@ -116,8 +112,8 @@ import { listJobType } from "@/apiRc/jobType/index";
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
needsType: 1,
|
||||
userId: '',
|
||||
needsType: 1,
|
||||
},
|
||||
jobTypeList:[],
|
||||
total: 0,
|
||||
@@ -134,27 +130,30 @@ import { listJobType } from "@/apiRc/jobType/index";
|
||||
onLoad({
|
||||
dictValue,userId
|
||||
}) {
|
||||
this.queryParams.needsType = dictValue
|
||||
dictValue ? this.queryParams.needsType = dictValue : ''
|
||||
this.queryParams.userId = userId
|
||||
this.getCheckData()
|
||||
this.getDicts('qcjy_xqlc').then(res => {
|
||||
this.$getDict('qcjy_xqlc').then(res => {
|
||||
this.currentStatusList = res.data;
|
||||
})
|
||||
this.workTypeRemoteMethod()
|
||||
this.getDicts('qcjy_zgzpgz').then(res => {
|
||||
this.$getDict('qcjy_zgzpgz').then(res => {
|
||||
this.salaryList = res.data;
|
||||
})
|
||||
console.log(this.$store.state.user, 234234234)
|
||||
getPersonBase(this.$store.state.user.userId).then(resp => {
|
||||
this.person = resp.data
|
||||
this.queryParams.personId = resp.data.id
|
||||
this.person = resp.data || {}
|
||||
// this.queryParams.personId = resp.data.id
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getJobWorkTypeName(data){
|
||||
if (data) {
|
||||
let arr = this.jobTypeList.filter((ele) => ele.id == data);
|
||||
|
||||
return arr[0].workTypeName;
|
||||
if(arr.length){
|
||||
return arr[0].workTypeName;
|
||||
}else{
|
||||
return '--'
|
||||
}
|
||||
}
|
||||
},
|
||||
workTypeRemoteMethod(key) {
|
||||
@@ -164,11 +163,13 @@ import { listJobType } from "@/apiRc/jobType/index";
|
||||
pageSize: 50,
|
||||
}).then((res) => {
|
||||
this.jobTypeList = res.rows;
|
||||
|
||||
});
|
||||
},
|
||||
goAddNeeds() {
|
||||
this.$tab.navigateTo(`/pages/needs/needDetail?activeType=${this.queryParams.needsType}&showTab=1`)
|
||||
uni.navigateTo({
|
||||
url: `/packageRc/pages/needs/needDetail?userId=${this.$store.state.user.userId}&type=1&name=${this.$store.state.user.nick}`,
|
||||
// url: `/packageRc/pages/needs/needDetail?activeType=${this.queryParams.needsType}&showTab=1`
|
||||
})
|
||||
},
|
||||
goBack() {
|
||||
uni.navigateBack()
|
||||
@@ -206,7 +207,7 @@ import { listJobType } from "@/apiRc/jobType/index";
|
||||
},
|
||||
goNeedsDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/needs/needDetail?id=${item.id}&type=${this.queryParams.needsType}&showTab=1`
|
||||
url: `/packageRc/pages/needs/needDetail?id=${item.id}&type=${this.queryParams.needsType}`
|
||||
})
|
||||
},
|
||||
getDictLabel(value, list) {
|
||||
@@ -219,30 +220,6 @@ import { listJobType } from "@/apiRc/jobType/index";
|
||||
}
|
||||
}
|
||||
},
|
||||
async getCheckData() {
|
||||
let workExperienceYears
|
||||
await this.getDicts('qcjy_gznx').then(res => {
|
||||
workExperienceYears = res.data
|
||||
})
|
||||
this.checkData = [
|
||||
// {
|
||||
// name: "需求类型",
|
||||
// type: "needsType",
|
||||
// data: [{dictLabel: '求职需求', dictValue: '1'},{dictLabel: '援助需求', dictValue: '2'},{dictLabel: '创业需求', dictValue: '3'},{dictLabel: '培训需求', dictValue: '4'},{dictLabel: '其他需求', dictValue: '5'}],
|
||||
// activeIndex: 0,
|
||||
// },
|
||||
// {
|
||||
// name: "工作经验",
|
||||
// type: "workExperienceYears",
|
||||
// data: [{
|
||||
// dictLabel: '全部',
|
||||
// dictValue: ''
|
||||
// }].concat(workExperienceYears),
|
||||
// activeIndex: 0,
|
||||
// },
|
||||
|
||||
];
|
||||
},
|
||||
popupSearch(queryParams) {
|
||||
queryParams.forEach((item, index) => {
|
||||
if (item.data[item.activeIndex].dictLabel == "全部") {
|
||||
@@ -285,6 +262,7 @@ import { listJobType } from "@/apiRc/jobType/index";
|
||||
},
|
||||
// 获取列表
|
||||
async getList() {
|
||||
console.log('getlist',this.queryParams.needsType, 234234234)
|
||||
this.loading = true;
|
||||
if (this.queryParams.needsType == 1) {
|
||||
this.queryParams.demandType = 1
|
||||
@@ -313,6 +291,7 @@ import { listJobType } from "@/apiRc/jobType/index";
|
||||
}
|
||||
},
|
||||
gettedData(res) {
|
||||
console.log('this.gettedData')
|
||||
if (res.code == 200) {
|
||||
if (res.rows.length < 10) {
|
||||
this.showMorePage = false;
|
||||
@@ -334,9 +313,9 @@ import { listJobType } from "@/apiRc/jobType/index";
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page {
|
||||
background-color: #eef1f5 !important;
|
||||
background-color: #f4f4f4 !important;
|
||||
height: 100vh;
|
||||
background-image: url('https://rc.jinan.gov.cn/qcwjyH5/static/images/top.png');
|
||||
// background-image: url('https://rc.jinan.gov.cn/qcwjyH5/static/images/top.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% auto;
|
||||
}
|
||||
@@ -361,9 +340,9 @@ import { listJobType } from "@/apiRc/jobType/index";
|
||||
}
|
||||
|
||||
.job-item {
|
||||
border-radius: 24rpx; /* 增大圆角,使界面更圆润 */
|
||||
padding: 32rpx;
|
||||
margin: 30rpx 30rpx 24rpx 30rpx; /* 添加左右30rpx边距 */
|
||||
border-radius: 16rpx; /* 增大圆角,使界面更圆润 */
|
||||
padding: 24rpx 32rpx;
|
||||
margin: 0 30rpx 24rpx 30rpx; /* 添加左右30rpx边距 */
|
||||
background-color: #FFFFFF; /* 设置白色背景,避免与底层背景重合 */
|
||||
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05); /* 添加轻微阴影增强层次感 */
|
||||
|
||||
@@ -407,6 +386,8 @@ import { listJobType } from "@/apiRc/jobType/index";
|
||||
color: #3D3D3D;
|
||||
width: calc(100% - 137rpx);
|
||||
overflow: hidden;
|
||||
padding-left: 24rpx;
|
||||
text-align: left;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
line-height: 40rpx;
|
||||
|
||||
Reference in New Issue
Block a user