|
@@ -11,7 +11,7 @@ const props = defineProps({
|
|
|
},
|
|
|
});
|
|
|
let child = $ref(childInfo);
|
|
|
-const children = JSON.parse(sessionStorage.getItem('children'))
|
|
|
+const children = JSON.parse(localStorage.getItem('children'))
|
|
|
let childrenCols = $ref([])
|
|
|
const router = useRouter();
|
|
|
function handleNavLeftClick() {
|
|
@@ -66,7 +66,9 @@ function handleSubmitbarClick() {
|
|
|
console.log("handleSubmitbarClick", orderStatus, child);
|
|
|
// const grades = (detailInfo.kk_grade_id).split(',').filter(item => item !== '')
|
|
|
const grades = (detailInfo?.kk_grade_id)?.split(',')?.filter(item => item !== '') ?? []
|
|
|
- if (grades.indexOf(child.cm_info[0].grade) === -1) {
|
|
|
+ console.log('grades : ', grades)
|
|
|
+ console.log('child.cm_info[0].grade : ', child.cm_info[0].grade)
|
|
|
+ if (child.cm_info[0].grade && grades.indexOf(child.cm_info[0].grade) === -1) {
|
|
|
showFailToast('该学生不在可报名年级范围内')
|
|
|
return
|
|
|
}
|
|
@@ -97,7 +99,7 @@ function handleSubmitbarClick() {
|
|
|
location.replace(
|
|
|
`http://wx.bozedu.net/get-weixin-code.html?appid=${window.GLOBAL_CONFIG.appid}&redirect_uri=${_href}&state=1`
|
|
|
);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
orderStatus = 2;
|
|
|
}
|
|
|
}
|