This commit is contained in:
toom1996
2025-07-04 09:49:52 +08:00
parent bcf7b3a25a
commit d723be397f
7 changed files with 76 additions and 19 deletions

View File

@ -3,7 +3,9 @@ import Layout from '../layouts/Layout.astro';
import { APP_NAME } from '../config/app';
import { newsIndex } from '../../utils/rpc';
import Breadcrumb from '../components/Breadcrumb.astro';
import { getConfig } from '../../utils/config';
const config = getConfig(Astro)
const {code, data} = await newsIndex();

View File

@ -4,13 +4,12 @@ import Layout from "../../../layouts/Layout_2.astro";
import ImageXiazai from '../../../../public/template_2/xiazai.svg';
import { Image } from 'astro:assets';
import { getConfig, getExtra } from "../../../../utils/config";
import { TP2_COLUMN_ABOUT_US, TP2_COLUMN_INDEX, TP2_COLUMN_INDEX_URL } from "../../../../utils/const";
const config = getConfig(Astro)
const extra = getExtra('')
// swiper 数据
const swiper = extra.index.sc3.swiper;
const extra = getExtra(config.app_extra_tag)
const breadcrumb = [{
title: '主页',
url: '/'
title: TP2_COLUMN_INDEX,
url: TP2_COLUMN_INDEX_URL
}]
---

View File

@ -4,7 +4,7 @@ import { newsIndex } from '../../../../utils/rpc';
import { getConfig } from '../../../../utils/config';
import { TP2_COLUMN_NEWS, TP2_COLUMN_NEWS_URL } from '../../../../utils/const';
const config = getConfig(Astro)
const {code, data} = await newsIndex();
const {code, data} = await newsIndex(config.id);
const breadcrumb = [
{
title: '主页',
@ -21,7 +21,7 @@ const breadcrumb = [
<div class="v4 h05-hero-text-only no-margin centered" data-component="h05-hero-text-only" data-video-width="0" data-video-height="0">
<div class="container">
<div class="wrap">
<h1 class="columns-name">新闻</h1>
<h1 class="columns-name">新闻专栏</h1>
</div>
</div>
</div>
@ -51,6 +51,7 @@ const breadcrumb = [
</main>
</Layout>
<style>
.page-news {
background-color: #fff !important;
padding-top: 5rem;
@ -63,6 +64,14 @@ const breadcrumb = [
padding: 3rem;
}
@media only screen and (max-width: 767.98px) {
.columns-name {
font-size: 2rem;
padding: 1rem;
}
}
.result-product__media {
-webkit-box-flex: 0;
-webkit-flex: 0 0 260px;