feat(ui): 登录起全链路页面接通 + 逐页面验证(47 项)+ 修复订单列表越权泄漏
前端: - utils/request.js 统一请求层(token/错误码/401 引导登录) - utils/api.js 接口清单(与后端控制器一一对应) - pages/login 登录(手机号+验证码+角色选择) - pages/service/list|detail 服务列表/详情 - pages/order/create 下单(地址/预约/急单/费用试算/自动支付) - pages/order/list|detail|review 订单列表/详情轨迹/评价 - pages/master/apply|hall|orders 师傅入驻/订单大厅/接单履约 - YJYF/YJYF 首页接 home/index 真实类目 + 路由跳转 后端 Bug 修复(严重): - TP5 中 count() 会重置查询条件,导致 Order::index / Master::hall / Master::orders 在 select 时丢失 where 条件 → 泄漏全部用户订单/跨用户数据 - 改为闭包重建查询,已验证修复
这个提交包含在:
50
pages.json
50
pages.json
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||
"pages": [ //pages数组中第一项表示应用启动页
|
||||
{
|
||||
"path": "YJYF/YJYF",
|
||||
"style": {
|
||||
@@ -11,16 +11,58 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"path": "pages/login/login",
|
||||
"style": { "navigationStyle": "custom", "backgroundColor": "#F5F6F8" }
|
||||
},
|
||||
{
|
||||
"path": "pages/service/list",
|
||||
"style": { "navigationBarTitleText": "服务列表" }
|
||||
},
|
||||
{
|
||||
"path": "pages/service/detail",
|
||||
"style": { "navigationBarTitleText": "服务详情" }
|
||||
},
|
||||
{
|
||||
"path": "pages/order/create",
|
||||
"style": { "navigationBarTitleText": "确认订单" }
|
||||
},
|
||||
{
|
||||
"path": "pages/order/list",
|
||||
"style": { "navigationBarTitleText": "我的订单" }
|
||||
},
|
||||
{
|
||||
"path": "pages/order/detail",
|
||||
"style": { "navigationBarTitleText": "订单详情" }
|
||||
},
|
||||
{
|
||||
"path": "pages/order/review",
|
||||
"style": { "navigationBarTitleText": "服务评价" }
|
||||
},
|
||||
{
|
||||
"path": "pages/master/apply",
|
||||
"style": { "navigationBarTitleText": "师傅入驻" }
|
||||
},
|
||||
{
|
||||
"path": "pages/master/hall",
|
||||
"style": { "navigationBarTitleText": "订单大厅", "enablePullDownRefresh": false }
|
||||
},
|
||||
{
|
||||
"path": "pages/master/orders",
|
||||
"style": {
|
||||
"navigationBarTitleText": "uni-app"
|
||||
"navigationBarTitleText": "接单管理",
|
||||
"enablePullDownRefresh": true,
|
||||
"backgroundTextStyle": "dark"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style": { "navigationBarTitleText": "uni-app" }
|
||||
}
|
||||
],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "优匠优服",
|
||||
"navigationBarBackgroundColor": "#F8F8F8",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"backgroundColor": "#F5F6F8"
|
||||
},
|
||||
"uniIdRouter": {}
|
||||
|
||||
在新工单中引用
屏蔽一个用户