update style

This commit is contained in:
Timi
2025-12-17 16:16:10 +08:00
parent 423775c255
commit 369cfe2bf2
40 changed files with 375 additions and 507 deletions

View File

@ -6,9 +6,9 @@ import { TravelLocationApi } from "../../../api/TravelLocationApi";
import { Travel, TravelStatusLabel, TravelStatusIcon, TransportationTypeLabel, TravelLocation, TravelLocationTypeLabel, TravelLocationTypeIcon } from "../../../types/Travel";
interface TravelDetailData {
/** 行详情 */
/** 行详情 */
travel: Travel | null;
/** 行 ID */
/** 行 ID */
travelId: string;
/** 是否正在加载 */
isLoading: boolean;
@ -71,7 +71,7 @@ Page({
}
},
/** 获取行详情 */
/** 获取行详情 */
async fetchDetail(id: string) {
this.setData({ isLoading: true });
@ -88,7 +88,7 @@ Page({
// 获取地点列表
this.fetchLocations(id);
} catch (error) {
console.error("获取行详情失败:", error);
console.error("获取行详情失败:", error);
wx.showToast({
title: "加载失败",
icon: "error"
@ -122,7 +122,7 @@ Page({
}
},
/** 编辑行 */
/** 编辑行 */
toEdit() {
const { travel } = this.data;
if (travel && travel.id) {
@ -163,7 +163,7 @@ Page({
}
},
/** 删除行 */
/** 删除行 */
deleteTravel() {
this.setData({
deleteDialogVisible: true,