地址路径修改

This commit is contained in:
2025-10-26 13:15:04 +08:00
parent be2323074b
commit 271b88232c
77 changed files with 13254 additions and 228 deletions

59
dist/pages/index/modules/adminModule.js vendored Normal file
View File

@@ -0,0 +1,59 @@
"use strict";
// 管理员模块 - 专门处理管理员相关功能
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdminModule = void 0;
class AdminModule {
constructor(_pageContext, dataModule) {
this.dataModule = dataModule;
}
/**
* 处理管理员标记点点击
*/
onAdminMarkerClick(admin, position) {
console.log('管理员被点击:', admin);
// 显示管理员详情面板
this.showAdminPanel(admin, position);
}
/**
* 显示管理员详情面板
*/
showAdminPanel(admin, _position) {
console.log('显示管理员详情面板:', admin);
// 设置当前管理员
this.dataModule.setCurrentDeliveryPerson(admin);
// 显示面板
this.dataModule.toggleDeliveryPersonModal(true, 'bottom');
}
/**
* 隐藏管理员详情面板
*/
hideAdminPanel() {
this.dataModule.toggleDeliveryPersonModal(false);
this.dataModule.setCurrentDeliveryPerson(null);
}
/**
* 展开管理员详情面板
*/
expandAdminPanel() {
this.dataModule.toggleDeliveryPersonModal(true, 'full');
}
/**
* 收起管理员详情面板
*/
collapseAdminPanel() {
this.dataModule.toggleDeliveryPersonModal(true, 'bottom');
}
/**
* 获取管理员信息摘要
*/
getAdminSummary(admin) {
return `${admin.name || '管理员'} - ${admin.role || 'ADMIN'}`;
}
/**
* 清理资源
*/
cleanup() {
console.log('清理管理员模块资源');
}
}
exports.AdminModule = AdminModule;