diff --git a/src/components/fab/Fab.vue b/src/components/fab/Fab.vue deleted file mode 100644 index 7ed1f65..0000000 --- a/src/components/fab/Fab.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - - - diff --git a/src/login-sub/components/LoginMask.vue b/src/login-sub/components/LoginMask.vue index f7eff32..8e2b429 100644 --- a/src/login-sub/components/LoginMask.vue +++ b/src/login-sub/components/LoginMask.vue @@ -127,8 +127,14 @@ const getUserInfo = async (code: string) => { const infoData = resp.result as unknown as { userExtend: { provinceCode: string } zyBatches: any[] + batchDataUrl: string + batchName: string } userStore.setEstimatedAchievement(infoData.userExtend) + userStore.setZyBatches(infoData.zyBatches) + userStore.setBatchDataUrl(infoData.batchDataUrl) + userStore.setBatchName(infoData.batchName) + if (resp.code === 200) { // 根据用户信息中的城市设置对应城市的分数等信息 getVolunteerInitialization().then((res) => { diff --git a/src/pages-evaluation-sub/rank/index.vue b/src/pages-evaluation-sub/rank/index.vue index d8d7395..8dc9ed8 100644 --- a/src/pages-evaluation-sub/rank/index.vue +++ b/src/pages-evaluation-sub/rank/index.vue @@ -1,6 +1,5 @@ { - layout: 'page', style: { navigationStyle: 'custom', }, diff --git a/src/pages-sub/components/CustomPickerView.vue b/src/pages-sub/components/CustomPickerView.vue index 86dd6b4..5dcd260 100644 --- a/src/pages-sub/components/CustomPickerView.vue +++ b/src/pages-sub/components/CustomPickerView.vue @@ -86,9 +86,6 @@ const currentIndex = computed(() => { if (!props.modelValue || !props.list.length) return [0] let targetValue = props.modelValue - if (typeof props.list[0] === 'object' && props.valueKey) { - targetValue = props.modelValue[props.valueKey] - } const index = props.list.findIndex((item) => { if (typeof item === 'object' && props.valueKey) { diff --git a/src/pages-sub/components/Slider.vue b/src/pages-sub/components/Slider.vue new file mode 100644 index 0000000..28a86c8 --- /dev/null +++ b/src/pages-sub/components/Slider.vue @@ -0,0 +1,422 @@ + + + + + diff --git a/src/pages-sub/components/check-group/CheckGroup.vue b/src/pages-sub/components/check-group/CheckGroup.vue index cd8d9fd..934ec0b 100644 --- a/src/pages-sub/components/check-group/CheckGroup.vue +++ b/src/pages-sub/components/check-group/CheckGroup.vue @@ -109,7 +109,7 @@ const checkboxStyle = computed(() => { display: flex; flex-wrap: wrap; gap: 16rpx; - padding: 32rpx 16rpx 16rpx; + // padding: 32rpx 16rpx 16rpx; } :deep(.checkbox-active) { diff --git a/src/pages-sub/customerService/index/index.vue b/src/pages-sub/customerService/index/index.vue index c4f632c..0c4b35a 100644 --- a/src/pages-sub/customerService/index/index.vue +++ b/src/pages-sub/customerService/index/index.vue @@ -1,6 +1,5 @@ { - layout: 'page', style: { navigationStyle: 'custom', }, diff --git a/src/pages-sub/home/aiAutoFill/index.vue b/src/pages-sub/home/aiAutoFill/index.vue index e4be082..0661cf7 100644 --- a/src/pages-sub/home/aiAutoFill/index.vue +++ b/src/pages-sub/home/aiAutoFill/index.vue @@ -1,6 +1,5 @@ { - layout: 'page', style: { navigationStyle: 'custom', }, diff --git a/src/pages-sub/home/autoFill/index.vue b/src/pages-sub/home/autoFill/index.vue index 2db0398..9343874 100644 --- a/src/pages-sub/home/autoFill/index.vue +++ b/src/pages-sub/home/autoFill/index.vue @@ -1,6 +1,5 @@ { - layout: 'page', style: { navigationStyle: 'custom', }, @@ -34,7 +33,14 @@ src="@/pages-sub/static/images/autoFill/auto-fill.jpg" > - + + + @@ -42,6 +48,7 @@ import FilterMenu from '@/pages-sub/home/components/FilterMenu.vue' import Navbar from '@/pages-sub/components/navbar/Navbar.vue' import Badge from '@/pages-sub/components/badge/Badge.vue' +import ActionSheet from '@/pages-sub/components/ActionSheet.vue' import { ref } from 'vue' const navigatorBack = () => { @@ -50,6 +57,10 @@ const navigatorBack = () => { const show = ref(false) const badgeValue = ref(12) + +const close = () => { + show.value = false +} diff --git a/src/pages.json b/src/pages.json index e8c2134..98739bd 100644 --- a/src/pages.json +++ b/src/pages.json @@ -73,7 +73,6 @@ { "path": "pages/expert/index/index", "type": "page", - "layout": "page", "style": { "navigationBarTitleText": "测评师" }, @@ -115,7 +114,6 @@ { "path": "customerService/index/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } @@ -123,7 +121,6 @@ { "path": "home/aiAutoFill/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } @@ -131,7 +128,6 @@ { "path": "home/autoFill/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" }, @@ -140,7 +136,6 @@ { "path": "home/career/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" }, @@ -149,7 +144,6 @@ { "path": "home/career/info", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } @@ -157,7 +151,6 @@ { "path": "home/city/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } @@ -165,7 +158,6 @@ { "path": "home/college/enrollmentIntroDetail", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } @@ -181,7 +173,6 @@ { "path": "home/college/info", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } @@ -189,7 +180,6 @@ { "path": "home/distinguish/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } @@ -201,7 +191,6 @@ { "path": "home/expand/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } @@ -209,7 +198,6 @@ { "path": "home/inputScore/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" }, @@ -218,7 +206,6 @@ { "path": "home/line/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } @@ -226,7 +213,6 @@ { "path": "home/major/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" }, @@ -235,7 +221,6 @@ { "path": "home/major/info", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } @@ -243,7 +228,6 @@ { "path": "home/news/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } @@ -251,7 +235,6 @@ { "path": "home/news/newsList", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } @@ -259,10 +242,16 @@ { "path": "home/schoolRank/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } + }, + { + "path": "home/wishesList/index", + "type": "page", + "style": { + "navigationBarTitleText": "我的志愿表" + } } ] }, @@ -289,7 +278,6 @@ { "path": "rank/index", "type": "page", - "layout": "page", "style": { "navigationStyle": "custom" } diff --git a/src/pages/expert/index/index.vue b/src/pages/expert/index/index.vue index fae7480..393accc 100644 --- a/src/pages/expert/index/index.vue +++ b/src/pages/expert/index/index.vue @@ -1,6 +1,5 @@ { - layout: 'page', style: { navigationBarTitleText: '测评师', }, diff --git a/src/service/index/api.ts b/src/service/index/api.ts index 2d9dfed..2b8985c 100644 --- a/src/service/index/api.ts +++ b/src/service/index/api.ts @@ -201,3 +201,38 @@ export const getUserCity = (params: { lat: number; lng: number }) => { ...params, }) } + +export const savePerfectInfo = (params: { + provinceCode?: string + provinceName?: string + schoolName?: string + className?: string + subjectGroup?: string + score?: number + sp?: number + year?: number +}) => { + return http.post('/api/weChatUserEx/perfectInfo', params) +} + +export const getBatchData = (url: string) => { + return http.get(url, { haPrefix: true }) +} + +export interface filterParams { + batchName?: null | string + feature?: string[] | null + keyword?: null | string + locationCode?: null | string + majors?: string[] | null + nature?: string[] | null + ownership?: string[] | null + pageIndex?: number + pageSize?: number + province?: string[] | null + subjects?: string[] | null + universityName?: null | string +} +export const getFilterData = (params: filterParams) => { + return http.get('/api/PlanPro/planList', params) +} diff --git a/src/store/user.ts b/src/store/user.ts index 2b4cd10..2336c21 100644 --- a/src/store/user.ts +++ b/src/store/user.ts @@ -49,6 +49,13 @@ const initState = { }, token: '', openid: '', + zyBatches: { + batchName: '', + count: 0, + itemCount: 0, + }, + batchDataUrl: '', + batchName: '', } export const useUserStore = defineStore( @@ -99,6 +106,17 @@ export const useUserStore = defineStore( }) } + const setZyBatches = (val: any) => { + userInfo.value.zyBatches = val + } + + const setBatchDataUrl = (val: string) => { + userInfo.value.batchDataUrl = val + } + const setBatchName = (val: string) => { + userInfo.value.batchName = val + } + // 清除用户信息 const clearUserInfo = () => { userInfo.value = { ...initState } @@ -122,6 +140,9 @@ export const useUserStore = defineStore( setUserOpenId, setUserNickName, setUserAvatar, + setZyBatches, + setBatchDataUrl, + setBatchName, } }, { diff --git a/src/types/app-type.d.ts b/src/types/app-type.d.ts index ccb0f7c..4733799 100644 --- a/src/types/app-type.d.ts +++ b/src/types/app-type.d.ts @@ -55,6 +55,13 @@ export type ExtraUserInfo = { vipCode: string | null wxId: number } + zyBatches: { + batchName: string + count: number + itemCount: number + } + batchDataUrl: string + batchName: string } & IUserInfo export type News = { diff --git a/src/types/uni-pages.d.ts b/src/types/uni-pages.d.ts index 92318bd..55ca8e8 100644 --- a/src/types/uni-pages.d.ts +++ b/src/types/uni-pages.d.ts @@ -28,6 +28,7 @@ interface NavigateToOptions { "/pages-sub/home/news/index" | "/pages-sub/home/news/newsList" | "/pages-sub/home/schoolRank/index" | + "/pages-sub/home/wishesList/index" | "/login-sub/index" | "/pages-evaluation-sub/index" | "/pages-evaluation-sub/rank/index";