From f6b5144daa89a063a9a3a45f8e7f07b76016dfc7 Mon Sep 17 00:00:00 2001
From: francis_fh <13935151924@163.com>
Date: Fri, 19 Dec 2025 15:58:25 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=B7=E4=BA=BA=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
packageA/pages/post/post.vue | 38 ++++-------------------
pages/index/components/index-one.vue | 3 +-
stores/useDictStore.js | 46 ++++++++++++++--------------
3 files changed, 31 insertions(+), 56 deletions(-)
diff --git a/packageA/pages/post/post.vue b/packageA/pages/post/post.vue
index 1426746..c57fecc 100644
--- a/packageA/pages/post/post.vue
+++ b/packageA/pages/post/post.vue
@@ -171,16 +171,15 @@
-
+
@@ -268,32 +267,7 @@ const raderData = ref({
const videoPalyerRef = ref(null);
const explainUrlRef = ref('');
-const applicants = ref([
- {
- createTime: null,
- userId: 1,
- name: '青岛测试账号331',
- age: '28', // 假设年龄有值
- sex: '1',
- birthDate: null,
- education: '4',
- politicalAffiliation: '',
- phone: '',
- avatar: '',
- salaryMin: '10000',
- salaryMax: '15000',
- area: '3',
- status: '0',
- loginIp: '',
- loginDate: null,
- jobTitleId: '157,233,373',
- experience: '3',
- isRecommend: 1,
- jobTitle: ['人力资源专员/助理', 'Java', '运维工程师'],
- applyDate: '2025-09-26',
- matchingDegree: 1,
- },
-]);
+// 申请人列表直接使用接口返回的applyUsers数组
onLoad((option) => {
console.log(option, 'option');
diff --git a/pages/index/components/index-one.vue b/pages/index/components/index-one.vue
index f811045..308c480 100644
--- a/pages/index/components/index-one.vue
+++ b/pages/index/components/index-one.vue
@@ -682,10 +682,11 @@ const goToCompanyInfo = () => {
onMounted(() => {
// 获取企业信息
getCompanyInfo();
-
+ // pageNull.value = 0;
// 监听退出登录事件,显示微信登录弹窗
uni.$on('showLoginModal', () => {
wxAuthLoginRef.value?.open();
+ pageNull.value = 0;
});
});
diff --git a/stores/useDictStore.js b/stores/useDictStore.js
index 5cf02ce..eeead1d 100644
--- a/stores/useDictStore.js
+++ b/stores/useDictStore.js
@@ -97,31 +97,31 @@ const useDictStore = defineStore("dict", () => {
return null
}
- function dictLabel(dictType, value) {
- if (state[dictType] && Array.isArray(state[dictType])) {
- for (let i = 0; i < state[dictType].length; i++) {
- let element = state[dictType][i];
- if (element.value === value) {
- return element.label
- }
- }
- }
- return ''
+ function dictLabel(dictType, value) {
+ if (state[dictType] && Array.isArray(state[dictType])) {
+ for (let i = 0; i < state[dictType].length; i++) {
+ let element = state[dictType][i];
+ if (element.value === value) {
+ return element.label
+ }
+ }
+ }
+ return ''
}
- function oneDictData(dictType, value) {
- if (!value) {
- return state[dictType]
- }
- if (state[dictType]) {
- for (let i = 0; i < state[dictType].length; i++) {
- let element = state[dictType][i];
- if (element.value === value) {
- return element
- }
- }
- }
- return null
+ function oneDictData(dictType, value) {
+ if (!value) {
+ return state[dictType]
+ }
+ if (state[dictType]) {
+ for (let i = 0; i < state[dictType].length; i++) {
+ let element = state[dictType][i];
+ if (element.value === value) {
+ return element
+ }
+ }
+ }
+ return null
}
function getTransformChildren(dictType, title = '', key = '') {