1、修复选课对应的课程类型图片显示问题
2、取消订单查询失败的跳转
This commit is contained in:
parent
88e398655d
commit
0cdce6446b
@ -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处理图片路径
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user