diff --git a/src/hooks/useUserInfo.ts b/src/hooks/useUserInfo.ts
index 18ae531..2d0b449 100644
--- a/src/hooks/useUserInfo.ts
+++ b/src/hooks/useUserInfo.ts
@@ -25,12 +25,3 @@ export const useWxInfo = ({ code, openId }) => {
}
})
}
-
-export const universityBaseInfo = ref()
-export const useUniversityInfo = (provinceCode: number) => {
- getUniversityInfo({ Id: provinceCode }).then((res) => {
- if (res.code === 200) {
- universityBaseInfo.value = res.result
- }
- })
-}
diff --git a/src/login-sub/components/LoginMask.vue b/src/login-sub/components/LoginMask.vue
index e7734cc..67a1693 100644
--- a/src/login-sub/components/LoginMask.vue
+++ b/src/login-sub/components/LoginMask.vue
@@ -109,7 +109,10 @@ const getUserInfo = async (code: string) => {
// 根据微信的信息获取用户信息
getWxUserInfo().then((resp) => {
- const infoData = resp.result as unknown as { userExtend: { provinceCode: string } }
+ const infoData = resp.result as unknown as {
+ userExtend: { provinceCode: string }
+ zyBatches: any[]
+ }
userStore.setEstimatedAchievement(infoData.userExtend)
if (resp.code === 200) {
// 根据用户信息中的城市设置对应城市的分数等信息
diff --git a/src/pages-sub/home/college/components/Colleges.vue b/src/pages-sub/home/college/components/Colleges.vue
index 30f6181..a89623e 100644
--- a/src/pages-sub/home/college/components/Colleges.vue
+++ b/src/pages-sub/home/college/components/Colleges.vue
@@ -1,44 +1,65 @@
- 特色专业·23
+ 院系设置
-
-
-
-
+
查看全部
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/src/pages-sub/home/college/components/EnrollmentIntro.vue b/src/pages-sub/home/college/components/EnrollmentIntro.vue
new file mode 100644
index 0000000..736e0ad
--- /dev/null
+++ b/src/pages-sub/home/college/components/EnrollmentIntro.vue
@@ -0,0 +1,53 @@
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
+
diff --git a/src/pages-sub/home/college/components/EnrollmentMark.vue b/src/pages-sub/home/college/components/EnrollmentMark.vue
new file mode 100644
index 0000000..33e2146
--- /dev/null
+++ b/src/pages-sub/home/college/components/EnrollmentMark.vue
@@ -0,0 +1,157 @@
+
+
+
+
+ {{ year }}
+
+
+
+ {{ batche }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
+
+
diff --git a/src/pages-sub/home/college/components/EnrollmentPlan.vue b/src/pages-sub/home/college/components/EnrollmentPlan.vue
new file mode 100644
index 0000000..2db39fe
--- /dev/null
+++ b/src/pages-sub/home/college/components/EnrollmentPlan.vue
@@ -0,0 +1,159 @@
+
+
+
+
+ 招生计划({{ provinceName }})
+
+
+ {{ year }}
+
+
+
+ {{ batche }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
+
+
diff --git a/src/pages-sub/home/college/components/FirstClass.vue b/src/pages-sub/home/college/components/FirstClass.vue
index 847ddb7..6c316f1 100644
--- a/src/pages-sub/home/college/components/FirstClass.vue
+++ b/src/pages-sub/home/college/components/FirstClass.vue
@@ -34,6 +34,23 @@
+
+
+ 特色专业·{{ featureSubjectList.length }}
+
+
+ {{ featureSubjectList.join(',') }}
+
+
+ 查看全部
+
+
+
+
{{ innerContent }}
@@ -47,6 +64,7 @@ import MessageBox from './MessageBox.vue'
const subjectIntroduceList = ref([])
const assessmentSubjectList = ref([])
+const featureSubjectList = ref([])
const props = defineProps({
id: {
type: Number,
@@ -59,9 +77,14 @@ watch(
async (newVal) => {
getSubjectIntroduceList(newVal).then((resp) => {
if (resp.code === 200) {
- const res = resp.result as { double_subject_list: any[]; assessment_subject_list: any[] }
+ const res = resp.result as {
+ double_subject_list: any[]
+ assessment_subject_list: any[]
+ feature_subject_list: any[]
+ }
subjectIntroduceList.value = res.double_subject_list
assessmentSubjectList.value = res.assessment_subject_list
+ featureSubjectList.value = res.feature_subject_list
}
})
},
@@ -76,9 +99,12 @@ const handleFullFun = (type: number) => {
if (type === 1) {
title.value = `双一流学科·${subjectIntroduceList.value.length}`
innerContent.value = subjectIntroduceList.value.join(',')
- } else {
+ } else if (type === 2) {
title.value = `学科评估·${assessmentSubjectList.value.length}`
innerContent.value = assessmentSubjectList.value.join(',')
+ } else if (type === 3) {
+ title.value = `特色专业·${featureSubjectList.value.length}`
+ innerContent.value = featureSubjectList.value.join(',')
}
}
diff --git a/src/pages-sub/home/college/components/Major.vue b/src/pages-sub/home/college/components/Major.vue
deleted file mode 100644
index acc39b5..0000000
--- a/src/pages-sub/home/college/components/Major.vue
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- 特色专业·23
-
- 法学,政治学,马克思主义理论,数学,法学,政治学,马克思主义理论,数学,法学,政治学,马克思主义理论,数学,法学,政治学,马克思主义理论,数学,材料科学与工程学,政治学,马克思主义理论,数学,法学,政治学,马克思主义理
-
-
- 查看全部
-
-
-
-
-
-
diff --git a/src/pages-sub/home/college/components/Situation.vue b/src/pages-sub/home/college/components/Situation.vue
new file mode 100644
index 0000000..33e2146
--- /dev/null
+++ b/src/pages-sub/home/college/components/Situation.vue
@@ -0,0 +1,157 @@
+
+
+
+
+ {{ year }}
+
+
+
+ {{ batche }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
+
+
diff --git a/src/pages-sub/home/college/enrollmentIntroDetail.vue b/src/pages-sub/home/college/enrollmentIntroDetail.vue
new file mode 100644
index 0000000..7f17b7c
--- /dev/null
+++ b/src/pages-sub/home/college/enrollmentIntroDetail.vue
@@ -0,0 +1,59 @@
+
+{
+ layout: 'page',
+ style: {
+ navigationStyle: 'custom',
+ },
+}
+
+
+
+
+
+
+ {{ detail?.title }}
+
+
+
+
+
+
+
+
+
diff --git a/src/pages-sub/home/college/index.vue b/src/pages-sub/home/college/index.vue
index f7e94df..6ff14b0 100644
--- a/src/pages-sub/home/college/index.vue
+++ b/src/pages-sub/home/college/index.vue
@@ -4,6 +4,10 @@
navigationStyle: 'custom',
},
needLogin: true,
+ usingComponents: {
+ 'wd-checkbox-group': 'wot-design-uni/components/wd-checkbox-group/wd-checkbox-group.vue',
+ 'wd-checkbox': 'wot-design-uni/components/wd-checkbox/wd-checkbox.vue',
+ },
}
diff --git a/src/pages-sub/home/college/info.vue b/src/pages-sub/home/college/info.vue
index 408dac1..0520cc0 100644
--- a/src/pages-sub/home/college/info.vue
+++ b/src/pages-sub/home/college/info.vue
@@ -8,7 +8,7 @@
-
+
-
+
- 收藏
+ 收藏
@@ -68,47 +68,65 @@
:slidable-num="4"
:offset-top="90"
>
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages-sub/home/inputScore/index.vue b/src/pages-sub/home/inputScore/index.vue
index 15bfcae..bdd0352 100644
--- a/src/pages-sub/home/inputScore/index.vue
+++ b/src/pages-sub/home/inputScore/index.vue
@@ -3,6 +3,10 @@
layout: 'page',
style: {
navigationStyle: 'custom',
+ usingComponents: {
+ 'wd-checkbox-group': 'wot-design-uni/components/wd-checkbox-group/wd-checkbox-group.vue',
+ 'wd-checkbox': 'wot-design-uni/components/wd-checkbox/wd-checkbox.vue',
+ },
},
}
diff --git a/src/pages.json b/src/pages.json
index 4e1ea39..dd4ba8f 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -144,13 +144,25 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "home/college/enrollmentIntroDetail",
+ "type": "page",
+ "layout": "page",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "home/college/index",
"type": "page",
"style": {
"navigationStyle": "custom"
},
- "needLogin": true
+ "needLogin": true,
+ "usingComponents": {
+ "wd-checkbox-group": "wot-design-uni/components/wd-checkbox-group/wd-checkbox-group.vue",
+ "wd-checkbox": "wot-design-uni/components/wd-checkbox/wd-checkbox.vue"
+ }
},
{
"path": "home/college/info",
@@ -177,7 +189,11 @@
"type": "page",
"layout": "page",
"style": {
- "navigationStyle": "custom"
+ "navigationStyle": "custom",
+ "usingComponents": {
+ "wd-checkbox-group": "wot-design-uni/components/wd-checkbox-group/wd-checkbox-group.vue",
+ "wd-checkbox": "wot-design-uni/components/wd-checkbox/wd-checkbox.vue"
+ }
}
},
{
diff --git a/src/service/app/displayEnumLabel.ts b/src/service/app/displayEnumLabel.ts
deleted file mode 100644
index 4974815..0000000
--- a/src/service/app/displayEnumLabel.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-/* eslint-disable */
-// @ts-ignore
-import * as API from './types';
-
-export function displayStatusEnum(field: API.IStatusEnum) {
- return { available: 'available', pending: 'pending', sold: 'sold' }[field];
-}
-
-export function displayStatusEnum2(field: API.IStatusEnum2) {
- return { placed: 'placed', approved: 'approved', delivered: 'delivered' }[
- field
- ];
-}
diff --git a/src/service/app/index.ts b/src/service/app/index.ts
index 45b6e53..84918eb 100644
--- a/src/service/app/index.ts
+++ b/src/service/app/index.ts
@@ -1,11 +1,4 @@
/* eslint-disable */
// @ts-ignore
export * from './types';
-export * from './displayEnumLabel';
-export * from './pet';
-export * from './pet.vuequery';
-export * from './store';
-export * from './store.vuequery';
-export * from './user';
-export * from './user.vuequery';
diff --git a/src/service/app/pet.ts b/src/service/app/pet.ts
deleted file mode 100644
index 70b95ef..0000000
--- a/src/service/app/pet.ts
+++ /dev/null
@@ -1,193 +0,0 @@
-/* eslint-disable */
-// @ts-ignore
-import request from '@/utils/request';
-import { CustomRequestOptions } from '@/interceptors/request';
-
-import * as API from './types';
-
-/** Update an existing pet PUT /pet */
-export async function updatePet({
- body,
- options,
-}: {
- body: API.Pet;
- options?: CustomRequestOptions;
-}) {
- return request('/pet', {
- method: 'PUT',
- headers: {
- 'Content-Type': 'application/json',
- },
- data: body,
- ...(options || {}),
- });
-}
-
-/** Add a new pet to the store POST /pet */
-export async function addPet({
- body,
- options,
-}: {
- body: API.Pet;
- options?: CustomRequestOptions;
-}) {
- return request('/pet', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json',
- },
- data: body,
- ...(options || {}),
- });
-}
-
-/** Find pet by ID Returns a single pet GET /pet/${param0} */
-export async function getPetById({
- params,
- options,
-}: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.getPetByIdParams;
- options?: CustomRequestOptions;
-}) {
- const { petId: param0, ...queryParams } = params;
-
- return request(`/pet/${param0}`, {
- method: 'GET',
- params: { ...queryParams },
- ...(options || {}),
- });
-}
-
-/** Updates a pet in the store with form data POST /pet/${param0} */
-export async function updatePetWithForm({
- params,
- body,
- options,
-}: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.updatePetWithFormParams;
- body: {
- /** Updated name of the pet */
- name?: string;
- /** Updated status of the pet */
- status?: string;
- };
- options?: CustomRequestOptions;
-}) {
- const { petId: param0, ...queryParams } = params;
-
- return request(`/pet/${param0}`, {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded',
- },
- params: { ...queryParams },
- data: body,
- ...(options || {}),
- });
-}
-
-/** Deletes a pet DELETE /pet/${param0} */
-export async function deletePet({
- params,
- options,
-}: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.deletePetParams;
- options?: CustomRequestOptions;
-}) {
- const { petId: param0, ...queryParams } = params;
-
- return request(`/pet/${param0}`, {
- method: 'DELETE',
- params: { ...queryParams },
- ...(options || {}),
- });
-}
-
-/** uploads an image POST /pet/${param0}/uploadImage */
-export async function uploadFile({
- params,
- body,
- file,
- options,
-}: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.uploadFileParams;
- body: {
- /** Additional data to pass to server */
- additionalMetadata?: string;
- };
- file?: File;
- options?: CustomRequestOptions;
-}) {
- const { petId: param0, ...queryParams } = params;
- const formData = new FormData();
-
- if (file) {
- formData.append('file', file);
- }
-
- Object.keys(body).forEach((ele) => {
- const item = (body as { [key: string]: any })[ele];
-
- if (item !== undefined && item !== null) {
- if (typeof item === 'object' && !(item instanceof File)) {
- if (item instanceof Array) {
- item.forEach((f) => formData.append(ele, f || ''));
- } else {
- formData.append(ele, JSON.stringify(item));
- }
- } else {
- formData.append(ele, item);
- }
- }
- });
-
- return request(`/pet/${param0}/uploadImage`, {
- method: 'POST',
- headers: {
- 'Content-Type': 'multipart/form-data',
- },
- params: { ...queryParams },
- data: formData,
- ...(options || {}),
- });
-}
-
-/** Finds Pets by status Multiple status values can be provided with comma separated strings GET /pet/findByStatus */
-export async function findPetsByStatus({
- params,
- options,
-}: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.findPetsByStatusParams;
- options?: CustomRequestOptions;
-}) {
- return request('/pet/findByStatus', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
-}
-
-/** Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. GET /pet/findByTags */
-export async function findPetsByTags({
- params,
- options,
-}: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.findPetsByTagsParams;
- options?: CustomRequestOptions;
-}) {
- return request('/pet/findByTags', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
-}
diff --git a/src/service/app/pet.vuequery.ts b/src/service/app/pet.vuequery.ts
deleted file mode 100644
index c6c0b7d..0000000
--- a/src/service/app/pet.vuequery.ts
+++ /dev/null
@@ -1,151 +0,0 @@
-/* eslint-disable */
-// @ts-ignore
-import { queryOptions, useMutation } from '@tanstack/vue-query';
-import type { DefaultError } from '@tanstack/vue-query';
-import request from '@/utils/request';
-import { CustomRequestOptions } from '@/interceptors/request';
-
-import * as apis from './pet';
-import * as API from './types';
-
-/** Update an existing pet PUT /pet */
-export function useUpdatePetMutation(options?: {
- onSuccess?: (value?: unknown) => void;
- onError?: (error?: DefaultError) => void;
-}) {
- const { onSuccess, onError } = options || {};
-
- const response = useMutation({
- mutationFn: apis.updatePet,
- onSuccess(data: unknown) {
- onSuccess?.(data);
- },
- onError(error) {
- onError?.(error);
- },
- });
-
- return response;
-}
-
-/** Add a new pet to the store POST /pet */
-export function useAddPetMutation(options?: {
- onSuccess?: (value?: unknown) => void;
- onError?: (error?: DefaultError) => void;
-}) {
- const { onSuccess, onError } = options || {};
-
- const response = useMutation({
- mutationFn: apis.addPet,
- onSuccess(data: unknown) {
- onSuccess?.(data);
- },
- onError(error) {
- onError?.(error);
- },
- });
-
- return response;
-}
-
-/** Find pet by ID Returns a single pet GET /pet/${param0} */
-export function getPetByIdQueryOptions(options: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.getPetByIdParams;
- options?: CustomRequestOptions;
-}) {
- return queryOptions({
- queryFn: async ({ queryKey }) => {
- return apis.getPetById(queryKey[1] as typeof options);
- },
- queryKey: ['getPetById', options],
- });
-}
-
-/** Updates a pet in the store with form data POST /pet/${param0} */
-export function useUpdatePetWithFormMutation(options?: {
- onSuccess?: (value?: unknown) => void;
- onError?: (error?: DefaultError) => void;
-}) {
- const { onSuccess, onError } = options || {};
-
- const response = useMutation({
- mutationFn: apis.updatePetWithForm,
- onSuccess(data: unknown) {
- onSuccess?.(data);
- },
- onError(error) {
- onError?.(error);
- },
- });
-
- return response;
-}
-
-/** Deletes a pet DELETE /pet/${param0} */
-export function useDeletePetMutation(options?: {
- onSuccess?: (value?: unknown) => void;
- onError?: (error?: DefaultError) => void;
-}) {
- const { onSuccess, onError } = options || {};
-
- const response = useMutation({
- mutationFn: apis.deletePet,
- onSuccess(data: unknown) {
- onSuccess?.(data);
- },
- onError(error) {
- onError?.(error);
- },
- });
-
- return response;
-}
-
-/** uploads an image POST /pet/${param0}/uploadImage */
-export function useUploadFileMutation(options?: {
- onSuccess?: (value?: API.ApiResponse) => void;
- onError?: (error?: DefaultError) => void;
-}) {
- const { onSuccess, onError } = options || {};
-
- const response = useMutation({
- mutationFn: apis.uploadFile,
- onSuccess(data: API.ApiResponse) {
- onSuccess?.(data);
- },
- onError(error) {
- onError?.(error);
- },
- });
-
- return response;
-}
-
-/** Finds Pets by status Multiple status values can be provided with comma separated strings GET /pet/findByStatus */
-export function findPetsByStatusQueryOptions(options: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.findPetsByStatusParams;
- options?: CustomRequestOptions;
-}) {
- return queryOptions({
- queryFn: async ({ queryKey }) => {
- return apis.findPetsByStatus(queryKey[1] as typeof options);
- },
- queryKey: ['findPetsByStatus', options],
- });
-}
-
-/** Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. GET /pet/findByTags */
-export function findPetsByTagsQueryOptions(options: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.findPetsByTagsParams;
- options?: CustomRequestOptions;
-}) {
- return queryOptions({
- queryFn: async ({ queryKey }) => {
- return apis.findPetsByTags(queryKey[1] as typeof options);
- },
- queryKey: ['findPetsByTags', options],
- });
-}
diff --git a/src/service/app/store.ts b/src/service/app/store.ts
deleted file mode 100644
index 0d87f52..0000000
--- a/src/service/app/store.ts
+++ /dev/null
@@ -1,72 +0,0 @@
-/* eslint-disable */
-// @ts-ignore
-import request from '@/utils/request';
-import { CustomRequestOptions } from '@/interceptors/request';
-
-import * as API from './types';
-
-/** Returns pet inventories by status Returns a map of status codes to quantities GET /store/inventory */
-export async function getInventory({
- options,
-}: {
- options?: CustomRequestOptions;
-}) {
- return request>('/store/inventory', {
- method: 'GET',
- ...(options || {}),
- });
-}
-
-/** Place an order for a pet POST /store/order */
-export async function placeOrder({
- body,
- options,
-}: {
- body: API.Order;
- options?: CustomRequestOptions;
-}) {
- return request('/store/order', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json',
- },
- data: body,
- ...(options || {}),
- });
-}
-
-/** Find purchase order by ID For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions GET /store/order/${param0} */
-export async function getOrderById({
- params,
- options,
-}: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.getOrderByIdParams;
- options?: CustomRequestOptions;
-}) {
- const { orderId: param0, ...queryParams } = params;
-
- return request(`/store/order/${param0}`, {
- method: 'GET',
- params: { ...queryParams },
- ...(options || {}),
- });
-}
-
-/** Delete purchase order by ID For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors DELETE /store/order/${param0} */
-export async function deleteOrder({
- params,
- options,
-}: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.deleteOrderParams;
- options?: CustomRequestOptions;
-}) {
- const { orderId: param0, ...queryParams } = params;
-
- return request(`/store/order/${param0}`, {
- method: 'DELETE',
- params: { ...queryParams },
- ...(options || {}),
- });
-}
diff --git a/src/service/app/store.vuequery.ts b/src/service/app/store.vuequery.ts
deleted file mode 100644
index dd6d660..0000000
--- a/src/service/app/store.vuequery.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* eslint-disable */
-// @ts-ignore
-import { queryOptions, useMutation } from '@tanstack/vue-query';
-import type { DefaultError } from '@tanstack/vue-query';
-import request from '@/utils/request';
-import { CustomRequestOptions } from '@/interceptors/request';
-
-import * as apis from './store';
-import * as API from './types';
-
-/** Returns pet inventories by status Returns a map of status codes to quantities GET /store/inventory */
-export function getInventoryQueryOptions(options: {
- options?: CustomRequestOptions;
-}) {
- return queryOptions({
- queryFn: async ({ queryKey }) => {
- return apis.getInventory(queryKey[1] as typeof options);
- },
- queryKey: ['getInventory', options],
- });
-}
-
-/** Place an order for a pet POST /store/order */
-export function usePlaceOrderMutation(options?: {
- onSuccess?: (value?: API.Order) => void;
- onError?: (error?: DefaultError) => void;
-}) {
- const { onSuccess, onError } = options || {};
-
- const response = useMutation({
- mutationFn: apis.placeOrder,
- onSuccess(data: API.Order) {
- onSuccess?.(data);
- },
- onError(error) {
- onError?.(error);
- },
- });
-
- return response;
-}
-
-/** Find purchase order by ID For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions GET /store/order/${param0} */
-export function getOrderByIdQueryOptions(options: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.getOrderByIdParams;
- options?: CustomRequestOptions;
-}) {
- return queryOptions({
- queryFn: async ({ queryKey }) => {
- return apis.getOrderById(queryKey[1] as typeof options);
- },
- queryKey: ['getOrderById', options],
- });
-}
-
-/** Delete purchase order by ID For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors DELETE /store/order/${param0} */
-export function useDeleteOrderMutation(options?: {
- onSuccess?: (value?: unknown) => void;
- onError?: (error?: DefaultError) => void;
-}) {
- const { onSuccess, onError } = options || {};
-
- const response = useMutation({
- mutationFn: apis.deleteOrder,
- onSuccess(data: unknown) {
- onSuccess?.(data);
- },
- onError(error) {
- onError?.(error);
- },
- });
-
- return response;
-}
diff --git a/src/service/app/user.ts b/src/service/app/user.ts
deleted file mode 100644
index 2474272..0000000
--- a/src/service/app/user.ts
+++ /dev/null
@@ -1,150 +0,0 @@
-/* eslint-disable */
-// @ts-ignore
-import request from '@/utils/request';
-import { CustomRequestOptions } from '@/interceptors/request';
-
-import * as API from './types';
-
-/** Create user This can only be done by the logged in user. 返回值: successful operation POST /user */
-export async function createUser({
- body,
- options,
-}: {
- body: API.User;
- options?: CustomRequestOptions;
-}) {
- return request('/user', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json',
- },
- data: body,
- ...(options || {}),
- });
-}
-
-/** Get user by user name GET /user/${param0} */
-export async function getUserByName({
- params,
- options,
-}: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.getUserByNameParams;
- options?: CustomRequestOptions;
-}) {
- const { username: param0, ...queryParams } = params;
-
- return request(`/user/${param0}`, {
- method: 'GET',
- params: { ...queryParams },
- ...(options || {}),
- });
-}
-
-/** Updated user This can only be done by the logged in user. PUT /user/${param0} */
-export async function updateUser({
- params,
- body,
- options,
-}: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.updateUserParams;
- body: API.User;
- options?: CustomRequestOptions;
-}) {
- const { username: param0, ...queryParams } = params;
-
- return request(`/user/${param0}`, {
- method: 'PUT',
- headers: {
- 'Content-Type': 'application/json',
- },
- params: { ...queryParams },
- data: body,
- ...(options || {}),
- });
-}
-
-/** Delete user This can only be done by the logged in user. DELETE /user/${param0} */
-export async function deleteUser({
- params,
- options,
-}: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.deleteUserParams;
- options?: CustomRequestOptions;
-}) {
- const { username: param0, ...queryParams } = params;
-
- return request(`/user/${param0}`, {
- method: 'DELETE',
- params: { ...queryParams },
- ...(options || {}),
- });
-}
-
-/** Creates list of users with given input array 返回值: successful operation POST /user/createWithArray */
-export async function createUsersWithArrayInput({
- body,
- options,
-}: {
- body: API.User[];
- options?: CustomRequestOptions;
-}) {
- return request('/user/createWithArray', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json',
- },
- data: body,
- ...(options || {}),
- });
-}
-
-/** Creates list of users with given input array 返回值: successful operation POST /user/createWithList */
-export async function createUsersWithListInput({
- body,
- options,
-}: {
- body: API.User[];
- options?: CustomRequestOptions;
-}) {
- return request('/user/createWithList', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json',
- },
- data: body,
- ...(options || {}),
- });
-}
-
-/** Logs user into the system GET /user/login */
-export async function loginUser({
- params,
- options,
-}: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.loginUserParams;
- options?: CustomRequestOptions;
-}) {
- return request('/user/login', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
-}
-
-/** Logs out current logged in user session 返回值: successful operation GET /user/logout */
-export async function logoutUser({
- options,
-}: {
- options?: CustomRequestOptions;
-}) {
- return request('/user/logout', {
- method: 'GET',
- ...(options || {}),
- });
-}
diff --git a/src/service/app/user.vuequery.ts b/src/service/app/user.vuequery.ts
deleted file mode 100644
index 0e13636..0000000
--- a/src/service/app/user.vuequery.ts
+++ /dev/null
@@ -1,149 +0,0 @@
-/* eslint-disable */
-// @ts-ignore
-import { queryOptions, useMutation } from '@tanstack/vue-query';
-import type { DefaultError } from '@tanstack/vue-query';
-import request from '@/utils/request';
-import { CustomRequestOptions } from '@/interceptors/request';
-
-import * as apis from './user';
-import * as API from './types';
-
-/** Create user This can only be done by the logged in user. 返回值: successful operation POST /user */
-export function useCreateUserMutation(options?: {
- onSuccess?: (value?: unknown) => void;
- onError?: (error?: DefaultError) => void;
-}) {
- const { onSuccess, onError } = options || {};
-
- const response = useMutation({
- mutationFn: apis.createUser,
- onSuccess(data: unknown) {
- onSuccess?.(data);
- },
- onError(error) {
- onError?.(error);
- },
- });
-
- return response;
-}
-
-/** Get user by user name GET /user/${param0} */
-export function getUserByNameQueryOptions(options: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.getUserByNameParams;
- options?: CustomRequestOptions;
-}) {
- return queryOptions({
- queryFn: async ({ queryKey }) => {
- return apis.getUserByName(queryKey[1] as typeof options);
- },
- queryKey: ['getUserByName', options],
- });
-}
-
-/** Updated user This can only be done by the logged in user. PUT /user/${param0} */
-export function useUpdateUserMutation(options?: {
- onSuccess?: (value?: unknown) => void;
- onError?: (error?: DefaultError) => void;
-}) {
- const { onSuccess, onError } = options || {};
-
- const response = useMutation({
- mutationFn: apis.updateUser,
- onSuccess(data: unknown) {
- onSuccess?.(data);
- },
- onError(error) {
- onError?.(error);
- },
- });
-
- return response;
-}
-
-/** Delete user This can only be done by the logged in user. DELETE /user/${param0} */
-export function useDeleteUserMutation(options?: {
- onSuccess?: (value?: unknown) => void;
- onError?: (error?: DefaultError) => void;
-}) {
- const { onSuccess, onError } = options || {};
-
- const response = useMutation({
- mutationFn: apis.deleteUser,
- onSuccess(data: unknown) {
- onSuccess?.(data);
- },
- onError(error) {
- onError?.(error);
- },
- });
-
- return response;
-}
-
-/** Creates list of users with given input array 返回值: successful operation POST /user/createWithArray */
-export function useCreateUsersWithArrayInputMutation(options?: {
- onSuccess?: (value?: unknown) => void;
- onError?: (error?: DefaultError) => void;
-}) {
- const { onSuccess, onError } = options || {};
-
- const response = useMutation({
- mutationFn: apis.createUsersWithArrayInput,
- onSuccess(data: unknown) {
- onSuccess?.(data);
- },
- onError(error) {
- onError?.(error);
- },
- });
-
- return response;
-}
-
-/** Creates list of users with given input array 返回值: successful operation POST /user/createWithList */
-export function useCreateUsersWithListInputMutation(options?: {
- onSuccess?: (value?: unknown) => void;
- onError?: (error?: DefaultError) => void;
-}) {
- const { onSuccess, onError } = options || {};
-
- const response = useMutation({
- mutationFn: apis.createUsersWithListInput,
- onSuccess(data: unknown) {
- onSuccess?.(data);
- },
- onError(error) {
- onError?.(error);
- },
- });
-
- return response;
-}
-
-/** Logs user into the system GET /user/login */
-export function loginUserQueryOptions(options: {
- // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
- params: API.loginUserParams;
- options?: CustomRequestOptions;
-}) {
- return queryOptions({
- queryFn: async ({ queryKey }) => {
- return apis.loginUser(queryKey[1] as typeof options);
- },
- queryKey: ['loginUser', options],
- });
-}
-
-/** Logs out current logged in user session 返回值: successful operation GET /user/logout */
-export function logoutUserQueryOptions(options: {
- options?: CustomRequestOptions;
-}) {
- return queryOptions({
- queryFn: async ({ queryKey }) => {
- return apis.logoutUser(queryKey[1] as typeof options);
- },
- queryKey: ['logoutUser', options],
- });
-}
diff --git a/src/service/index/api.ts b/src/service/index/api.ts
index 406aaf2..e027c0c 100644
--- a/src/service/index/api.ts
+++ b/src/service/index/api.ts
@@ -101,3 +101,37 @@ export const getUniversityInfo = (params: { Id: number }) => {
export const getSubjectIntroduceList = (id: number) => {
return http.get('/api/zhiYuan/subjectIntroducelist', { id })
}
+
+// 院校
+export const getUniversityListByProvince = (params: { id: number }) => {
+ return http.get('/api/zhiYuan/zfacultylist', params)
+}
+
+export const getPlanProList = (params: {
+ _uid: number
+ years: string
+ batchName: string
+ locationCode: string
+}) => {
+ return http.get('/api/PlanPro/v2/list', params)
+}
+
+export const getRecruits = (uid: number) => {
+ return http.get('/api/zhiYuan/recruits', { uid })
+}
+
+export const getRecruitsDetail = (params: { id: number }) => {
+ return http.get('/api/zhiYuan/recruitdetail', params)
+}
+
+export const addUnCollection = (params: { wxId: number; uId: number }) => {
+ return http.post('/api/unCollection/add', params)
+}
+
+export const getUnCollectionList = (params: {
+ SearchKey: string
+ Page: number
+ PageSize: number
+}) => {
+ return http.get('/api/unCollection/list', params)
+}
diff --git a/src/service/index/foo.ts b/src/service/index/foo.ts
deleted file mode 100644
index acf5aa8..0000000
--- a/src/service/index/foo.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { http } from '@/utils/http'
-export interface IFooItem {
- id: string
- name: string
-}
-
-/** GET 请求 */
-export const getFooAPI = (name: string) => {
- return http.get('/foo', { name })
-}
-
-/** POST 请求 */
-export const postFooAPI = (name: string) => {
- return http.post('/foo', { name }, { name })
-}
diff --git a/src/types/auto-import.d.ts b/src/types/auto-import.d.ts
index 2d47219..64dc8f3 100644
--- a/src/types/auto-import.d.ts
+++ b/src/types/auto-import.d.ts
@@ -202,7 +202,6 @@ declare module 'vue' {
readonly toRefs: UnwrapRef
readonly toValue: UnwrapRef
readonly triggerRef: UnwrapRef
- readonly universityBaseInfo: UnwrapRef
readonly unref: UnwrapRef
readonly useAttrs: UnwrapRef
readonly useCityInfo: UnwrapRef
@@ -220,7 +219,6 @@ declare module 'vue' {
readonly useSlots: UnwrapRef
readonly useTemplateRef: UnwrapRef
readonly useUnSortType: UnwrapRef
- readonly useUniversityInfo: UnwrapRef
readonly useUniversityLevel: UnwrapRef
readonly useUniversityRank: UnwrapRef
readonly useUniversityType: UnwrapRef
diff --git a/src/types/uni-pages.d.ts b/src/types/uni-pages.d.ts
index 00bbfa7..d572492 100644
--- a/src/types/uni-pages.d.ts
+++ b/src/types/uni-pages.d.ts
@@ -14,6 +14,7 @@ interface NavigateToOptions {
"/pages-sub/home/autoFill/index" |
"/pages-sub/home/career/index" |
"/pages-sub/home/city/index" |
+ "/pages-sub/home/college/enrollmentIntroDetail" |
"/pages-sub/home/college/index" |
"/pages-sub/home/college/info" |
"/pages-sub/home/distinguish/index" |
diff --git a/src/uni_modules/z-tabs/changelog.md b/src/uni_modules/z-tabs/changelog.md
deleted file mode 100644
index 1697db2..0000000
--- a/src/uni_modules/z-tabs/changelog.md
+++ /dev/null
@@ -1,9 +0,0 @@
-## 0.3.0(2024-10-21)
-支持鸿蒙Next
-## 0.2.7(2024-07-18)
-1.`新增` 支持切换rpx&px
-2.`修复` 宽度小于屏幕时底部tabs位置不正确的问题
-3.`修复` 偶现的Cannot read property 'left' of undefind的问题
-
-## 0.2.5(2023-01-09)
-修复可能出现的可能出现的与swiper联动时报错node不存在的bug
diff --git a/src/uni_modules/z-tabs/components/z-tabs/config/index.js b/src/uni_modules/z-tabs/components/z-tabs/config/index.js
deleted file mode 100644
index 56c953b..0000000
--- a/src/uni_modules/z-tabs/components/z-tabs/config/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// z-tabs全局配置文件,注意避免更新时此文件被覆盖,若被覆盖,可在此文件中右键->点击本地历史记录,找回覆盖前的配置
-export default {
-
-}
\ No newline at end of file
diff --git a/src/uni_modules/z-tabs/components/z-tabs/z-tabs.vue b/src/uni_modules/z-tabs/components/z-tabs/z-tabs.vue
deleted file mode 100644
index 5c2a123..0000000
--- a/src/uni_modules/z-tabs/components/z-tabs/z-tabs.vue
+++ /dev/null
@@ -1,791 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item[nameKey]||item}}
-
- {{_formatCount(item.badge.count)}}
-
-
-
-
-
- :style="[{transform:`translateX(${bottomDotX}px)`,transition:dotTransition,background:activeColor},finalDotStyle]"
-
-
- :style="[{background:activeColor},finalDotStyle]"
-
- />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/uni_modules/z-tabs/package.json b/src/uni_modules/z-tabs/package.json
deleted file mode 100644
index 0e9e24a..0000000
--- a/src/uni_modules/z-tabs/package.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "id": "z-tabs",
- "name": "z-tabs",
- "displayName": "【z-tabs】一个简单轻量的tabs组件",
- "version": "0.3.0",
- "description": "全平台兼容,支持nvue、vue3",
- "keywords": [
- "tabs"
-],
- "repository": "https://github.com/SmileZXLee/uni-z-tabs",
- "engines": {
- "HBuilderX": "^3.0.7"
- },
-"dcloudext": {
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": "393727164"
- },
- "declaration": {
- "ads": "无",
- "data": "无",
- "permissions": "无"
- },
- "npmurl": "https://www.npmjs.com/package/@zxlee/z-tabs",
- "type": "component-vue"
- },
- "uni_modules": {
- "dependencies": [],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y",
- "alipay": "n"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "微信浏览器(Android)": "y",
- "QQ浏览器(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "小程序": {
- "微信": "y",
- "阿里": "y",
- "百度": "y",
- "字节跳动": "y",
- "QQ": "y",
- "钉钉": "y",
- "快手": "y",
- "飞书": "y",
- "京东": "y"
- },
- "快应用": {
- "华为": "y",
- "联盟": "y"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/uni_modules/z-tabs/readme.md b/src/uni_modules/z-tabs/readme.md
deleted file mode 100644
index b88a608..0000000
--- a/src/uni_modules/z-tabs/readme.md
+++ /dev/null
@@ -1,177 +0,0 @@
-# z-tabs
-
-[](https://github.com/SmileZXLee/uni-z-tabs)
-[](https://en.wikipedia.org/wiki/MIT_License)
-
-***
-
-### 反馈qq群(点击加群):[371624008](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=avPmibADf2TNi4LxkIwjCE5vbfXpa-r1&authKey=dQ%2FVDAR87ONxI4b32Py%2BvmXbhnopjHN7%2FJPtdsqJdsCPFZB6zDQ17L06Uh0kITUZ&noverify=0&group_code=371624008)
-
-***
-
-## z-tabs文档
-
-### 安装
-
-#### 方式1(推荐):通过uni_modules安装,在插件市场中点击右上角【使用HbuilderX导入插件】即可。
-
-***
-
-#### 方式2:通过npm安装
-
-```bash
-//若项目之前未使用npm管理依赖(项目根目录下无package.json文件),先在项目根目录执行命令初始化npm工程
-npm init -y
-
-//安装
-npm install @zxlee/z-tabs --save
-//更新
-npm update @zxlee/z-tabs
-```
-
-然后在`pages.json`中配置`easycom`(注意:下方配置只有在使用npm安装时才需要配置!!!!!)
-
-```json
-"easycom": {
- "^z-tabs": "@zxlee/z-tabs/components/z-tabs/z-tabs.vue"
-}
-```
-
-### 基本使用
-
-```html
-
-
-
-
-
-```
-
-
-
-### props
-
-| 参数 | 说明 | 类型 | 默认值 | 可选值 |
-| :------------------ | :----------------------------------------------------------- | :------------- | :------ | :----- |
-| list | 数据源数组,支持形如`['tab1','tab2']`的格式或`[{name:'tab1',value:1}]`的格式 | Array | [] | - |
-| current | 当前选中的index | Number\|String | 0 | - |
-| scroll-count | list数组长度超过scrollCount时滚动显示(不自动铺满全屏) | Number\|String | 5 | - |
-| tab-width | 自定义每个tab的宽度,默认为0,即代表根据内容自动撑开,单位rpx,支持传100、"100px"或"100rpx" | Number\|String | 0 | 0 |
-| bar-width | 滑块宽度,单位rpx,支持传100、"100px"或"100rpx" | Number\|String | 45rpx | - |
-| bar-height | 滑块高度,单位rpx,支持传100、"100px"或"100rpx" | Number\|String | 8rpx | - |
-| bar-style | 滑块样式,其中的`width`和`height`将被`bar-width`和`bar-height`覆盖 | Object | {} | - |
-| bottom-space | tabs与底部的间距,单位rpx,支持传100、"100px"或"100rpx" | Number\|String | 8rpx | - |
-| bar-animate-mode | 【v0.1.5起支持】切换tab时滑块动画模式,与`swiper`联动时有效,点击切换tab时无效,必须调用`setDx`。默认为`line`,即切换tab时滑块宽度保持不变,线性运动。可选值为`worm`,即为类似毛毛虫蠕动效果 | String | line | worm |
-| name-key | list中item的name(标题)的key | String | name | - |
-| value-key | list中item的value的key | String | value | - |
-| active-color | 激活状态tab的颜色 | String | #007AFF | - |
-| inactive-color | 未激活状态tab的颜色 | String | #666666 | - |
-| disabled-color | 禁用状态tab的颜色 | String | #bbbbbb | - |
-| active-style | 激活状态tab的样式 | Object | {} | - |
-| inactive-style | 未激活状态tab的样式 | Object | {} | - |
-| disabled-style | 禁用状态tab的样式 | Object | {} | - |
-| badge-max-count | 徽标数最大数字限制,超过这个数字将变成`badge-max-count`+ | Number\|String | 99 | - |
-| badge-style | 徽标样式,例如可自定义背景色,字体等等 | Object | {} | - |
-| bg-color | z-tabs背景色 | String | white | - |
-| tabs-style | z-tabs样式 | Object | {} | - |
-| init-trigger-change | 初始化时是否自动触发change事件 | Boolean | true | false |
-| unit | z-tabs中布局的单位,默认为rpx | String | rpx | px |
-
-
-
-### events
-
-| 事件名 | 说明 | 回调参数 |
-| ------------ | -------------------- | ------------------------------------------------------------ |
-| @change | tabs改变(点击)时触发 | `参数1`:index(当前切换到的index);
`参数2`:value(当前切换到的value) |
-| @secondClick | tabs二次点击时触发 | `参数1`:index(当前切换到的index);
`参数2`:value(当前切换到的value) |
-
-### methods
-
-| 方法名 | 说明 | 参数 |
-| ------------------- | ------------------------------------------------------------ | -------------------------------------- |
-| setDx | 根据swiper的`@transition`实时更新底部dot位置 | swiper的`@transition`中的`e.detail.dx` |
-| unlockDx | 在swiper的`@animationfinish`中通知`z-tabs`结束多`setDx`的锁定,若在父组件中调用了`setDx`,则必须调用`unlockDx` | - |
-| updateSubviewLayout | 在nvue+安卓中,若在cell中使用`z-tabs`,且页面加载时cell在屏幕之外,因cell的复用机制,可能导致`z-tabs`内部的布局失效:例如底部bar无法显示,此时可在list滚动到一定区域内(例如快显示`z-tabs`)的时候调用此方法以更新其内部布局。其他情况无需调用! | - |
-
-### slots
-
-| 名称 | 说明 |
-| :---- | ------------ |
-| left | tabs左侧插槽 |
-| right | tabs右侧插槽 |
-
-### 支持全局配置
-
-* 在`/z-tabs/components/z-tabs/config/index.js`文件中进行配置
-
-```js
-export default {
- 'active-color': 'red'
-}
-```
-
-### 【v0.1.4起支持】底部dot与swiper联动演示
-
-```html
-
-
-
-
- xxx
-
-
-
-
-```
\ No newline at end of file