diff --git a/wuye-manager-uniapp/pageSubPack/api/api.js b/wuye-manager-uniapp/pageSubPack/api/api.js new file mode 100644 index 0000000..8901ee0 --- /dev/null +++ b/wuye-manager-uniapp/pageSubPack/api/api.js @@ -0,0 +1,23 @@ +import request,{get,post} from "./request.js" + + +// =======账号密码登录======== +export const getLoginPassword = (data) =>{ + return post('/api/resident/auth/loginByPassword',data) +} +// 注册新用户获取验证码 +export const getSendCode = (data) =>{ + return post('/api/resident/auth/sendSmsCode',data) +} +// 注册新用户 +export const getRegisterUser = (data) =>{ + return post('/api/resident/auth/register',data) +} +// 短信验证码登录 +export const getLoginBySms = (data) =>{ + return post('/api/resident/auth/loginBySms',data) +} +// 忘记密码接口 +export const getResetPassword = (data) =>{ + return post('/api/resident/auth/resetPassword',data) +} diff --git a/wuye-manager-uniapp/pageSubPack/api/request.js b/wuye-manager-uniapp/pageSubPack/api/request.js new file mode 100644 index 0000000..37d6624 --- /dev/null +++ b/wuye-manager-uniapp/pageSubPack/api/request.js @@ -0,0 +1,81 @@ + +let baseUrl = ''; +if (process.env.NODE_ENV === 'development') { + baseUrl = 'http://192.168.0.224:8080'; // 开发环境 +} else { + baseUrl = 'http://192.168.1.224:8080'; // 生产环境 +} + +export default function request(url, data = {}, method = "GET") { + return new Promise((resolve, reject) => { + // 加载中提示(提升用户体验) + uni.showLoading({ title: '请求中...', mask: true }); + + uni.request({ + url: baseUrl + url, + data: data, + method: method, + header: { + "Authorization": "Bearer " + (uni.getStorageSync("token") || ''), + "clientid": "resident", + 'content-type': 'application/json' + }, + // header: { + // "token": uni.getStorageSync("token") || '', + // 'content-type': 'application/json' + // }, + success: (res) => { + uni.hideLoading(); // 关闭加载提示 + + // 处理HTTP状态码(网络层面) + if (res.statusCode !== 200) { + const errMsg = `请求失败(${res.statusCode})`; + uni.showToast({ title: errMsg, icon: "none", duration: 2000 }); + reject(errMsg); + return; + } + + // 处理业务状态码(后端返回的data里) + const resData = res.data || {}; // 兼容后端返回空的情况 + + // 优先处理token过期(401) + if (resData.code === 401) { + uni.showToast({ title: '登录过期,请重新登录', icon: 'none', duration: 2000 }); + uni.clearStorageSync('token'); + setTimeout(() => { + uni.reLaunch({ url: '/pageSubPack/loginSub/pwd-login' }); + }, 1500); + reject('token 过期'); + return; + } + + // 业务成功(code=200) + if (resData.code === 200) { + resolve(resData); // 只返回核心数据,简化页面调用 + } + // 业务失败(code=500) + else if (resData.code === 500) { + const errMsg = resData.msg || '请求失败'; + uni.showToast({ title: errMsg, icon: "none", duration: 2000 }); + // resolve(null) + reject(errMsg); + } + else { + const errMsg = resData.msg || '业务异常'; + uni.showToast({ title: errMsg, icon: "none", duration: 2000 }); + reject(errMsg); + } + }, + fail: (err) => { + uni.hideLoading(); // 关闭加载提示 + const errMsg = err.msg || '网络请求失败'; + uni.showToast({ title: errMsg, icon: "none", duration: 2000 }); + reject(err); + } + }); + }); +} +export const get = (url, data) => request(url, data, 'GET'); +export const post = (url, data) => request(url, data, 'POST'); + + diff --git a/wuye-manager-uniapp/pageSubPack/loginSub/change-pwd.vue b/wuye-manager-uniapp/pageSubPack/loginSub/change-pwd.vue new file mode 100644 index 0000000..3ecb586 --- /dev/null +++ b/wuye-manager-uniapp/pageSubPack/loginSub/change-pwd.vue @@ -0,0 +1,197 @@ + + + + + + + 修改密码 + + + + + + + + + + + + + + + + + 确定 + + + + + + + \ No newline at end of file diff --git a/wuye-manager-uniapp/pageSubPack/loginSub/forget-pwd.vue b/wuye-manager-uniapp/pageSubPack/loginSub/forget-pwd.vue new file mode 100644 index 0000000..e9be9bc --- /dev/null +++ b/wuye-manager-uniapp/pageSubPack/loginSub/forget-pwd.vue @@ -0,0 +1,229 @@ + + + + + + 忘记密码 + + + + + + + + + + + + + + + + + + + {{ countDown > 0 ? `${countDown}s后重新获取` : '获取验证码' }} + + + + + 下一步 + + + + + + diff --git a/wuye-manager-uniapp/pageSubPack/loginSub/login.vue b/wuye-manager-uniapp/pageSubPack/loginSub/login.vue new file mode 100644 index 0000000..bc70665 --- /dev/null +++ b/wuye-manager-uniapp/pageSubPack/loginSub/login.vue @@ -0,0 +1,359 @@ + + + + + 手机验证码登录 + + + + + + + + + + + + + + + + + + + + + + {{ countDown > 0 ? `${countDown}s后重新获取` : '获取验证码' }} + + + + + + + + 我已阅读并同意《用户隐私政策》 + + + + + 登录 + + + + + 账号密码登录 + 注册新用户 + + + + + + + diff --git a/wuye-manager-uniapp/pageSubPack/loginSub/pwd-login.vue b/wuye-manager-uniapp/pageSubPack/loginSub/pwd-login.vue new file mode 100644 index 0000000..0a8c2b4 --- /dev/null +++ b/wuye-manager-uniapp/pageSubPack/loginSub/pwd-login.vue @@ -0,0 +1,263 @@ + + + + + 账号密码登录 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 我已阅读并同意《用户隐私政策》 + + 忘记密码? + + + + + 登录 + + + + + 验证码登录 + 注册新用户 + + + + + + + \ No newline at end of file diff --git a/wuye-manager-uniapp/pageSubPack/loginSub/register-new-user.vue b/wuye-manager-uniapp/pageSubPack/loginSub/register-new-user.vue new file mode 100644 index 0000000..84e6126 --- /dev/null +++ b/wuye-manager-uniapp/pageSubPack/loginSub/register-new-user.vue @@ -0,0 +1,383 @@ + + + + + + + 注册 + + + + 注册用户 + + + + + + + + + + + + + + + + + + + + + {{ countDown > 0 ? `${countDown}s后重新获取` : '获取验证码' }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 我已阅读并同意《用户隐私政策》 + + + + + 立即注册 + + + + + 已有账号,去登录 + + + + + + + \ No newline at end of file diff --git a/wuye-manager-uniapp/pageSubPack/notice-list/notice-list.vue b/wuye-manager-uniapp/pageSubPack/notice-list/notice-list.vue new file mode 100644 index 0000000..fd49ca7 --- /dev/null +++ b/wuye-manager-uniapp/pageSubPack/notice-list/notice-list.vue @@ -0,0 +1,133 @@ + + + + + + + 以实干担当不断开创中国特色大国外交实干担当不断开创中国特色大国外交 + + + + + + 张三 + 2026-07-01 + + + + + + 学习贯彻习近平新时代中国特色社会主义思想主题教育开展以来,外交外事战线认真学习贯彻习近平总书记重要讲话精神和党中央部署要求,全面准确把... + + + + + + 详情 + + + + + + + + + \ No newline at end of file diff --git a/wuye-manager-uniapp/pageSubPack/notice-list/noticeListDetails.vue b/wuye-manager-uniapp/pageSubPack/notice-list/noticeListDetails.vue new file mode 100644 index 0000000..6ae75b0 --- /dev/null +++ b/wuye-manager-uniapp/pageSubPack/notice-list/noticeListDetails.vue @@ -0,0 +1,531 @@ + + + + + + + + {{noticeDetail.noticeTitle}} + + + + + + {{noticeDetail.author}} + · + {{noticeDetail.publishTime}} + + + + + + + {{noticeDetail.noticeContent}} + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wuye-manager-uniapp/pages/notice-list/select-community.vue b/wuye-manager-uniapp/pageSubPack/notice-list/select-community.vue similarity index 95% rename from wuye-manager-uniapp/pages/notice-list/select-community.vue rename to wuye-manager-uniapp/pageSubPack/notice-list/select-community.vue index a431adc..846962b 100644 --- a/wuye-manager-uniapp/pages/notice-list/select-community.vue +++ b/wuye-manager-uniapp/pageSubPack/notice-list/select-community.vue @@ -15,7 +15,7 @@ - 搜索 + @@ -34,7 +34,8 @@ @tap="selectCommunity(item)" > - + + {{ item.name }} @@ -42,7 +43,8 @@ - + + @@ -88,9 +90,6 @@ > 确认选择 - - 已选: {{ selectedItem.name }} - @@ -277,7 +276,7 @@ onMounted(() => { background-color: #f5f5f5; display: flex; flex-direction: column; - /* padding: 20rpx; */ + padding: 0rpx 40rpx; } /* 搜索区域 */ @@ -341,7 +340,7 @@ onMounted(() => { /* 小区列表 */ .community-list { flex: 1; - padding: 0 30rpx; + /* padding: 0 30rpx; */ margin-top: 20rpx; margin-bottom: 180rpx; @@ -495,11 +494,11 @@ onMounted(() => { } .confirm-btn { - background-color: #007AFF; + background-color: #4D5DFA; color: #fff; height: 100rpx; line-height: 100rpx; - border-radius: 12rpx; + border-radius: 8rpx; font-size: 34rpx; width: 100%; margin: 0; diff --git a/wuye-manager-uniapp/pageSubPack/oneClickOpen/oneClickOpen.vue b/wuye-manager-uniapp/pageSubPack/oneClickOpen/oneClickOpen.vue new file mode 100644 index 0000000..62c7f19 --- /dev/null +++ b/wuye-manager-uniapp/pageSubPack/oneClickOpen/oneClickOpen.vue @@ -0,0 +1,242 @@ + + + + + + + + + + + + + + + 远程开门 + 请选择要开的门并保持距离在10米以内,单次仅开一门 + + + + 开门成功 + + + + 开门授权 + + + + + + + + + + {{ item.name }} + + + + + + 确认开门 + + + + + + \ No newline at end of file diff --git a/wuye-manager-uniapp/pages.json b/wuye-manager-uniapp/pages.json index f41b325..a4a5507 100644 --- a/wuye-manager-uniapp/pages.json +++ b/wuye-manager-uniapp/pages.json @@ -1,5 +1,12 @@ { "pages": [ + { + "path": "pages/guide/guide", + "style": { + "navigationBarTitleText": "引导页", + "navigationStyle": "custom" + } + }, { "path": "pages/index/index", "style": { @@ -17,7 +24,49 @@ ], "subPackages": [ { - "root": "pages/notice-list", + "root": "pageSubPack/loginSub", + "pages": [ + { + "path": "pwd-login", + "style": { + "navigationBarTitleText": "账号登录", + "navigationStyle": "custom" + } + }, + { + "path": "login", + "style": { + "navigationBarTitleText": "手机号登录", + "navigationStyle": "custom" + } + }, + { + "path": "register-new-user", + "style": { + "navigationBarTitleText": "注册新用户", + "navigationStyle": "custom" + } + }, + { + "path": "forget-pwd", + "style": { + "navigationBarTitleText": "忘记密码", + "navigationStyle": "custom" + } + }, + { + "path": "change-pwd", + "style": { + "navigationBarTitleText": "修改密码", + "navigationStyle": "custom" + } + } + + + ] + }, + { + "root": "pageSubPack/notice-list", "pages": [ { "path": "select-community", @@ -28,9 +77,28 @@ { "path": "notice-list", "style": { - "navigationBarTitleText": "通知" + "navigationBarTitleText": "通知公告" } - } + }, + { + "path": "noticeListDetails", + "style": { + "navigationBarTitleText": "公告详情" + } + }, + + ] + }, + { + "root": "pageSubPack/oneClickOpen", + "pages": [ + { + "path": "oneClickOpen", + "style": { + "navigationBarTitleText": "一键开门", + "navigationStyle": "custom" + } + } ] } ], diff --git a/wuye-manager-uniapp/pages/guide/guide.vue b/wuye-manager-uniapp/pages/guide/guide.vue new file mode 100644 index 0000000..ee9ddbd --- /dev/null +++ b/wuye-manager-uniapp/pages/guide/guide.vue @@ -0,0 +1,219 @@ + + + + + + + + + + + + + 精准服务 + 需求深度洞察,资源优化配置 + + + + + + + + + + + 高效沟通 + 反馈即时响应,流程无缝衔接 + + + + + + + + + + + 智能管理 + 数据驱动决策,风险提前预警 + + + + + + + + + + + + + + + {{ currentStep === 2 ? '立即体验' : '下一步' }} + + + + + + + + \ No newline at end of file diff --git a/wuye-manager-uniapp/pages/index/index.vue b/wuye-manager-uniapp/pages/index/index.vue index 8416e52..d86d382 100644 --- a/wuye-manager-uniapp/pages/index/index.vue +++ b/wuye-manager-uniapp/pages/index/index.vue @@ -1,26 +1,438 @@ - - - - + + + + + + + 首页 + + + + + + + + + + + + {{ currentCommunity }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 25 + 巡检点 + + + 5 + 巡检点 + + + 25 + 巡检点 + + + + + + + + + + 故障上报 + + + + 一键开门 + + + + 工单大厅 + + + + 我的工单 + + + + + + + 投诉处理 + + + + + + + + + + + - \ No newline at end of file diff --git a/wuye-manager-uniapp/pages/my/my.vue b/wuye-manager-uniapp/pages/my/my.vue index fd20815..c8e2e0e 100644 --- a/wuye-manager-uniapp/pages/my/my.vue +++ b/wuye-manager-uniapp/pages/my/my.vue @@ -1,22 +1,217 @@ - - - - + + + + + + + + + + + {{loginName}} + + + {{phoneNum}} + + + + + + + + + + + {{ item.title }} + {{ item.desc }} + + + + + + + + + + - + + + - \ No newline at end of file diff --git a/wuye-manager-uniapp/pages/notice-list/notice-list.vue b/wuye-manager-uniapp/pages/notice-list/notice-list.vue deleted file mode 100644 index f7675aa..0000000 --- a/wuye-manager-uniapp/pages/notice-list/notice-list.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - - - - 你有新的维修工单 - - - - - - {{ item.title }} - {{ item.desc }} - - - - - - 详情 - - - - - - - 暂无新的维修工单 - - - - - - - - \ No newline at end of file diff --git a/wuye-manager-uniapp/static/imgs/adress.png b/wuye-manager-uniapp/static/imgs/adress.png new file mode 100644 index 0000000..60a31e6 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/adress.png differ diff --git a/wuye-manager-uniapp/static/imgs/check.png b/wuye-manager-uniapp/static/imgs/check.png new file mode 100644 index 0000000..02a1480 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/check.png differ diff --git a/wuye-manager-uniapp/static/imgs/community.png b/wuye-manager-uniapp/static/imgs/community.png new file mode 100644 index 0000000..4cd76c7 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/community.png differ diff --git a/wuye-manager-uniapp/static/imgs/complaint.png b/wuye-manager-uniapp/static/imgs/complaint.png new file mode 100644 index 0000000..9a522e1 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/complaint.png differ diff --git a/wuye-manager-uniapp/static/imgs/eastDoor.png b/wuye-manager-uniapp/static/imgs/eastDoor.png new file mode 100644 index 0000000..6b89e97 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/eastDoor.png differ diff --git a/wuye-manager-uniapp/static/imgs/eastDoorWhite.png b/wuye-manager-uniapp/static/imgs/eastDoorWhite.png new file mode 100644 index 0000000..57f1f7c Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/eastDoorWhite.png differ diff --git a/wuye-manager-uniapp/static/imgs/fault-report.png b/wuye-manager-uniapp/static/imgs/fault-report.png new file mode 100644 index 0000000..575dafc Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/fault-report.png differ diff --git a/wuye-manager-uniapp/static/imgs/guide1.png b/wuye-manager-uniapp/static/imgs/guide1.png new file mode 100644 index 0000000..79d1ac4 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/guide1.png differ diff --git a/wuye-manager-uniapp/static/imgs/guide2.png b/wuye-manager-uniapp/static/imgs/guide2.png new file mode 100644 index 0000000..992b62c Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/guide2.png differ diff --git a/wuye-manager-uniapp/static/imgs/guide3.png b/wuye-manager-uniapp/static/imgs/guide3.png new file mode 100644 index 0000000..a54016f Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/guide3.png differ diff --git a/wuye-manager-uniapp/static/imgs/my-work.png b/wuye-manager-uniapp/static/imgs/my-work.png new file mode 100644 index 0000000..2afa21b Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/my-work.png differ diff --git a/wuye-manager-uniapp/static/imgs/notice.png b/wuye-manager-uniapp/static/imgs/notice.png new file mode 100644 index 0000000..d782dba Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/notice.png differ diff --git a/wuye-manager-uniapp/static/imgs/open.png b/wuye-manager-uniapp/static/imgs/open.png new file mode 100644 index 0000000..979a7df Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/open.png differ diff --git a/wuye-manager-uniapp/static/imgs/shangbao.png b/wuye-manager-uniapp/static/imgs/shangbao.png new file mode 100644 index 0000000..19b8e2f Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/shangbao.png differ diff --git a/wuye-manager-uniapp/static/imgs/touxiang.png b/wuye-manager-uniapp/static/imgs/touxiang.png new file mode 100644 index 0000000..b30ede1 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/touxiang.png differ diff --git a/wuye-manager-uniapp/static/imgs/unitDoor.png b/wuye-manager-uniapp/static/imgs/unitDoor.png new file mode 100644 index 0000000..b175f12 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/unitDoor.png differ diff --git a/wuye-manager-uniapp/static/imgs/unitDoorWhite.png b/wuye-manager-uniapp/static/imgs/unitDoorWhite.png new file mode 100644 index 0000000..49028b8 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/unitDoorWhite.png differ diff --git a/wuye-manager-uniapp/static/imgs/westDoor.png b/wuye-manager-uniapp/static/imgs/westDoor.png new file mode 100644 index 0000000..881bba1 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/westDoor.png differ diff --git a/wuye-manager-uniapp/static/imgs/westDoorWhite.png b/wuye-manager-uniapp/static/imgs/westDoorWhite.png new file mode 100644 index 0000000..d00d749 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/westDoorWhite.png differ diff --git a/wuye-manager-uniapp/static/imgs/work-order.png b/wuye-manager-uniapp/static/imgs/work-order.png new file mode 100644 index 0000000..713fbad Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/work-order.png differ diff --git a/wuye-manager-uniapp/static/imgs/xuancheng-bg.png b/wuye-manager-uniapp/static/imgs/xuancheng-bg.png new file mode 100644 index 0000000..b446d85 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/xuancheng-bg.png differ diff --git a/wuye-manager-uniapp/static/imgs/xunjian.png b/wuye-manager-uniapp/static/imgs/xunjian.png new file mode 100644 index 0000000..50859a4 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/xunjian.png differ diff --git a/wuye-manager-uniapp/static/imgs/三角形.png b/wuye-manager-uniapp/static/imgs/三角形.png new file mode 100644 index 0000000..384cad8 Binary files /dev/null and b/wuye-manager-uniapp/static/imgs/三角形.png differ diff --git a/wuye-manager-uniapp/static/tabbar/工作台灰.png b/wuye-manager-uniapp/static/tabbar/工作台灰.png deleted file mode 100644 index 43beca3..0000000 Binary files a/wuye-manager-uniapp/static/tabbar/工作台灰.png and /dev/null differ diff --git a/wuye-manager-uniapp/static/tabbar/工作台蓝.png b/wuye-manager-uniapp/static/tabbar/工作台蓝.png deleted file mode 100644 index 0828658..0000000 Binary files a/wuye-manager-uniapp/static/tabbar/工作台蓝.png and /dev/null differ diff --git a/wuye-manager-uniapp/static/tabbar/我的灰.png b/wuye-manager-uniapp/static/tabbar/我的灰.png deleted file mode 100644 index b2ad9f6..0000000 Binary files a/wuye-manager-uniapp/static/tabbar/我的灰.png and /dev/null differ diff --git a/wuye-manager-uniapp/static/tabbar/我的蓝.png b/wuye-manager-uniapp/static/tabbar/我的蓝.png deleted file mode 100644 index 967ce73..0000000 Binary files a/wuye-manager-uniapp/static/tabbar/我的蓝.png and /dev/null differ diff --git a/wuye-manager-uniapp/static/一键开门.png b/wuye-manager-uniapp/static/一键开门.png deleted file mode 100644 index 02601b7..0000000 Binary files a/wuye-manager-uniapp/static/一键开门.png and /dev/null differ diff --git a/wuye-manager-uniapp/static/一键开门1.png b/wuye-manager-uniapp/static/一键开门1.png deleted file mode 100644 index f31be53..0000000 Binary files a/wuye-manager-uniapp/static/一键开门1.png and /dev/null differ diff --git a/wuye-manager-uniapp/static/在线保修.png b/wuye-manager-uniapp/static/在线保修.png deleted file mode 100644 index 33ea713..0000000 Binary files a/wuye-manager-uniapp/static/在线保修.png and /dev/null differ diff --git a/wuye-manager-uniapp/static/地点.png b/wuye-manager-uniapp/static/地点.png deleted file mode 100644 index 260d47b..0000000 Binary files a/wuye-manager-uniapp/static/地点.png and /dev/null differ diff --git a/wuye-manager-uniapp/static/工单大厅.png b/wuye-manager-uniapp/static/工单大厅.png deleted file mode 100644 index 2d212b2..0000000 Binary files a/wuye-manager-uniapp/static/工单大厅.png and /dev/null differ diff --git a/wuye-manager-uniapp/static/投诉处理.png b/wuye-manager-uniapp/static/投诉处理.png deleted file mode 100644 index 62e06f0..0000000 Binary files a/wuye-manager-uniapp/static/投诉处理.png and /dev/null differ diff --git a/wuye-manager-uniapp/static/缴费工单.png b/wuye-manager-uniapp/static/缴费工单.png deleted file mode 100644 index bb4c876..0000000 Binary files a/wuye-manager-uniapp/static/缴费工单.png and /dev/null differ