From 057758772e7fd9263ce914d3bab1d0f78e8ab7df Mon Sep 17 00:00:00 2001 From: zhouyanli <593579392@qq.com> Date: Wed, 22 Apr 2026 18:00:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=88=87=E6=8D=A2=E5=B0=8F?= =?UTF-8?q?=E5=8C=BA=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activity-list/activityList.vue | 5 +- .../pageSubPack/api/api.js | 24 +- .../pageSubPack/api/request.js | 2 +- .../pageSubPack/loginSub/login.vue | 84 +++-- .../pageSubPack/loginSub/pwd-login.vue | 98 ++--- .../pageSubPack/notice-list/noticeList.vue | 186 ++++++---- .../notice-list/noticeListDetails.vue | 10 +- .../pageSubPack/notice-list/selectHome.vue | 336 ++++++++---------- property-uniapp-project/pages/index/index.vue | 152 +++++--- 9 files changed, 493 insertions(+), 404 deletions(-) diff --git a/property-uniapp-project/pageSubPack/activity-list/activityList.vue b/property-uniapp-project/pageSubPack/activity-list/activityList.vue index 4992d14..f34aeee 100644 --- a/property-uniapp-project/pageSubPack/activity-list/activityList.vue +++ b/property-uniapp-project/pageSubPack/activity-list/activityList.vue @@ -438,7 +438,7 @@ .container { width: 100%; height: 100vh; - background-color: #f9f9f9; + background-color: #fff; display: flex; flex-direction: column; padding: 0; @@ -453,7 +453,7 @@ .top-bar { width: 100%; flex-shrink: 0; - background: #f9f9f9; + background: #fff; } /* 滚动区域 */ @@ -551,6 +551,7 @@ margin-bottom: 30rpx; box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05); position: relative; + border: 1px solid #e1e1e1; } /* 活动状态标签 */ diff --git a/property-uniapp-project/pageSubPack/api/api.js b/property-uniapp-project/pageSubPack/api/api.js index 7ca875a..896602a 100644 --- a/property-uniapp-project/pageSubPack/api/api.js +++ b/property-uniapp-project/pageSubPack/api/api.js @@ -23,6 +23,26 @@ export const getResetPassword = (data) =>{ } // =========首页======= // 首页最新公告 -export const getNoticeList = () =>{ +export const getNoticeLatest = () =>{ return get('/api/resident/notice/latest') -} \ No newline at end of file +} + +// 查询已认证的小区 +export const getVillageList = (data) =>{ + return get('/api/resident/village/myList', data) +} +// 获取当前小区 +export const getCurrentVillage = () =>{ + return get('/api/resident/village/current') +} +// 切换小区 +export const getVillageSwitch = (data)=>{ + return post('/api/resident/village/switch',data) +} +// ====公告列表====== +// 获取公告列表 +export const getNoticeList = (data) =>{ + return get('/api/resident/notice/list',data) +} +// 获取公告详情 +// export const getNoticeDetails = \ No newline at end of file diff --git a/property-uniapp-project/pageSubPack/api/request.js b/property-uniapp-project/pageSubPack/api/request.js index 9929930..7dfb08f 100644 --- a/property-uniapp-project/pageSubPack/api/request.js +++ b/property-uniapp-project/pageSubPack/api/request.js @@ -43,7 +43,7 @@ export default function request(url, data = {}, method = "GET") { uni.showToast({ title: '登录过期,请重新登录', icon: 'none', duration: 2000 }); uni.clearStorageSync('token'); setTimeout(() => { - uni.reLaunch({ url: '/pages/login/login' }); + uni.reLaunch({ url: '/pageSubPack/loginSub/pwd-login' }); }, 1500); reject('token 过期'); return; diff --git a/property-uniapp-project/pageSubPack/loginSub/login.vue b/property-uniapp-project/pageSubPack/loginSub/login.vue index ea4155b..b72c0fc 100644 --- a/property-uniapp-project/pageSubPack/loginSub/login.vue +++ b/property-uniapp-project/pageSubPack/loginSub/login.vue @@ -13,10 +13,10 @@ - -