Files
RentWeAppFront/pages/notice/notice.vue

171 lines
4.1 KiB
Vue
Raw Normal View History

2025-11-14 11:39:33 +08:00
<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="#2979ff" class="bell-icon"></u-icon>
<view class="content-wrapper">
<view class="top">
2025-11-14 11:39:33 +08:00
<view class="title">{{ item.title }}</view>
<view class="date">{{ item.date }}</view>
2025-11-14 11:39:33 +08:00
</view>
<view class="item">
<view class="content u-line-2">{{ item.content }}</view>
2025-11-14 11:39:33 +08:00
</view>
</view>
<u-icon name="arrow-right" color="rgb(203,203,203)" :size="26" class="arrow-icon"></u-icon>
2025-11-14 11:39:33 +08:00
</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年度市重点招商引资项目现予以公布...'
}
];
2025-11-14 11:39:33 +08:00
return {
pageNum: 1,
pageSize: 50,
dataList: staticNoticeList,
2025-11-14 11:39:33 +08:00
};
},
onLoad() {
// 静态数据已在data中初始化无需调用接口
// this.getNoticecList();
2025-11-14 11:39:33 +08:00
},
methods: {
clickContent(item) {
if (item.id) {
2025-12-25 08:26:09 +08:00
this.$u.route('/pages/notice/noticeDetail', {
2025-11-14 11:39:33 +08:00
id: item.id
});
}
},
getNoticecList() {
// 静态数据已在data中初始化无需调用接口
// 保留此方法以保持兼容性
return;
2025-11-14 11:39:33 +08:00
}
}
};
</script>
<style lang="scss" scoped>
.tabSwiper {
width: 95%;
2025-11-14 11:39:33 +08:00
background-color: #ffffff;
margin: 16rpx auto;
border-radius: 12rpx;
2025-11-14 11:39:33 +08:00
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;
}
2025-11-14 11:39:33 +08:00
.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;
2025-11-14 11:39:33 +08:00
}
.date {
color: #999999;
font-size: 26rpx;
flex-shrink: 0;
position: absolute;
right: 30rpx;
top: 15rpx;
2025-11-14 11:39:33 +08:00
}
}
2025-11-14 11:39:33 +08:00
.item {
.content {
font-size: 26rpx;
line-height: 36rpx;
color: #666666;
letter-spacing: 0.5rpx;
margin-top: 10rpx;
2025-11-14 11:39:33 +08:00
}
}
}
2025-11-14 11:39:33 +08:00
.wrap {
display: flex;
flex-direction: column;
height: calc(100vh - var(--window-top));
width: 100%;
background-color: #fafafa;
2025-11-14 11:39:33 +08:00
}
.page-box {
padding: 16rpx 0 40rpx 0;
2025-11-14 11:39:33 +08:00
}
</style>