diff --git a/src/pages-sub/home/college/components/EnrollmentPlan.vue b/src/pages-sub/home/college/components/EnrollmentPlan.vue index 56f2e38..f43c400 100644 --- a/src/pages-sub/home/college/components/EnrollmentPlan.vue +++ b/src/pages-sub/home/college/components/EnrollmentPlan.vue @@ -25,18 +25,20 @@ - + + - - + + + - + diff --git a/src/pages-sub/home/wishesList/index.vue b/src/pages-sub/home/wishesList/index.vue index 59e76de..b3d8208 100644 --- a/src/pages-sub/home/wishesList/index.vue +++ b/src/pages-sub/home/wishesList/index.vue @@ -174,6 +174,8 @@ import FilterMajorList from './components/FilterMajorList.vue' const userStore = useUserStore() const navigatorBack = () => { + userStore.clearWishListId() + userStore.clearWishList() uni.navigateBack() } @@ -332,16 +334,32 @@ watch( { immediate: true }, ) +const isEdit = ref(false) + const handlePreview = () => { if (majorCount.value === 0) { return } - uni.navigateTo({ url: '/pages-sub/home/wishesList/wishesList?editType=add&typeName=智能填报' }) + if (isEdit.value) { + uni.navigateTo({ + url: `/pages-sub/home/wishesList/wishesList?editType=edit&typeName=智能填报&id=${userStore.userInfo.wishListId}&change=true`, + }) + } else { + uni.navigateTo({ + url: `/pages-sub/home/wishesList/wishesList?editType=add&typeName=智能填报`, + }) + } } const resetMajorList = () => { filterMajorRef.value.handleClear() } + +onShow(() => { + if (userStore.userInfo.wishListId) { + isEdit.value = true + } +})