Commit 2559ee11 by 肖康

分类结果页

parent d0be8401
Showing with 894 additions and 548 deletions
......@@ -18,8 +18,10 @@
"antd": "^5.18.3",
"axios": "^1.7.2",
"react": "^18.3.1",
"react-activation": "^0.12.4",
"react-dom": "^18.3.1",
"react-helmet": "^6.1.0",
"react-keep-alive": "^2.5.2",
"react-router-dom": "^6.24.0",
"react-scripts": "5.0.1",
"typescript": "^4.9.5",
......@@ -4657,6 +4659,12 @@
"pretty-format": "^27.0.0"
}
},
"node_modules/@types/js-md5": {
"version": "0.4.3",
"resolved": "https://registry.npmmirror.com/@types/js-md5/-/js-md5-0.4.3.tgz",
"integrity": "sha512-BIga/WEqTi35ccnGysOuO4RmwVnpajv9oDB/sDQSY2b7/Ac7RyYR30bv7otZwByMvOJV9Vqq6/O1DFAnOzE4Pg==",
"license": "MIT"
},
"node_modules/@types/json-schema": {
"version": "7.0.15",
"resolved": "https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz",
......@@ -9867,6 +9875,12 @@
"integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
"license": "MIT"
},
"node_modules/gud": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/gud/-/gud-1.0.0.tgz",
"integrity": "sha512-zGEOVKFM5sVPPrYs7J5/hYEw2Pof8KCyOwyhG8sAF26mCAeUFAcYPu1mwB7hhpIP29zOIBaDqwuHdLp0jvZXjw==",
"license": "MIT"
},
"node_modules/gzip-size": {
"version": "6.0.0",
"resolved": "https://registry.npmmirror.com/gzip-size/-/gzip-size-6.0.0.tgz",
......@@ -9984,6 +9998,21 @@
"he": "bin/he"
}
},
"node_modules/hoist-non-react-statics": {
"version": "3.3.2",
"resolved": "https://registry.npmmirror.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
"integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",
"license": "BSD-3-Clause",
"dependencies": {
"react-is": "^16.7.0"
}
},
"node_modules/hoist-non-react-statics/node_modules/react-is": {
"version": "16.13.1",
"resolved": "https://registry.npmmirror.com/react-is/-/react-is-16.13.1.tgz",
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
"license": "MIT"
},
"node_modules/hoopy": {
"version": "0.1.4",
"resolved": "https://registry.npmmirror.com/hoopy/-/hoopy-0.1.4.tgz",
......@@ -13201,6 +13230,12 @@
"jiti": "bin/jiti.js"
}
},
"node_modules/js-md5": {
"version": "0.7.3",
"resolved": "https://registry.npmmirror.com/js-md5/-/js-md5-0.7.3.tgz",
"integrity": "sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ==",
"license": "MIT"
},
"node_modules/js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz",
......@@ -16736,6 +16771,35 @@
"node": ">=0.10.0"
}
},
"node_modules/react-activation": {
"version": "0.12.4",
"resolved": "https://registry.npmmirror.com/react-activation/-/react-activation-0.12.4.tgz",
"integrity": "sha512-6jJtnUnQBKCrWgvHkzCJP3QZAtthnhDuoPa5LJnj1+1TxS5qkh3Z74zdNZY40wMbkTsLbo6CYoS51Fx/bTM3/w==",
"license": "ISC",
"dependencies": {
"create-react-context": "^0.3.0",
"hoist-non-react-statics": "^3.3.0",
"react-node-key": "^0.4.0",
"szfe-tools": "^0.0.0-beta.7"
},
"peerDependencies": {
"react": ">=16"
}
},
"node_modules/react-activation/node_modules/create-react-context": {
"version": "0.3.0",
"resolved": "https://registry.npmmirror.com/create-react-context/-/create-react-context-0.3.0.tgz",
"integrity": "sha512-dNldIoSuNSvlTJ7slIKC/ZFGKexBMBrrcc+TTe1NdmROnaASuLPvqpwj9v4XS4uXZ8+YPu0sNmShX2rXI5LNsw==",
"license": "MIT",
"dependencies": {
"gud": "^1.0.0",
"warning": "^4.0.3"
},
"peerDependencies": {
"prop-types": "^15.0.0",
"react": "^0.14.0 || ^15.0.0 || ^16.0.0"
}
},
"node_modules/react-app-polyfill": {
"version": "3.0.0",
"resolved": "https://registry.npmmirror.com/react-app-polyfill/-/react-app-polyfill-3.0.0.tgz",
......@@ -16992,6 +17056,48 @@
"integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",
"license": "MIT"
},
"node_modules/react-keep-alive": {
"version": "2.5.2",
"resolved": "https://registry.npmmirror.com/react-keep-alive/-/react-keep-alive-2.5.2.tgz",
"integrity": "sha512-CoEsY5xE6rT31Z4p4UGZ/Crp0nZN+CY61ZflKzBGKB3D315jQMe2l8G5OrSEJ86V4stua7lSeFDIeG3DCuY2Rg==",
"license": "MIT",
"dependencies": {
"@types/js-md5": "^0.4.2",
"hoist-non-react-statics": "^3.3.0",
"js-md5": "^0.7.3"
},
"peerDependencies": {
"react": ">=16.3.0",
"react-dom": ">=16.3.0",
"react-router-dom": ">=5.0.0"
}
},
"node_modules/react-node-key": {
"version": "0.4.0",
"resolved": "https://registry.npmmirror.com/react-node-key/-/react-node-key-0.4.0.tgz",
"integrity": "sha512-puiuP2QYEuNBVVvcjpUE8d8/jdAhiXHBHMmjZzQT4+fe276RMYea/tY7JoZoYlrhAX8DORLPvjySjXYJZ1m6/A==",
"license": "ISC",
"dependencies": {
"jsx-ast-utils": "^2.2.1",
"szfe-tools": "^0.0.0-beta.7"
},
"peerDependencies": {
"react": ">=16"
}
},
"node_modules/react-node-key/node_modules/jsx-ast-utils": {
"version": "2.4.1",
"resolved": "https://registry.npmmirror.com/jsx-ast-utils/-/jsx-ast-utils-2.4.1.tgz",
"integrity": "sha512-z1xSldJ6imESSzOjd3NNkieVJKRlKYSOtMG8SFyCj2FIrvSaSuli/WjpBkEzCBoR9bYYYFgqJw61Xhu7Lcgk+w==",
"license": "MIT",
"dependencies": {
"array-includes": "^3.1.1",
"object.assign": "^4.1.0"
},
"engines": {
"node": ">=4.0"
}
},
"node_modules/react-refresh": {
"version": "0.11.0",
"resolved": "https://registry.npmmirror.com/react-refresh/-/react-refresh-0.11.0.tgz",
......@@ -18863,6 +18969,15 @@
"integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",
"license": "MIT"
},
"node_modules/szfe-tools": {
"version": "0.0.0-beta.7",
"resolved": "https://registry.npmmirror.com/szfe-tools/-/szfe-tools-0.0.0-beta.7.tgz",
"integrity": "sha512-/M7+Tel2G8zapfDYZlz17hf9ViqAi/loZMfM81b5iZMyaWL/t5dajBszEBI2kyIDFzlLT4btBcq+BimFgmAHug==",
"license": "ISC",
"dependencies": {
"@babel/runtime": "^7.10.2"
}
},
"node_modules/tailwindcss": {
"version": "3.4.4",
"resolved": "https://registry.npmmirror.com/tailwindcss/-/tailwindcss-3.4.4.tgz",
......@@ -19654,6 +19769,15 @@
"makeerror": "1.0.12"
}
},
"node_modules/warning": {
"version": "4.0.3",
"resolved": "https://registry.npmmirror.com/warning/-/warning-4.0.3.tgz",
"integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==",
"license": "MIT",
"dependencies": {
"loose-envify": "^1.0.0"
}
},
"node_modules/watchpack": {
"version": "2.4.1",
"resolved": "https://registry.npmmirror.com/watchpack/-/watchpack-2.4.1.tgz",
......
......@@ -2,7 +2,7 @@
"name": "react-ts-demos",
"version": "0.1.0",
"private": true,
"proxy": "http://jsonxk.com",
"proxy": "http://erpweb.liexindev.net",
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
......@@ -14,8 +14,10 @@
"antd": "^5.18.3",
"axios": "^1.7.2",
"react": "^18.3.1",
"react-activation": "^0.12.4",
"react-dom": "^18.3.1",
"react-helmet": "^6.1.0",
"react-keep-alive": "^2.5.2",
"react-router-dom": "^6.24.0",
"react-scripts": "5.0.1",
"typescript": "^4.9.5",
......
import './styles/base.min.css'
import './styles/font/iconfont.css'
import RouterCus from './components/RouterCus';
const App=()=>{
import { createHashRouter, Outlet, RouterProvider } from "react-router-dom"
import { useEffect, useState } from 'react';
import { CommonConfigDataContext } from "./contexts/CommonConfigDataContext";
import Home from './pages/Home';
import Search from './pages/Search';
import BrandMap from './pages/BrandMap';
import ClassMap from './pages/ClassMap';
import About from './pages/About';
import Contact from './pages/Contact';
import Notice from './pages/Notice';
import GoodsDetail from "./pages/GoodsDetail";
import Category from "./pages/Category";
import Brand from "./pages/Brand";
import Page404 from "./pages/Page404";
import Header from "./components/Header";
import Footer from "./components/Footer";
const Index = () => {
return (
<>
<RouterCus />
<Header />
<Outlet />
<Footer />
</>
);
}
const router = createHashRouter([
{
path: '',
element: <Index />,
children: [
{
path: '/',
element: <Home />
},
{
path: '/search',
element: <Search />
},
{
path: '/detail/:sku_id',
element: <GoodsDetail />
},
{
path: '/brandMap',
element: <BrandMap />
},
{
path: '/brand/:brand_id',
element: <Brand />
},
{
path: '/classMap',
element: <ClassMap />
},
{
path: '/category/:class_id1/:class_id2?',
element: <Category />
},
{
path: '/about',
element: <About />
},
{
path: '/notice',
element: <Notice />
},
{
path: '/contact',
element: <Contact />
}
,
{
path: '*',
element: <Page404 />
}
]
},
]);
const App = () => {
const [commonConfigData, setCommonConfigData] = useState({
qqurl: '',
});
useEffect(() => {
setCommonConfigData({
qqurl: '/'
})
}, []);
return (
<>
<CommonConfigDataContext.Provider value={commonConfigData}>
<RouterProvider router={router} ></RouterProvider>
</CommonConfigDataContext.Provider>
</>
);
}
......
......@@ -36,7 +36,9 @@
box-sizing : border-box;
z-index : 3;
border-left: 1px solid rgba(255, 255, 255, 0);
&.index-pages{
display: block;
}
.classleftcons {
width : 234px;
......
.mv-nav-big{height:38px;border-bottom:1px solid #FF9A00;background:#fff}.mv-nav-big .navbox{margin:0 auto;width:1226px}.mv-nav-big .navbox .class-boxs{position:relative;height:38px}.mv-nav-big .navbox .class-boxs .title-lc{line-height:38px;width:234px;height:38px;background:#FF9A00;color:#fff;font-weight:bold;font-size:18px;cursor:pointer;box-sizing:border-box;padding-left:14px;display:block}.mv-nav-big .navbox .class-boxs .box-one-left{width:234px;height:460px;position:absolute;left:0px;top:39px;background:rgba(255,255,255,0.98);display:none;box-sizing:border-box;z-index:3;border-left:1px solid rgba(255,255,255,0)}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons{width:234px;padding:20px 0;box-sizing:border-box;position:relative}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group{color:#313131;font-size:14px;padding-left:17px;padding-right:17px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .one-class-link{display:block;width:100%;cursor:pointer;padding-bottom:5px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .one-class-link .spann{color:#000;font-size:16px;display:block;height:35px;line-height:35px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .one-class-link .spann span{transition:all .5s;display:inline-block;vertical-align:middle;width:0px;overflow:hidden}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .one-class-link .spann span i{font-size:11px;color:#FF9A00;position:relative;top:-2px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group:hover .spann{color:#FF9A00}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group:hover .spann span{width:25px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right{background:#fff;display:block;height:460px;width:775px;position:absolute;left:234px;padding-top:25px;box-sizing:border-box;top:0px;display:none;border-left:0px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .classconsjk{width:775px;height:410px;box-sizing:border-box;overflow-y:auto;padding:0 24px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .classconsjk::-webkit-scrollbar{width:8px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .classconsjk::-webkit-scrollbar-thumb{border-radius:6px;background:#fff;-webkit-box-shadow:inset 0 0 8px rgba(0,0,0,0.2)}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .classconsjk::-webkit-scrollbar-track{border-radius:0;background:#f4f4f4}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .two-class-group{margin-bottom:10px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .two-class-group .two-class-link{width:130px;color:#000;font-weight:bold;font-size:14px;height:35px;line-height:35px;flex-shrink:0;padding-right:10px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .two-class-group .two-class-link:hover{color:#FF9A00}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .two-class-group .three-class-group{flex-wrap:wrap;margin-bottom:5px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .two-class-group .three-class-group .three-class-link{flex-shrink:0;padding-right:20px;box-sizing:border-box;margin-bottom:5px;height:30px;line-height:30px;color:#888888;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .two-class-group .three-class-group .three-class-link:hover{color:#FF9A00}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group:hover .box-two-right{display:block}.mv-nav-big .navbox .class-boxs:hover .box-one-left{display:block}.mv-nav-big .navbox .haed-nav-box{height:38px;line-height:38px}.mv-nav-big .navbox .haed-nav-box ul{box-sizing:border-box;padding-left:34px}.mv-nav-big .navbox .haed-nav-box li{margin-right:75px}.mv-nav-big .navbox .haed-nav-box li a{font-size:18px;color:#000}.mv-nav-big .navbox .haed-nav-box li.act a,.mv-nav-big .navbox .haed-nav-box li:hover a{color:#FF9A00}
\ No newline at end of file
.mv-nav-big{height:38px;border-bottom:1px solid #FF9A00;background:#fff}.mv-nav-big .navbox{margin:0 auto;width:1226px}.mv-nav-big .navbox .class-boxs{position:relative;height:38px}.mv-nav-big .navbox .class-boxs .title-lc{line-height:38px;width:234px;height:38px;background:#FF9A00;color:#fff;font-weight:bold;font-size:18px;cursor:pointer;box-sizing:border-box;padding-left:14px;display:block}.mv-nav-big .navbox .class-boxs .box-one-left{width:234px;height:460px;position:absolute;left:0px;top:39px;background:rgba(255,255,255,0.98);display:none;box-sizing:border-box;z-index:3;border-left:1px solid rgba(255,255,255,0)}.mv-nav-big .navbox .class-boxs .box-one-left.index-pages{display:block}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons{width:234px;padding:20px 0;box-sizing:border-box;position:relative}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group{color:#313131;font-size:14px;padding-left:17px;padding-right:17px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .one-class-link{display:block;width:100%;cursor:pointer;padding-bottom:5px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .one-class-link .spann{color:#000;font-size:16px;display:block;height:35px;line-height:35px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .one-class-link .spann span{transition:all .5s;display:inline-block;vertical-align:middle;width:0px;overflow:hidden}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .one-class-link .spann span i{font-size:11px;color:#FF9A00;position:relative;top:-2px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group:hover .spann{color:#FF9A00}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group:hover .spann span{width:25px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right{background:#fff;display:block;height:460px;width:775px;position:absolute;left:234px;padding-top:25px;box-sizing:border-box;top:0px;display:none;border-left:0px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .classconsjk{width:775px;height:410px;box-sizing:border-box;overflow-y:auto;padding:0 24px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .classconsjk::-webkit-scrollbar{width:8px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .classconsjk::-webkit-scrollbar-thumb{border-radius:6px;background:#fff;-webkit-box-shadow:inset 0 0 8px rgba(0,0,0,0.2)}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .classconsjk::-webkit-scrollbar-track{border-radius:0;background:#f4f4f4}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .two-class-group{margin-bottom:10px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .two-class-group .two-class-link{width:130px;color:#000;font-weight:bold;font-size:14px;height:35px;line-height:35px;flex-shrink:0;padding-right:10px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .two-class-group .two-class-link:hover{color:#FF9A00}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .two-class-group .three-class-group{flex-wrap:wrap;margin-bottom:5px}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .two-class-group .three-class-group .three-class-link{flex-shrink:0;padding-right:20px;box-sizing:border-box;margin-bottom:5px;height:30px;line-height:30px;color:#888888;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group .box-two-right .two-class-group .three-class-group .three-class-link:hover{color:#FF9A00}.mv-nav-big .navbox .class-boxs .box-one-left .classleftcons .one-class-group:hover .box-two-right{display:block}.mv-nav-big .navbox .class-boxs:hover .box-one-left{display:block}.mv-nav-big .navbox .haed-nav-box{height:38px;line-height:38px}.mv-nav-big .navbox .haed-nav-box ul{box-sizing:border-box;padding-left:34px}.mv-nav-big .navbox .haed-nav-box li{margin-right:75px}.mv-nav-big .navbox .haed-nav-box li a{font-size:18px;color:#000}.mv-nav-big .navbox .haed-nav-box li.act a,.mv-nav-big .navbox .haed-nav-box li:hover a{color:#FF9A00}
\ No newline at end of file
import { Link } from 'react-router-dom'
import { Link, useLocation } from 'react-router-dom'
import './index.min.css'
const NavBig = (props:{navname:string|undefined}) => {
import type { ResponseTypeCateList,classListType } from './types'
import { useEffect, useState } from 'react'
import useRequest from '../../../../hooks/useRequest'
const NavBig = () => {
const location=useLocation()
const items = [{
url: '/',
name: '首页'
}, {
url: '/brandMap',
name: '品牌馆'
},{
}, {
url: '/about',
name: '关于我们'
}, {
url: '/contact',
name: '联系我们'
}]
const {navname}=props
const { request:classListRequest } = useRequest<ResponseTypeCateList>({manual:true})
const [classLists,setClassLists]=useState<classListType[]>([])
useEffect(()=>{
classListRequest({url: '/api/home/getCateList'}).then(res=>{
if(res?.code===0){
setClassLists(res.data?.nav_list||[])
}
})
},[classListRequest])
return (
<>
<div className='mv-nav-big'>
<div className='navbox row'>
<div className='class-boxs'>
<Link className='title-lc' to='/classMap'>查看全部</Link>
<div className='box-one-left'>
<div className={location.pathname==='/'?'box-one-left index-pages':'box-one-left'} >
<div className='classleftcons'>
<div className='one-class-group'>
{
classLists.map(item => {
return (
<div className='one-class-group' key={item.goods_type_id}>
<div className='one-class-link'>
<Link className='spann' to='/category/1'>
<Link className='spann' to={`/category/${item.goods_type_id}`}>
<span><i className='icon iconfont icon-sanjiaoxing'></i></span>
工业控制
{item.goods_type_name}
</Link>
</div>
<div className='box-two-right '>
<div className='classconsjk'>
<div className='two-class-group '>
<Link to='/category/1' className='two-class-link'>工控机</Link>
<div className='three-class-group row'>
<Link className='three-class-link' to='/category/1/11'>4U工控机</Link>
<Link className='three-class-link' to='/category/1/11'>4U工控机</Link>
</div>
</div>
<div className='two-class-group '>
<Link to='/category/1' className='two-class-link'>工控机</Link>
<Link to={`/category/${item.goods_type_id}`} key={item.goods_type_id} className='two-class-link'>{item.goods_type_name}</Link>
<div className='three-class-group row'>
<Link className='three-class-link' to='/category/1/11'>4U工控机</Link>
<Link className='three-class-link' to='/category/1/11'>4U工控机</Link>
{
(item.child||[]).map((itemChild,index)=>{
return (
<Link key={itemChild.goods_type_id+index} className='three-class-link' to={`/category/${item.goods_type_id}/${itemChild.goods_type_id}`}>{itemChild.goods_type_name}</Link>
)
})
}
</div>
</div>
</div>
</div>
</div>
)
})
}
</div>
</div>
......@@ -58,9 +87,9 @@ const NavBig = (props:{navname:string|undefined}) => {
<div className='haed-nav-box'>
<ul className='row'>
{
items.map((item,index)=>{
items.map((item, index) => {
return (
<li className={navname===item.name?'act':''} key={item.name+index}>
<li className={location.pathname === item.url ? 'act' : ''} key={item.name + index}>
<Link to={item.url}>{item.name}</Link>
</li>
)
......
export type ResponseTypeCateList = {
code: number | string,
data: {
nav_list: Array<classListType>
} | null,
msg: string
}
export type classListType = {
goods_type_id: string,
goods_type_name: string,
child?: Array<{
goods_type_id: string,
goods_type_name: string,
}>
}
......@@ -4,6 +4,7 @@ import { Link } from 'react-router-dom'
import QqIcon from '../../../QqIcon'
const TopH=()=>{
return (
......
import TopH from "./components/TopH"
import SearchH from "./components/SearchH"
import NavBig from "./components/NavBig"
import { useSeoTitle } from "../../hooks/useSeoTitle"
const Header=(props:{navname?:string})=>{
const {navname}=props
const Header = () => {
const seoTitle=useSeoTitle()
return (
<>
{seoTitle}
<div className="head-box">
<TopH />
<SearchH />
<NavBig navname={navname}/>
<NavBig />
</div>
</>
)
}
......
.list-group-one-item{
padding:0px 33px;
padding:0px 27px;
background: #fff;
.cons{
border-bottom: 1px solid #e7e7e7;
border-top: 1px solid #e7e7e7;
padding:10px 0px;
.item{
margin-right: 20px;
......
.list-group-one-item{padding:0px 33px;background:#fff}.list-group-one-item .cons{border-bottom:1px solid #e7e7e7;padding:10px 0px}.list-group-one-item .cons .item{margin-right:20px;box-sizing:border-box;flex-shrink:0}.list-group-one-item .cons .item:last-child{margin-right:0px}.list-group-one-item .cons .item .goods-img{width:92px;height:92px}.list-group-one-item .cons .item .goods-name{font-weight:bold;font-size:14px;color:#000000;line-height:19px;height:38px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin-bottom:10px}.list-group-one-item .cons .item .goods-name:hover{color:#FF9A00;cursor:pointer}.list-group-one-item .cons .item p{font-size:12px;color:#000000;line-height:23px}.list-group-one-item .cons .item .jtgroup{font-size:12px;color:#000000;line-height:23px}.list-group-one-item .cons .item .jtgroup span,.list-group-one-item .cons .item .jtgroup strong{width:33.33%}.list-group-one-item .cons .item .ljxunj{cursor:pointer;width:80px;height:30px;background:#FF9A00;color:#fff;font-size:14px;margin-right:30px;text-align:center;line-height:30px}.list-group-one-item .cons .item.pt48{padding-top:48px}.list-group-one-item .cons .item.w-198{width:198px}.list-group-one-item .cons .item.w-345{width:345px}.list-group-one-item .cons .item.w-322{width:322px}
\ No newline at end of file
.list-group-one-item{padding:0px 27px;background:#fff}.list-group-one-item .cons{border-top:1px solid #e7e7e7;padding:10px 0px}.list-group-one-item .cons .item{margin-right:20px;box-sizing:border-box;flex-shrink:0}.list-group-one-item .cons .item:last-child{margin-right:0px}.list-group-one-item .cons .item .goods-img{width:92px;height:92px}.list-group-one-item .cons .item .goods-name{font-weight:bold;font-size:14px;color:#000000;line-height:19px;height:38px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin-bottom:10px}.list-group-one-item .cons .item .goods-name:hover{color:#FF9A00;cursor:pointer}.list-group-one-item .cons .item p{font-size:12px;color:#000000;line-height:23px}.list-group-one-item .cons .item .jtgroup{font-size:12px;color:#000000;line-height:23px}.list-group-one-item .cons .item .jtgroup span,.list-group-one-item .cons .item .jtgroup strong{width:33.33%}.list-group-one-item .cons .item .ljxunj{cursor:pointer;width:80px;height:30px;background:#FF9A00;color:#fff;font-size:14px;margin-right:30px;text-align:center;line-height:30px}.list-group-one-item .cons .item.pt48{padding-top:48px}.list-group-one-item .cons .item.w-198{width:198px}.list-group-one-item .cons .item.w-345{width:345px}.list-group-one-item .cons .item.w-322{width:322px}
\ No newline at end of file
......@@ -4,29 +4,36 @@ import QqIcon from '../QqIcon'
import './index.min.css'
import { useContext } from 'react'
import { CommonConfigDataContext } from '../../contexts/CommonConfigDataContext'
const ListOneItem = () => {
import type {dataListItemType} from './types'
const ListOneItem = (props:dataListItemType) => {
const itemInfo={...props!}
const commonConfigData=useContext(CommonConfigDataContext)
return (
<>
<div className='list-group-one-item'>
<div className='cons row'>
<div className='item'>
<Link to='/detail/1'><img src="https://img.ichunt.com/images/cms/202406/28/c33dc02613a1659c2d76d478c2c683ea.jpg" className='goods-img' alt="" /></Link>
<Link to={`/detail/${itemInfo.goods_id}`}><img src={itemInfo.goods_images||'http://static.ichunt.com//dist/res/home/images/goods_default.png'} className='goods-img' alt="" /></Link>
</div>
<div className='item w-198'>
<Link className='goods-name' to='/detail/1'>X5043PIZX5043PIZX5043PIZX5043PIZX5043PIZX5043PIZX5043PIZX5043PIZ</Link>
<p>品牌:研华</p>
<p>参数:PCI-11654</p>
<Link className='goods-name' to={`/detail/${itemInfo.goods_id}`}>{itemInfo.goods_name}</Link>
<p>品牌:{itemInfo.brand_name}</p>
<p>参数:{itemInfo.class_name}</p>
</div>
<div className='item w-345 pt48'>
<p>库存:8551</p>
<p>起订量:1000 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 递增:10</p>
<p>库存:{itemInfo.stock}</p>
<p>起订量:{itemInfo.moq} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 递增:{itemInfo.multiple}</p>
</div>
<div className='item w-322 '>
<div className='jtgroup row'><span>5000+</span><strong>¥18.2365</strong><strong>¥18.2365</strong></div>
<div className='jtgroup row'><span>5000+</span><strong>¥18.2365</strong><strong>¥18.2365</strong></div>
<div className='jtgroup row'><span>5000+</span><strong>¥18.2365</strong><strong>¥18.2365</strong></div>
{
itemInfo.ladder_price.map((item,index)=>{
return (
<div key={index+item.price_cn} className='jtgroup row'><span>{item.purchases}+</span><strong>¥{item.price_cn}</strong><strong>¥{item.price_us}</strong></div>
)
})
}
</div>
<div className='item row'>
<a href={commonConfigData.qqurl} rel="noreferrer" className='ljxunj' target='_blank'>立即询价</a>
......
export type ListSortType = {
sortType:number,//1 综合排序 2库存排序 3价格排序
isStock:boolean,//true 仅有货 false 全部
stockSort?:string, // top 升序 bottom 降序
priceSort?:string // top 升序 bottom 降序
export type dataListItemType = {
sku_name: string;
brand_name: string;
class_name: string;
cn_delivery_time: string;
hk_delivery_time: string;
goods_id: string;
goods_images: string;
goods_name: string;
moq: number;
multiple: number;
stock: number;
supplier_name: string;
ladder_price: Array<{
price_cn: number;
price_cost_cn: number;
price_us: number;
purchases: number;
price_cost_us: number;
}>
}
import { createHashRouter ,RouterProvider} from "react-router-dom"
import Home from '../../pages/Home';
import Search from '../../pages/Search';
import BrandMap from '../../pages/BrandMap';
import ClassMap from '../../pages/ClassMap';
import About from '../../pages/About';
import Contact from '../../pages/Contact';
import Notice from '../../pages/Notice';
import GoodsDetail from "../../pages/GoodsDetail";
import Category from "../../pages/Category";
import Brand from "../../pages/Brand";
import Page404 from "../../pages/Page404";
import { useEffect, useState } from 'react';
import { CommonConfigDataContext } from "../../contexts/CommonConfigDataContext";
const router = createHashRouter([
{
path: '/',
element: <Home />,
},
{
path: '/search',
element: <Search />
},
{
path: '/detail/:goods_id',
element: <GoodsDetail />
},
{
path: '/brandMap',
element: <BrandMap />
},
{
path: '/brand/:brand_id',
element: <Brand />
},
{
path: '/classMap',
element: <ClassMap />
},
{
path: '/category/:class_id1/:class_id2?',
element: <Category />
},
{
path: '/about',
element: <About />
},
{
path: '/notice',
element: <Notice />
},
{
path: '/contact',
element: <Contact />
}
,
{
path: '*',
element: <Page404 />
}
])
const RouterCus=()=>{
const [commonConfigData, setCommonConfigData] = useState({
qqurl:''
});
useEffect(() => {
console.log("getGlobalData")
setCommonConfigData({
qqurl:'/'
})
}, []);
return (
<>
<CommonConfigDataContext.Provider value={commonConfigData}>
<RouterProvider router={router} />
</CommonConfigDataContext.Provider>
</>
)
}
export default RouterCus
\ No newline at end of file
import { createContext} from 'react';
export const CommonConfigDataContext = createContext({
qqurl:''
})
\ No newline at end of file
export const CommonConfigDataContext = createContext({qqurl:''})
\ No newline at end of file
......@@ -54,6 +54,7 @@ function useRequest<T>(options: AxiosRequestConfig & { manual?: boolean,loading?
}, [options, request])
return { data,loaded, request, cancel }
}
......
import { useLocation } from "react-router-dom"
export const useSeoTitle = () => {
const Helmet = require('react-helmet').Helmet;
const location = useLocation()
let titlestr='404'
const titleKeywords:any = {
'/': { title: '首页', keyword: '' },
'/search': { title: '搜索结果' },
'/detail': { title: '商品详情' },
'/brandMap': { title: '品牌馆' },
'/Brand': { title: '品牌结果' },
'/classMap': { title: '分类地图' },
'/category': { title: '分类结果' },
'/about': { title: '关于我们' },
'/contact': { title: '联系我们' },
'/notice': { title: '公告' },
}
if (Object.keys(titleKeywords).indexOf(location.pathname) !== -1) {
titlestr=titleKeywords[location.pathname]['title']
}
if(location.pathname.indexOf('/detail/')!==-1){
titlestr='商品详情'
}
if(location.pathname.indexOf('/brand/')!==-1){
titlestr='品牌结果'
}
if(location.pathname.indexOf('/category/')!==-1){
titlestr='分类结果'
}
return <Helmet><title>麒麟电子商城-{titlestr}</title></Helmet>
}
import './index.min.css'
import Header from "../../components/Header";
import Footer from "../../components/Footer";
const About = () => {
const Helmet = require('react-helmet').Helmet;
return (
<>
<Helmet><title>麒麟电子商城-关于我们'</title></Helmet>
<Header navname='关于我们' />
<div className='mv-about-page'>
<div className='banner'></div>
<div className='section'>
......@@ -32,7 +30,7 @@ const About = () => {
</div>
</div>
</div>
<Footer />
</>
)
}
......
......@@ -59,23 +59,12 @@
padding-top: 24px;
.data-group-supplier{
border: 1px solid #EDEFEF;
.data-list-title{
padding:0 33px;
height:50px;
line-height: 50px;
font-size: 16px;
color: #000000;
background: #f6f6f6;
}
.data-list-more{
height:48px;
line-height: 48px;
color:#000;
font-size: 12px;
text-align: center;
padding-bottom: 20px;
background: #fff;
b{color:#FF9A00;cursor: pointer;}
min-height: 400px;
.sortbixjk{
padding:0 27px;
padding-top: 25px;
}
}
......
.mv-brandlist-page{margin-bottom:56px}.mv-brandlist-page .brandheadsl{min-height:275px;background:#fff;padding:26px 60px}.mv-brandlist-page .brandheadsl .brandimg{width:222px;height:222px;background:#FFFFFF;border:1px solid #EDEFEF;margin-right:60px}.mv-brandlist-page .brandheadsl .brand-info{width:822px}.mv-brandlist-page .brandheadsl .brand-info h2{font-weight:bold;font-size:22px;color:#000000;line-height:29px;text-align:center;margin-bottom:20px}.mv-brandlist-page .brandheadsl .brand-info .textBf{font-size:14px;color:#000000;line-height:25px;height:100px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.mv-brandlist-page .brandheadsl .brand-info .brandbox span{font-size:12px;color:#888;line-height:20px;width:80px;flex-shrink:0}.mv-brandlist-page .brandheadsl .brand-info .brandbox .itembox{flex-wrap:wrap}.mv-brandlist-page .brandheadsl .brand-info .brandbox .itembox .item{height:20px;line-height:20px;font-size:12px;color:#000000;margin-right:40px;margin-bottom:15px}.mv-brandlist-page .databox{padding-top:24px}.mv-brandlist-page .databox .data-group-supplier{border:1px solid #EDEFEF}.mv-brandlist-page .databox .data-group-supplier .data-list-title{padding:0 33px;height:50px;line-height:50px;font-size:16px;color:#000000;background:#f6f6f6}.mv-brandlist-page .databox .data-group-supplier .data-list-more{height:48px;line-height:48px;color:#000;font-size:12px;text-align:center;background:#fff}.mv-brandlist-page .databox .data-group-supplier .data-list-more b{color:#FF9A00;cursor:pointer}
\ No newline at end of file
.mv-brandlist-page{margin-bottom:56px}.mv-brandlist-page .brandheadsl{min-height:275px;background:#fff;padding:26px 60px}.mv-brandlist-page .brandheadsl .brandimg{width:222px;height:222px;background:#FFFFFF;border:1px solid #EDEFEF;margin-right:60px}.mv-brandlist-page .brandheadsl .brand-info{width:822px}.mv-brandlist-page .brandheadsl .brand-info h2{font-weight:bold;font-size:22px;color:#000000;line-height:29px;text-align:center;margin-bottom:20px}.mv-brandlist-page .brandheadsl .brand-info .textBf{font-size:14px;color:#000000;line-height:25px;height:100px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.mv-brandlist-page .brandheadsl .brand-info .brandbox span{font-size:12px;color:#888;line-height:20px;width:80px;flex-shrink:0}.mv-brandlist-page .brandheadsl .brand-info .brandbox .itembox{flex-wrap:wrap}.mv-brandlist-page .brandheadsl .brand-info .brandbox .itembox .item{height:20px;line-height:20px;font-size:12px;color:#000000;margin-right:40px;margin-bottom:15px}.mv-brandlist-page .databox{padding-top:24px}.mv-brandlist-page .databox .data-group-supplier{padding-bottom:20px;background:#fff;min-height:400px}.mv-brandlist-page .databox .data-group-supplier .sortbixjk{padding:0 27px;padding-top:25px}
\ No newline at end of file
import './index.min.css'
import Header from "../../components/Header";
import Footer from "../../components/Footer";
import BreadNav from '../../components/BreadNav';
import ListSort from '../../components/ListSort';
import { useState } from 'react';
import type { ListSortType } from '../../components/ListSort/types'
import ListOneItem from '../../components/ListOneItem';
//import ListOneItem from '../../components/ListOneItem';
const Brand=()=>{
const Helmet = require('react-helmet').Helmet;
const [sortObj, setSortObj] = useState<ListSortType>({
sortType: 1,
isStock: false,
......@@ -20,8 +19,7 @@ const Brand=()=>{
return (
<>
<Helmet><title>麒麟电子商城-品牌结果</title></Helmet>
<Header navname='品牌结果' />
<BreadNav><strong>"ti"的型号搜索结果</strong></BreadNav>
<div className='mv-brandlist-page w1226' >
<div className='brandheadsl row boxsiz'>
......@@ -44,13 +42,12 @@ const Brand=()=>{
<ListSort sortObj={sortObj} setSortObj={setSortObj}/>
<div className='data-group-supplier'>
<div className='data-list-title'>商品信息</div>
<ListOneItem />
<ListOneItem />
<div className='data-list-more'>还有<b>32</b>个商品未显示,<b>点击加载更多</b></div>
</div>
</div>
</div>
<Footer />
</>
)
......
import { useRef } from 'react';
import useRequest from '../../hooks/useRequest';
import './index.min.css'
import Header from "../../components/Header";
import Footer from "../../components/Footer";
import { Link } from 'react-router-dom';
import { Link } from 'react-router-dom';
import type { ResponseType } from './types';
const BrandMap = () => {
const Helmet = require('react-helmet').Helmet;
const hotList = [1, 2, 3, 4, 5, 6, 7, 8, 9]
console.log("brand")
const defaultRequestData = useRef({ url: '/api/brand/getBrandList' })
const { data } = useRequest<ResponseType>(defaultRequestData.current)
const result: ResponseType = data!
console.log(result)
return (
<>
<Helmet><title>麒麟电子商城-品牌馆</title></Helmet>
<Header navname='品牌馆' />
<div className='mv-brand-page'>
<div className='section w1226'>
......@@ -54,7 +60,7 @@ const BrandMap = () => {
</div>
</div>
</div>
<Footer />
</>
)
......
......@@ -48,32 +48,15 @@
}
.databox{
padding-top: 24px;
.data-group-supplier{
border: 1px solid #EDEFEF;
.data-list-title{
padding:0 33px;
height:50px;
line-height: 50px;
font-size: 16px;
color: #000000;
background: #f6f6f6;
}
.data-list-more{
height:48px;
line-height: 48px;
color:#000;
font-size: 12px;
text-align: center;
padding-bottom: 20px;
background: #fff;
b{color:#FF9A00;cursor: pointer;}
min-height: 400px;
.sortbixjk{
padding:0 27px;
padding-top: 25px;
}
}
}
}
\ No newline at end of file
.mv-category-page{padding-bottom:54px}.mv-category-page .categoryHead{min-height:245px;background:#fff;padding:30px 50px}.mv-category-page .categoryHead h2{font-weight:bold;font-size:22px;color:#000000;line-height:29px;text-align:center;margin-bottom:20px}.mv-category-page .categoryHead .textBf{font-size:14px;color:#000000;line-height:25px;height:100px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.mv-category-page .categoryHead .brandbox span{font-weight:bold;font-size:14px;color:#000000;line-height:20px;width:80px;flex-shrink:0}.mv-category-page .categoryHead .brandbox .itembox{flex-wrap:wrap}.mv-category-page .categoryHead .brandbox .itembox .item{height:20px;line-height:20px;font-size:14px;color:#000000;margin-right:40px;margin-bottom:15px}.mv-category-page .databox{padding-top:24px}.mv-category-page .databox .data-group-supplier{border:1px solid #EDEFEF}.mv-category-page .databox .data-group-supplier .data-list-title{padding:0 33px;height:50px;line-height:50px;font-size:16px;color:#000000;background:#f6f6f6}.mv-category-page .databox .data-group-supplier .data-list-more{height:48px;line-height:48px;color:#000;font-size:12px;text-align:center;background:#fff}.mv-category-page .databox .data-group-supplier .data-list-more b{color:#FF9A00;cursor:pointer}
\ No newline at end of file
.mv-category-page{padding-bottom:54px}.mv-category-page .categoryHead{min-height:245px;background:#fff;padding:30px 50px}.mv-category-page .categoryHead h2{font-weight:bold;font-size:22px;color:#000000;line-height:29px;text-align:center;margin-bottom:20px}.mv-category-page .categoryHead .textBf{font-size:14px;color:#000000;line-height:25px;height:100px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.mv-category-page .categoryHead .brandbox span{font-weight:bold;font-size:14px;color:#000000;line-height:20px;width:80px;flex-shrink:0}.mv-category-page .categoryHead .brandbox .itembox{flex-wrap:wrap}.mv-category-page .categoryHead .brandbox .itembox .item{height:20px;line-height:20px;font-size:14px;color:#000000;margin-right:40px;margin-bottom:15px}.mv-category-page .databox .data-group-supplier{padding-bottom:20px;background:#fff;min-height:400px}.mv-category-page .databox .data-group-supplier .sortbixjk{padding:0 27px;padding-top:25px}
\ No newline at end of file
import './index.min.css'
import Header from "../../components/Header";
import Footer from "../../components/Footer";
import BreadNav from '../../components/BreadNav';
import ListSort from '../../components/ListSort';
import { useState } from 'react';
import { useEffect, useRef, useState } from 'react';
import type { ListSortType } from '../../components/ListSort/types'
import type { dataListItemType } from '../../components/ListOneItem/types'
import type { classResponseType, requestDataType } from './types'
import ListOneItem from '../../components/ListOneItem';
import useRequest from '../../hooks/useRequest';
import { useParams } from 'react-router-dom';
import { Pagination } from 'antd';
import ListNoData from '../../components/ListNoData';
const Category = () => {
const Helmet = require('react-helmet').Helmet;
const params = useParams()
const [shouNoData, setShouNoData] = useState(false)
const [page, setPage] = useState(1)
const [total, setTotal] = useState(0)
const [dataList, setDataList] = useState<dataListItemType[]>([])
const [sortObj, setSortObj] = useState<ListSortType>({
sortType: 1,
isStock: false,
......@@ -18,14 +28,61 @@ const Category = () => {
priceSort: ''
})
const { request: classInfoRequest } = useRequest<classResponseType>({ manual: true })
const shouldResetPage = useRef(false);
useEffect(() => {
shouldResetPage.current = true;
setPage(1);
}, [sortObj]);
useEffect(() => {
if(shouldResetPage.current&&page!==1){
return
}
shouldResetPage.current = false;
let obj_: requestDataType = { page_size: 10, page: page, class_id1: params.class_id1, class_id2: (params.class_id2 || '') }
if (sortObj.isStock) {
obj_['stock/gt'] = 0
}
if (sortObj.sortType === 2) {
obj_['stock/sort'] = sortObj.stockSort === 'top' ? 'asc' : 'desc'
}
if (sortObj.sortType === 3) {
obj_['single_price/sort'] = sortObj.priceSort === 'top' ? 'asc' : 'desc'
}
classInfoRequest({
url: '/api/search/searchByClass',
method: 'post',
data: obj_,
}).then(res => {
if (res?.code === 0) {
setTotal(res.data?.total)
setDataList(res.data?.lists || [])
if (res.data?.lists.length > 0) {
setShouNoData(false)
} else {
setShouNoData(true)
}
} else {
setShouNoData(true)
}
})
}, [classInfoRequest, params.class_id2, params.class_id1, page,sortObj])
const onChange = (page: number) => {
setPage(page)
}
return (
<>
<Helmet><title>麒麟电子商城-分类结果</title></Helmet>
<Header navname='分类结果' />
<BreadNav><strong>"MPX5700ASX"的型号搜索结果</strong></BreadNav>
<BreadNav><strong>分类搜索结果</strong></BreadNav>
<div className='mv-category-page w1226' >
<div className='categoryHead boxsiz'>
{/* <div className='categoryHead boxsiz'>
<h2>陶瓷电容</h2>
<div className='textBf'>
Lorem ipsum dolor sit amet, ci, sed rhoncus pronin sapien nunc accuan eget.
......@@ -37,19 +94,28 @@ const Category = () => {
<div className='item'>NPX</div>
</div>
</div>
</div>
</div> */}
<div className='databox w1226'>
<ListSort sortObj={sortObj} setSortObj={setSortObj}/>
<div className='data-group-supplier'>
<div className='data-list-title'>商品信息</div>
<ListOneItem />
<ListOneItem />
<div className='data-list-more'>还有<b>32</b>个商品未显示,<b>点击加载更多</b></div>
<div className='sortbixjk'>
<ListSort sortObj={sortObj} setSortObj={setSortObj} />
</div>
{
dataList.map(item => {
return (
<ListOneItem key={item.goods_id} {...item} />
)
})
}
{shouNoData ? <ListNoData /> : ''}
</div>
<Pagination style={{ 'marginTop': '30px' }} current={page} hideOnSinglePage={true} onChange={onChange} total={total} pageSize={10} showSizeChanger={false} />
</div>
</div>
<Footer />
</>
)
......
export type ResponseType = {
success: boolean,
data: Array<{
shopId: string,
shopName: string,
cartList: Array<{
productId: string,
imgUrl: string,
weight: string,
title: string,
price: number,
count: number
}>
}>
}
\ No newline at end of file
import type { dataListItemType } from '../../components/ListOneItem/types'
export type classResponseType = {
code: number|string,
data: {
lists:Array<dataListItemType>,
total:number
},
msg:string
}
export type requestDataType={
page_size:number,
page:number,
class_id1:string|undefined,
class_id2?:string|undefined,
'stock/gt'?:number|string,
'stock/sort'?:'asc'|'desc',
'single_price/sort'?:'asc'|'desc'
}
import './index.min.css'
import Header from "../../components/Header";
import Footer from "../../components/Footer";
import { Link } from 'react-router-dom';
const ClassMap = () => {
const Helmet = require('react-helmet').Helmet;
return (
<>
<Helmet><title>麒麟电子商城-分类地图</title></Helmet>
<Header navname='分类地图' />
<div className='mv-class-page'>
<div className='w1226'>
<h1>全部商品(2266)</h1>
......@@ -26,7 +24,7 @@ const ClassMap = () => {
</div>
</div>
</div>
<Footer />
</>
)
......
import './index.min.css'
import Header from "../../components/Header";
import Footer from "../../components/Footer";
const Contact = () => {
const Helmet = require('react-helmet').Helmet;
return (
<>
<Helmet><title>麒麟电子商城-联系我们'</title></Helmet>
<Header navname='联系我们' />
<div className='mv-contact-page'>
<div className='banner'></div>
<div className='section'>
......@@ -34,7 +32,7 @@ const Contact = () => {
</div>
</div>
</div>
<Footer />
</>
)
}
......
import QqIcon from "../../../components/QqIcon"
import type { DetailResponseType } from '../types'
import { CommonConfigDataContext } from "../../../contexts/CommonConfigDataContext";
import { useContext } from "react";
const DetailHead = (props: DetailResponseType) => {
const DetailHead = () => {
const commonConfigData = useContext(CommonConfigDataContext);
const sku_info = props.data?.sku_info!
return (
<>
<div className='detail-headers w1226 row bothSide boxsiz'>
<div className='l row'>
<img src="https://img.ichunt.com/images/cms/202302/13/18a3e095443643eaf5afd7ea108e2479.jpg" className='goodsimg' alt="" />
<img src={sku_info?.goods_images || 'http://static.ichunt.com//dist/res/home/images/goods_default.png'} className='goodsimg' alt="" />
<div className='info'>
<div className='box'>
<h1>DPS310XTSA1</h1>
<p> 品牌: Universal Lighting Technologies</p>
<h1>{sku_info.sku_name}</h1>
<p> 品牌: {sku_info.brand_name}</p>
<p>商品类别:低压差线性稳压(LDO)</p>
<p>封装规格: DO-214AC,SMA</p>
<p>描述:TVS-DIODE BI 0,4KW 18V SMA RoHSconf</p>
<p>封装规格:{sku_info.encap}</p>
<p>描述:{sku_info.remark}</p>
</div>
<div className='handle row bothSide verCenter'>
<QqIcon />
<a href="/" className='btn' target='_blank'>立即询价</a>
<a href={commonConfigData.qqurl} rel="noreferrer" className='btn' target='_blank'>立即询价</a>
</div>
</div>
</div>
<div className='r boxsiz'>
<p className='row'>
<span className='items'>库存:8000 </span>
<span className='items'>交期:HK 6-9工作日</span>
<span className='items'>库存:{sku_info.stock} </span>
<span className='items'>交期:HK {sku_info.hk_delivery_time}</span>
</p>
<p className='row'>
<span className='items'> 批次:/</span>
<span className='items'>交期:大陆 6-9工作日</span>
<span className='items'> 批次:{sku_info.batch_sn}</span>
<span className='items'>交期:大陆 {sku_info.cn_delivery_time}</span>
</p>
<p className='row mb23'>
<span className='items'> 起订量:1</span>
<span className='items'>递增:1</span>
<span className='items'> 起订量: {sku_info.moq}</span>
<span className='items'>递增: {sku_info.multiple}</span>
</p>
<p className='row'>
<span className='items'> 50000+</span>
<span className='items'>¥ 17.4015&nbsp;&nbsp;&nbsp;&nbsp;$ 1.4015</span>
</p>
<p className='row'>
<span className='items'> 50000+</span>
<span className='items'>¥ 17.4015&nbsp;&nbsp;&nbsp;&nbsp;$ 1.4015</span>
{
sku_info.ladder_price.map((item,index) => {
return (
<p className='row' key={index}>
<span className='items'> {item.purchase}+</span>
<span className='items row'><span>¥ {item.price_cn||0}</span><span>$ {item.price_us||0}</span></span>
</p>
)
})
}
</div>
</div>
......
import { Link } from "react-router-dom"
import type { DetailResponseType } from '../types'
const DetailSection = () => {
const DetailSection = (props: DetailResponseType) => {
//const sku_info = props.data?.sku_info!
const other_sku_list = props.data?.other_sku_list || []
return (
<>
<div className='detail-section w1226 row bothSide'>
......@@ -43,15 +43,21 @@ const DetailSection = () => {
</div>
<div className="secr">
<Link to='/detail/1' className='item boxsiz'>
<img src="https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg" alt="" />
<div className='gos'>CRCW20107R5VISHAY CR</div>
{
other_sku_list.map(item => {
return (
<Link to={`/detail/${item.sku_id}`} className='item boxsiz' key={item.sku_id}>
<img src={item.goods_images || 'http://static.ichunt.com//dist/res/home/images/goods_default.png'} alt="" />
<div className='gos'>{item.sku_name}</div>
<div className='row bothSide'>
<div className='nam'>VISHAY</div>
<div className='prs'>¥ 0.2255</div>
<div className='nam'>{item.brand_name}</div>
<div className='prs'>¥{item.single_price}</div>
</div>
</Link>
</Link>
)
})
}
</div>
</div>
</>
......
......@@ -58,6 +58,9 @@
font-size: 12px;
color: #000000;
line-height: 25px;
span{
width:50%;
}
}
}
}
......
.mv-detail-page{margin-bottom:47px}.mv-detail-page .detail-headers{min-height:304px;padding:40px 35px;background:#fff}.mv-detail-page .detail-headers .goodsimg{width:222px;height:222px;margin-right:20px}.mv-detail-page .detail-headers .info .box{height:192px;width:420px}.mv-detail-page .detail-headers .info .box h1{font-weight:bold;font-size:18px;color:#313131;line-height:24px;margin-bottom:12px}.mv-detail-page .detail-headers .info .box p{font-size:12px;color:#000000;line-height:25px;max-height:50px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.mv-detail-page .detail-headers .info .handle .btn{width:80px;height:30px;background:#FF9A00;line-height:30px;text-align:center;color:#fff}.mv-detail-page .detail-headers .r{width:452px;min-height:222px;background:#FFFCF8;padding:10px 50px}.mv-detail-page .detail-headers .r .mb23{margin-bottom:24px}.mv-detail-page .detail-headers .r .items{width:50%;font-size:12px;color:#000000;line-height:25px}.mv-detail-page .detail-section{margin-top:20px}.mv-detail-page .detail-section .secl{width:978px;min-height:330px;background:#FFFFFF;padding:30px}.mv-detail-page .detail-section .secl .lilist-box{border-top:1px solid #e5e5e5;font-size:14px;color:#313131;flex-shrink:0;flex-wrap:wrap;border-left:1px solid #e5e5e5}.mv-detail-page .detail-section .secl .lilist-box p{line-height:36px;width:50%;box-sizing:border-box;height:36px;border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-detail-page .detail-section .secl .lilist-box p b{width:130px;float:left;display:block;border-right:1px solid #e5e5e5;padding-left:20px;background:#F5F5F5;margin-right:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-detail-page .detail-section .secl .lilist-box p span{padding-left:10px}.mv-detail-page .detail-section .secl .lilist-box p .ple0 span{padding-left:0px !important}.mv-detail-page .detail-section .secl .goods-mask{height:60px;line-height:30px;color:#313131;font-size:14px}.mv-detail-page .detail-section .secl .goods-mask div{width:130px;float:left;border-right:1px solid #e5e5e5;border-left:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;padding-left:20px;background:#F5F5F5;height:90px}.mv-detail-page .detail-section .secl .goods-mask h4{background:#fff;width:745px;height:90px;padding-left:10px;padding-right:10px;border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.mv-detail-page .detail-section .secr .item{padding:34px 18px;width:233px;height:330px;transition:all .5s;background:#fff;display:block;margin-bottom:20px}.mv-detail-page .detail-section .secr .item:last-child{margin-bottom:0px}.mv-detail-page .detail-section .secr .item:hover{box-shadow:4px 6px 7px 1px rgba(154,151,149,0.18);transform:translateY(-1px)}.mv-detail-page .detail-section .secr .item img{width:150px;height:109px;display:block;margin:0 auto;margin-bottom:60px}.mv-detail-page .detail-section .secr .item .gos{font-size:14px;color:#000000;line-height:25px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;height:50px;margin-bottom:30px}.mv-detail-page .detail-section .secr .item .nam{font-weight:normal;font-size:16px;color:#000000;line-height:18px;text-overflow:ellipsis;overflow:hidden;height:18px;max-width:110px}.mv-detail-page .detail-section .secr .item .prs{font-size:16px;color:#FF0006;line-height:18px}
\ No newline at end of file
.mv-detail-page{margin-bottom:47px}.mv-detail-page .detail-headers{min-height:304px;padding:40px 35px;background:#fff}.mv-detail-page .detail-headers .goodsimg{width:222px;height:222px;margin-right:20px}.mv-detail-page .detail-headers .info .box{height:192px;width:420px}.mv-detail-page .detail-headers .info .box h1{font-weight:bold;font-size:18px;color:#313131;line-height:24px;margin-bottom:12px}.mv-detail-page .detail-headers .info .box p{font-size:12px;color:#000000;line-height:25px;max-height:50px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.mv-detail-page .detail-headers .info .handle .btn{width:80px;height:30px;background:#FF9A00;line-height:30px;text-align:center;color:#fff}.mv-detail-page .detail-headers .r{width:452px;min-height:222px;background:#FFFCF8;padding:10px 50px}.mv-detail-page .detail-headers .r .mb23{margin-bottom:24px}.mv-detail-page .detail-headers .r .items{width:50%;font-size:12px;color:#000000;line-height:25px}.mv-detail-page .detail-headers .r .items span{width:50%}.mv-detail-page .detail-section{margin-top:20px}.mv-detail-page .detail-section .secl{width:978px;min-height:330px;background:#FFFFFF;padding:30px}.mv-detail-page .detail-section .secl .lilist-box{border-top:1px solid #e5e5e5;font-size:14px;color:#313131;flex-shrink:0;flex-wrap:wrap;border-left:1px solid #e5e5e5}.mv-detail-page .detail-section .secl .lilist-box p{line-height:36px;width:50%;box-sizing:border-box;height:36px;border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-detail-page .detail-section .secl .lilist-box p b{width:130px;float:left;display:block;border-right:1px solid #e5e5e5;padding-left:20px;background:#F5F5F5;margin-right:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-detail-page .detail-section .secl .lilist-box p span{padding-left:10px}.mv-detail-page .detail-section .secl .lilist-box p .ple0 span{padding-left:0px !important}.mv-detail-page .detail-section .secl .goods-mask{height:60px;line-height:30px;color:#313131;font-size:14px}.mv-detail-page .detail-section .secl .goods-mask div{width:130px;float:left;border-right:1px solid #e5e5e5;border-left:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;padding-left:20px;background:#F5F5F5;height:90px}.mv-detail-page .detail-section .secl .goods-mask h4{background:#fff;width:745px;height:90px;padding-left:10px;padding-right:10px;border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.mv-detail-page .detail-section .secr .item{padding:34px 18px;width:233px;height:330px;transition:all .5s;background:#fff;display:block;margin-bottom:20px}.mv-detail-page .detail-section .secr .item:last-child{margin-bottom:0px}.mv-detail-page .detail-section .secr .item:hover{box-shadow:4px 6px 7px 1px rgba(154,151,149,0.18);transform:translateY(-1px)}.mv-detail-page .detail-section .secr .item img{width:150px;height:109px;display:block;margin:0 auto;margin-bottom:60px}.mv-detail-page .detail-section .secr .item .gos{font-size:14px;color:#000000;line-height:25px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;height:50px;margin-bottom:30px}.mv-detail-page .detail-section .secr .item .nam{font-weight:normal;font-size:16px;color:#000000;line-height:18px;text-overflow:ellipsis;overflow:hidden;height:18px;max-width:110px}.mv-detail-page .detail-section .secr .item .prs{font-size:16px;color:#FF0006;line-height:18px}
\ No newline at end of file
import './index.min.css'
import Footer from "../../components/Footer";
import Header from "../../components/Header";
import DetailHead from './components/DetailHead';
import DetailSection from './components/DetailSection';
import BreadNav from '../../components/BreadNav';
import {useParams } from 'react-router-dom';
import { useNavigate, useParams } from 'react-router-dom';
import useRequest from '../../hooks/useRequest';
import { useEffect, useState } from 'react';
import type { DetailResponseType } from './types'
const GoodsDetail = () => {
const navigate=useNavigate()
const params = useParams()
const [detailData,setDetailData]=useState<DetailResponseType>()
const { request:detailRequest} = useRequest<DetailResponseType>({manual:true})
useEffect(()=>{
detailRequest({ url: '/api/goodsSku/getGoodsSkuDetail', params:{sku_id:params.sku_id} }).then(res=>{
if(res?.code===0){
setDetailData(res)
if( res?.data?.sku_info===null){
navigate('/404')
}
}else{
navigate('/404')
}
})
const GoodsDetail=()=>{
const Helmet = require('react-helmet').Helmet;
const params=useParams()
console.log(params)
},[detailRequest,params.sku_id,navigate])
return (
<>
<Helmet><title>麒麟电子商城-商品详情</title></Helmet>
<Header />
<div className="mv-detail-page">
<BreadNav > <strong>aaaa</strong></BreadNav>
<DetailHead />
<DetailSection />
{
detailData&&detailData.data?.sku_info ?
<div className="mv-detail-page">
<BreadNav > <strong>{detailData.data?.sku_info?.sku_name}</strong></BreadNav>
<DetailHead {...detailData}/>
<DetailSection {...detailData}/>
</div>
<Footer />
: ''
}
</>
)
......
export type ResponseType = {
success: boolean,
data: Array<{
shopId: string,
shopName: string,
cartList: Array<{
productId: string,
imgUrl: string,
weight: string,
title: string,
price: number,
count: number
}>
}>
}
\ No newline at end of file
export type DetailResponseType = {
code: number|string,
data: {
sku_info:skuInfoResponseType|null,
other_sku_list:Array<{
sku_name:string,
sku_id:string|number,
brand_name:string,
goods_images:string,
single_price:string
}>
}|null,
msg:string
}
export type skuInfoResponseType = {
sku_name:string,
brand_name?:string,
goods_images:string,
encap:string,
batch_sn:string,
remark:string,
goods_type_name:string,
moq:number,
multiple:number,
stock:number,
cn_delivery_time:string,
hk_delivery_time:string,
ladder_price:Array<{
price_cn:number,
price_us:number,
purchase:number
}>
}
\ No newline at end of file
import { Carousel } from 'antd';
import { StyleProvider, legacyLogicalPropertiesTransformer } from '@ant-design/cssinjs';
import { memo } from 'react';
const HomeBanner=()=>{
const HomeBanner=memo(function HomeBanner(){
const bannerList = [
{
title: '图片1',
......@@ -40,6 +41,8 @@ const HomeBanner=()=>{
</>
)
}
})
export default HomeBanner
\ No newline at end of file
const HomeFloor1 = () => {
import { Link } from "react-router-dom"
import type { ResponseTypeHome } from '../types';
const HomeFloor1 = (props: ResponseTypeHome) => {
const on_sale_list = props.data?.on_sale_list || []
return (
<>
<div className='w1226 floor1 bothSide'>
<div className="row bothSide cons">
<a className='item boxsiz row bothSide' href='/'>
<img src='https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg' loading="lazy" alt="" />
<div className='rt boxsiz '>
<div className='gos'>CRCW20107R5VISHAY CR</div>
<div className='nam'>VISHAY</div>
<div className='prs'>¥ 0.2255</div>
</div>
</a>
<a className='item boxsiz row bothSide' href='/'>
<img src='https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg' loading="lazy" alt="" />
<div className='rt boxsiz '>
<div className='gos'>CRCW20107R5VISHAY CR</div>
<div className='nam'>VISHAY</div>
<div className='prs'>¥ 0.2255</div>
</div>
</a>
<a className='item boxsiz row bothSide' href='/'>
<img src='https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg' loading="lazy" alt="" />
{
on_sale_list.map(item => {
return (
<Link to={`/detail/${item.sku_id}`} key={item.sku_id} className='item boxsiz row bothSide'>
<img src={item.goods_images || 'http://static.ichunt.com//dist/res/home/images/goods_default.png'} alt="" />
<div className='rt boxsiz '>
<div className='gos'>CRCW20107R5VISHAY CR</div>
<div className='nam'>VISHAY</div>
<div className='prs'>¥ 0.2255</div>
<div className='gos'>{item.sku_name}</div>
<div className='nam'>{item.brand_name}</div>
<div className='prs'>¥{item.single_price}</div>
</div>
</a>
</Link>
)
})
}
</div>
<a href='/' className='floor1ad'>
<img src="https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg" loading="lazy" alt="" />
<img src="https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg" alt="" />
</a>
</div>
</>
......
import { Link } from "react-router-dom"
const HomeFloor2 = () => {
import type { ResponseTypeHome } from '../types';
const HomeFloor2 = (props: ResponseTypeHome) => {
const recommend_goods_list = props.data?.recommend_goods_list || []
return (
<>
<div className='w1226 floor2 boxsiz'>
......@@ -10,46 +10,23 @@ const HomeFloor2 = () => {
<Link to='/' className="more">更多<i className="icon iconfont icon-xiangyou1"></i></Link>
</div>
<div className='boxsiz itembox row bothSide'>
<Link to='/detail/1' className='item boxsiz'>
<img src="https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg" loading="lazy" alt="" />
<div className='gos'>CRCW20107R5VISHAY CR</div>
<div className='row bothSide'>
<div className='nam'>VISHAY</div>
<div className='prs'>¥ 0.2255</div>
</div>
</Link>
<Link to='/detail/1' className='item boxsiz'>
<img src="https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg" loading="lazy" alt="" />
<div className='gos'>CRCW20107R5VISHAY CR</div>
<div className='row bothSide'>
<div className='nam'>VISHAY</div>
<div className='prs'>¥ 0.2255</div>
</div>
</Link>
<Link to='/detail/1' className='item boxsiz'>
<img src="https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg" loading="lazy" alt="" />
<div className='gos'>CRCW20107R5VISHAY CR</div>
<div className='row bothSide'>
<div className='nam'>VISHAY</div>
<div className='prs'>¥ 0.2255</div>
</div>
</Link>
<Link to='/detail/1' className='item boxsiz'>
<img src="https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg" loading="lazy" alt="" />
<div className='gos'>CRCW20107R5VISHAY CR</div>
<div className='row bothSide'>
<div className='nam'>VISHAY</div>
<div className='prs'>¥ 0.2255</div>
</div>
</Link>
<Link to='/detail/1' className='item boxsiz'>
<img src="https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg" loading="lazy" alt="" />
<div className='gos'>CRCW20107R5VISHAY CR</div>
{
recommend_goods_list.map(item => {
return (
<Link to={`/detail/${item.sku_id}`} className='item boxsiz' key={item.sku_id}>
<img src={item.goods_images || 'http://static.ichunt.com//dist/res/home/images/goods_default.png'} alt="" />
<div className='gos'>{item.sku_name}</div>
<div className='row bothSide'>
<div className='nam'>VISHAY</div>
<div className='prs'>¥ 0.2255</div>
<div className='nam'>{item.brand_name}</div>
<div className='prs'>¥{item.single_price}</div>
</div>
</Link>
)
})
}
</div>
</div>
</>
......
import { Link } from "react-router-dom"
const HomeFloor3 = () => {
import type { ResponseTypeHome } from '../types';
const HomeFloor3 = (props: ResponseTypeHome) => {
const recommend_brand_list = props.data?.recommend_brand_list || []
return (
<>
<div className='w1226 floor3 boxsiz'>
<div className="title row bothSide verCenter">
<span>推荐品牌</span>
<Link to='/' className="more">更多<i className="icon iconfont icon-xiangyou1"></i></Link>
<Link to='/brandMap' className="more">更多<i className="icon iconfont icon-xiangyou1"></i></Link>
</div>
<div className='boxsiz itembox row bothSide'>
<Link to='/brand/1' className='item'>
<img src="https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg" loading="lazy" alt="" />
</Link>
<Link to='/' className='item'>
<img src="https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg" loading="lazy" alt="" />
</Link>
<Link to='/' className='item'>
<img src="https://img.ichunt.com/test/images/cms/202405/30/a263b85bf297ae7d85f68a01b5db320d.jpg" loading="lazy" alt="" />
{
recommend_brand_list.map(item => {
return (
<Link to={`/brand/${item.goods_brand_id}`} className='item' key={item.goods_brand_id}>
<img src={item.brand_logo} alt="" />
</Link>
)
})
}
</div>
</div>
......
......@@ -205,6 +205,3 @@
}
}
}
.indexPage .class-boxs .box-one-left {
display: block !important;
}
\ No newline at end of file
.mv-home-page .banner-box{padding-left:234px}.mv-home-page .banner-box .swipers{height:460px;background:#ccc}.mv-home-page .banner-box .swipers img{height:460px;width:992px}.mv-home-page .banner-box .swipers .slick-dots{justify-content:end;bottom:17px;right:10px;left:auto}.mv-home-page .banner-box .swipers .slick-dots li{width:6px;height:6px;border:1px solid #FFFFFF;border-radius:6px}.mv-home-page .banner-box .swipers .slick-dots li.slick-active,.mv-home-page .banner-box .swipers .slick-dots li:hover{background:#FFFFFF}.mv-home-page .floor1{margin-top:20px}.mv-home-page .floor1 .cons{height:252px}.mv-home-page .floor1 .item{width:398px;height:252px;background:linear-gradient(155deg, #F6F6F6 0%, #E9F6FC 100%);border:1px solid #EDEFEF;cursor:pointer;transition:all .5s;padding:35px 20px}.mv-home-page .floor1 .item:hover{box-shadow:4px 6px 7px 1px rgba(154,151,149,0.18);transform:translateY(-1px)}.mv-home-page .floor1 .item:first-child{background:linear-gradient(155deg, #F6F6F6 0%, #FCF5E9 100%)}.mv-home-page .floor1 .item:last-child{background:linear-gradient(147deg, #F6F6F6 0%, #FCE9E9 100%)}.mv-home-page .floor1 .item img{width:182px;height:182px}.mv-home-page .floor1 .item .rt{width:158px;height:182px;padding:20px 0}.mv-home-page .floor1 .item .rt .gos{font-size:14px;color:#000000;line-height:25px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;height:50px;margin-bottom:40px}.mv-home-page .floor1 .item .rt .nam{font-weight:normal;font-size:16px;color:#000000;line-height:18px;text-overflow:ellipsis;overflow:hidden;height:18px}.mv-home-page .floor1 .item .rt .prs{font-size:16px;color:#FF0006;line-height:18px;margin-top:12px}.mv-home-page .floor1 .floor1ad{display:block;height:118px;margin-top:20px}.mv-home-page .floor1 .floor1ad img{width:1226px;height:118px}.mv-home-page .floor2{margin-top:50px}.mv-home-page .floor2 .title{margin-bottom:30px}.mv-home-page .floor2 .title span{font-size:24px;color:#000000;line-height:31px}.mv-home-page .floor2 .title .more{font-size:16px;color:#888888}.mv-home-page .floor2 .title .more:hover{color:#FF9A00}.mv-home-page .floor2 .itembox{flex-wrap:wrap}.mv-home-page .floor2 .itembox .item{padding:34px 18px;width:233px;height:330px;background:#FFFFFF;transition:all .5s}.mv-home-page .floor2 .itembox .item:hover{box-shadow:4px 6px 7px 1px rgba(154,151,149,0.18);transform:translateY(-1px)}.mv-home-page .floor2 .itembox .item img{width:150px;height:109px;display:block;margin:0 auto;margin-bottom:60px}.mv-home-page .floor2 .itembox .item .gos{font-size:14px;color:#000000;line-height:25px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;height:50px;margin-bottom:30px}.mv-home-page .floor2 .itembox .item .nam{font-weight:normal;font-size:16px;color:#000000;line-height:18px;text-overflow:ellipsis;overflow:hidden;height:18px;max-width:110px}.mv-home-page .floor2 .itembox .item .prs{font-size:16px;color:#FF0006;line-height:18px}.mv-home-page .floor3{margin-top:50px;margin-bottom:65px}.mv-home-page .floor3 .title{margin-bottom:30px}.mv-home-page .floor3 .title span{font-size:24px;color:#000000;line-height:31px}.mv-home-page .floor3 .title .more{font-size:16px;color:#888888}.mv-home-page .floor3 .title .more:hover{color:#FF9A00}.mv-home-page .floor3 .itembox{flex-wrap:wrap}.mv-home-page .floor3 .itembox .item{width:233px;height:80px;transition:all .5s;margin-bottom:15px}.mv-home-page .floor3 .itembox .item:hover{box-shadow:4px 6px 7px 1px rgba(154,151,149,0.18);transform:translateY(-1px)}.mv-home-page .floor3 .itembox .item img{width:233px;height:80px;object-fit:contain}.indexPage .class-boxs .box-one-left{display:block !important}
\ No newline at end of file
.mv-home-page .banner-box{padding-left:234px}.mv-home-page .banner-box .swipers{height:460px;background:#ccc}.mv-home-page .banner-box .swipers img{height:460px;width:992px}.mv-home-page .banner-box .swipers .slick-dots{justify-content:end;bottom:17px;right:10px;left:auto}.mv-home-page .banner-box .swipers .slick-dots li{width:6px;height:6px;border:1px solid #FFFFFF;border-radius:6px}.mv-home-page .banner-box .swipers .slick-dots li.slick-active,.mv-home-page .banner-box .swipers .slick-dots li:hover{background:#FFFFFF}.mv-home-page .floor1{margin-top:20px}.mv-home-page .floor1 .cons{height:252px}.mv-home-page .floor1 .item{width:398px;height:252px;background:linear-gradient(155deg, #F6F6F6 0%, #E9F6FC 100%);border:1px solid #EDEFEF;cursor:pointer;transition:all .5s;padding:35px 20px}.mv-home-page .floor1 .item:hover{box-shadow:4px 6px 7px 1px rgba(154,151,149,0.18);transform:translateY(-1px)}.mv-home-page .floor1 .item:first-child{background:linear-gradient(155deg, #F6F6F6 0%, #FCF5E9 100%)}.mv-home-page .floor1 .item:last-child{background:linear-gradient(147deg, #F6F6F6 0%, #FCE9E9 100%)}.mv-home-page .floor1 .item img{width:182px;height:182px}.mv-home-page .floor1 .item .rt{width:158px;height:182px;padding:20px 0}.mv-home-page .floor1 .item .rt .gos{font-size:14px;color:#000000;line-height:25px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;height:50px;margin-bottom:40px}.mv-home-page .floor1 .item .rt .nam{font-weight:normal;font-size:16px;color:#000000;line-height:18px;text-overflow:ellipsis;overflow:hidden;height:18px}.mv-home-page .floor1 .item .rt .prs{font-size:16px;color:#FF0006;line-height:18px;margin-top:12px}.mv-home-page .floor1 .floor1ad{display:block;height:118px;margin-top:20px}.mv-home-page .floor1 .floor1ad img{width:1226px;height:118px}.mv-home-page .floor2{margin-top:50px}.mv-home-page .floor2 .title{margin-bottom:30px}.mv-home-page .floor2 .title span{font-size:24px;color:#000000;line-height:31px}.mv-home-page .floor2 .title .more{font-size:16px;color:#888888}.mv-home-page .floor2 .title .more:hover{color:#FF9A00}.mv-home-page .floor2 .itembox{flex-wrap:wrap}.mv-home-page .floor2 .itembox .item{padding:34px 18px;width:233px;height:330px;background:#FFFFFF;transition:all .5s}.mv-home-page .floor2 .itembox .item:hover{box-shadow:4px 6px 7px 1px rgba(154,151,149,0.18);transform:translateY(-1px)}.mv-home-page .floor2 .itembox .item img{width:150px;height:109px;display:block;margin:0 auto;margin-bottom:60px}.mv-home-page .floor2 .itembox .item .gos{font-size:14px;color:#000000;line-height:25px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;height:50px;margin-bottom:30px}.mv-home-page .floor2 .itembox .item .nam{font-weight:normal;font-size:16px;color:#000000;line-height:18px;text-overflow:ellipsis;overflow:hidden;height:18px;max-width:110px}.mv-home-page .floor2 .itembox .item .prs{font-size:16px;color:#FF0006;line-height:18px}.mv-home-page .floor3{margin-top:50px;margin-bottom:65px}.mv-home-page .floor3 .title{margin-bottom:30px}.mv-home-page .floor3 .title span{font-size:24px;color:#000000;line-height:31px}.mv-home-page .floor3 .title .more{font-size:16px;color:#888888}.mv-home-page .floor3 .title .more:hover{color:#FF9A00}.mv-home-page .floor3 .itembox{flex-wrap:wrap}.mv-home-page .floor3 .itembox .item{width:233px;height:80px;transition:all .5s;margin-bottom:15px}.mv-home-page .floor3 .itembox .item:hover{box-shadow:4px 6px 7px 1px rgba(154,151,149,0.18);transform:translateY(-1px)}.mv-home-page .floor3 .itembox .item img{width:233px;height:80px;object-fit:contain}
\ No newline at end of file
import './index.min.css'
import Header from "../../components/Header";
import Footer from "../../components/Footer";
import HomeBanner from './components/HomeBanner';
import HomeFloor1 from './components/HomeFloor1';
import HomeFloor2 from './components/HomeFloor2';
import HomeFloor3 from './components/HomeFloor3';
import useRequest from '../../hooks/useRequest';
import type {ResponseTypeHome } from './types';
import type { ResponseTypeHome } from './types';
import { useRef } from 'react';
const Home = () => {
const Helmet = require('react-helmet').Helmet;
const defaultRequestData=useRef({url: '/home.json'})
const {data}=useRequest<ResponseTypeHome>(defaultRequestData.current)
console.log(data)
const defaultRequestData = useRef({ url: '/api/home/getHomepageList' })
const { data } = useRequest<ResponseTypeHome>(defaultRequestData.current)
const result: ResponseTypeHome = data!
return (
<>
<Helmet><title>麒麟电子商城-首页</title></Helmet>
<div className='indexPage'>
<Header navname='首页' />
<div className='mv-home-page'>
<HomeBanner />
<HomeFloor1 />
<HomeFloor2 />
<HomeFloor3 />
<HomeFloor1 {...result} />
<HomeFloor2 {...result} />
<HomeFloor3 {...result} />
</div>
<Footer />
</div>
</>
)
}
export default Home
\ No newline at end of file
export type ResponseTypeHome = {
success: boolean,
code: number|string,
data: {
location: {
id: string,
address: string
},
banners:Array<{
id: string,
imgUrl:string,
name:string
}>,
categories:Array<{
id: string,
imgUrl:string,
name:string
}>,
freshes:{
title:string,
url:string,
list:Array<{
id: string,
imgUrl:string,
name:string,
price:string
}>
}
}
on_sale_list?:Array<onSaleListType>,
recommend_brand_list?:Array<recommendBrandListType>,
recommend_goods_list?:Array<recommendGoodsListType>
}|null,
msg:string
}
export type onSaleListType = {
goods_images:string,
sku_id:string|number,
sku_name:string,
single_price:string,
brand_name:string
}
export type recommendBrandListType = {
brand_logo:string,
brand_name:string,
goods_brand_id:string|number
}
export type recommendGoodsListType = {
goods_images:string,
brand_name:string,
sku_id:string|number,
single_price:string|number,
sku_name:string
}
\ No newline at end of file
import './index.min.css'
import Header from "../../components/Header";
import Footer from "../../components/Footer";
import { useEffect, useState } from 'react';
import FilterDate from './FilterDate';
type listType = Array<{
title: string,
context: string,
time: string,
isAuto: boolean,
id:string
}>
import useRequest from '../../hooks/useRequest';
import type { NoticeResponseType,listType } from './types'
import { Pagination } from 'antd';
const Notice = () => {
const Helmet = require('react-helmet').Helmet;
const [ntList, setNtList] = useState<listType>([])
const [page,setPage]=useState(1)
const [total,setTotal]=useState(0)
const { request:noticeRequest} = useRequest<NoticeResponseType>({manual:true})
useEffect(() => {
setNtList([
{
title: '2024年慕尼黑上海电子展(electr)',
context: '2024年慕尼黑上海电子展(electronica China)将于7月8-10日在上海新国际博览中心举办,猎芯携手罗彻斯特电子诚邀您观展,我们在E5馆5130展台等你来!2024年慕尼黑上海电子展(electronica China)将于7月8-10日在上海新国际博览中心举办,猎芯携手罗彻斯特电子诚邀您观展,我们在E5馆5130展台等你来!2024年慕尼黑上海电子展(electronica China)将于7月8-10日在上海新国际博览中心举办,猎芯携手罗彻斯特电子诚邀您观展,我们在E5馆5130展台等你来!2024年慕尼黑上海电子展(electronica China)将于7月8-10日在上海新国际博览中心举办,猎芯携手罗彻斯特电子诚邀您观展,我们在E5馆5130展台等你来!2024年慕尼黑上海电子展(electronica China)将于7月8-10日在上海新国际博览中心举办,猎芯携手罗彻斯特电子诚邀您观展,我们在E5馆5130展台等你来!2024年慕尼黑上海电子展(electronica China)将于7月8-10日在上海新国际博览中心举办,猎芯携手罗彻斯特电子诚邀您观展,我们在E5馆5130展台等你来!2024年慕尼黑上海电子展(electronica China)将于7月8-10日在上海新国际博览中心举办,猎芯携手罗彻斯特电子诚邀您观展,我们在E5馆5130展台等你来!2024年慕尼黑上海电子展(electronica China)将于7月8-10日在上海新国际博览中心举办,猎芯携手罗彻斯特电子诚邀您观展,我们在E5馆5130展台等你来!2024年慕尼黑上海电子展(electronica China)将于7月8-10日在上海新国际博览中心举办,猎芯携手罗彻斯特电子诚邀您观展,我们在E5馆5130展台等你来!',
time: '2024-05-30 09:33:35',
isAuto: false,
id:"1"
noticeRequest({url:'/api/article/articleList',params:{page:page,limit:10}}).then(res=>{
if(res?.code===0){
const list_=res.data.list||[]
list_.forEach(item=>{
item.isAuto=false
})
setTotal(res.data?.total)
setNtList(list_)
}
])
}, [])
})
}, [noticeRequest,page])
const changeStatus=(id:string)=>{
const changeStatus=(article_id:number)=>{
const newList=[...ntList]
newList.forEach((item)=>{
if(item.id===id){
if(item.article_id===article_id){
item.isAuto=!item.isAuto
}
})
setNtList(newList)
}
const onChange=(page:number)=>{
setPage(page)
}
return (
<>
<Helmet><title>麒麟电子商城-公告</title></Helmet>
<Header navname='公告' />
<div className='mv-notice-page'>
<h1 className='w1226'>公告</h1>
<div className='itembox w1226'>
{
ntList.map((item, index) => {
return (
<div className='item row boxsiz' key={index+item.id}>
<div className='item row boxsiz' key={index+item.article_id}>
<div className='date row verCenter'>
<FilterDate time={item.time}/>
<FilterDate time={item.create_time_cn}/>
</div>
<div className='sxc boxsiz'>
<div className='titleo'>{item.title}</div>
<div className={item.isAuto?'htmlbox boxsiz auto':'htmlbox boxsiz'}>
{item.context}
</div>
<div className='ckmore' onClick={()=>{changeStatus(item.id)}}>{item.isAuto?'收起':'查看详情'}</div>
<div className='titleo'>{item.article_title}</div>
<div className={item.isAuto?'htmlbox boxsiz auto':'htmlbox boxsiz'} dangerouslySetInnerHTML={{__html: item.article_desc}}></div>
<div className='ckmore' onClick={()=>{changeStatus(item.article_id)}}>{item.isAuto?'收起':'查看详情'}</div>
</div>
</div>
)
})
}
<Pagination current={page} hideOnSinglePage={true} onChange={onChange} total={total} pageSize={10} showSizeChanger={false}/>
</div>
</div>
<Footer />
</>
)
......
export type ResponseType = {
success: boolean,
data: Array<{
shopId: string,
shopName: string,
cartList: Array<{
productId: string,
imgUrl: string,
weight: string,
title: string,
price: number,
count: number
}>
}>
}
\ No newline at end of file
export type NoticeResponseType = {
code: number,
data: {list:listType,total:number},
msg:string
}
export type listType = Array<{
article_desc: string,
article_title: string,
article_id: number,
cat_id:number
isAuto?: boolean,
create_time_cn:string
}>
import './index.min.css'
import Header from "../../components/Header";
import Footer from "../../components/Footer";
import BreadNav from '../../components/BreadNav';
const Page404 = () => {
const Helmet = require('react-helmet').Helmet;
return (
<>
<Helmet><title>麒麟电子商城-404找不到页面</title></Helmet>
<Header />
<BreadNav><strong>404</strong></BreadNav>
<div className="page-404">
<img src={require('../../images/p404.png')} alt="" />
</div>
<Footer />
</>
)
......
......@@ -2,11 +2,10 @@ import './index.min.css'
import { useEffect, useReducer, useRef, useState } from 'react';
import type { ListSortType } from '../../components/ListSort/types'
import Header from "../../components/Header";
import Footer from "../../components/Footer";
import BreadNav from '../../components/BreadNav';
import ListSort from '../../components/ListSort';
import ListOneItem from '../../components/ListOneItem';
//import ListOneItem from '../../components/ListOneItem';
import { useLocation } from 'react-router-dom';
import { brandsAndClasssReducer } from './reducer';
import type {ResponseTypeHome} from './types'
......@@ -14,7 +13,7 @@ import useRequest from '../../hooks/useRequest';
const Search = () => {
const Helmet = require('react-helmet').Helmet;
const location = useLocation();
const params = new URLSearchParams(location.search);
const keyword = params.get('keyword');
......@@ -25,7 +24,8 @@ const Search = () => {
useEffect(()=>{
getListRequest({url: '/home.json',params:{keyword:keyword,num:num}}).then((response)=>{
getListRequest({url: '/api/home/getHomepageList',params:{keyword:keyword,num:num}}).then((res)=>{
console.log(res)
const datasg = [
{
goods_id: 1,
......@@ -88,7 +88,7 @@ const Search = () => {
]
dispatchBrands({type: 'brandsInit',value:datasg})
dispatchclasss({type: 'classsInit',value:datasg})
console.log(response)
})
},[getListRequest,keyword,num])
......@@ -131,8 +131,7 @@ const Search = () => {
return (
<>
<Helmet><title>麒麟电子商城-搜索结果</title></Helmet>
<Header navname='搜索结果' />
<BreadNav><strong>"MPX5700ASX"的型号搜索结果</strong></BreadNav>
<div className='mv-search-page w1226' >
<div className='shift-box'>
......@@ -186,19 +185,19 @@ const Search = () => {
<ListSort sortObj={sortObj} setSortObj={setSortObj} />
<div className='data-group-supplier'>
<div className='data-list-title'>djk</div>
<ListOneItem />
<ListOneItem />
{/* <ListOneItem />
<ListOneItem /> */}
<div className='data-list-more'>还有<b>32</b>个商品未显示,<b>点击加载更多</b></div>
</div>
<div className='data-group-supplier'>
<div className='data-list-title'>djk</div>
<ListOneItem />
<ListOneItem />
{/* <ListOneItem />
<ListOneItem /> */}
<div className='data-list-more'>还有<b>32</b>个商品未显示,<b>点击加载更多</b></div>
</div>
</div>
</div>
<Footer />
</>
)
......
......@@ -17,36 +17,36 @@ export type ResponseType = {
export type BrandAndClassType = Array<{
id: string,
value: string,
checked:boolean
checked: boolean
}>
export type ResponseTypeHome = {
success: boolean,
code: number | string,
data: {
location: {
id: string,
address: string
},
banners:Array<{
id: string,
imgUrl:string,
name:string
}>,
categories:Array<{
id: string,
imgUrl:string,
name:string
}>,
freshes:{
title:string,
url:string,
list:Array<{
id: string,
imgUrl:string,
name:string,
price:string
}>
}
}
on_sale_list?: Array<onSaleListType>,
recommend_brand_list?: Array<recommendBrandListType>,
recommend_goods_list?: Array<recommendGoodsListType>
} | null,
msg: string
}
export type onSaleListType = {
goods_images: string,
sku_id: string | number,
sku_name: string,
single_price: string,
brand_name: string
}
export type recommendBrandListType = {
brand_logo: string,
brand_name: string,
goods_brand_id: string | number
}
export type recommendGoodsListType = {
goods_images: string,
brand_name: string,
sku_id: string | number,
single_price: string | number,
sku_name: string
}
\ No newline at end of file
......@@ -207,5 +207,41 @@ body,html{
}
.ant-pagination{
display: flex;
justify-content: end;
.ant-pagination-item,.ant-pagination-prev,.ant-pagination-next{
display: block;
box-sizing: border-box;
height: 25px;
min-width: 25px;
min-height: 25px;
background: #FBFBFB;
border-radius: 2px;
border: 1px solid #E8E8E8;
text-align: center;
line-height: 25px;
color:#616161;
position: relative;
transition: all 0.5s;
border-radius: 1px;
font-size: 12px;
a,button{padding:0px!important;border-radius: 0px!important;}
button{line-height: 23px;}
&.ant-pagination-item-active,&:hover{
background-color:none;
background: linear-gradient(180deg, #FDFDFD 0%, #E2E2E2 100%)!important;
border: 1px solid #A1A1A1!important;
color:#313131;
a{
color:#313131;
background: none;
}
}
}
}
@charset "utf-8";html,body,div,iframe,em,img,p,a,strong,b,i,form,label,span,h1,h2,h3,h4,h5,h6,dl,dt,dd,ol,ul,li,applet,object,blockquote,big,cite,code,del,dfn,abbr,acronym,address,pre,time,mark,audio,video,article,aside,canvas,details,embed,figure,figcaption,footer,header,nav,section,menu,button,input,textarea{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;font-weight:normal;list-style:none;outline:none;resize:none}table,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;font-size:100%;font:inherit}a{text-decoration:none}a:hover{color:#FF9A00}table{border-color:#ccc !important}body,html,button,input{font-family:Arial,helvetica,PingFangSC-Regular,PingFang SC,"微软雅黑"}input::-webkit-input-placeholder{color:#808080}.fw{font-weight:bold}.clr:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.clr{display:block;min-height:1%}.clr{clear:both}.clr:after{content:" ";display:table;clear:both}.fl{float:left}.fr{float:right}.fw{font-weight:bold}.ta-c{text-align:center}.ta-r{text-align:right}.ta-l{text-align:left}.flex{display:flex}.column{display:flex;flex-direction:column}.row{display:flex;flex-direction:row}.boxsiz{-webkit-box-sizing:border-box;box-sizing:border-box}.bothSide{justify-content:space-between}.avarage{justify-content:space-around}.rowCenter{justify-content:center}.verCenter{align-items:center}body,html{background:#fafafa;font-size:14px;color:#333}.w1226{width:1226px;margin:0 auto}
\ No newline at end of file
@charset "utf-8";html,body,div,iframe,em,img,p,a,strong,b,i,form,label,span,h1,h2,h3,h4,h5,h6,dl,dt,dd,ol,ul,li,applet,object,blockquote,big,cite,code,del,dfn,abbr,acronym,address,pre,time,mark,audio,video,article,aside,canvas,details,embed,figure,figcaption,footer,header,nav,section,menu,button,input,textarea{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;font-weight:normal;list-style:none;outline:none;resize:none}table,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;font-size:100%;font:inherit}a{text-decoration:none}a:hover{color:#FF9A00}table{border-color:#ccc !important}body,html,button,input{font-family:Arial,helvetica,PingFangSC-Regular,PingFang SC,"微软雅黑"}input::-webkit-input-placeholder{color:#808080}.fw{font-weight:bold}.clr:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.clr{display:block;min-height:1%}.clr{clear:both}.clr:after{content:" ";display:table;clear:both}.fl{float:left}.fr{float:right}.fw{font-weight:bold}.ta-c{text-align:center}.ta-r{text-align:right}.ta-l{text-align:left}.flex{display:flex}.column{display:flex;flex-direction:column}.row{display:flex;flex-direction:row}.boxsiz{-webkit-box-sizing:border-box;box-sizing:border-box}.bothSide{justify-content:space-between}.avarage{justify-content:space-around}.rowCenter{justify-content:center}.verCenter{align-items:center}body,html{background:#fafafa;font-size:14px;color:#333}.w1226{width:1226px;margin:0 auto}.ant-pagination{display:flex;justify-content:end}.ant-pagination .ant-pagination-item,.ant-pagination .ant-pagination-prev,.ant-pagination .ant-pagination-next{display:block;box-sizing:border-box;height:25px;min-width:25px;min-height:25px;background:#FBFBFB;border-radius:2px;border:1px solid #E8E8E8;text-align:center;line-height:25px;color:#616161;position:relative;transition:all .5s;border-radius:1px;font-size:12px}.ant-pagination .ant-pagination-item a,.ant-pagination .ant-pagination-prev a,.ant-pagination .ant-pagination-next a,.ant-pagination .ant-pagination-item button,.ant-pagination .ant-pagination-prev button,.ant-pagination .ant-pagination-next button{padding:0px!important;border-radius:0px!important}.ant-pagination .ant-pagination-item button,.ant-pagination .ant-pagination-prev button,.ant-pagination .ant-pagination-next button{line-height:23px}.ant-pagination .ant-pagination-item.ant-pagination-item-active,.ant-pagination .ant-pagination-prev.ant-pagination-item-active,.ant-pagination .ant-pagination-next.ant-pagination-item-active,.ant-pagination .ant-pagination-item:hover,.ant-pagination .ant-pagination-prev:hover,.ant-pagination .ant-pagination-next:hover{background-color:none;background:linear-gradient(180deg, #FDFDFD 0%, #E2E2E2 100%) !important;border:1px solid #A1A1A1 !important;color:#313131}.ant-pagination .ant-pagination-item.ant-pagination-item-active a,.ant-pagination .ant-pagination-prev.ant-pagination-item-active a,.ant-pagination .ant-pagination-next.ant-pagination-item-active a,.ant-pagination .ant-pagination-item:hover a,.ant-pagination .ant-pagination-prev:hover a,.ant-pagination .ant-pagination-next:hover a{color:#313131;background:none}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment