diff --git a/ak/config.uts b/ak/config.uts
index 7269882b..a24c488a 100644
--- a/ak/config.uts
+++ b/ak/config.uts
@@ -1,12 +1,12 @@
// Supabase 配置
// 内网环境 - 本地部署的 Supabase
-// IP: 192.168.1.63
+// IP: 192.168.1.62
// Kong HTTP Port: 8000
-export const SUPA_URL: string = 'http://192.168.1.63:8000'
+export const SUPA_URL: string = 'http://192.168.1.62:8000'
export const SUPA_KEY: string = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlzcyI6InN1cGFiYXNlIiwiaWF0IjoxNzY4ODMwNjI0LCJleHAiOjE5MjY1MTA2MjR9.mDVl-kIOdRK9v6VTxo0TDF8r7X7xk3PZXazaavHyVvg'
// WebSocket 实时连接(内网使用 ws:// 而非 wss://)
-export const WS_URL: string = 'ws://192.168.1.63:8000/realtime/v1/websocket'
+export const WS_URL: string = 'ws://192.168.1.62:8000/realtime/v1/websocket'
// 备用配置(已注释,如需切换可取消注释)
// 开发环境 - 其他内网地址
diff --git a/pages.json b/pages.json
index 314253fb..6261795f 100644
--- a/pages.json
+++ b/pages.json
@@ -324,6 +324,34 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "help-center",
+ "style": {
+ "navigationBarTitleText": "帮助中心",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "about",
+ "style": {
+ "navigationBarTitleText": "关于我们",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "feedback",
+ "style": {
+ "navigationBarTitleText": "意见反馈",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "test",
+ "style": {
+ "navigationBarTitleText": "test",
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "settings",
"style": {
diff --git a/pages/mall/delivery/about.uvue b/pages/mall/delivery/about.uvue
new file mode 100644
index 00000000..8cf90f4c
--- /dev/null
+++ b/pages/mall/delivery/about.uvue
@@ -0,0 +1,293 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 版本: v2.1.5
+
+
+
+
+ 快递配送助手
+ 专为配送员打造的一站式智能配送平台,提升效率,优化服务体验
+
+
+
+
+
+
+
+ 📍
+ 智能路线规划
+
+
+ 📱
+ 实时订单管理
+
+
+ 💰
+ 在线结算系统
+
+
+ ⭐
+ 客户评价反馈
+
+
+
+
+
+
+
+ 公司名称: 快递科技有限公司
+ 成立时间: 2020年
+ 总部地点: 深圳市南山区科技园
+ 联系电话: 400-123-4567
+ 邮箱: support@delivery.com
+
+
+
+
+
+
+ v2.1.5 (2026-01-27)
+ • 修复了地图定位精度问题\n• 优化了任务分配算法\n• 提升了语音播报稳定性
+
+
+ v2.1.4 (2026-01-15)
+ • 新增智能语音助手功能\n• 改进了路线导航算法\n• 修复了部分UI显示异常
+
+
+ v2.1.3 (2025-12-28)
+ • 新增客户满意度评价\n• 优化了离线地图功能\n• 增强了数据同步机制
+
+
+
+
+
+ © 2020-2026 快递科技有限公司 版权所有
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/mall/delivery/delivery.md b/pages/mall/delivery/delivery.md
index 3166bf09..7d275fa1 100644
--- a/pages/mall/delivery/delivery.md
+++ b/pages/mall/delivery/delivery.md
@@ -1,7 +1,3 @@
-✅ 明白了!你不需要完整代码,而是希望我**用简洁的 Markdown 文档形式,解释这个 `delivery` 文件夹下的项目结构和每个页面的功能定位**。
-
----
-
# 🚚 配送端模块项目结构说明(`/pages/mall/delivery/`)
> 本模块为配送员使用的移动端应用核心功能区,涵盖个人中心、任务管理、收入统计、车辆管理等核心功能。
@@ -25,7 +21,6 @@ delivery/
├── vehicle.uvue # 车辆管理主页
├── vehicle-add.uvue # 添加车辆
├── vehicle-edit.uvue # 编辑车辆信息
-└── index.uvue # 首页(与上面重复?应统一命名)
```
> 💡 注:`index.uvue` 出现两次,建议保留一个作为首页入口,另一个可重命名为 `dashboard.uvue` 或 `home.uvue`
@@ -171,7 +166,6 @@ index.uvue
| 问题 | 建议 |
|------|------|
-| `index.uvue` 重复 | 重命名为 `dashboard.uvue` 或 `home.uvue` |
| 页面间参数传递 | 使用 `uni.navigateTo({ url: '?param=value' })` 并在 `onLoad` 中接收 |
| UTS 语法兼容性 | 如遇问题,可临时改用标准 TS 语法调试 |
diff --git a/pages/mall/delivery/feedback.uvue b/pages/mall/delivery/feedback.uvue
new file mode 100644
index 00000000..e11134d7
--- /dev/null
+++ b/pages/mall/delivery/feedback.uvue
@@ -0,0 +1,451 @@
+
+
+
+
+
+
+
+
+
+ 问题类型
+
+ {{ feedbackTypes[selectedTypeIndex] }}
+
+
+
+
+
+ 标题
+
+
+
+
+
+ 详细内容
+
+
+
+
+
+ 上传截图(可选)
+
+ 🖼️
+ 点击上传截图
+ 支持 JPG/PNG,最多3张
+
+
+
+
+
+
+ ×
+
+
+
+
+
+
+ 关联订单号(可选)
+
+
+ {{ selectedOrderIndex === -1 ? '请选择订单' : orderOptions[selectedOrderIndex] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/mall/delivery/help-center.uvue b/pages/mall/delivery/help-center.uvue
new file mode 100644
index 00000000..7b7b63c2
--- /dev/null
+++ b/pages/mall/delivery/help-center.uvue
@@ -0,0 +1,524 @@
+
+
+
+
+
+
+
+
+ 🔍
+
+
+
+
+
+
+
+
+ {{ cat.name }}
+
+
+
+
+
+
+
+
+ 搜索结果:{{ searchResults.length }} 条
+ 清除
+
+
+
+
+
+
+
+ {{ item.content }}
+
+
+
+
+
+
+ ❓
+ 暂无匹配结果
+ 请尝试更换关键词,或查看以下热门问题
+
+ 热门问题:
+ 如何接单?
+ 配送超时怎么办?
+ 如何联系客户?
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/mall/delivery/profile.uvue b/pages/mall/delivery/profile.uvue
index 05e07c0b..7b9094c5 100644
--- a/pages/mall/delivery/profile.uvue
+++ b/pages/mall/delivery/profile.uvue
@@ -4,8 +4,8 @@
-
+
+
📍 {{ currentLocation }}
+
+ ↻
+
@@ -214,7 +218,7 @@ const driverInfo = ref({
})
const workStatus = ref(1) // 1 工作中 0 休息中
-const currentLocation = ref('朝阳区建国门附近')
+const currentLocation = ref('朝阳区建国门附近') // 默认位置
const taskCounts = ref({ total: 0, pending: 0, ongoing: 0, completed: 0 })
@@ -364,6 +368,41 @@ function toggleWorkStatus() {
})
}
+// --- 新增:重新定位逻辑 ---
+function showRelocateConfirm() {
+ uni.showModal({
+ title: '重新定位',
+ content: '确定要更新当前位置吗?',
+ confirmText: '立即定位',
+ success: (res) => {
+ if (res.confirm) {
+ relocate()
+ }
+ }
+ })
+}
+
+function relocate() {
+ uni.showLoading({
+ title: '获取位置中...',
+ mask: true
+ })
+
+ // 模拟定位耗时
+ setTimeout(() => {
+ uni.hideLoading()
+
+ // 模拟定位成功,更新位置(实际项目中应调用API获取真实位置)
+ currentLocation.value = '朝阳区建国门外大街附近'
+
+ uni.showToast({
+ title: '定位成功',
+ icon: 'success',
+ duration: 1500
+ })
+ }, 1200)
+}
+
function contactCustomer() {
uni.showActionSheet({
itemList: ['拨打电话', '发送短信'],
@@ -398,10 +437,10 @@ function goToRatings() {
uni.navigateTo({ url: '/pages/mall/delivery/ratings' })
}
function goToHelp() {
- uni.navigateTo({ url: '/pages/mall/common/help' })
+ uni.navigateTo({ url: '/pages/mall/delivery/help-center' })
}
function goToFeedback() {
- uni.navigateTo({ url: '/pages/mall/common/feedback' })
+ uni.navigateTo({ url: '/pages/mall/delivery/feedback' })
}
@@ -410,7 +449,7 @@ function goToFeedback() {
.profile-header {
position: relative;
}
-.back-box {
+.nav-left {
position: absolute;
left: 30rpx;
top: 50%;
@@ -423,15 +462,15 @@ function goToFeedback() {
align-items: center;
justify-content: center;
}
-.back-box:active {
+.nav-left:active {
background: rgba(0, 0, 0, .3);
}
-.back-icon {
+.nav-icon {
font-size: 40rpx;
color: #fff;
}
-/* ---------- 以下与原样式一致 ---------- */
+/* ---------- 以下与原样式一致,仅修改工作状态区域 ---------- */
.delivery-profile {
padding: 0 0 120rpx 0;
background-color: #f5f5f5;
@@ -541,14 +580,39 @@ function goToFeedback() {
.toggle-switch.active .toggle-handle {
left: 55rpx;
}
-.current-location {
+
+/* --- 修改后的定位信息区域:地址 + 图标 --- */
+.current-location-section {
+ display: flex;
+ align-items: center;
padding: 15rpx 20rpx;
- background: #e8f4fd;
+ background: #e8f4fd; /* 与原样式保持一致 */
border-radius: 15rpx;
}
.location-text {
+ font-size: 24rpx; /* 与截图字号一致 */
+ color: #74b9ff; /* 与截图颜色一致 */
+ flex: 1; /* 让文字占据剩余空间 */
+ margin-right: 16rpx; /* 与图标留空隙 */
+}
+.relocate-icon {
+ width: 40rpx;
+ height: 40rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ border-radius: 50%;
+ background: rgba(116, 185, 255, 0.15); /* 浅蓝底 */
+ color: #74b9ff; /* 主色文字 */
font-size: 24rpx;
- color: #74b9ff;
+ cursor: pointer;
+ transition: all 0.2s ease;
+}
+.relocate-icon:hover {
+ background: rgba(116, 185, 255, 0.3); /* 悬停效果 */
+}
+.relocate-icon:active {
+ background: rgba(116, 185, 255, 0.4); /* 点击效果 */
}
.task-tabs {
@@ -556,10 +620,10 @@ function goToFeedback() {
justify-content: space-between;
}
.task-tab {
+ flex: 1;
display: flex;
flex-direction: column;
align-items: center;
- flex: 1;
position: relative;
}
.tab-icon {
diff --git a/pages/mall/delivery/test.uvue b/pages/mall/delivery/test.uvue
new file mode 100644
index 00000000..ed67b4e9
--- /dev/null
+++ b/pages/mall/delivery/test.uvue
@@ -0,0 +1,418 @@
+
+
+
+
+
+ 当前配置:
+ URL: {{ config.url }}
+ Key: {{ config.keyMasked }}
+
+
+
+
+
+
+
+ 测试结果
+
+ {{ result.success ? '✅' : '❌' }}
+ {{ result.name }}
+ {{ result.message }}
+ {{ result.errorDetails }}
+
+
+
+
+ 单项测试
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file