update style
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user