diff --git a/property-uniapp-project/common/checkLogin.js b/property-uniapp-project/common/checkLogin.js index caeb577..1090594 100644 --- a/property-uniapp-project/common/checkLogin.js +++ b/property-uniapp-project/common/checkLogin.js @@ -19,6 +19,7 @@ export const PUBLIC_PATHS = [ '/pageSubPack/loginSub/forget-pwd', '/pageSubPack/loginSub/change-pwd', '/pageSubPack/loginSub/privacy', + '/pageSubPack/loginSub/user-agreement', '/pages/navigation/navigation' ] diff --git a/property-uniapp-project/manifest.json b/property-uniapp-project/manifest.json index 79720eb..7110feb 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.9", - "versionCode" : 122, + "versionName" : "1.1.1", + "versionCode" : 124, "transformPx" : false, "uniCloud" : { "provider" : "aliyun", diff --git a/property-uniapp-project/pageSubPack/api/request.js b/property-uniapp-project/pageSubPack/api/request.js index 30ef96e..e4717ea 100644 --- a/property-uniapp-project/pageSubPack/api/request.js +++ b/property-uniapp-project/pageSubPack/api/request.js @@ -19,7 +19,7 @@ export default function request(url, data = {}, method = "GET") { const header = { "clientid": "resident", 'content-type': 'application/json' - }; + }; if (token) { header["Authorization"] = "Bearer " + token; } diff --git a/property-uniapp-project/pageSubPack/inspection-revenue/public-revenue.vue b/property-uniapp-project/pageSubPack/inspection-revenue/public-revenue.vue index 88deac6..10d0a27 100644 --- a/property-uniapp-project/pageSubPack/inspection-revenue/public-revenue.vue +++ b/property-uniapp-project/pageSubPack/inspection-revenue/public-revenue.vue @@ -1,13 +1,5 @@ @@ -135,21 +135,11 @@ const canGetVerify = computed(() => { const toggleAgreement = () => { agreeAgreement.value = !agreeAgreement.value } const goToUserAgreement = () => { - // #ifdef APP-PLUS - plus.runtime.openURL('https://wuye.ckdzkj.com/parivw/ownler_xieyi.html') - // #endif - // #ifdef H5 - window.open('https://wuye.ckdzkj.com/parivw/ownler_xieyi.html') - // #endif + uni.navigateTo({ url: '/pageSubPack/loginSub/user-agreement' }) } const goToPrivacy = () => { - // #ifdef APP-PLUS - plus.runtime.openURL('https://wuye.ckdzkj.com/parivw/owner.html') - // #endif - // #ifdef H5 - window.open('https://wuye.ckdzkj.com/parivw/owner.html') - // #endif + uni.navigateTo({ url: '/pageSubPack/loginSub/privacy' }) } const openPrivacyPopup = (action) => { @@ -263,10 +253,14 @@ const doLogin = () => { const onLoginSuccess = (res) => { if (res.code === 200 && res.data) { - // 换号登录时清除旧用户首页缓存,防止新用户看到旧用户的小区数据 + // 换号登录时清除旧用户的所有缓存,防止新用户看到旧用户的小区数据和公告 const oldUserId = uni.getStorageSync('userId') if (res.data.userId && String(oldUserId) !== String(res.data.userId)) { uni.removeStorageSync('home_cache') + uni.removeStorageSync('home_cache_' + oldUserId) + uni.removeStorageSync('communityName') + uni.removeStorageSync('communityId') + uni.removeStorageSync('needReloadUserInfo') } uni.setStorageSync('token', res.data.token) if (res.data.userId) { uni.setStorageSync('userId', res.data.userId) } @@ -349,14 +343,6 @@ onUnmounted(() => { height: 100%; } -/* 原生输入框(账号/密码区分大小写) */ -.native-input { - flex: 1; - font-size: 32rpx; - color: #333; - height: 88rpx; - line-height: 88rpx; -} /* 深度覆盖 uni-easyinput 内部默认样式 */ .input-content :deep(.uni-easyinput__content) { diff --git a/property-uniapp-project/pageSubPack/loginSub/privacy.vue b/property-uniapp-project/pageSubPack/loginSub/privacy.vue index b09608a..e9a67c1 100644 --- a/property-uniapp-project/pageSubPack/loginSub/privacy.vue +++ b/property-uniapp-project/pageSubPack/loginSub/privacy.vue @@ -1,169 +1,134 @@ \ No newline at end of file + diff --git a/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue b/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue index 37ef7fd..14514b0 100644 --- a/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue +++ b/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue @@ -188,21 +188,11 @@ }; const goToUserAgreement = () => { - // #ifdef APP-PLUS - plus.runtime.openURL('https://wuye.ckdzkj.com/parivw/ownler_xieyi.html') - // #endif - // #ifdef H5 - window.open('https://wuye.ckdzkj.com/parivw/ownler_xieyi.html') - // #endif + uni.navigateTo({ url: '/pageSubPack/loginSub/user-agreement' }) } const goToPrivacy = () => { - // #ifdef APP-PLUS - plus.runtime.openURL('https://wuye.ckdzkj.com/parivw/owner.html') - // #endif - // #ifdef H5 - window.open('https://wuye.ckdzkj.com/parivw/owner.html') - // #endif + uni.navigateTo({ url: '/pageSubPack/loginSub/privacy' }) } const checkForm = () => {}; diff --git a/property-uniapp-project/pageSubPack/loginSub/user-agreement.vue b/property-uniapp-project/pageSubPack/loginSub/user-agreement.vue new file mode 100644 index 0000000..c96c865 --- /dev/null +++ b/property-uniapp-project/pageSubPack/loginSub/user-agreement.vue @@ -0,0 +1,159 @@ + + + + + diff --git a/property-uniapp-project/pageSubPack/my/addParkingSpace.vue b/property-uniapp-project/pageSubPack/my/addParkingSpace.vue index 67ae6f0..5fb7d59 100644 --- a/property-uniapp-project/pageSubPack/my/addParkingSpace.vue +++ b/property-uniapp-project/pageSubPack/my/addParkingSpace.vue @@ -7,11 +7,11 @@ - + 选择小区 {{ formData.community || '请选择' }} - + - + 停车场 {{ formData.parkingLot || '请选择' }} - + - + 车位编号 {{ formData.parkingSpaceNum || '请选择' }} - + @@ -54,13 +54,13 @@ - + 选择业主 {{ formData.owner || '请选择' }} - + - + 绑定车辆 @@ -100,6 +100,7 @@ const id = ref(undefined) const type = ref('') + const checkStatus = ref('') const formData = ref({ community: uni.getStorageSync('communityName'), communityId: uni.getStorageSync('communityId'), @@ -127,12 +128,13 @@ formData.value.parkingSpaceNum = uni.getStorageSync('parkingSpaceName') formData.value.parkingSpaceId = uni.getStorageSync('parkingSpaceId') formData.value.parkingStatus = uni.getStorageSync('parkingStatus') || '0', - formData.value.bindCar = uni.getStorageSync('bindCarName') + formData.value.bindCar = uni.getStorageSync('bindCarName') formData.value.bindCarId = uni.getStorageSync('bindCarId') formData.value.owner = uni.getStorageSync('ownerName') formData.value.ownerId = uni.getStorageSync('ownerId') }) onLoad((option) => { + checkStatus.value = option.checkStatus || '' if (uni.getStorageSync('operationType') == 'update') { if (option.id) { id.value = option.id @@ -282,10 +284,10 @@ formData.value.bindCarId = data.carId uni.setStorageSync('bindCarId', data.carId) - formData.value.owner = data.ownerName - uni.setStorageSync('ownerName', data.ownerName) - formData.value.ownerId = data.ownerId - uni.setStorageSync('ownerId', data.ownerId) + formData.value.owner = data.residentName + uni.setStorageSync('ownerName', data.residentName) + formData.value.ownerId = data.residentId + uni.setStorageSync('ownerId', data.residentId) } catch (err) { uni.showToast({ @@ -304,6 +306,10 @@ } const selectItem = (typeStr) => { + // 修改模式下,小区、停车场、车位编号禁止修改 + if (type.value === '修改' && (typeStr === '选择小区' || typeStr === '停车场' || typeStr === '车位编号')) { + return + } if (typeStr === '选择小区') { uni.navigateTo({ url: '/pageSubPack/my/selectResidentialCommunity?sourcePage=addParkingSpace' @@ -340,6 +346,8 @@ }) } if (typeStr === '选择业主') { + // 审核通过后选择业主不可编辑 + if (checkStatus.value === '1') return if (!formData.value.community) { return uni.showToast({ title: '请先选择小区', @@ -347,7 +355,7 @@ }) } uni.navigateTo({ - url: '/pageSubPack/my/selectOwner' + url: '/pageSubPack/my/selectOwner?ownerId=' + (formData.value.ownerId || '') }) } } @@ -392,6 +400,11 @@ border-bottom: 1rpx solid #f0f0f0; } + .form-item-disabled { + opacity: 0.5; + pointer-events: none; + } + .item-label { font-size: 28rpx; color: #000; @@ -485,4 +498,4 @@ border-radius: 12rpx; border: none; } - \ No newline at end of file + diff --git a/property-uniapp-project/pageSubPack/my/houseDetail.vue b/property-uniapp-project/pageSubPack/my/houseDetail.vue index 1ebf2b9..7370eb9 100644 --- a/property-uniapp-project/pageSubPack/my/houseDetail.vue +++ b/property-uniapp-project/pageSubPack/my/houseDetail.vue @@ -107,7 +107,8 @@ - @@ -141,6 +142,7 @@ const currentStatus = ref('') const stepList = ref(["房屋信息", "住户信息", "物业审核", "认证成功"]) const form = ref([]) + const certificationStatus = ref('') // 认证状态 const statusMap = ref({ success: { title: "房屋认证成功", @@ -184,16 +186,15 @@ }) const getDetail = async () => { - // 防重复请求 try { const res = await getMyHouseDetail({ id: id.value }) - - const data = res.data - form.value = data - console.log(form.value); + // const data = + form.value = res.data + certificationStatus.value = form.value.certificationStatus + console.log('详情数据',form.value); } catch (err) { uni.showToast({ title: err.msg || '网络异常', diff --git a/property-uniapp-project/pageSubPack/my/myCarIndex.vue b/property-uniapp-project/pageSubPack/my/myCarIndex.vue index 649b774..81ebf6f 100644 --- a/property-uniapp-project/pageSubPack/my/myCarIndex.vue +++ b/property-uniapp-project/pageSubPack/my/myCarIndex.vue @@ -1,8 +1,5 @@