171 lines
4.1 KiB
Vue
171 lines
4.1 KiB
Vue
<template>
|
||
<view>
|
||
<u-navbar :is-back="true" title="招商公告" :border-bottom="false"></u-navbar>
|
||
<view class="wrap">
|
||
<scroll-view scroll-y style="height: 100%;width: 100%;">
|
||
<view class="page-box">
|
||
<view class="tabSwiper" v-for="(item, index) in dataList" :key="item.id" @click="clickContent(item)">
|
||
<u-icon name="bell" :size="35" color="#FF2F31" class="bell-icon"></u-icon>
|
||
<view class="content-wrapper">
|
||
<view class="top">
|
||
<view class="title">{{ item.title }}</view>
|
||
<view class="date">{{ item.date }}</view>
|
||
</view>
|
||
<view class="item">
|
||
<view class="content u-line-2">{{ item.content }}</view>
|
||
</view>
|
||
</view>
|
||
<u-icon name="arrow-right" color="rgb(203,203,203)" :size="26" class="arrow-icon"></u-icon>
|
||
</view>
|
||
</view>
|
||
</scroll-view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
data() {
|
||
// 静态公告数据
|
||
const staticNoticeList = [
|
||
{
|
||
id: 1,
|
||
title: '关于开展2025年度招商工作的通知',
|
||
date: '2025-01-15',
|
||
content: '为进一步推进我市招商引资工作,优化营商环境,现就开展2025年度招商工作有关事项通知如下:一、工作目标;二、重点领域;三、保障措施...'
|
||
},
|
||
{
|
||
id: 2,
|
||
title: '2024年度招商成果通报',
|
||
date: '2025-01-10',
|
||
content: '2024年,我市招商引资工作取得显著成效,共引进各类项目120个,总投资达500亿元,现将具体成果通报如下:一、总体情况;二、主要特点;三、下一步计划...'
|
||
},
|
||
{
|
||
id: 3,
|
||
title: '关于举办2025年春季招商推介会的通知',
|
||
date: '2025-01-05',
|
||
content: '为搭建投资合作平台,展示我市投资环境和发展机遇,定于2025年3月15日举办春季招商推介会,诚邀各界企业家参会...'
|
||
},
|
||
{
|
||
id: 4,
|
||
title: '关于印发《市招商引资优惠政策实施细则》的通知',
|
||
date: '2024-12-28',
|
||
content: '为进一步规范招商引资优惠政策的实施,经市政府同意,现将《市招商引资优惠政策实施细则》印发给你们,请认真贯彻执行...'
|
||
},
|
||
{
|
||
id: 5,
|
||
title: '关于认定2024年度市重点招商引资项目的通知',
|
||
date: '2024-12-20',
|
||
content: '根据《市重点招商引资项目认定管理办法》,经评审,认定以下30个项目为2024年度市重点招商引资项目,现予以公布...'
|
||
}
|
||
];
|
||
return {
|
||
pageNum: 1,
|
||
pageSize: 50,
|
||
dataList: staticNoticeList,
|
||
};
|
||
},
|
||
onLoad() {
|
||
// 静态数据已在data中初始化,无需调用接口
|
||
// this.getNoticecList();
|
||
},
|
||
methods: {
|
||
clickContent(item) {
|
||
if (item.id) {
|
||
this.$u.route('/pages/notice/noticeDetail', {
|
||
id: item.id
|
||
});
|
||
}
|
||
},
|
||
getNoticecList() {
|
||
// 静态数据已在data中初始化,无需调用接口
|
||
// 保留此方法以保持兼容性
|
||
return;
|
||
}
|
||
}
|
||
};
|
||
</script>
|
||
<style lang="scss" scoped>
|
||
.tabSwiper {
|
||
width: 95%;
|
||
background-color: #ffffff;
|
||
margin: 16rpx auto;
|
||
border-radius: 12rpx;
|
||
box-sizing: border-box;
|
||
padding: 32rpx;
|
||
box-shadow: 0 1rpx 8rpx rgba(0, 0, 0, 0.04);
|
||
transition: all 0.2s ease;
|
||
border: 1rpx solid #f0f0f0;
|
||
display: flex;
|
||
align-items: center;
|
||
position: relative;
|
||
|
||
&:hover {
|
||
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
|
||
}
|
||
|
||
.bell-icon {
|
||
margin-right: 32rpx;
|
||
flex-shrink: 0;
|
||
margin-top: 4rpx;
|
||
}
|
||
|
||
.content-wrapper {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.arrow-icon {
|
||
margin-left: 24rpx;
|
||
flex-shrink: 0;
|
||
margin-top: 16rpx;
|
||
}
|
||
|
||
.top {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: flex-start;
|
||
margin-top: 20rpx;
|
||
|
||
.title {
|
||
font-size: 28rpx;
|
||
font-weight: 600;
|
||
color: #1a1a1a;
|
||
line-height: 38rpx;
|
||
flex: 1;
|
||
}
|
||
|
||
.date {
|
||
color: #999999;
|
||
font-size: 26rpx;
|
||
flex-shrink: 0;
|
||
position: absolute;
|
||
right: 30rpx;
|
||
top: 15rpx;
|
||
}
|
||
}
|
||
|
||
.item {
|
||
.content {
|
||
font-size: 26rpx;
|
||
line-height: 36rpx;
|
||
color: #666666;
|
||
letter-spacing: 0.5rpx;
|
||
margin-top: 10rpx;
|
||
}
|
||
}
|
||
}
|
||
|
||
.wrap {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: calc(100vh - var(--window-top));
|
||
width: 100%;
|
||
background-color: #fafafa;
|
||
}
|
||
|
||
.page-box {
|
||
padding: 16rpx 0 40rpx 0;
|
||
}
|
||
</style>
|