feat: 暂时移除部分内容
parent
b4f89d605f
commit
cfcc351c85
|
|
@ -149,7 +149,7 @@ axios.interceptors.response.use((response) => {
|
|||
}
|
||||
return response
|
||||
},error =>{
|
||||
let xhrErrL = { type: "XHRERR", data: error.response };
|
||||
// let xhrErrL = { type: "XHRERR", data: error.response };
|
||||
if (error.response) {
|
||||
const { status, data } = error.response;
|
||||
if (status === 422) {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
<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">
|
||||
<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" />
|
||||
</template>
|
||||
</virtual-list>
|
||||
|
|
@ -59,7 +59,7 @@ import VirtualList from "vue-virtual-draglist";
|
|||
import MajorItem from './MajorItem.vue'
|
||||
import DataTable from './DataTable.vue';
|
||||
|
||||
const props = defineProps<{
|
||||
defineProps<{
|
||||
college: any
|
||||
score: number
|
||||
collegeIndex: number
|
||||
|
|
@ -72,28 +72,28 @@ const toggleCollapse = () => {
|
|||
isCollapsed.value = !isCollapsed.value
|
||||
}
|
||||
|
||||
const handleMove = () => {
|
||||
emit('move')
|
||||
}
|
||||
const handleDelete = () => {
|
||||
emit('delete')
|
||||
}
|
||||
// const handleMove = () => {
|
||||
// emit('move')
|
||||
// }
|
||||
// const handleDelete = () => {
|
||||
// emit('delete')
|
||||
// }
|
||||
|
||||
const majorDrop = ref()
|
||||
// const majorDrop = ref()
|
||||
|
||||
const handleMajorMove = (index:number) => {
|
||||
majorDrop.value.handleLongpress(index)
|
||||
}
|
||||
// const handleMajorMove = (index:number) => {
|
||||
// majorDrop.value.handleLongpress(index)
|
||||
// }
|
||||
|
||||
const getMajorList = (list:any[]) => {
|
||||
// const getMajorList = (list:any[]) => {
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
const handleMajorDelete = (index:number) => {
|
||||
majorDrop.value.initList(props.college.vItems, true).then(() => {
|
||||
emit('deleteMajor', index)
|
||||
})
|
||||
}
|
||||
// const handleMajorDelete = (index:number) => {
|
||||
// majorDrop.value.initList(props.college.vItems, true).then(() => {
|
||||
// emit('deleteMajor', index)
|
||||
// })
|
||||
// }
|
||||
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@ const props = defineProps({
|
|||
}
|
||||
})
|
||||
|
||||
const userWhishList = ref([])
|
||||
const tModels = ref([])
|
||||
const userWhishList = ref<any[]>([])
|
||||
const tModels = ref<any[]>([])
|
||||
|
||||
watch(() => props.wishList, (newVal) => {
|
||||
userWhishList.value = newVal
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<HeaderTip :score="score" :batch-name="batchName" :subject-group="subjectGroup" :wishList="wishList" />
|
||||
<div class="flex-1 h-0 overflow-y-auto">
|
||||
<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" />
|
||||
</template>
|
||||
</virtual-list>
|
||||
|
|
@ -26,16 +26,16 @@
|
|||
const subjectGroup = ref("");
|
||||
const locationCode = ref("");
|
||||
const wishList = ref([]);
|
||||
const handleClick = () => {
|
||||
alert(localStorage.getItem("userInfo"));
|
||||
uni.postMessage({
|
||||
data: {
|
||||
action: "message",
|
||||
message: location.search,
|
||||
},
|
||||
});
|
||||
getWishList();
|
||||
};
|
||||
// const handleClick = () => {
|
||||
// alert(localStorage.getItem("userInfo"));
|
||||
// uni.postMessage({
|
||||
// data: {
|
||||
// action: "message",
|
||||
// message: location.search,
|
||||
// },
|
||||
// });
|
||||
// getWishList();
|
||||
// };
|
||||
|
||||
onBeforeMount(() => {
|
||||
let _mapParams: { [key: string]: any } = {};
|
||||
|
|
|
|||
Loading…
Reference in New Issue