diff --git a/property-uniapp-project/App.vue b/property-uniapp-project/App.vue
index 0d1d503..d01443b 100644
--- a/property-uniapp-project/App.vue
+++ b/property-uniapp-project/App.vue
@@ -17,19 +17,20 @@
getPushCID()
// #endif
- // 自动登录:检查本地是否已有 token,有则直接跳转首页
+ // 首页已是入口页:已登录用户不做跳转,直接留首页
+ // 仅对未登录用户按需跳转到引导页或登录页
const token = uni.getStorageSync('token')
const hasShowGuide = uni.getStorageSync('hasShowGuide')
- if (token) {
- // 已有登录凭证,直接进入首页
- console.log('检测到已登录,跳转首页')
- uni.reLaunch({ url: '/pages/index/index' })
- } else if (hasShowGuide) {
- // 已看过引导页但没有 token,直接跳转登录页
+ if (!token && !hasShowGuide) {
+ // 首次使用:跳转引导页
+ console.log('首次启动,跳转引导页')
+ uni.reLaunch({ url: '/pages/navigation/navigation' })
+ } else if (!token && hasShowGuide) {
+ // 已看过引导但未登录:跳转登录页
console.log('已看过引导页,跳转登录页')
uni.reLaunch({ url: '/pageSubPack/loginSub/pwd-login' })
}
- // 否则停留在引导页(navigation)
+ // 有 token:已在首页,不做跳转
})
onShow(() =>{
console.log('App Show')
diff --git a/property-uniapp-project/manifest.json b/property-uniapp-project/manifest.json
index 2ea6bc5..7c4eb7a 100644
--- a/property-uniapp-project/manifest.json
+++ b/property-uniapp-project/manifest.json
@@ -3,7 +3,7 @@
"appid" : "__UNI__29C3D60",
"description" : "智慧社区居民端面向小区业主使用,支持注册、验证码、账号密码多种登录方式,提供密码找回功能,账号使用安全便捷。支持多小区切换,首页设有轮播 banner、社区公告,集成远程开门、生活缴费、在线报修、访客邀请、社区活动常用服务。全服务板块统一涵盖门禁开门、线上缴费、报修申报、访客预约、投诉反馈、问卷调研、活动报名、社区公示、一键联系物业功能。个人中心可管理房屋、住户、车位、车辆信息,支持更换手机号、修改密码、消息通知设置、版本更新及账号退出,一站式满足业主居家生活、社区服务、房产车辆管理需求,实现社区生活数字化、便捷化。",
"versionName" : "1.0.1",
- "versionCode" : 111,
+ "versionCode" : 114,
"transformPx" : false,
"uniCloud" : {
"provider" : "aliyun",
@@ -110,7 +110,7 @@
},
"share" : {
"weixin" : {
- "appid" : "wx2255a0821859ef43",
+ "appid" : "wx84b02b2ec80715f4",
"UniversalLinks" : "https://verification.ckdzkj.com/uni-universallinks/__UNI__29C3D60/"
}
},
@@ -172,7 +172,7 @@
"setting" : {
"urlCheck" : false
},
- "navigateToMiniProgramAppIdList" : [ "00004951" ],
+ "navigateToMiniProgramAppIdList" : [ "wxc0189436c58b59cd" ],
"requiredPrivateInfos" : [ "chooseLocation", "getLocation" ],
"permission" : {
"scope.camera" : {
diff --git a/property-uniapp-project/pageSubPack/api/apiSub.js b/property-uniapp-project/pageSubPack/api/apiSub.js
index 97ff7d5..9f0cb54 100644
--- a/property-uniapp-project/pageSubPack/api/apiSub.js
+++ b/property-uniapp-project/pageSubPack/api/apiSub.js
@@ -259,3 +259,13 @@ export const checkAppUpdate = (data) => {
export const postUpdateLog = (data) => {
return post(`/api/app/updateLog`, data)
}
+
+// ===========巡检记录========
+// 列表
+export const getInspectionList = (data) =>{
+ return get('/api/resident/inspection/list',data)
+}
+// 详情
+export const inspectionDetails = (data) =>{
+ return get(`/api/resident/inspection/${data.id}`,data)
+}
diff --git a/property-uniapp-project/pageSubPack/api/useImageUpload.js b/property-uniapp-project/pageSubPack/api/useImageUpload.js
index cafa5d1..7e6f22e 100644
--- a/property-uniapp-project/pageSubPack/api/useImageUpload.js
+++ b/property-uniapp-project/pageSubPack/api/useImageUpload.js
@@ -1,5 +1,5 @@
// 服务器地址(与 request.js 保持一致)
-const baseUrl = 'http://192.168.1.222:8080';
+const baseUrl = 'https://wuyeapi.ckdzkj.com';
/**
* 图片上传 Hook
diff --git a/property-uniapp-project/pageSubPack/inspection-revenue/inspection-details.vue b/property-uniapp-project/pageSubPack/inspection-revenue/inspection-details.vue
index aede379..ac0f41f 100644
--- a/property-uniapp-project/pageSubPack/inspection-revenue/inspection-details.vue
+++ b/property-uniapp-project/pageSubPack/inspection-revenue/inspection-details.vue
@@ -1,124 +1,240 @@
-
-
-
-
-
- 幸福苑小区1号楼1单元电梯间
- 已巡检
-
- 巡检项目:设备巡检
- 巡检时间:07:00:00 –09:00:00
- 巡检小区:幸福苑小区
- 巡检路线:常规巡检路线1
- 巡检点:安全出口1号;巡检点2;巡检点3
-
+
+
+
+
+
+
+
+
-
-
- 巡检结果
- 巡检人:李祥龙
- 手机号码:13013001300
- 巡检时间:2026-10-25 08:10:10
- 巡检结果:
-
- 1.设备正常,无任何异动和意向
- 2.电力系统正常、无故障提示
- 3.设备使用正常,无异常提示
-
- 巡检照片:
-
-
-
-
-
-
-
-
-
+
+
+
+
+ {{ detail.locationName }}
+ {{ detail.status }}
+
+ 巡检项目:{{ detail.inspectionType }}
+ 巡检时间:{{ detail.taskTime }}
+ 巡检小区:{{ detail.villageName }}
+ 巡检路线:{{ detail.routeName }}
+ 巡检点:{{ detail.pointNames }}
+
+
+
+
+ 巡检结果
+ 巡检人:{{ detail.inspectorName }}
+ 手机号码:{{ detail.phoneNumber }}
+ 巡检时间:{{ detail.inspectTime }}
+ 巡检结果:
+
+ {{ idx + 1 }}.{{ r }}
+
+ 巡检照片:
+
+
+
+
+ 暂无照片
+
+
+
+
+
+ {{ sub.pointName }}
+ 巡检时间:{{ sub.checkTime }}
+ 巡检结果:{{ sub.checkResult }}
+ 备注:{{ sub.remark }}
+ 巡检照片:
+
+
+
+
+
+
+
+
+
+
+ 数据加载失败
+ 点击重试
+
+
+
diff --git a/property-uniapp-project/pageSubPack/inspection-revenue/inspection.vue b/property-uniapp-project/pageSubPack/inspection-revenue/inspection.vue
index 4057a72..4a779e2 100644
--- a/property-uniapp-project/pageSubPack/inspection-revenue/inspection.vue
+++ b/property-uniapp-project/pageSubPack/inspection-revenue/inspection.vue
@@ -1,6 +1,6 @@
-
+
@@ -19,17 +19,22 @@
-
-
+
+
- {{ item.address }}
+ {{ item.locationName }}
{{ item.status }}
- {{ item.type }}
- 巡检时间:{{ item.time }}
- 巡检人:{{ item.inspector }}
+ {{ item.inspectionType }}
+ 巡检时间:{{ item.executeDate }}
+ 巡检人:{{ item.inspectorName }}
+
+
+
+ 暂无数据
+
@@ -37,51 +42,117 @@
\ No newline at end of file
diff --git a/property-uniapp-project/pageSubPack/loginSub/pwd-login.vue b/property-uniapp-project/pageSubPack/loginSub/pwd-login.vue
index e96f96a..d373f69 100644
--- a/property-uniapp-project/pageSubPack/loginSub/pwd-login.vue
+++ b/property-uniapp-project/pageSubPack/loginSub/pwd-login.vue
@@ -208,7 +208,7 @@ const doLogin = () => {
},2000);
})
}else{
- uni.showToast({ title: res.msg, icon: 'error' });
+ uni.showToast({ title: res.msg, icon: 'none' });
}
}).catch(err => {
@@ -216,7 +216,7 @@ const doLogin = () => {
uni.hideLoading();
uni.showToast({
title: err.msg || '网络异常',
- icon: 'error'
+ icon: 'none'
});
})
};
diff --git a/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue b/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue
index e33db52..251bae4 100644
--- a/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue
+++ b/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue
@@ -224,13 +224,13 @@
} else {
uni.showToast({
title: '验证码发送失败',
- icon: 'error'
+ icon: 'none'
});
}
}).catch(err => {
uni.showToast({
title: err.msg || '网络异常',
- icon: 'error'
+ icon: 'none'
});
})
@@ -309,14 +309,14 @@
} else {
uni.showToast({
title: '注册失败',
- icon: 'error'
+ icon: 'none'
});
}
}).catch((err) => {
uni.hideLoading();
uni.showToast({
title: err.msg || '网络异常',
- icon: 'error'
+ icon: 'none'
});
})
};
diff --git a/property-uniapp-project/pageSubPack/my/addHouse.vue b/property-uniapp-project/pageSubPack/my/addHouse.vue
index 0135210..a8e3aaa 100644
--- a/property-uniapp-project/pageSubPack/my/addHouse.vue
+++ b/property-uniapp-project/pageSubPack/my/addHouse.vue
@@ -539,12 +539,12 @@
getHouseAuthSendSmsCode(params).then(res => {
if (res.code === 200) {
uni.showToast({
- title: `发送成功!`,
- icon: 'error'
+ title: '发送成功',
+ icon: 'success'
});
} else {
uni.showToast({
- title: `${res.msg}`,
+ title: res.msg,
icon: 'error'
});
}
@@ -739,7 +739,6 @@
uni.showToast({
title: err.msg || '提交失败',
icon: 'none',
- duration: 2500
})
}
}
@@ -758,16 +757,16 @@
}, 1500);
} else {
uni.showToast({
- title: `${res.msg}`,
- icon: 'error'
+ title: res.msg,
+ icon: 'none'
});
}
}).catch(err => {
console.log(err);
uni.showToast({
- title: `${err}`,
- icon: 'error'
+ title: err.msg,
+ icon: 'none'
});
})
}
diff --git a/property-uniapp-project/pageSubPack/my/settingIndex.vue b/property-uniapp-project/pageSubPack/my/settingIndex.vue
index 5f7db13..79f6e0a 100644
--- a/property-uniapp-project/pageSubPack/my/settingIndex.vue
+++ b/property-uniapp-project/pageSubPack/my/settingIndex.vue
@@ -70,12 +70,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/payment-list/arrearsPayment.vue b/property-uniapp-project/pageSubPack/payment-list/arrearsPayment.vue
index 252c3fb..8c37964 100644
--- a/property-uniapp-project/pageSubPack/payment-list/arrearsPayment.vue
+++ b/property-uniapp-project/pageSubPack/payment-list/arrearsPayment.vue
@@ -55,7 +55,6 @@
-->
当前欠费金额¥{{ arrearsAmount }}元
- 点击自动填入
- 成功缴纳{{ switchStatus(paymentItem.type) || '' }}费用 ¥{{ payNum || payAmount }}元
+ 成功缴纳{{ switchStatus(paymentItem.type) || '' }}费用 ¥{{ arrearsAmount || payAmount }}元
@@ -123,7 +122,6 @@
const currentStep = ref(1)
const payAmount = ref('0.00')
const arrearsAmount = ref('0.00')
- const payNum = ref('')
// 页面加载时初始化数据
onLoad(() => {
@@ -165,13 +163,6 @@
}
}
- // 自动填充欠费金额
- const handleAutoFill = () => {
- payNum.value = arrearsAmount.value
- uni.vibrateShort({
- type: 'light'
- })
- }
// 返回
const goBack = () => {
@@ -189,6 +180,7 @@
// })
// return
// }
+ const amount = arrearsAmount.value
try {
uni.showLoading({ title: '加载中...' })
@@ -200,7 +192,8 @@
const res = await getBankMiniProgramParams({
acct: uni.getStorageSync('userId'),
orderType: '20',
- orderAmount: String(Math.round(Number(payNum.value) * 100)),
+ orderAmount: String(Math.round(Number(amount) * 100)),
+ // orderAmount: String(Math.round(Number(arrearsAmount.value) * 100)),
deviceCode: paymentItem.deviceCode || '',
deviceType: mappedDeviceType,
billId: paymentItem.billId || '',
@@ -215,7 +208,7 @@
return
}
console.log('resres返回数据', res)
- console.log('resres', res.data)
+ // console.log('resres', res.data)
const { appId, path, extraData } = res.data
console.log('navigateToMiniProgram参数:', { appId, path, extraData })
@@ -228,19 +221,19 @@
}
// 解析 extraData(后端返回可能是字符串或对象)
- // ' let extraDataObj = extraData
- // if (typeof extraData === 'string') {
- // try {
- // extraDataObj = JSON.parse(extraData)
- // } catch (e) {
- // console.error('extraData JSON解析失败,使用空对象', e)
- // extraDataObj = {}
- // }
- // }
- // if (!extraDataObj || typeof extraDataObj !== 'object') {
- // extraDataObj = {}
- // }'
-
+ /* let extraDataObj = extraData
+ if (typeof extraData === 'string') {
+ try {
+ extraDataObj = JSON.parse(extraData)
+ } catch (e) {
+ console.error('extraData JSON解析失败,使用空对象', e)
+ extraDataObj = {}
+ }
+ }
+ if (!extraDataObj || typeof extraDataObj !== 'object') {
+ extraDataObj = {}
+ }
+ console.log('解析-----extraDataObj', extraDataObj) */
// #ifdef APP-PLUS
// 原生App:通过微信SDK拉起小程序
plus.share.getServices((services) => {
@@ -253,12 +246,17 @@
uni.showToast({ title: '当前微信版本太低,不支持拉起小程序', icon: 'none' })
return
}
+
+
weixin.launchMiniProgram({
- id: appId,
+ id: 'gh_4ba5e4fdaa83',
+ // appId:'00004951',
type: 1, // 0=正式版 1=测试版 2=预览版
- path: path || '',
+ path: path,
+ // extMsg: JSON.stringify({ extraData: extraData })
extraData: extraData
}, (res) => {
+ console.log('ress-------------',res)
if (res.retCode === 'SUCCESS') {
console.log('成功拉起日照银行小程序(App)', res.retCode)
} else {
@@ -271,24 +269,24 @@
uni.showToast({ title: '拉起支付小程序失败', icon: 'none' })
})
})
- // #endif
+ // #endif
- // #ifdef MP-WEIXIN
- // 微信小程序:直接navigateToMiniProgram
- uni.navigateToMiniProgram({
- appId: appId,
- path: path || '',
- extraData: extraData,
- envVersion: 'develop',
- success: () => {
- console.log('成功拉起日照银行小程序(微信)')
- },
- fail: (err) => {
- console.error('拉起日照银行小程序失败(微信)', JSON.stringify(err))
- uni.showToast({ title: err.errMsg || err.msg || '拉起支付小程序失败', icon: 'none' })
- }
- })
- // #endif
+ // // #ifdef MP-WEIXIN
+ // // 微信小程序:直接navigateToMiniProgram
+ // uni.navigateToMiniProgram({
+ // appId: appId,
+ // path: path || '',
+ // extraData: extraData,
+ // envVersion: 'develop',
+ // success: () => {
+ // console.log('成功拉起日照银行小程序(微信)')
+ // },
+ // fail: (err) => {
+ // console.error('拉起日照银行小程序失败(微信)', JSON.stringify(err))
+ // uni.showToast({ title: err.errMsg || err.msg || '拉起支付小程序失败', icon: 'none' })
+ // }
+ // })
+ // // #endif
} catch (err) {
uni.hideLoading()
console.error('获取支付参数异常', err)
@@ -304,7 +302,7 @@
userId: userId,
channel: 'resident',
title: '缴费成功',
- content: `您已成功缴纳${switchStatus(paymentItem.type) || ''}费用 ¥${payNum.value || payAmount.value}元`
+ content: `您已成功缴纳${switchStatus(paymentItem.type) || ''}费用 ¥${arrearsAmount.value || payAmount.value}元`
}).catch(err => {
console.log('推送发送失败', err)
})
diff --git a/property-uniapp-project/pages.json b/property-uniapp-project/pages.json
index c52977a..650d343 100644
--- a/property-uniapp-project/pages.json
+++ b/property-uniapp-project/pages.json
@@ -1,5 +1,13 @@
{
"pages": [{
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "首页",
+ "navigationStyle": "custom",
+ "navigationBarBackgroundColor": "#F8F8F8"
+ }
+ },
+ {
"path": "pages/navigation/navigation",
"style": {
"navigationBarTitleText": "引导页",
@@ -8,14 +16,6 @@
"navigationStyle": "custom"
}
},
- {
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "首页",
- "navigationStyle": "custom",
- "navigationBarBackgroundColor": "#F8F8F8"
- }
- },
{
"path": "pages/serviceIndex/serviceIndex",
"style": {
diff --git a/property-uniapp-project/pages/index/index.vue b/property-uniapp-project/pages/index/index.vue
index 08b156d..5caddcf 100644
--- a/property-uniapp-project/pages/index/index.vue
+++ b/property-uniapp-project/pages/index/index.vue
@@ -8,25 +8,22 @@
- 首页
+ 首页