This commit is contained in:
francis_fh
2026-01-14 22:02:09 +08:00
3 changed files with 9 additions and 9 deletions

View File

@@ -93,7 +93,6 @@
{{ item.zcmc }}</view {{ item.zcmc }}</view
> >
<view class="infos"> <view class="infos">
<view v-if="item.zclx">{{ item.zclx }}</view>
<view v-if="item.zcLevel">{{ item.zcLevel }}</view> <view v-if="item.zcLevel">{{ item.zcLevel }}</view>
<view v-if="item.sourceUnit">{{ item.sourceUnit }}</view> <view v-if="item.sourceUnit">{{ item.sourceUnit }}</view>
</view> </view>

View File

@@ -1,7 +1,7 @@
<!-- <!--
* @Date: 2025-10-16 15:15:47 * @Date: 2025-10-16 15:15:47
* @LastEditors: shirlwang * @LastEditors: lip
* @LastEditTime: 2025-12-08 16:10:47 * @LastEditTime: 2026-01-14 21:33:18
--> -->
<template> <template>
<!-- @scroll="handleScroll" @scrolltolower="scrollBottom" --> <!-- @scroll="handleScroll" @scrolltolower="scrollBottom" -->
@@ -72,13 +72,11 @@
<image src="../../../packageRc/static/zcLeft.png"/> <image src="../../../packageRc/static/zcLeft.png"/>
{{item.zcmc}}</view> {{item.zcmc}}</view>
<view class="infos"> <view class="infos">
<view v-if="item.zclx">{{item.zclx}}</view>
<view v-if="item.zcLevel">{{item.zcLevel}}</view> <view v-if="item.zcLevel">{{item.zcLevel}}</view>
<view v-if="item.sourceUnit">{{item.sourceUnit}}</view> <view v-if="item.sourceUnit">{{item.sourceUnit}}</view>
</view> </view>
<view class="bottom-line"> <view class="bottom-line">
<view><uni-icons color="#A2A2A2" type="info" size="12"></uni-icons>发布日期:{{item.createTime}}</view> <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> </view>
</view> </view>
@@ -92,13 +90,13 @@ const { $api, navTo, vacanciesTo, formatTotal, config } = inject('globalFunction
import { getPolicyList } from '@/packageRc/apiRc/policy'; import { getPolicyList } from '@/packageRc/apiRc/policy';
let policyList = ref([]) let policyList = ref([])
function getPolicy() { function getPolicy() {
getPolicyList({pageNum: 1, pageSize: 10}).then(res => { getPolicyList({pageNum: 1, pageSize: 10,zclx:'1'}).then(res => {
policyList.value = res.rows policyList.value = res.rows
}) })
} }
function toPolicyList() { function toPolicyList() {
navTo(`/packageRc/pages/policy/policyList`) navTo(`/packageRc/pages/policy/policyList?zclx=1`)
} }
function toPolicyDetail(item) { function toPolicyDetail(item) {
navTo(`/packageRc/pages/policy/policyDetail?id=${item.id}`) navTo(`/packageRc/pages/policy/policyDetail?id=${item.id}`)

View File

@@ -22,7 +22,6 @@
<image src="../../../packageRc/static/zcLeft.png"/> <image src="../../../packageRc/static/zcLeft.png"/>
{{item.zcmc}}</view> {{item.zcmc}}</view>
<view class="infos"> <view class="infos">
<view v-if="item.zclx">{{item.zclx}}</view>
<view v-if="item.zcLevel">{{item.zcLevel}}</view> <view v-if="item.zcLevel">{{item.zcLevel}}</view>
<view v-if="item.sourceUnit">{{item.sourceUnit}}</view> <view v-if="item.sourceUnit">{{item.sourceUnit}}</view>
</view> </view>
@@ -67,6 +66,10 @@ import { getPolicyList } from "@/packageRc/apiRc/policy";
onLoad() { onLoad() {
this.getCheckData() this.getCheckData()
}, },
onLoad(options) {
this.queryParams.zclx = options.zclx
this.getCheckData(options.zclx);
},
onShow() { onShow() {
this.search(); this.search();
}, },
@@ -86,7 +89,7 @@ import { getPolicyList } from "@/packageRc/apiRc/policy";
} }
} }
}, },
async getCheckData() { async getCheckData(zclx) {
let workExperienceYears let workExperienceYears
await this.$getDict('qcjy_gznx').then(res => { await this.$getDict('qcjy_gznx').then(res => {
workExperienceYears = res.data workExperienceYears = res.data