|
@@ -1,16 +1,18 @@
|
|
|
"use server";
|
|
|
-import { getServicesApi } from "@/api/customservice";
|
|
|
+import { getLoginAdApi, getServicesApi } from "@/api/customservice";
|
|
|
import { Link } from "@/i18n/routing";
|
|
|
import { getTranslations } from "next-intl/server";
|
|
|
import Form from "../components/Form";
|
|
|
import GoogleCom from "../components/GoogleCom";
|
|
|
+import Adbox from "./adbox";
|
|
|
import "./index.scss";
|
|
|
|
|
|
const Login = async () => {
|
|
|
const t = await getTranslations("LoginPage");
|
|
|
const services = await getServicesApi();
|
|
|
+ const adInfo = await getLoginAdApi();
|
|
|
const defaultService = services?.filter((item) => item.register_show === 1);
|
|
|
-
|
|
|
+ console.log(1122, adInfo);
|
|
|
return (
|
|
|
<>
|
|
|
<GoogleCom />
|
|
@@ -20,6 +22,7 @@ const Login = async () => {
|
|
|
<span className={"iconfont icon-a-18 text-[red]"}></span>
|
|
|
</div>
|
|
|
|
|
|
+ <Adbox data={adInfo}></Adbox>
|
|
|
<div
|
|
|
className={`absolute bottom-[0.84rem] right-[0.12rem] z-50 flex w-[0.6944rem] flex-col items-center justify-center`}
|
|
|
>
|