From 60155e9d9dd8925b50f112fe948b22029c583ee8 Mon Sep 17 00:00:00 2001 From: luorijun Date: Mon, 24 Mar 2025 11:45:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E9=A1=B5=E9=9D=A2=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E4=B8=8E=E6=80=A7=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(root)/@header/_client/product.tsx | 118 ++++------- src/app/(root)/@header/_client/solution.tsx | 7 +- src/app/(root)/@header/_server/product.tsx | 80 ++++++++ src/app/(root)/@header/page.tsx | 205 ++++++++++---------- src/app/(root)/layout.tsx | 2 +- src/app/(root)/product/page.tsx | 2 +- src/app/layout.tsx | 2 +- src/app/test/route.ts | 12 -- 8 files changed, 230 insertions(+), 198 deletions(-) create mode 100644 src/app/(root)/@header/_server/product.tsx delete mode 100644 src/app/test/route.ts diff --git a/src/app/(root)/@header/_client/product.tsx b/src/app/(root)/@header/_client/product.tsx index 472bc91..30f5d7a 100644 --- a/src/app/(root)/@header/_client/product.tsx +++ b/src/app/(root)/@header/_client/product.tsx @@ -1,11 +1,13 @@ 'use client' -import { useState, ReactNode } from "react" -import Wrap from "@/components/wrap" -import Image from "next/image" -import prod from '@/assets/header/product/prod.svg' -import custom from '@/assets/header/product/custom.svg' +import {useContext, useState} from 'react' +import Wrap from '@/components/wrap' +import Image from 'next/image' import anno from '@/assets/header/product/anno.svg' +import {Domestic, Oversea, Tab} from '@/app/(root)/@header/_server/product' +import Link from 'next/link' +import {merge} from '@/lib/utils' +import {HeaderContext} from '@/app/(root)/@header/page' type TabType = 'domestic' | 'oversea' @@ -22,68 +24,15 @@ export default function ProductMenu() {
{type === 'domestic' ? ( -
-
-

- {`产品`} - 代理产品 -

-
-

- 短效动态IP - - 折扣45% - -

-

- 全国300+城市级定位节点 -

-
-
-

- 长效静态IP - - 折扣45% - -

-

- IPI资源覆盖全国 -

-
-
-

- 固定IP - - 折扣45% - -

-
-
-
-

- 定制 - 业务定制 -

-
-

优质/企业/精选IP

-

- 超 1000 家企业共同信赖之选!大客户经理全 - 程 1 对 1 沟通,随时为您排忧解难,提供 24 - 小时不间断支持 -

-
-
-
+ ) : ( -
- -
+ ) }