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