diff --git a/property-uniapp-project/.claude/settings.local.json b/property-uniapp-project/.claude/settings.local.json new file mode 100644 index 0000000..0cfae51 --- /dev/null +++ b/property-uniapp-project/.claude/settings.local.json @@ -0,0 +1,7 @@ +{ + "permissions": { + "allow": [ + "WebFetch(domain:app.apifox.com)" + ] + } +} diff --git a/property-uniapp-project/pageSubPack/activity-list/activityList.vue b/property-uniapp-project/pageSubPack/activity-list/activityList.vue index 6b128a4..22a6ff6 100644 --- a/property-uniapp-project/pageSubPack/activity-list/activityList.vue +++ b/property-uniapp-project/pageSubPack/activity-list/activityList.vue @@ -176,7 +176,14 @@ const narBack = () => { */ const switchTab = (tab) => { activeTab.value = tab - resetAndLoad() + if (tab === 'list') { + resetAndLoad() + } else { + // 暂无审核功能,"我的活动"默认显示暂无数据 + displayedActivities.value = [] + hasMoreData.value = false + currentPage.value = 1 + } } /** @@ -185,7 +192,7 @@ const switchTab = (tab) => { */ const switchFilter = (filter) => { myFilter.value = filter - resetAndLoad() + // resetAndLoad() } /** @@ -287,7 +294,9 @@ const viewActivityDetail = (activity) => { * 页面显示时刷新数据 */ onShow(() => { - getActivityListData(1) // 强制刷新第一页 + if (activeTab.value === 'list') { + getActivityListData(1) // 强制刷新第一页 + } }) /** @@ -296,7 +305,7 @@ onShow(() => { onLoad(() => { // 监听详情页报名/取消报名后的刷新通知 uni.$on('refreshActivityList', (data) => { - console.log('收到活动列表刷新通知:', data) + // console.log('收到活动列表刷新通知:', data) getActivityListData(1) }) }) @@ -312,9 +321,7 @@ onUnload(() => { * 监听我的活动筛选条件变化 */ watch(() => myFilter.value, () => { - if (activeTab.value === 'my') { - resetAndLoad() - } + // 暂无审核功能,筛选条件暂不触发加载 }) diff --git a/property-uniapp-project/pageSubPack/activity-list/live-add.vue b/property-uniapp-project/pageSubPack/activity-list/live-add.vue index e122c1c..9cd995f 100644 --- a/property-uniapp-project/pageSubPack/activity-list/live-add.vue +++ b/property-uniapp-project/pageSubPack/activity-list/live-add.vue @@ -21,8 +21,9 @@ - - × + + + @@ -55,7 +56,7 @@ diff --git a/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue b/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue index 5d891a3..c959ce0 100644 --- a/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue +++ b/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue @@ -74,7 +74,7 @@ - @@ -181,7 +181,7 @@ } }).catch(err => { uni.showToast({ - title: err.msg, + title: err.msg || '网络异常', icon: 'error' }); }) @@ -191,7 +191,46 @@ // 处理注册逻辑 const handleRegister = () => { - if (!canRegister.value) return; + if (!phoneNumber.value) { + uni.showToast({ title: '请输入手机号', icon: 'none' }); + return; + } + if (!/^1[3-9]\d{9}$/.test(phoneNumber.value)) { + uni.showToast({ title: '请输入正确的手机号', icon: 'none' }); + return; + } + if (!verifyCode.value) { + uni.showToast({ title: '请输入验证码', icon: 'none' }); + return; + } + if (!/^\d{6}$/.test(verifyCode.value)) { + uni.showToast({ title: '验证码为 6 位数字', icon: 'none' }); + return; + } + if (!account.value) { + uni.showToast({ title: '请输入账号', icon: 'none' }); + return; + } + if (account.value.length < 4 || account.value.length > 20) { + uni.showToast({ title: '账号长度需为 4-20 位', icon: 'none' }); + return; + } + if (!password.value) { + uni.showToast({ title: '请输入密码', icon: 'none' }); + return; + } + if (password.value.length < 6) { + uni.showToast({ title: '密码至少输入 6 位', icon: 'none' }); + return; + } + if (password.value.length > 16) { + uni.showToast({ title: '密码不能超过 16 位', icon: 'none' }); + return; + } + if (!agreeAgreement.value) { + uni.showToast({ title: '请勾选协议', icon: 'none' }); + return; + } uni.showLoading({ title: '注册中...', mask: true @@ -223,7 +262,7 @@ } }).catch((err) => { uni.showToast({ - title: err.msg, + title: err.msg || '网络异常', icon: 'error' }); }) diff --git a/property-uniapp-project/pageSubPack/my/changePhone.vue b/property-uniapp-project/pageSubPack/my/changePhone.vue index 7bd6f1b..6348204 100644 --- a/property-uniapp-project/pageSubPack/my/changePhone.vue +++ b/property-uniapp-project/pageSubPack/my/changePhone.vue @@ -1,296 +1,256 @@ - + \ No newline at end of file diff --git a/property-uniapp-project/pageSubPack/my/changePwd.vue b/property-uniapp-project/pageSubPack/my/changePwd.vue index 974bda5..91c2e93 100644 --- a/property-uniapp-project/pageSubPack/my/changePwd.vue +++ b/property-uniapp-project/pageSubPack/my/changePwd.vue @@ -34,98 +34,57 @@ - \ No newline at end of file + diff --git a/property-uniapp-project/pageSubPack/service-list/complaintsSuggestionsIndex.vue b/property-uniapp-project/pageSubPack/service-list/complaintsSuggestionsIndex.vue index a3dd798..91a6618 100644 --- a/property-uniapp-project/pageSubPack/service-list/complaintsSuggestionsIndex.vue +++ b/property-uniapp-project/pageSubPack/service-list/complaintsSuggestionsIndex.vue @@ -1,228 +1,151 @@ - + \ No newline at end of file +.option-label { + font-size: 32rpx; +} + +.status-bar { + width: 100vw; + height: 46px; +} + diff --git a/property-uniapp-project/pageSubPack/service-list/questionnaireFillout.vue b/property-uniapp-project/pageSubPack/service-list/questionnaireFillout.vue index 8ca8bf2..34f9599 100644 --- a/property-uniapp-project/pageSubPack/service-list/questionnaireFillout.vue +++ b/property-uniapp-project/pageSubPack/service-list/questionnaireFillout.vue @@ -1,498 +1,402 @@