diff --git a/property-uniapp-project/manifest.json b/property-uniapp-project/manifest.json index d54a07d..bbcea64 100644 --- a/property-uniapp-project/manifest.json +++ b/property-uniapp-project/manifest.json @@ -3,7 +3,7 @@ "appid" : "__UNI__29C3D60", "description" : "物业用户端app", "versionName" : "1.0.1", - "versionCode" : "101", + "versionCode" : "102", "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { @@ -19,7 +19,9 @@ /* 模块配置 */ "modules" : { "Geolocation" : {}, - "Maps" : {} + "Maps" : {}, + "Camera" : {}, + "Contacts" : {} }, /* 应用发布信息 */ "distribute" : { @@ -63,6 +65,12 @@ "appkey_ios" : "39a4c28a01c3ec15684b21d4093aad3d", "appkey_android" : "044055aed47cb305e86419fd82e4c5f3" } + }, + "push" : { + "unipush" : { + "version" : "2", + "offline" : false + } } } } diff --git a/property-uniapp-project/pageSubPack/activity-list/live-add.vue b/property-uniapp-project/pageSubPack/activity-list/live-add.vue index 6429b27..4b55af5 100644 --- a/property-uniapp-project/pageSubPack/activity-list/live-add.vue +++ b/property-uniapp-project/pageSubPack/activity-list/live-add.vue @@ -89,7 +89,7 @@ const handleTextInput = (e) => { const reverseGeocode = async (lng, lat) => { if (!AMAP_KEY) return null; try { - const [err, res] = await uni.request({ + const res = await uni.request({ url: 'https://restapi.amap.com/v3/geocode/regeo', data: { key: AMAP_KEY, @@ -97,7 +97,6 @@ const reverseGeocode = async (lng, lat) => { extensions: 'base' } }); - if (err) throw err; if (res.data?.status === '1' && res.data.regeocode?.formatted_address) { return res.data.regeocode.formatted_address; } diff --git a/property-uniapp-project/pageSubPack/notice-list/noticeList.vue b/property-uniapp-project/pageSubPack/notice-list/noticeList.vue index 881091c..5edca2e 100644 --- a/property-uniapp-project/pageSubPack/notice-list/noticeList.vue +++ b/property-uniapp-project/pageSubPack/notice-list/noticeList.vue @@ -44,9 +44,10 @@ 加载中... 没有更多通知了 - - 暂无通知 - + + + 暂无通知 + @@ -208,10 +209,20 @@ page { color: #999; font-size: 24rpx; } -.empty { - text-align: center; - padding: 100rpx 0; - color: #999; +.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; diff --git a/property-uniapp-project/pageSubPack/service-list/contactProperty.vue b/property-uniapp-project/pageSubPack/service-list/contactProperty.vue index c6482b5..6962979 100644 --- a/property-uniapp-project/pageSubPack/service-list/contactProperty.vue +++ b/property-uniapp-project/pageSubPack/service-list/contactProperty.vue @@ -55,8 +55,8 @@ import { getManagePhoneData } from '../api/apiSub.js' uni.showToast({ title: '电话号码为空', icon: 'none' }); return; } - const cleanPhone = phone.replace(/-/g, '').trim(); - if (!/^1[3-9]\d{9}$/.test(cleanPhone) && !/^0\d{2,3}-?\d{7,8}$/.test(cleanPhone)) { + const cleanPhone = phone.replace(/\D/g, ''); + if (!/^1[3-9]\d{9}$/.test(cleanPhone) && !/^0\d{2,3}\d{7,8}$/.test(cleanPhone)) { uni.showToast({ title: '电话号码格式有误', icon: 'none' }); return; } @@ -75,7 +75,7 @@ import { getManagePhoneData } from '../api/apiSub.js' return; } uni.setClipboardData({ - data: phone.replace(/-/g, '').trim(), + data: phone.replace(/\D/g, ''), success: () => { uni.showToast({ title: '号码已复制', icon: 'none' }); },