feat: 暂时移除部分内容

master
xjs 2025-03-28 14:16:47 +08:00
parent b4f89d605f
commit cfcc351c85
4 changed files with 33 additions and 33 deletions

View File

@ -149,7 +149,7 @@ axios.interceptors.response.use((response) => {
} }
return response return response
},error =>{ },error =>{
let xhrErrL = { type: "XHRERR", data: error.response }; // let xhrErrL = { type: "XHRERR", data: error.response };
if (error.response) { if (error.response) {
const { status, data } = error.response; const { status, data } = error.response;
if (status === 422) { if (status === 422) {

View File

@ -43,7 +43,7 @@
<div class="h-[2rpx] bg-[#EDEDED] w-full"></div> <div class="h-[2rpx] bg-[#EDEDED] w-full"></div>
<div class="overflow-auto transition-all duration-300 w-full" :style="{ maxHeight: isCollapsed ? '100vh' : '0' }" v-if="isCollapsed"> <div class="overflow-auto transition-all duration-300 w-full" :style="{ maxHeight: isCollapsed ? '100vh' : '0' }" v-if="isCollapsed">
<virtual-list v-model="college.vItems" data-key="sort" lock-axis="x"> <virtual-list v-model="college.vItems" data-key="sort" lock-axis="x">
<template v-slot:item="{ record, index, dataKey }"> <template v-slot:item="{ record, index }">
<MajorItem :major="record" :major-index="index" :score="score" :year="2024" /> <MajorItem :major="record" :major-index="index" :score="score" :year="2024" />
</template> </template>
</virtual-list> </virtual-list>
@ -59,7 +59,7 @@ import VirtualList from "vue-virtual-draglist";
import MajorItem from './MajorItem.vue' import MajorItem from './MajorItem.vue'
import DataTable from './DataTable.vue'; import DataTable from './DataTable.vue';
const props = defineProps<{ defineProps<{
college: any college: any
score: number score: number
collegeIndex: number collegeIndex: number
@ -72,28 +72,28 @@ const toggleCollapse = () => {
isCollapsed.value = !isCollapsed.value isCollapsed.value = !isCollapsed.value
} }
const handleMove = () => { // const handleMove = () => {
emit('move') // emit('move')
} // }
const handleDelete = () => { // const handleDelete = () => {
emit('delete') // emit('delete')
} // }
const majorDrop = ref() // const majorDrop = ref()
const handleMajorMove = (index:number) => { // const handleMajorMove = (index:number) => {
majorDrop.value.handleLongpress(index) // majorDrop.value.handleLongpress(index)
} // }
const getMajorList = (list:any[]) => { // const getMajorList = (list:any[]) => {
} // }
const handleMajorDelete = (index:number) => { // const handleMajorDelete = (index:number) => {
majorDrop.value.initList(props.college.vItems, true).then(() => { // majorDrop.value.initList(props.college.vItems, true).then(() => {
emit('deleteMajor', index) // emit('deleteMajor', index)
}) // })
} // }
</script> </script>

View File

@ -45,8 +45,8 @@ const props = defineProps({
} }
}) })
const userWhishList = ref([]) const userWhishList = ref<any[]>([])
const tModels = ref([]) const tModels = ref<any[]>([])
watch(() => props.wishList, (newVal) => { watch(() => props.wishList, (newVal) => {
userWhishList.value = newVal userWhishList.value = newVal

View File

@ -3,7 +3,7 @@
<HeaderTip :score="score" :batch-name="batchName" :subject-group="subjectGroup" :wishList="wishList" /> <HeaderTip :score="score" :batch-name="batchName" :subject-group="subjectGroup" :wishList="wishList" />
<div class="flex-1 h-0 overflow-y-auto"> <div class="flex-1 h-0 overflow-y-auto">
<virtual-list v-model="wishList" data-key="sort" lock-axis="x"> <virtual-list v-model="wishList" data-key="sort" lock-axis="x">
<template v-slot:item="{ record, index, dataKey }"> <template v-slot:item="{ record, index }">
<CollegeItem :college="record" :college-index="index" :score="score" /> <CollegeItem :college="record" :college-index="index" :score="score" />
</template> </template>
</virtual-list> </virtual-list>
@ -26,16 +26,16 @@
const subjectGroup = ref(""); const subjectGroup = ref("");
const locationCode = ref(""); const locationCode = ref("");
const wishList = ref([]); const wishList = ref([]);
const handleClick = () => { // const handleClick = () => {
alert(localStorage.getItem("userInfo")); // alert(localStorage.getItem("userInfo"));
uni.postMessage({ // uni.postMessage({
data: { // data: {
action: "message", // action: "message",
message: location.search, // message: location.search,
}, // },
}); // });
getWishList(); // getWishList();
}; // };
onBeforeMount(() => { onBeforeMount(() => {
let _mapParams: { [key: string]: any } = {}; let _mapParams: { [key: string]: any } = {};