From 3b66b76e40312efe60a42a11b847a6574a5b9aaf Mon Sep 17 00:00:00 2001 From: zhouyanli <593579392@qq.com> Date: Fri, 31 Jul 2026 14:06:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pull-refresh-scroll.vue | 158 ++++++++++++++++++ property-uniapp-project/manifest.json | 4 +- .../activity-list/activityList.vue | 1 + .../public-revenue-details.vue | 9 +- .../inspection-revenue/public-revenue.vue | 69 ++------ .../pageSubPack/my/settingIndex.vue | 12 +- .../notice-list/noticeListDetails.vue | 4 + property-uniapp-project/pages.json | 4 +- property-uniapp-project/pages/index/index.vue | 125 +++++++------- .../pages/myIndex/myIndex.vue | 8 + .../pages/serviceIndex/serviceIndex.vue | 7 +- 11 files changed, 265 insertions(+), 136 deletions(-) create mode 100644 property-uniapp-project/components/pull-refresh-scroll/pull-refresh-scroll.vue diff --git a/property-uniapp-project/components/pull-refresh-scroll/pull-refresh-scroll.vue b/property-uniapp-project/components/pull-refresh-scroll/pull-refresh-scroll.vue new file mode 100644 index 0000000..54a8c87 --- /dev/null +++ b/property-uniapp-project/components/pull-refresh-scroll/pull-refresh-scroll.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/property-uniapp-project/manifest.json b/property-uniapp-project/manifest.json index a8cac23..2243d17 100644 --- a/property-uniapp-project/manifest.json +++ b/property-uniapp-project/manifest.json @@ -2,8 +2,8 @@ "name" : "花开物业", "appid" : "__UNI__29C3D60", "description" : "智慧社区居民端面向小区业主使用,支持注册、验证码、账号密码多种登录方式,提供密码找回功能,账号使用安全便捷。支持多小区切换,首页设有轮播 banner、社区公告,集成远程开门、生活缴费、在线报修、访客邀请、社区活动常用服务。全服务板块统一涵盖门禁开门、线上缴费、报修申报、访客预约、投诉反馈、问卷调研、活动报名、社区公示、一键联系物业功能。个人中心可管理房屋、住户、车位、车辆信息,支持更换手机号、修改密码、消息通知设置、版本更新及账号退出,一站式满足业主居家生活、社区服务、房产车辆管理需求,实现社区生活数字化、便捷化。", - "versionName" : "1.0.2", - "versionCode" : 115, + "versionName" : "1.0.3", + "versionCode" : 116, "transformPx" : false, "uniCloud" : { "provider" : "aliyun", diff --git a/property-uniapp-project/pageSubPack/activity-list/activityList.vue b/property-uniapp-project/pageSubPack/activity-list/activityList.vue index 3e51103..3c0520d 100644 --- a/property-uniapp-project/pageSubPack/activity-list/activityList.vue +++ b/property-uniapp-project/pageSubPack/activity-list/activityList.vue @@ -574,6 +574,7 @@ watch(() => myFilter.value, () => { -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; + padding-right: 100rpx; } .activity-detail { diff --git a/property-uniapp-project/pageSubPack/inspection-revenue/public-revenue-details.vue b/property-uniapp-project/pageSubPack/inspection-revenue/public-revenue-details.vue index 67c942b..851f014 100644 --- a/property-uniapp-project/pageSubPack/inspection-revenue/public-revenue-details.vue +++ b/property-uniapp-project/pageSubPack/inspection-revenue/public-revenue-details.vue @@ -129,7 +129,8 @@ // border-bottom: 1px solid #f0f0f0; .article-title { - font-size: 32rpx; + word-break: break-all; + white-space: pre-wrap; font-weight: bold; color: #333333; line-height: 1.4; @@ -215,6 +216,8 @@ } .paragraph { + white-space: pre-wrap; + word-break: break-word; margin-bottom: 20px; text-align: justify; text-indent: 2em; @@ -422,6 +425,8 @@ border-bottom-color: #333333; .article-title { + word-break: break-all; + white-space: pre-wrap; color: #ffffff; } @@ -472,4 +477,4 @@ } } } - \ No newline at end of file + diff --git a/property-uniapp-project/pageSubPack/inspection-revenue/public-revenue.vue b/property-uniapp-project/pageSubPack/inspection-revenue/public-revenue.vue index 723ee72..88deac6 100644 --- a/property-uniapp-project/pageSubPack/inspection-revenue/public-revenue.vue +++ b/property-uniapp-project/pageSubPack/inspection-revenue/public-revenue.vue @@ -10,20 +10,18 @@ /> --> - - - - 刷新中... - - - - - 加载中... - 没有更多通知了 - - - 暂无通知 - - + @@ -215,39 +205,4 @@ page { justify-content: space-between; align-items: center; } -.refresh, .load-more, .no-more { - text-align: center; - padding: 20rpx; - color: #999; - font-size: 24rpx; -} -.empty-state { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - padding: 100rpx 0; - color: #ccc; -} - -.empty-text { - font-size: 28rpx; - color: #999; - margin-top: 20rpx; - margin-bottom: 10rpx; -} -.refresh-btn { - background: #007AFF; - color: #fff; - border-radius: 50rpx; - padding: 10rpx 30rpx; - margin-top: 20rpx; -} -.spin { - animation: rotate 1s linear infinite; -} -@keyframes rotate { - 0% { transform: rotate(0deg); } - 100% { transform: rotate(360deg); } -} - \ No newline at end of file + diff --git a/property-uniapp-project/pageSubPack/my/settingIndex.vue b/property-uniapp-project/pageSubPack/my/settingIndex.vue index baafd0a..11397b2 100644 --- a/property-uniapp-project/pageSubPack/my/settingIndex.vue +++ b/property-uniapp-project/pageSubPack/my/settingIndex.vue @@ -58,12 +58,12 @@ title: '注销账号', type: 'arrow' }, - // { - // title: '升级版本', - // type: 'text', - // value: '当前版本 1.0.0', - // valueClass: 'item-version' - // } + { + title: '升级版本', + type: 'text', + value: '当前版本 1.0.0', + valueClass: 'item-version' + } ]) // 格式化字节大小 diff --git a/property-uniapp-project/pageSubPack/notice-list/noticeListDetails.vue b/property-uniapp-project/pageSubPack/notice-list/noticeListDetails.vue index cbf9a3f..7f3d5d9 100644 --- a/property-uniapp-project/pageSubPack/notice-list/noticeListDetails.vue +++ b/property-uniapp-project/pageSubPack/notice-list/noticeListDetails.vue @@ -196,6 +196,8 @@ line-height: 1.4; margin-bottom: 16px; text-align: center; + word-break: break-all; + white-space: pre-wrap; } .article-meta { @@ -279,6 +281,8 @@ margin-bottom: 20px; text-align: justify; text-indent: 2em; + white-space: pre-wrap; + word-break: break-word; /* 富文本里的图片不超出屏幕 */ :deep(img), diff --git a/property-uniapp-project/pages.json b/property-uniapp-project/pages.json index 76c4f87..1f490a9 100644 --- a/property-uniapp-project/pages.json +++ b/property-uniapp-project/pages.json @@ -2,8 +2,8 @@ "pages": [{ "path": "pages/index/index", "style": { - "navigationBarTitleText": "首页", - "navigationBarBackgroundColor": "#F8F8F8" + "navigationBarTitleText": "", + "navigationStyle": "custom" } }, { diff --git a/property-uniapp-project/pages/index/index.vue b/property-uniapp-project/pages/index/index.vue index f9350da..5ed321c 100644 --- a/property-uniapp-project/pages/index/index.vue +++ b/property-uniapp-project/pages/index/index.vue @@ -9,6 +9,7 @@ + @@ -28,10 +29,14 @@ - + - + @@ -47,43 +52,15 @@ - + - - + + - - + - 一键开门 - - - - - - - - - 生活缴费 - - - - - - - - - 在线报修 - - - - - - - - 访客邀请 + {{ item.title }} @@ -161,7 +138,7 @@ - + @@ -188,7 +165,15 @@ // 列表数据状态 const isDropdownOpen = ref(false) + const refreshing = ref(false) const activityList = ref([]) + + const serviceItems = [ + { title: '一键开门', icon: 'https://wuyeadmin.bugtc.com/images/home/openDoor.png', url: '/pageSubPack/notice-list/oneClickOpen' }, + { title: '生活缴费', icon: 'https://wuyeadmin.bugtc.com/images/home/lifePay.png', url: '/pageSubPack/payment-list/paymentIndex' }, + { title: '在线报修', icon: 'https://wuyeadmin.bugtc.com/images/home/repair.png', url: '/pageSubPack/online-repair/onlineRepair' }, + { title: '访客邀请', icon: 'https://wuyeadmin.bugtc.com/images/home/visitorInvite.png', url: '/pageSubPack/visitor/visitor-list' } + ] const currentCommunity = ref('请绑定房屋') const currentVillageId = ref('') const bannerList = ref([]) @@ -302,8 +287,17 @@ getNewActivityList() getbannarData() pageReady.value = true + refreshing.value = false } + const onRefresh = async () => { + refreshing.value = true + await nextTick() + await refreshAllData() + await nextTick() + refreshing.value = false + } + const resetPageData = () => { currentCommunity.value = '请先绑定房屋' currentVillageId.value = '' @@ -334,30 +328,28 @@ uni.$off('confirm', slelctHomeData) }) - const openDoorClick = () => { - if (!requireLogin()) return - uni.setStorageSync('sourcePage', "index") - uni.navigateTo({ url: "/pageSubPack/notice-list/oneClickOpen" }) - } - const payMentClick = () => { - if (!requireLogin()) return - uni.setStorageSync('sourcePage', "index") - uni.navigateTo({ url: "/pageSubPack/payment-list/paymentIndex" }) - } - const navigateToPage = () => { - const cachedVillageId = uni.getStorageSync('currentVillageId') - if (!cachedVillageId || cachedVillageId === '0' || cachedVillageId === 0) { - currentCommunity.value = '请先绑定房屋' - uni.setStorageSync('currentCommunity', '请先绑定房屋') - uni.showToast({ title: '请先绑定小区', icon: 'none', duration: 1500 }) - setTimeout(() => { uni.switchTab({ url: '/pages/myIndex/myIndex' }) }, 1500) - } else { - uni.navigateTo({ url: `/pageSubPack/notice-list/selectHome?villageId=${cachedVillageId}` }) + const navigateToPage = () => { + const cachedVillageId = uni.getStorageSync('currentVillageId') + if (!cachedVillageId || cachedVillageId === '0' || cachedVillageId === 0) { + uni.navigateTo({ url: '/pageSubPack/my/myHouseIndex' }) + } else { + uni.navigateTo({ url: `/pageSubPack/notice-list/selectHome?villageId=${cachedVillageId}` }) + } } - } + const serviceClick = (item) => { + if (!requireLogin()) return + const cachedVillageId = uni.getStorageSync('currentVillageId') + if (!cachedVillageId || cachedVillageId === '0' || cachedVillageId === 0) { + uni.showToast({ title: '未绑定小区,没有权限', icon: 'none', duration: 2000 }) + return + } + uni.setStorageSync('sourcePage', 'index') + uni.navigateTo({ url: item.url }) + } + const getNewActivityList = async () => { try { const res = await getActivitylatest({ villageId: uni.getStorageSync('currentVillageId') }) @@ -371,17 +363,7 @@ } } - const onlineRepairClick = () => { - if (!requireLogin()) return - uni.setStorageSync('sourcePage', "index") - uni.navigateTo({ url: '/pageSubPack/online-repair/onlineRepair' }) - } - const visitorClick = () => { - if (!requireLogin()) return - uni.setStorageSync('sourcePage', "index") - uni.navigateTo({ url: "/pageSubPack/visitor/visitor-list" }) - } const goToActivityDetail = (activity) => { if (!requireLogin()) return @@ -392,6 +374,11 @@ const moreClick = () => { if (!requireLogin()) return + const cachedVillageId = uni.getStorageSync('currentVillageId') + if (!cachedVillageId || cachedVillageId === '0' || cachedVillageId === 0) { + uni.showToast({ title: '未绑定小区,没有权限', icon: 'none', duration: 2000 }) + return + } uni.setStorageSync('sourcePage', "index") uni.navigateTo({ url: "/pageSubPack/activity-list/activityList" }) } @@ -439,6 +426,12 @@ z-index: 0; } + .status-bar { + height: var(--status-bar-height); + width: 100%; + flex-shrink: 0; + } + .header-content { position: relative; z-index: 1; diff --git a/property-uniapp-project/pages/myIndex/myIndex.vue b/property-uniapp-project/pages/myIndex/myIndex.vue index cb08132..42c8f28 100644 --- a/property-uniapp-project/pages/myIndex/myIndex.vue +++ b/property-uniapp-project/pages/myIndex/myIndex.vue @@ -99,6 +99,14 @@ // 返回 const onItemClick = (item) => { if (!requireLogin()) return + const cachedVillageId = uni.getStorageSync('currentVillageId') + // 设置不需要绑定小区 + if (item.title !== '设置') { + if (!cachedVillageId || cachedVillageId === '0' || cachedVillageId === 0) { + uni.showToast({ title: '未绑定小区,没有权限', icon: 'none', duration: 2000 }) + return + } + } if (item.title == '我的房屋') { uni.navigateTo({ url: '/pageSubPack/my/myHouseIndex', diff --git a/property-uniapp-project/pages/serviceIndex/serviceIndex.vue b/property-uniapp-project/pages/serviceIndex/serviceIndex.vue index da9860e..aba58f0 100644 --- a/property-uniapp-project/pages/serviceIndex/serviceIndex.vue +++ b/property-uniapp-project/pages/serviceIndex/serviceIndex.vue @@ -140,6 +140,11 @@ const handleFuncClick = (item) => { if (!requireLogin()) return + const cachedVillageId = uni.getStorageSync('currentVillageId') + if (!cachedVillageId || cachedVillageId === '0' || cachedVillageId === 0) { + uni.showToast({ title: '未绑定小区,没有权限', icon: 'none', duration: 2000 }) + return + } uni.setStorageSync('sourcePage', 'serviceIndex') uni.navigateTo({ url: item.path, @@ -288,4 +293,4 @@ .community-grid .func-item:nth-child(4n) { margin-right: 0; } - \ No newline at end of file +