1、修复选课对应的课程类型图片显示问题

2、取消订单查询失败的跳转
This commit is contained in:
ywyonui 2025-08-05 11:05:33 +08:00
parent 88e398655d
commit 0cdce6446b
2 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@
<view class="course-info">
<image
class="course-image"
:src="courseDetail.xkkcImg"
:src="courseDetail.lxtp"
mode="aspectFill"
></image>
@ -128,7 +128,7 @@ interface CourseData {
kcjsms?: string;
jxll?: string;
remark?: string;
xkkcImg?: string;
lxtp?: string;
[key: string]: any; //
}
@ -161,7 +161,7 @@ const courseDetail = computed(() => {
location: data.kcdd || "暂无地点信息",
price: data.kcje || 0,
studyTime: data.studyTime || "暂无上课时间",
xkkcImg: imagUrl(data.xkkcImg), // 使imagUrl
lxtp: imagUrl(data.lxtp || ''), // 使imagUrl
};
});

View File

@ -141,12 +141,12 @@ onLoad(async (options: any) => {
}
} else {
uni.showToast({
title: "订单查询失败",
title: "订单状态查询失败",
icon: "error",
});
setTimeout(() => {
goBack();
}, 2000);
// setTimeout(() => {
// goBack();
// }, 2000);
}
} catch (error) {
console.log("订单查询失败", error);