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

View File

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