地图订单修改
This commit is contained in:
@@ -10,6 +10,7 @@ import { MainPageModule } from './modules/mainPageModule';
|
||||
|
||||
// 导入类型定义
|
||||
import { IndexPageComponent } from '../../types';
|
||||
import { API_BASE_URL } from '../../services/apiService';
|
||||
|
||||
// 主页面组件
|
||||
Component<IndexPageComponent['data'], any, any, any, false>({
|
||||
@@ -94,6 +95,23 @@ Component<IndexPageComponent['data'], any, any, any, false>({
|
||||
return `${API_BASE_URL}${avatarPath}`;
|
||||
},
|
||||
|
||||
// 格式化时间戳(用于wxml显示)
|
||||
formatTimestamp(timestamp: number): string {
|
||||
if (!timestamp) {
|
||||
return '未知';
|
||||
}
|
||||
|
||||
const date = new Date(timestamp);
|
||||
return date.toLocaleString('zh-CN', {
|
||||
year: 'numeric',
|
||||
month: '2-digit',
|
||||
day: '2-digit',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
second: '2-digit'
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
// 处理货运人员底部弹窗关闭
|
||||
onDeliveryPersonModalClose() {
|
||||
|
||||
Reference in New Issue
Block a user