政策
This commit is contained in:
481
packageRc/pages/policy/policyDetail.vue
Normal file
481
packageRc/pages/policy/policyDetail.vue
Normal file
@@ -0,0 +1,481 @@
|
||||
<template>
|
||||
<view class="page" style="background-image: url('../../../packageRc/static/pageBg.png');">
|
||||
<scroll-view :scroll-y="true" style="height: 100vh;position: relative;z-index: 1;">
|
||||
<view class="input-outer-part"
|
||||
style="padding: 24rpx 32rpx 0;max-height: unset;">
|
||||
<view class="basic-info-content-main" v-if="!loading">
|
||||
<view class="part-item" style="padding-top: 20rpx;">
|
||||
<view style="display: flex" class="top-line">
|
||||
<view
|
||||
class="left"
|
||||
>
|
||||
<image src="/packageRc/static/cyzc.png" />
|
||||
</view>
|
||||
<view class="right">
|
||||
<view class="title-line">{{ policyDetail.zcmc }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tags">
|
||||
<view class="tag">政策:{{ policyDetail.zcLevel }}</view>
|
||||
</view>
|
||||
<view class="infos">
|
||||
<view class="info">发文单位:{{ policyDetail.sourceUnit }}</view>
|
||||
<view class="info">受理单位:{{ policyDetail.acceptingUnit }}</view>
|
||||
<view class="info">发布时间:{{ policyDetail.publishTime || '--' }}</view>
|
||||
<view class="info">浏览次数:{{ policyDetail.viewNum }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-ceontent-list">
|
||||
<!-- 人才政策 -->
|
||||
<view v-if="policyDetail.zcsylx == '1'">
|
||||
<view
|
||||
class="main-ceontent-list-item"
|
||||
v-if="policyDetail.applicableObjects"
|
||||
>
|
||||
<view class="main-ceontent-list-item-title">政策对象</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<span
|
||||
v-if="policyDetail.applicableObjects"
|
||||
v-html="policyDetail.applicableObjects"
|
||||
></span>
|
||||
<span v-else> -- </span>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="main-ceontent-list-item"
|
||||
v-if="policyDetail.policyExplanation"
|
||||
>
|
||||
<view class="main-ceontent-list-item-title">政策说明</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<span
|
||||
v-if="policyDetail.policyExplanation"
|
||||
v-html="policyDetail.policyExplanation"
|
||||
></span>
|
||||
<span v-else> -- </span>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="main-ceontent-list-item"
|
||||
v-if="policyDetail.applyCondition"
|
||||
>
|
||||
<view class="main-ceontent-list-item-title">申报条件</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<span
|
||||
v-if="policyDetail.applyCondition"
|
||||
v-html="policyDetail.applyCondition"
|
||||
></span>
|
||||
<span v-else> -- </span>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-ceontent-list-item" v-if="policyDetail.zczc">
|
||||
<view class="main-ceontent-list-item-title">政策内容</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<span v-if="policyDetail.zczc" v-html="policyDetail.zczc"></span>
|
||||
<span v-else> -- </span>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-ceontent-list-item" v-if="policyDetail.validity">
|
||||
<view class="main-ceontent-list-item-title">政策申报时间</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
{{ policyDetail.validity || "--" }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="main-ceontent-list-item" v-if="policyDetail.zcsylx == '2'">
|
||||
<view class="main-ceontent-list-item-title">政策文件</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<span v-if="policyDetail.zcwj" v-html="policyDetail.zcwj"></span>
|
||||
<span v-else> -- </span>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="main-ceontent-list-item" v-if="policyDetail.zcsylx == '2'">
|
||||
<view class="main-ceontent-list-item-title">补贴标准</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<span v-if="policyDetail.btbz" v-html="policyDetail.btbz"></span>
|
||||
<span v-else> -- </span>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="main-ceontent-list-item" v-if="policyDetail.zcsylx == '2'">
|
||||
<view class="main-ceontent-list-item-title">经办渠道</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<span v-if="policyDetail.jbqd" v-html="policyDetail.jbqd"></span>
|
||||
<span v-else> -- </span>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="main-ceontent-list-item" v-if="policyDetail.zcsylx == '2'">
|
||||
<view class="main-ceontent-list-item-title">申报条件</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<span
|
||||
v-if="policyDetail.applyCondition"
|
||||
v-html="policyDetail.applyCondition"
|
||||
></span>
|
||||
<span v-else> -- </span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 社保政策 -->
|
||||
<view class="main-ceontent-list" v-if="policyDetail.zcsylx == '3'">
|
||||
<view class="main-ceontent-list-item">
|
||||
<view class="main-ceontent-list-item-title">政策内容</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<span v-if="policyDetail.zczc" v-html="policyDetail.zczc"></span>
|
||||
<span v-else> -- </span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="main-ceontent-list">
|
||||
<view class="main-ceontent-list-item" v-if="policyDetail.sourceUnit">
|
||||
<view class="main-ceontent-list-item-title">发文单位</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
{{ policyDetail.sourceUnit || "--" }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-ceontent-list-item" v-if="policyDetail.publishTime">
|
||||
<view class="main-ceontent-list-item-title">发文时间</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
{{ policyDetail.publishTime || "--" }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-ceontent-list-item" v-if="policyDetail.acceptingUnit">
|
||||
<view class="main-ceontent-list-item-title">受理单位</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
{{ policyDetail.acceptingUnit || "--" }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-ceontent-list-item" v-if="policyDetail.phone">
|
||||
<view class="main-ceontent-list-item-title">咨询电话</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<span v-if="policyDetail.phone" v-html="policyDetail.phone"></span>
|
||||
<span v-else> -- </span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="main-ceontent-list"
|
||||
v-if="
|
||||
policyDetail.applyGuide && policyDetail.zcsylx == '2' && policyDetail.sqcl
|
||||
"
|
||||
>
|
||||
<view class="main-ceontent-list-item" v-if="policyDetail.applyGuide">
|
||||
<view class="main-ceontent-list-item-title">申报指南</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<span
|
||||
v-if="policyDetail.applyGuide"
|
||||
v-html="policyDetail.applyGuide"
|
||||
></span>
|
||||
<span v-else> -- </span>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view
|
||||
class="main-ceontent-list-item"
|
||||
v-if="policyDetail.zcsylx == '1' && policyDetail.practicable"
|
||||
>
|
||||
<view class="main-ceontent-list-item-title">申报流程</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
{{ policyDetail.practicable || "--" }}
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="main-ceontent-list-item" v-if="policyDetail.zcsylx == '2'">
|
||||
<view class="main-ceontent-list-item-title">申请材料</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<span v-if="policyDetail.sqcl" v-html="policyDetail.sqcl"></span>
|
||||
<span v-else> -- </span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="main-ceontent-list" v-if="policyDetail.fileList">
|
||||
<view class="main-ceontent-list-item">
|
||||
<view class="main-ceontent-list-item-title">文件列表</view>
|
||||
<view class="main-ceontent-list-item-content">
|
||||
<el-table
|
||||
ref="fileTable"
|
||||
v-loading="fileTableLoading"
|
||||
:data="fileTableData"
|
||||
highlight-current-row
|
||||
style="width: 100%"
|
||||
header-row-class-name="header_class"
|
||||
border
|
||||
>
|
||||
<el-table-column
|
||||
label="序号"
|
||||
type="index"
|
||||
align="center"
|
||||
width="100"
|
||||
/>
|
||||
<el-table-column
|
||||
prop="fileName"
|
||||
label="文件名称"
|
||||
align="center"
|
||||
show-overflow-tooltip=""
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
link
|
||||
type="primary"
|
||||
@click="downLoadFile(scope.row)"
|
||||
>
|
||||
{{ scope.row.fileName }}
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="operation"
|
||||
label="操作"
|
||||
align="center"
|
||||
width="200"
|
||||
show-overflow-tooltip
|
||||
>
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
link
|
||||
@click.stop="downLoadFile(scope.row)"
|
||||
>
|
||||
下载
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import { getPolicyDetail } from "@/apiRc/policy";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
policyDetail: {},
|
||||
loading: false,
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.getPolicy(options.id);
|
||||
},
|
||||
onShow() {
|
||||
},
|
||||
methods: {
|
||||
getPolicy(id) {
|
||||
getPolicyDetail({id}).then(res => {
|
||||
this.policyDetail = res.data
|
||||
})
|
||||
},
|
||||
getDictLabel(value, list) {
|
||||
if (list) {
|
||||
let arr = list.filter(ele => ele.dictValue == value)
|
||||
if (arr.length) {
|
||||
return arr[0].dictLabel
|
||||
} else {
|
||||
return '--'
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page {
|
||||
background-color: #f4f4f4 !important;
|
||||
height: 100vh;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% auto;
|
||||
}
|
||||
|
||||
|
||||
.basic-info-content-main {
|
||||
margin: 0 auto;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.part-item{
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
padding: 40rpx 32rpx;
|
||||
margin-bottom: 32rpx;
|
||||
}
|
||||
|
||||
.top-line {
|
||||
display: flex;
|
||||
margin-bottom: 24rpx;
|
||||
align-items: center;
|
||||
.left {
|
||||
margin-right: 24rpx;
|
||||
width: 86rpx;
|
||||
color: #fff;
|
||||
font-size: 22rpx;
|
||||
height: 86rpx;
|
||||
border-radius: 8rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.text {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.right {
|
||||
width: calc(100% - 110rpx);
|
||||
.title-line {
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #3d3d3d;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
}
|
||||
.infos{
|
||||
margin-top: 16rpx;
|
||||
font-size: 24rpx;
|
||||
.info{
|
||||
margin-top: 5rpx;
|
||||
color: #3D3D3D;
|
||||
}
|
||||
}
|
||||
.part-title{
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
margin-bottom: 32rpx;
|
||||
}
|
||||
.part-info{
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.part-inline{
|
||||
margin-bottom: 32rpx;
|
||||
display: flex;
|
||||
.part-title{
|
||||
width: 180rpx;
|
||||
text-align: right;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.part-info{
|
||||
margin-left: 20rpx;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
}
|
||||
}
|
||||
.notice-list {
|
||||
.notice-item {
|
||||
background-color: #fff;
|
||||
color: #333;
|
||||
// box-shadow: 0 0 10px #e4e4e4;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 36rpx;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
|
||||
.from-title {
|
||||
font-size: 24rpx;
|
||||
color: #a9b4c3;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.notice-content {
|
||||
min-height: 800rpx;
|
||||
font-size: 24rpx;
|
||||
text-align: justify;
|
||||
padding-top: 20rpx;
|
||||
border-top: 1rpx solid #d8d8d8;
|
||||
margin-top: 14rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.enclosure-list {
|
||||
margin: 30rpx 0;
|
||||
padding: 0 40rpx;
|
||||
|
||||
.enclosure-item {
|
||||
font-size: 24rpx;
|
||||
color: #006cd9;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.main-ceontent-list {
|
||||
width: 100%;
|
||||
border-radius: 4px;
|
||||
min-height: 80rpx;
|
||||
padding: 32rpx;
|
||||
margin-top: 24rpx;
|
||||
background-color: #fff;
|
||||
box-sizing: border-box;
|
||||
|
||||
.main-ceontent-list-top {
|
||||
font-family: Alimama ShuHeiTi;
|
||||
font-size: 28rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.main-ceontent-list-title {
|
||||
font-family: Source Han Sans;
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
line-height: normal;
|
||||
text-align: center;
|
||||
font-feature-settings: "kern" on;
|
||||
color: #3d3d3d;
|
||||
margin-top: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.main-ceontent-list-item {
|
||||
margin-bottom: 24rpx;
|
||||
|
||||
.main-ceontent-list-item-title {
|
||||
font-family: Source Han Sans;
|
||||
font-size: 28rpx;
|
||||
font-weight: bold;
|
||||
line-height: 40rpx;
|
||||
letter-spacing: 0.04em;
|
||||
margin-bottom: 16rpx;
|
||||
|
||||
font-variation-settings: "opsz" auto;
|
||||
font-feature-settings: "kern" on;
|
||||
color: #055ed9;
|
||||
}
|
||||
|
||||
.main-ceontent-list-item-content {
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
gap: 10px;
|
||||
font-family: Source Han Sans;
|
||||
font-size: 28rpx;
|
||||
font-weight: normal;
|
||||
line-height: 40rpx;
|
||||
letter-spacing: 0.04em;
|
||||
|
||||
font-variation-settings: "opsz" auto;
|
||||
font-feature-settings: "kern" on;
|
||||
color: #000000;
|
||||
background: linear-gradient(
|
||||
270deg,
|
||||
rgba(222, 233, 245, 0.32) 0%,
|
||||
#dee9f5 100%
|
||||
);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
539
packageRc/pages/policy/policyList.vue
Normal file
539
packageRc/pages/policy/policyList.vue
Normal file
@@ -0,0 +1,539 @@
|
||||
<template>
|
||||
<view class="page" style="background-image: url('../../../packageRc/static/pageBg.png');">
|
||||
<view class="input-outer-part"
|
||||
style="padding: 24rpx 32rpx 0;max-height: unset;">
|
||||
<view class="search-line">
|
||||
<input style="width: 100%;" placeholder="请输入政策名称进行搜索" v-model="queryParams.searchValue" border="none" />
|
||||
<img src="https://rc.jinan.gov.cn/qcwjyH5/static/images/person/search.png" class="search-icon" @click="search()" />
|
||||
</view>
|
||||
<!-- <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" @popupSearch="popupSearch" />
|
||||
</view> -->
|
||||
<view v-if="total" style="position: relative;padding: 32rpx 0;color: #000;">
|
||||
<!-- <view v-if="total" style="position: relative;padding-bottom: 16px;color: #000;"> -->
|
||||
<text>共 {{ total }} 条</text>
|
||||
</view>
|
||||
<!-- <scroll-view :scroll-y="true" style="height: calc(100vh - 342rpx);position: relative;z-index: 1;" -->
|
||||
<scroll-view :scroll-y="true" style="height: calc(100vh - 202rpx);position: relative;z-index: 1;"
|
||||
@scrolltolower="getBottomList">
|
||||
<view style="margin-bottom: 24rpx;border-radius: 16rpx;" class="policy-list" v-for="(item, index) in tableData" :key="index" @click="goPolicyDetail(item)">
|
||||
<view class="sign">推荐</view>
|
||||
<view class="title">
|
||||
<image src="../../../packageRc/static/zcLeft.png"/>
|
||||
{{item.zcmc}}</view>
|
||||
<view class="infos">
|
||||
<view v-if="item.zclx">{{item.zclx}}</view>
|
||||
<view v-if="item.zcLevel">{{item.zcLevel}}</view>
|
||||
<view v-if="item.sourceUnit">{{item.sourceUnit}}</view>
|
||||
</view>
|
||||
<view class="bottom-line">
|
||||
<view><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>发布日期:{{item.createTime}}</view>
|
||||
<view>浏览数<text style="color: #6AA7E8">{{item.viewNum}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding-bottom: 24rpx;">
|
||||
<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>
|
||||
<view style="text-align: center;color: #8E8E8E;font-size: 24rpx;">加载中~</view>
|
||||
</view>
|
||||
<view v-else-if="showMorePage" style="text-align: center;color: #1A62CE;font-size: 24rpx;">加载更多
|
||||
</view>
|
||||
<view style="text-align: center;color: #8E8E8E;font-size: 24rpx;" v-else>没有更多数据了~</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import PopupList from "/packageRc/components/PopupLists.vue";
|
||||
import { getPolicyList } from "../../../apiRc/policy";
|
||||
export default {
|
||||
components: {
|
||||
PopupList,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
checkData: [],
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
total: 0,
|
||||
showMorePage: true,
|
||||
tableData: [],
|
||||
loading: false,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getCheckData()
|
||||
},
|
||||
onShow() {
|
||||
this.search();
|
||||
},
|
||||
methods: {
|
||||
goPolicyDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: `/packageRc/pages/policy/policyDetail?id=${item.id}`
|
||||
})
|
||||
},
|
||||
getDictLabel(value, list) {
|
||||
if (list) {
|
||||
let arr = list.filter(ele => ele.dictValue == value)
|
||||
if (arr.length) {
|
||||
return arr[0].dictLabel
|
||||
} else {
|
||||
return '--'
|
||||
}
|
||||
}
|
||||
},
|
||||
async getCheckData() {
|
||||
let workExperienceYears
|
||||
await this.$getDict('qcjy_gznx').then(res => {
|
||||
workExperienceYears = res.data
|
||||
})
|
||||
await this.$getDict('qcjy_xqlc').then(res => {
|
||||
this.currentStatusList = res.data;
|
||||
console.log(res.data)
|
||||
})
|
||||
this.checkData = [
|
||||
{
|
||||
name: "需求类型",
|
||||
type: "demandType",
|
||||
data: [{dictLabel: '求职需求', dictValue: '1'},{dictLabel: '创业需求', dictValue: '3'},{dictLabel: '培训需求', dictValue: '4'},{dictLabel: '其他需求', dictValue: '5'}],
|
||||
activeIndex: 0,
|
||||
},
|
||||
{
|
||||
name: "需求状态",
|
||||
type: "currentStatus",
|
||||
data: [{
|
||||
dictLabel: '全部',
|
||||
dictValue: ''
|
||||
}].concat(this.currentStatusList),
|
||||
activeIndex: 0,
|
||||
},
|
||||
// {
|
||||
// name: "工作经验",
|
||||
// type: "workExperienceYears",
|
||||
// data: [{dictLabel: '全部', dictValue: ''}].concat(workExperienceYears),
|
||||
// activeIndex: 0,
|
||||
// },
|
||||
|
||||
];
|
||||
},
|
||||
popupSearch(queryParams) {
|
||||
queryParams.forEach((item, index) => {
|
||||
if (item.data[item.activeIndex].dictLabel == "全部") {
|
||||
this.queryParams[item.type] = "";
|
||||
} else {
|
||||
this.queryParams[item.type] = item.data[item.activeIndex].dictValue;
|
||||
}
|
||||
});
|
||||
this.search()
|
||||
},
|
||||
search() {
|
||||
this.showMorePage = true;
|
||||
this.queryParams.pageNum = 1;
|
||||
this.queryParams.pageSize = 10;
|
||||
this.tableData = [];
|
||||
this.total = 0;
|
||||
this.getList();
|
||||
},
|
||||
// 触底加载
|
||||
getBottomList() {
|
||||
if (
|
||||
this.queryParams.pageNum * this.queryParams.pageSize >=
|
||||
this.total
|
||||
) {
|
||||
this.showMorePage = false;
|
||||
} else if (
|
||||
this.queryParams.pageNum * this.queryParams.pageSize <
|
||||
this.total
|
||||
) {
|
||||
this.queryParams.pageNum++;
|
||||
this.getList();
|
||||
if (
|
||||
this.queryParams.pageNum * this.queryParams.pageSize >=
|
||||
this.total
|
||||
) {
|
||||
this.showMorePage = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
// 获取列表
|
||||
async getList() {
|
||||
this.loading = true;
|
||||
getPolicyList(this.queryParams).then((res) => {
|
||||
this.gettedData(res)
|
||||
});
|
||||
},
|
||||
gettedData(res) {
|
||||
if (res.code == 200) {
|
||||
if (res.rows.length < 10) {
|
||||
this.showMorePage = false;
|
||||
}
|
||||
this.loading = false;
|
||||
this.tableData = this.tableData.concat(res.rows);
|
||||
this.total = res.total;
|
||||
} else {
|
||||
this.loading = false;
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: "none",
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page {
|
||||
background-color: #f4f4f4 !important;
|
||||
height: 100vh;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% auto;
|
||||
}
|
||||
|
||||
.search-line {
|
||||
border-radius: 32px;
|
||||
background: #FFFFFF;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #107AFD;
|
||||
height: 64rpx;
|
||||
border-radius: 32rpx;
|
||||
padding: 0 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
margin-top: 24rpx;
|
||||
|
||||
.search-icon {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.job-item {
|
||||
position: relative;
|
||||
margin-bottom: 24rpx;
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
.item_btn{
|
||||
height: 100rpx;
|
||||
border-top: 1px solid #e3e8ee;
|
||||
}
|
||||
.line{
|
||||
position: absolute;
|
||||
right: 50%;
|
||||
bottom: 20rpx;
|
||||
width: 1px;
|
||||
height: 60rpx;
|
||||
background-color: #e3e8ee;
|
||||
}
|
||||
.status-card {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
border-radius: 0 16rpx 0 16rpx;
|
||||
width: 160rpx;
|
||||
line-height: 40rpx;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
background: #B2C0D1;
|
||||
border: 1px solid #9BA9B9;
|
||||
font-size: 24rpx;
|
||||
|
||||
&.in {
|
||||
background: #29D297;
|
||||
border: 1px solid #1BBA83;
|
||||
}
|
||||
|
||||
&.out {
|
||||
background: #ECB83D;
|
||||
border: 1px solid #D7892B;
|
||||
}
|
||||
|
||||
&.far {
|
||||
background: #EC7737;
|
||||
border: 1px solid #C24F1A;
|
||||
}
|
||||
}
|
||||
|
||||
.top-container {
|
||||
padding: 32rpx;
|
||||
|
||||
// margin-bottom: 24rpx;
|
||||
.title-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
margin-bottom: 16rpx;
|
||||
|
||||
.type-tag {
|
||||
line-height: 40rpx;
|
||||
width: 128rpx;
|
||||
font-size: 24rpx;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
|
||||
&.qz {
|
||||
background: #28CB5E;
|
||||
}
|
||||
|
||||
&.yz {
|
||||
background: #DD6728;
|
||||
}
|
||||
|
||||
&.cy {
|
||||
background: #23B5C5;
|
||||
}
|
||||
|
||||
&.px {
|
||||
background: #DDA728;
|
||||
}
|
||||
|
||||
&.qt {
|
||||
background: #2870DD;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
color: #3D3D3D;
|
||||
width: calc(100% - 137rpx);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.salary {
|
||||
width: 33%;
|
||||
color: #FA6553;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
text-align: right
|
||||
}
|
||||
}
|
||||
|
||||
.info {
|
||||
color: #3D3D3D;
|
||||
margin-bottom: 7rpx;
|
||||
font-size: 28rpx;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
text {
|
||||
color: #8E8E8E;
|
||||
}
|
||||
|
||||
.not {
|
||||
color: #EC7737;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.ing {
|
||||
color: #ECB83D;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.finish {
|
||||
color: #21C88D;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.function-btn {
|
||||
color: #BF5818;
|
||||
border-top: 1px solid #E2E8EF;
|
||||
padding-bottom: 6rpx;
|
||||
line-height: 90rpx;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.self-form {
|
||||
padding: 32rpx;
|
||||
|
||||
.bordered {
|
||||
border: 1rpx solid #dadbde;
|
||||
padding: 9px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.button-area {
|
||||
padding: 24rpx 32rpx 68rpx;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
border-radius: 16px 16px 0px 0px;
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
||||
|
||||
.btn {
|
||||
line-height: 72rpx;
|
||||
width: 176rpx;
|
||||
margin-right: 16rpx;
|
||||
font-size: 28rpx;
|
||||
border: 1px solid #B8C5D4;
|
||||
color: #282828;
|
||||
text-align: center;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
.reset {
|
||||
background: #DCE2E9;
|
||||
}
|
||||
|
||||
.save {
|
||||
background: linear-gradient(103deg, #1D64CF 0%, #1590D4 99%);
|
||||
color: #fff;
|
||||
border: 0;
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.noValue {
|
||||
color: rgb(192, 196, 204);
|
||||
}
|
||||
|
||||
.addNeeds {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 150rpx;
|
||||
width: 150rpx;
|
||||
overflow: hidden;
|
||||
z-index: 10;
|
||||
border-radius: 44rpx;
|
||||
border-radius: 75rpx;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.df_flex{
|
||||
display: flex;
|
||||
view{
|
||||
flex-grow: 1;
|
||||
text-align: center;
|
||||
color: #4c6efb;
|
||||
}
|
||||
}
|
||||
.df_flex_1{
|
||||
flex: 1;
|
||||
}
|
||||
.df__direction_column {
|
||||
flex-direction: column;
|
||||
}
|
||||
.df_align_center{
|
||||
align-items: center;
|
||||
}
|
||||
.df_justify_center{
|
||||
justify-content: center;
|
||||
}
|
||||
.df_content_between{
|
||||
justify-content: space-between;
|
||||
}
|
||||
.df_shrink_0{
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* 日期选择器样式 */
|
||||
.date-picker-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
padding: 0 24rpx;
|
||||
height: 64rpx;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 4px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
// .date-picker-wrapper.noValue {
|
||||
// background-color: #f9f9f9;
|
||||
// }
|
||||
|
||||
.date-value {
|
||||
color: #333;
|
||||
width: 100%
|
||||
}
|
||||
|
||||
.policy-list{
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
color: #333333;
|
||||
border-radius: 24rpx;
|
||||
background: #FFFFFF;
|
||||
padding: 32rpx;
|
||||
margin-bottom: 24rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
.sign{
|
||||
position: absolute;
|
||||
font-size: 24rpx;
|
||||
right: 0;
|
||||
top: 0;
|
||||
padding: 4rpx 14rpx;
|
||||
border: 1rpx solid #EC4827;
|
||||
background: rgba(227, 79, 49, 0.09);
|
||||
border-top-right-radius: 24rpx;
|
||||
border-bottom-left-radius: 24rpx;
|
||||
color: #EC4827;
|
||||
}
|
||||
.top-line{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 24rpx;
|
||||
color: #A2A2A2;
|
||||
margin-bottom: 16rpx;
|
||||
.salary{
|
||||
font-size: 32rpx;
|
||||
color: #4C6EFB;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.title{
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: #282828;
|
||||
margin-bottom: 16rpx;
|
||||
display: flex;
|
||||
image{
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
margin-right: 11rpx;
|
||||
}
|
||||
}
|
||||
.infos{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
font-size: 24rpx;
|
||||
margin-bottom: 16rpx;
|
||||
line-height: 42rpx;
|
||||
view{
|
||||
padding: 0 16rpx;
|
||||
margin-right: 10rpx;
|
||||
background: #F2F2F2;
|
||||
}
|
||||
}
|
||||
.bottom-line{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 24rpx;
|
||||
color: #A2A2A2;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user