| | |
| | | try { |
| | | const res = await droneFlightTaskApi({ |
| | | current: 1, |
| | | size: 10, |
| | | size: 3, |
| | | }) |
| | | announcementList.value = res.data.data.records.slice(0, 3).map(item => ({ |
| | | announcementList.value = res.data.data.records.map(item => ({ |
| | | ...item, |
| | | title: item.taskName, |
| | | description: item.remark, |
| | |
| | | try { |
| | | const res = await sysNoticePageInfoApi({ |
| | | current: 1, |
| | | size: 10, |
| | | size: 3, |
| | | noticeType: val, |
| | | }) |
| | | // 只需要取前3条 公告 |
| | | if (val === 1) { |
| | | regulationsList.value = res.data.data.records.slice(0, 3).map(item => ({ |
| | | regulationsList.value = res.data.data.records.map(item => ({ |
| | | ...item, |
| | | title: item.noticeTitle, |
| | | description: item.remark, |
| | |
| | | like: item.like, |
| | | })) |
| | | } else if (val === 2) { |
| | | policyList.value = res.data.data.records.slice(0, 3).map(item => ({ |
| | | policyList.value = res.data.data.records.map(item => ({ |
| | | ...item, |
| | | title: item.noticeTitle, |
| | | description: item.remark, |
| | |
| | | height: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | :deep(.u-swiper) { |
| | | border-radius: 0 0 100px 100px; |
| | | } |
| | | :deep(.u-grid) { |
| | | margin-top: 40rpx; |
| | | .grid-text { |