update
This commit is contained in:
@ -1,3 +1,6 @@
|
|||||||
|
import Image from "next/image";
|
||||||
|
import addressMap from "@/app/_assets/address_map.png";
|
||||||
|
|
||||||
const Page = () => {
|
const Page = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@ -17,6 +20,9 @@ const Page = () => {
|
|||||||
通信地址:安徽省合肥市高新区创新产业园D1 7楼
|
通信地址:安徽省合肥市高新区创新产业园D1 7楼
|
||||||
</p>
|
</p>
|
||||||
<p className={"my-1 indent-8 text-base"}>邮政编码:230022</p>
|
<p className={"my-1 indent-8 text-base"}>邮政编码:230022</p>
|
||||||
|
<p>
|
||||||
|
<Image className={"mx-auto"} src={addressMap} alt={""} />
|
||||||
|
</p>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
BIN
app/_assets/address_map.png
Normal file
BIN
app/_assets/address_map.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 KiB |
@ -154,7 +154,7 @@ const AnhuiSwiper = () => {
|
|||||||
className={"h-full w-full object-contain"}
|
className={"h-full w-full object-contain"}
|
||||||
src={`${
|
src={`${
|
||||||
process.env.NEXT_PUBLIC_CLIENT_ADMIN_BASE_URL
|
process.env.NEXT_PUBLIC_CLIENT_ADMIN_BASE_URL
|
||||||
}${el.path.replace(/^api/, "")}`}
|
}${el.path.match(/\/uploads\/.*/)?.[0]}`}
|
||||||
alt={""}
|
alt={""}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -27,7 +27,7 @@ const ArticleBlock = async ({
|
|||||||
linkPrefix: string;
|
linkPrefix: string;
|
||||||
showDate?: boolean;
|
showDate?: boolean;
|
||||||
}) => {
|
}) => {
|
||||||
const data = await listArticles({ cid: category });
|
const data = await listArticles({ cid: category, sort: "new" });
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
@ -72,14 +72,22 @@ const ArticleItem = ({ article }: { article: Article }) => {
|
|||||||
const { data } = useSWR(`/pc/articleDetail?id=${article.id}`, (key) =>
|
const { data } = useSWR(`/pc/articleDetail?id=${article.id}`, (key) =>
|
||||||
axiosClientInstance.get<never, BaseResponse<ArticleDetail>>(key),
|
axiosClientInstance.get<never, BaseResponse<ArticleDetail>>(key),
|
||||||
);
|
);
|
||||||
|
const cover_path = article.image?.match(/\/uploads\/.*/)?.[0];
|
||||||
return (
|
return (
|
||||||
<div className={"flex h-[108px] w-full px-2 py-4"}>
|
<div className={"flex h-[108px] w-full px-2 py-4"}>
|
||||||
<Link
|
<Link
|
||||||
className={"aspect-square"}
|
className={"aspect-square"}
|
||||||
href={`/branch-life-sketch/${article.id}`}
|
href={`/branch-life-sketch/${article.id}`}
|
||||||
>
|
>
|
||||||
<img alt={""} className={"h-full w-full"} src={article.image} />
|
<img
|
||||||
|
alt={""}
|
||||||
|
className={"h-full w-full"}
|
||||||
|
src={
|
||||||
|
cover_path
|
||||||
|
? `${process.env.NEXT_PUBLIC_CLIENT_ADMIN_BASE_URL}${cover_path}`
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<div className={"ml-1 w-0 flex-1"}>
|
<div className={"ml-1 w-0 flex-1"}>
|
||||||
|
@ -6,7 +6,9 @@ import AnhuiSwiper from "@/app/_components/AnhuiSwiper";
|
|||||||
import LatestNews from "@/app/_components/LatestNews";
|
import LatestNews from "@/app/_components/LatestNews";
|
||||||
import FriendLinks from "@/app/_components/FriendLinks";
|
import FriendLinks from "@/app/_components/FriendLinks";
|
||||||
import BranchLifeSketch from "@/app/_components/BranchLifeSketch";
|
import BranchLifeSketch from "@/app/_components/BranchLifeSketch";
|
||||||
|
import { ReactNode } from "react";
|
||||||
|
|
||||||
|
export const dynamic = "force-dynamic";
|
||||||
export default async function Home() {
|
export default async function Home() {
|
||||||
return (
|
return (
|
||||||
<main className={"mt-1 flex justify-between bg-[#f5fafe]"}>
|
<main className={"mt-1 flex justify-between bg-[#f5fafe]"}>
|
||||||
|
@ -5,11 +5,11 @@ const nextConfig = {
|
|||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
source: "/api/:path*",
|
source: "/api/:path*",
|
||||||
destination: "http://localhost:8084/api/:path*",
|
destination: "http://101.34.131.16:8086/api/:path*",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: "/admin-api/:path*",
|
source: "/admin-api/:path*",
|
||||||
destination: "http://localhost:8082/api/:path*",
|
destination: "http://101.34.131.16:8086/admin-api/:path*",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: [];
|
: [];
|
||||||
|
Reference in New Issue
Block a user