diff --git a/assets/index.scss b/assets/index.scss
index fe2b162..15c15b2 100644
--- a/assets/index.scss
+++ b/assets/index.scss
@@ -1500,17 +1500,11 @@
}
.text_66 {
- width: 74px;
- height: 19px;
- overflow-wrap: break-word;
- color: rgba(34, 34, 34, 1);
- font-size: 18px;
- font-family: Microsoft YaHei UI-Bold;
- font-weight: 700;
- text-align: left;
- white-space: nowrap;
- line-height: 18px;
- margin: 27px 70px 0 -144px;
+ color: #323232;
+ font-size: 16px;
+ font-family: Microsoft YaHei UI;
+ font-weight: 400;
+ margin-right: 40px;
}
.group_29 {
@@ -1650,31 +1644,28 @@
}
.group_30 {
- background-color: rgba(34, 34, 34, 1);
- width: 100%;
- height: 300px;
- margin-top: -1px;
+ background-color: transparent;
+ width: 1200px;
+ margin-left: 400px;
+ // height: 300px;
+ margin-bottom: 50px;
}
.text-wrapper_13 {
width: 100%;
- height: 17px;
- margin-top: 52px;
- text-align: center;
- justify-content: center;
+ // height: 17px;
+ margin-top: 20px;
}
.text_67 {
- width: 64px;
- height: 16px;
- overflow-wrap: break-word;
- color: rgba(255, 255, 255, 0.5);
+ color: #323232;
font-size: 16px;
- font-family: Microsoft YaHei UI-Regular;
- font-weight: NaN;
- text-align: left;
- white-space: nowrap;
- line-height: 16px;
+ font-family: Microsoft YaHei UI;
+ font-weight: 400;
+ margin-right: 40px;
+ &:hover {
+ color: #EC0A0A;
+ }
}
.text_68 {
@@ -1762,11 +1753,11 @@
}
.group_31 {
- background-color: rgba(216, 216, 216, 0.2);
- width: 63%;
- height: 1px;
- margin: 0 auto;
margin-top: 32px;
+ width: 1200px;
+ height: 1px;
+ background: #D2D2D2;
+ border-radius: 1px;
}
@media screen and (max-width: 1440px) {
@@ -1778,26 +1769,24 @@
.group_32 {
width: 100%;
height: 125px;
- margin: 29px 0 44px 0px;
- justify-content: center;
+ // margin: 29px 0 44px 0px;
+ align-items: center;
+ margin-top: 20px;
}
.text-wrapper_14 {
- width: 545px;
- height: 108px;
+ // width: 545px;
+ // height: 108px;
+ height: 100%;
}
.text_74 {
- width: 545px;
- height: 16px;
- overflow-wrap: break-word;
- color: rgba(255, 255, 255, 0.5);
- font-size: 12px;
- font-family: Microsoft YaHei UI-Regular;
- font-weight: NaN;
- text-align: left;
- white-space: nowrap;
- line-height: 16px;
+ // width: 545px;
+ color: #323232;
+ font-size: 16px;
+ font-family: Source Han Serif CN;
+ font-weight: 400;
+ margin-bottom: 10px;
}
.text_75 {
@@ -1843,17 +1832,15 @@
}
.image_29 {
- width: 124px;
- height: 124px;
- margin: 1px 0 0 406px;
- border-radius: 8px;
+ width: 56px;
+ height: 68px;
+ margin-right: 50px;
}
.image_30 {
- width: 124px;
- height: 124px;
+ width: 92px;
+ height: 92px;
margin-top: 1px;
- margin-left: 20px;
border-radius: 8px;
}
diff --git a/components/AppAboutdel.vue b/components/AppAboutdel.vue
index 87b8974..52db809 100644
--- a/components/AppAboutdel.vue
+++ b/components/AppAboutdel.vue
@@ -157,7 +157,7 @@ onMounted(() => {
height:100%;
background-image: url('/img/aboutxq.png');
background-size: 100% 100%;
- overflow: scroll;
+ overflow-y: auto;
.fiximg {
img {
diff --git a/components/AppFooter.vue b/components/AppFooter.vue
index 8d340c3..7c26884 100644
--- a/components/AppFooter.vue
+++ b/components/AppFooter.vue
@@ -2,44 +2,64 @@
diff --git a/components/AppHeader.vue b/components/AppHeader.vue
index 566cc9e..d270c0e 100644
--- a/components/AppHeader.vue
+++ b/components/AppHeader.vue
@@ -1,40 +1,40 @@
-
-
-
-
![]()
-
官网首页
-

-
-
-
![]()
-
关于我们
-

-
-
-
![]()
-
新闻动态
-

-
-
-
![]()
-
信息公开
-

-
-
-
![]()
-
团务百科
-

-
+
+
+
+
![]()
+
官网首页
+
-
-
返回首页
-
-
无障碍阅读
-
{{ isOld ? '退出适老模式' : '进入适老模式' }}
+
+
![]()
+
关于我们
+

+
+
+
![]()
+
新闻动态
+

+
+
+
![]()
+
信息公开
+

+
+
+
![]()
+
团务百科
+
+
+
返回首页
+
+
无障碍阅读
+
{{ isOld ? '退出适老模式' : '进入适老模式' }}
+
+
@@ -317,7 +319,7 @@ const getNewstypeList = async () => {
width: 100%;
font-family: Microsoft YaHei;
font-weight: 400;
- font-size: 36px;
+ font-size: 22px;
color: #378EDF;
}
.span2{
diff --git a/components/AppNewsdel.vue b/components/AppNewsdel.vue
index 38210a2..d48d447 100644
--- a/components/AppNewsdel.vue
+++ b/components/AppNewsdel.vue
@@ -311,7 +311,7 @@ onMounted(() => {
width: 100%;
font-family: Microsoft YaHei UI;
font-weight: 500;
- font-size: 36px;
+ font-size: 28px;
color: #393939;
margin-top: 10px;
}
@@ -340,7 +340,8 @@ onMounted(() => {
.number_t{
width: 34px;
height: 34px;
- background: #FFA234;
+ // background: #FFA234;
+ background: #E40106;
border-radius: 17px;
font-family: Microsoft YaHei UI;
font-weight: 400;
diff --git a/components/AppRegiment.vue b/components/AppRegiment.vue
index 6abdc52..a204314 100644
--- a/components/AppRegiment.vue
+++ b/components/AppRegiment.vue
@@ -42,7 +42,7 @@
-
+
@@ -108,7 +108,7 @@ const getPageList = async () => {
const getBksList = async () => {
const res = await $api.post('/api/home.encyclopedia/index',
{
- limit:9,
+ limit:12,
page:page.value
}
)
@@ -126,8 +126,9 @@ const getBksList = async () => {
.rightcon{
width:100%;
height:100%;
- background-image: url('/img/twbk.jpg');
+ background-image: url('/img/twbk.png');
background-size: 100% 100%;
+ overflow-y: auto;
.fiximg{
.imgs{
width: 63px;
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 626d106..770425f 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -68,10 +68,20 @@ export default defineNuxtConfig({
target: "https://tsw.hschool.com.cn/api",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
+ },
+ 'http://192.168.10.221/api': {
+ target: "http://tsw.hschool.com.cn/api",
+ changeOrigin: true,
+ rewrite: (path) => path.replace(/^\/api/, ''),
}
}
}
},
+ devServer: {
+ host: '0.0.0.0', // 允许任何IP地址访问
+ port: 3000 // 设置端口号
+ },
+
compatibilityDate: '2025-05-29'
})
\ No newline at end of file
diff --git a/pages/index.vue b/pages/index.vue
index 6efe055..dfabced 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,5 +1,5 @@
-
+
{
- if (rightValue.value == '-94px') {
- rightValue.value = '34px';
- } else {
+ if (rightValue.value == '34px') {
rightValue.value = '-94px';
+ } else {
+ rightValue.value = '34px';
}
}
@@ -149,7 +147,10 @@ const onSwiperNews = (swiper: any) => {
if (swiper.realIndex == 6 || swiper.realIndex == 9 || swiper.realIndex == 7 || swiper.realIndex == 8) {
newsSwiper.mousewheel.disable(); //禁止鼠标滑轮控制
newsSwiper.allowTouchMove= false;//关闭拖动
- } else {
+ } else if(swiper.realIndex == 1 || swiper.realIndex == 5){
+ newsSwiper.mousewheel.disable();
+ newsSwiper.allowTouchMove= true;// 开启拖动
+ }else {
newsSwiper.mousewheel.enable(); //开启鼠标滑轮控制
newsSwiper.allowTouchMove= true;// 开启拖动
}
@@ -165,7 +166,7 @@ const toswiper = (index: number) => {
if (index == 7) isAbout.value = true;
if (index == 8) isMeassage.value = true;
if (index == 9) isSearch.value = true;
- newsSwiper.slideTo(index)
+ newsSwiper.slideTo(index,1000,true)
}
const swiper_exp = ref(0);
@@ -178,7 +179,6 @@ const swiperOptionsNews = {
direction: 'horizontal',
mousewheel: {
releaseOnEdges: true,
- //forceToAxis: isheight.value,
sensitivity: 0.5
},
slidesPerView: 1,
@@ -210,13 +210,13 @@ const swiperOptionsNews = {
const router = useRouter()
onMounted(() => {
-
const coMobile = /Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
if (coMobile) {
- // router.push('/phone_index/')
+ // window.location.href="/web/phone_index/";
+ router.push('/phone_index/')
} else {
- // router.push('/')
+ router.push('/')
}
nextTick(() => {
// 初始化 ScrollReveal
diff --git a/pages/phone_index.vue b/pages/phone_index.vue
new file mode 100644
index 0000000..436dd16
--- /dev/null
+++ b/pages/phone_index.vue
@@ -0,0 +1,769 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
文章精选
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
国务院百事通
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+ 新闻动态
+
+
+ news information
+
+
+
+
![]()
+
+
+
+ {{ item.title }}
+
+
+ {{ item.subtitle }}
+
+
+
+
+
{{ item.cate.name }}
+
{{ retTime(item.release_time_text) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/phone_info/[id].vue b/pages/phone_info/[id].vue
new file mode 100644
index 0000000..09f14dd
--- /dev/null
+++ b/pages/phone_info/[id].vue
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
{{ info.title }}
+
+
发 布 人:{{ info.author }}
+
发布时间:{{ info.release_time_text }}
+
+
+
+
+
+
+
上一篇:{{ info.prev != null ? info.prev.title : '暂无' }}
+
+
+ 下一篇:{{ info.next != null ? info.next.title : '暂无' }}
+
+
+
+
+
+
+
+
+
+
diff --git a/public/img/1c950a7b02087bf4a6441898ec30882310dfcf0e.jpeg b/public/img/1c950a7b02087bf4a6441898ec30882310dfcf0e.jpeg
new file mode 100644
index 0000000..ea1a87f
Binary files /dev/null and b/public/img/1c950a7b02087bf4a6441898ec30882310dfcf0e.jpeg differ
diff --git a/public/img/77c6a7efce1b9d168473b709ed3d6b808d546410.jpeg b/public/img/77c6a7efce1b9d168473b709ed3d6b808d546410.jpeg
new file mode 100644
index 0000000..0d2359e
Binary files /dev/null and b/public/img/77c6a7efce1b9d168473b709ed3d6b808d546410.jpeg differ
diff --git a/public/img/about/ab_bg.png b/public/img/about/ab_bg.png
index 2c761f8..4740f11 100644
Binary files a/public/img/about/ab_bg.png and b/public/img/about/ab_bg.png differ
diff --git a/public/img/aboutxq.png b/public/img/aboutxq.png
index 5fc2e5a..67b49dd 100644
Binary files a/public/img/aboutxq.png and b/public/img/aboutxq.png differ
diff --git a/public/img/b58f8c5494eef01f27df510ffd1d462abe317d27.jpeg b/public/img/b58f8c5494eef01f27df510ffd1d462abe317d27.jpeg
new file mode 100644
index 0000000..987ea9c
Binary files /dev/null and b/public/img/b58f8c5494eef01f27df510ffd1d462abe317d27.jpeg differ
diff --git a/public/img/d6ca7bcb0a46f21fd684b47ee8c7b46f0d33ae5a.jpeg b/public/img/d6ca7bcb0a46f21fd684b47ee8c7b46f0d33ae5a.jpeg
new file mode 100644
index 0000000..ec18f26
Binary files /dev/null and b/public/img/d6ca7bcb0a46f21fd684b47ee8c7b46f0d33ae5a.jpeg differ
diff --git a/public/img/index/bst1.png b/public/img/index/bst1.png
new file mode 100644
index 0000000..17ccb8b
Binary files /dev/null and b/public/img/index/bst1.png differ
diff --git a/public/img/index/bst2.png b/public/img/index/bst2.png
new file mode 100644
index 0000000..ab95f96
Binary files /dev/null and b/public/img/index/bst2.png differ
diff --git a/public/img/index/bst3.png b/public/img/index/bst3.png
new file mode 100644
index 0000000..3a11dfc
Binary files /dev/null and b/public/img/index/bst3.png differ
diff --git a/public/img/index/bst4.png b/public/img/index/bst4.png
new file mode 100644
index 0000000..dd2668f
Binary files /dev/null and b/public/img/index/bst4.png differ
diff --git a/public/img/index/bst5.png b/public/img/index/bst5.png
new file mode 100644
index 0000000..4163402
Binary files /dev/null and b/public/img/index/bst5.png differ
diff --git a/public/img/index/bst6.png b/public/img/index/bst6.png
new file mode 100644
index 0000000..cc30d6d
Binary files /dev/null and b/public/img/index/bst6.png differ
diff --git a/public/img/index/bst7.png b/public/img/index/bst7.png
new file mode 100644
index 0000000..7d8d54d
Binary files /dev/null and b/public/img/index/bst7.png differ
diff --git a/public/img/index/bst8.png b/public/img/index/bst8.png
new file mode 100644
index 0000000..d379e7b
Binary files /dev/null and b/public/img/index/bst8.png differ
diff --git a/public/img/index/bstbg.png b/public/img/index/bstbg.png
new file mode 100644
index 0000000..a2783da
Binary files /dev/null and b/public/img/index/bstbg.png differ
diff --git a/public/img/index/dzjg.png b/public/img/index/dzjg.png
new file mode 100644
index 0000000..4320fae
Binary files /dev/null and b/public/img/index/dzjg.png differ
diff --git a/public/img/index/gwybst.png b/public/img/index/gwybst.png
new file mode 100644
index 0000000..6e62f5c
Binary files /dev/null and b/public/img/index/gwybst.png differ
diff --git a/public/img/index/hlines.png b/public/img/index/hlines.png
new file mode 100644
index 0000000..691a5ef
Binary files /dev/null and b/public/img/index/hlines.png differ
diff --git a/public/img/index/jcdt.png b/public/img/index/jcdt.png
new file mode 100644
index 0000000..e23f193
Binary files /dev/null and b/public/img/index/jcdt.png differ
diff --git a/public/img/index/more_j.png b/public/img/index/more_j.png
new file mode 100644
index 0000000..31365da
Binary files /dev/null and b/public/img/index/more_j.png differ
diff --git a/public/img/index/mtjj.png b/public/img/index/mtjj.png
new file mode 100644
index 0000000..32b792c
Binary files /dev/null and b/public/img/index/mtjj.png differ
diff --git a/public/img/index/ptgg.png b/public/img/index/ptgg.png
new file mode 100644
index 0000000..3c0652f
Binary files /dev/null and b/public/img/index/ptgg.png differ
diff --git a/public/img/index/qcly.png b/public/img/index/qcly.png
new file mode 100644
index 0000000..73b2fc6
Binary files /dev/null and b/public/img/index/qcly.png differ
diff --git a/public/img/index/rightcons.png b/public/img/index/rightcons.png
new file mode 100644
index 0000000..c433dbd
Binary files /dev/null and b/public/img/index/rightcons.png differ
diff --git a/public/img/index/rightcons1.png b/public/img/index/rightcons1.png
new file mode 100644
index 0000000..a7d0acd
Binary files /dev/null and b/public/img/index/rightcons1.png differ
diff --git a/public/img/index/wzjx.png b/public/img/index/wzjx.png
new file mode 100644
index 0000000..91407de
Binary files /dev/null and b/public/img/index/wzjx.png differ
diff --git a/public/img/message/xxgk.png b/public/img/message/xxgk.png
index 0b8cbbf..0e7569a 100644
Binary files a/public/img/message/xxgk.png and b/public/img/message/xxgk.png differ
diff --git a/public/img/messageb.png b/public/img/messageb.png
index b9668a3..7482c2b 100644
Binary files a/public/img/messageb.png and b/public/img/messageb.png differ
diff --git a/public/img/newsxq.png b/public/img/newsxq.png
index 4cb23e2..59dda4e 100644
Binary files a/public/img/newsxq.png and b/public/img/newsxq.png differ
diff --git a/public/img/twbk.jpg b/public/img/twbk.jpg
deleted file mode 100644
index 8942afc..0000000
Binary files a/public/img/twbk.jpg and /dev/null differ
diff --git a/public/img/twbk.png b/public/img/twbk.png
new file mode 100644
index 0000000..8fe9443
Binary files /dev/null and b/public/img/twbk.png differ
diff --git a/public/img/xwdt.png b/public/img/xwdt.png
index ead9560..ef19ee1 100644
Binary files a/public/img/xwdt.png and b/public/img/xwdt.png differ