This commit is contained in:
zhangjianjun 2026-04-09 13:35:33 +08:00
parent 9d93a8ec37
commit b95f6abdcc
10 changed files with 19 additions and 14 deletions

View File

@ -25,6 +25,8 @@
Learn how to configure a non-root public URL by running `npm run build`. Learn how to configure a non-root public URL by running `npm run build`.
--> -->
<title>银泰</title> <title>银泰</title>
<meta name="keywords" content="银泰,银泰集团,银泰商业,银泰百货,银泰城,银泰中心,银泰百货股份有限公司" />
<meta name="description" content="银泰集团是中国领先的商业地产开发商和运营商,致力于打造高品质的商业综合体和购物中心,为消费者提供优质的购物、娱乐和休闲体验。" />
</head> </head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>

View File

@ -43,7 +43,7 @@ const app = {
}); });
}, },
// 新闻列表 // 新闻列表
getNewsList(params: Params & { title?: string, category_id?: string }) { getNewsList(params: Params & { title?: string, category_id?: string, pinned?: string }) {
return requests({ return requests({
url: "/yt/api/news", url: "/yt/api/news",
method: "get", method: "get",

View File

@ -123,10 +123,9 @@ export default function TopTabs({ data, activeIndex, setActiveIndex, className }
)} */} )} */}
<div ref={containerRef} className={styles.topTabsTabs} <div ref={containerRef} className={styles.topTabsTabs}
> >
<div <div
ref={scrollRef} ref={scrollRef}
className={`${styles.topTabsTabsScroll} ${data.tabItems.length < 4 ? styles.topTabsTabsScrollCenter : ''}`} className={`${styles.topTabsTabsScroll} ${data.tabItems.length <= 4 ? styles.topTabsTabsScrollCenter : ''}`}
> >
{data.tabItems.map((item, index) => ( {data.tabItems.map((item, index) => (
<div <div

View File

@ -72,7 +72,7 @@
.topTabsTabsScrollCenter { .topTabsTabsScrollCenter {
justify-content: center; justify-content: center;
gap: 8.125rem; gap: 8.125rem !important;
} }
.topTabsBottomLine { .topTabsBottomLine {

View File

@ -420,7 +420,7 @@
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
line-height: 1.6; line-height: 1.6;
height: 4.375rem; height: 4.375rem;
max-width: 37.5rem; max-width: 30vw;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;

View File

@ -97,7 +97,11 @@ function News({data}: any) {
const handleVideoPlay = () => { const handleVideoPlay = () => {
if (videoRef.current) { if (videoRef.current) {
try {
videoRef.current.play(); videoRef.current.play();
} catch (err) {
console.log('---video play error', err)
}
} }
}; };
@ -109,7 +113,7 @@ function News({data}: any) {
}; };
const handleSearch = useCallback((category_id: any) => { const handleSearch = useCallback((category_id: any) => {
appApi.getNewsList({ page: 1, size: 6, sort: "create_time DESC", category_id }).then((res) => { appApi.getNewsList({ page: 1, size: 6, sort: "weight DESC", pinned: "1", category_id }).then((res) => {
const data = res.data.items.map((item: any) => { const data = res.data.items.map((item: any) => {
return { return {
id: item.id, id: item.id,

View File

@ -36,7 +36,7 @@ export default function NewsPublic() {
const [searchValue, setSearchValue] = useState(""); const [searchValue, setSearchValue] = useState("");
const handleSearch = useCallback(() => { const handleSearch = useCallback(() => {
appApi.getNewsList({ appApi.getNewsList({
page, size, sort: "create_time DESC", title: searchValue, page, size, sort: "weight DESC", title: searchValue,
category_id: categoryId, category_id: categoryId,
}).then((res) => { }).then((res) => {
const data = res.data.items.map((item: any) => { const data = res.data.items.map((item: any) => {

View File

@ -48,7 +48,7 @@ export default function Search() {
size, size,
title: searchKeyword, title: searchKeyword,
category_id: categoryId, category_id: categoryId,
sort: "create_time DESC", sort: "weight DESC",
}).then((res) => { }).then((res) => {
setSearched(true); setSearched(true);
const data = res.data.items.map((item: any) => { const data = res.data.items.map((item: any) => {

View File

@ -29,7 +29,7 @@ export default function Foundation() {
}, [newsList, locale]) }, [newsList, locale])
const getNewsList = useCallback(() => { const getNewsList = useCallback(() => {
appApi.getNewsList({ appApi.getNewsList({
page: 1, size: 1000, sort: "create_time DESC", page: 1, size: 1000, sort: "weight DESC",
category_id: String(categoryList?.find((item: any) => item.name.includes('【银泰公益基金会】公益传播'))?.id ?? ''), category_id: String(categoryList?.find((item: any) => item.name.includes('【银泰公益基金会】公益传播'))?.id ?? ''),
}).then((res: any) => { }).then((res: any) => {
setNewsList(res.data.items.map((item: any) => { setNewsList(res.data.items.map((item: any) => {

View File

@ -46,7 +46,7 @@ export default function Sustainability() {
appApi.getNewsList({ appApi.getNewsList({
page: 1, page: 1,
size: 8, size: 8,
sort: "create_time DESC", sort: "weight DESC",
category_id: String(categoryList?.find((item: any) => item.name.includes('【可持续发展】社会责任案例集'))?.id ?? ''), category_id: String(categoryList?.find((item: any) => item.name.includes('【可持续发展】社会责任案例集'))?.id ?? ''),
}).then((res) => { }).then((res) => {
const items = res.data.items.map((item: any) => { const items = res.data.items.map((item: any) => {