diff --git a/src/components/layout/JobPage/index.tsx b/src/components/layout/JobPage/index.tsx
index 44ebc38..a033af7 100644
--- a/src/components/layout/JobPage/index.tsx
+++ b/src/components/layout/JobPage/index.tsx
@@ -1,3 +1,4 @@
+import { useStore } from "@/store";
import styles from "./index.module.css";
@@ -14,34 +15,46 @@ type Data = {
}
export default function JobPage({ data }: { data: Data }) {
+ const appConfig = useStore((s) => s.appConfig);
+ const {
+ jobType = "职位类别",
+ businessArea = "业务领域",
+ businessPlate = "所属板块",
+ recruitNumber = "招聘人数",
+ jobLocation = "工作地点",
+ jobDescription = "岗位描述",
+ requirement = "任职需求",
+ contact = "联系方式",
+ } = appConfig?.join?.campus.others || {};
+ const { back = "返回" } = appConfig?.__global__?.others
return (
+
}
diff --git a/src/pages/News/NewsPublic.tsx b/src/pages/News/NewsPublic.tsx
index 3731d65..77ddfde 100644
--- a/src/pages/News/NewsPublic.tsx
+++ b/src/pages/News/NewsPublic.tsx
@@ -8,6 +8,7 @@ import { Link } from "react-router-dom";
import { useStore } from "@/store";
import appApi from "@/api/app";
import ScrollReveal from "@/components/ScrollReveal";
+import { dateFormat } from "@/utils";
type NewsItem = {
id: number;
title: string;
@@ -33,10 +34,11 @@ export default function NewsPublic() {
const videoRefs = useRef<(HTMLVideoElement | null)[]>([]);
const [searchValue, setSearchValue] = useState("");
const handleSearch = useCallback(() => {
- appApi.getNewsList({ page, size, sort: "create_time DESC", title: searchValue,
+ appApi.getNewsList({
+ page, size, sort: "create_time DESC", title: searchValue,
category_id: categoryId,
- }).then((res) => {
- const data = res.data.items.map((item:any) => {
+ }).then((res) => {
+ const data = res.data.items.map((item: any) => {
return {
id: item.id,
title: item.title,
@@ -90,38 +92,40 @@ export default function NewsPublic() {
{localNewsList.map((item, index) => (
-
-
- {item.image ? (
-
- ) : (
-
diff --git a/src/utils/parsePageConfig.ts b/src/utils/parsePageConfig.ts
index 33cb2e6..7b5f04a 100644
--- a/src/utils/parsePageConfig.ts
+++ b/src/utils/parsePageConfig.ts
@@ -168,7 +168,15 @@ export function parsePageConfig(items: RawPageItem[]): {
} catch(err) {
console.error('parse topMenuConfig error', err)
}
- console.log('topMenuJson', topMenuJson)
+
+ const cityMapConfig = filtered.find((it) => it.tags === "city-map");
+ let cityMapJson: any = null
+ try {
+ cityMapJson = JSON.parse(cityMapConfig?.content ?? "[]");
+ } catch(err) {
+ console.error('parse cityMapConfig error', err)
+ }
+
// const zhNavItems = buildNavItems(menuItems, "ZH", parsedContentMap);
// const enNavItems = buildNavItems(menuItems, "EN", parsedContentMap);
@@ -202,6 +210,8 @@ export function parsePageConfig(items: RawPageItem[]): {
zhConfig.navItems = topMenuJson.ZH.items;
enConfig.navItems = topMenuJson.EN.items;
+ zhConfig.cityMap = cityMapJson.ZH;
+ enConfig.cityMap = cityMapJson.EN;
deepFallback(enConfig, zhConfig);
return { "zh-CN": zhConfig, "en-US": enConfig };