diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 185d747..4ee9e59 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -95,7 +95,7 @@ importers: version: 0.65.2(postcss@5.2.18)(rollup@4.28.1)(vite@6.0.3(@types/node@22.10.1)(jiti@2.4.1)(sass-embedded@1.86.0)(sass@1.89.2)(tsx@4.19.2))(vue@3.5.13(typescript@5.6.3)) unplugin-auto-import: specifier: ^19.3.0 - version: 19.3.0(@nuxt/kit@3.14.1592(rollup@4.28.1)) + version: 19.3.0(@nuxt/kit@3.14.1592(rollup@4.28.1))(@vueuse/core@13.5.0(vue@3.5.13(typescript@5.6.3))) unplugin-vue-components: specifier: ^28.8.0 version: 28.8.0(@babel/parser@7.26.3)(@nuxt/kit@3.14.1592(rollup@4.28.1))(vue@3.5.13(typescript@5.6.3)) @@ -752,6 +752,9 @@ packages: '@types/qs@6.9.17': resolution: {integrity: sha512-rX4/bPcfmvxHDv0XjfJELTTr+iB+tn032nPILqHm5wbthUUUuVtNGGqzhya9XUxjTP8Fpr0qYgSZZKxGY++svQ==} + '@types/web-bluetooth@0.0.21': + resolution: {integrity: sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==} + '@unocss-applet/preset-rem-rpx@0.9.0': resolution: {integrity: sha512-0gDNY0kWK9jzPhbLGYINISsxSNRzcW+8CAeb1gvHqfSo80lI48uAb/bOET2IU9sIhG9Rwg4Xy08fXn0ca+0ZFw==} peerDependencies: @@ -905,6 +908,19 @@ packages: '@vue/shared@3.5.13': resolution: {integrity: sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==} + '@vueuse/core@13.5.0': + resolution: {integrity: sha512-wV7z0eUpifKmvmN78UBZX8T7lMW53Nrk6JP5+6hbzrB9+cJ3jr//hUlhl9TZO/03bUkMK6gGkQpqOPWoabr72g==} + peerDependencies: + vue: ^3.5.0 + + '@vueuse/metadata@13.5.0': + resolution: {integrity: sha512-euhItU3b0SqXxSy8u1XHxUCdQ8M++bsRs+TYhOLDU/OykS7KvJnyIFfep0XM5WjIFry9uAPlVSjmVHiqeshmkw==} + + '@vueuse/shared@13.5.0': + resolution: {integrity: sha512-K7GrQIxJ/ANtucxIXbQlUHdB0TPA8c+q5i+zbrjxuhJCnJ9GtBg75sBSnvmLSxHKPg2Yo8w62PWksl9kwH0Q8g==} + peerDependencies: + vue: ^3.5.0 + acorn@8.14.0: resolution: {integrity: sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==} engines: {node: '>=0.4.0'} @@ -3323,6 +3339,9 @@ snapshots: '@types/qs@6.9.17': {} + '@types/web-bluetooth@0.0.21': + optional: true + '@unocss-applet/preset-rem-rpx@0.9.0(@unocss/core@0.65.2)': dependencies: '@unocss/core': 0.65.2 @@ -3575,6 +3594,22 @@ snapshots: '@vue/shared@3.5.13': {} + '@vueuse/core@13.5.0(vue@3.5.13(typescript@5.6.3))': + dependencies: + '@types/web-bluetooth': 0.0.21 + '@vueuse/metadata': 13.5.0 + '@vueuse/shared': 13.5.0(vue@3.5.13(typescript@5.6.3)) + vue: 3.5.13(typescript@5.6.3) + optional: true + + '@vueuse/metadata@13.5.0': + optional: true + + '@vueuse/shared@13.5.0(vue@3.5.13(typescript@5.6.3))': + dependencies: + vue: 3.5.13(typescript@5.6.3) + optional: true + acorn@8.14.0: {} acorn@8.15.0: {} @@ -5503,7 +5538,7 @@ snapshots: - supports-color - vue - unplugin-auto-import@19.3.0(@nuxt/kit@3.14.1592(rollup@4.28.1)): + unplugin-auto-import@19.3.0(@nuxt/kit@3.14.1592(rollup@4.28.1))(@vueuse/core@13.5.0(vue@3.5.13(typescript@5.6.3))): dependencies: local-pkg: 1.1.1 magic-string: 0.30.17 @@ -5513,6 +5548,7 @@ snapshots: unplugin-utils: 0.2.4 optionalDependencies: '@nuxt/kit': 3.14.1592(rollup@4.28.1) + '@vueuse/core': 13.5.0(vue@3.5.13(typescript@5.6.3)) unplugin-utils@0.2.4: dependencies: diff --git a/src/components/back-button/index.vue b/src/components/back-button/index.vue index 489e3ef..e5a4ec7 100644 --- a/src/components/back-button/index.vue +++ b/src/components/back-button/index.vue @@ -1,5 +1,5 @@ @@ -8,7 +8,7 @@ import { ChevronLeft } from 'lucide-vue-next'; import { useRouter } from 'vue-router'; -const props = defineProps({ +defineProps({ bottom:{ type:String, default:"" diff --git a/src/composables/useCourses.ts b/src/composables/useCourses.ts index 7d2a01c..7c75afe 100644 --- a/src/composables/useCourses.ts +++ b/src/composables/useCourses.ts @@ -12,15 +12,15 @@ export const useGetLessonCategory = () => { return { lessonCategory } } -export const useGetLessonList = () => { - const lessonList = ref([]); - getRequest(getLessonList()).then(resp => { +export const lessonList = ref([]); +export const useGetLessonList = (type:number = 1) => { + getRequest(getLessonList(),{type}).then(resp => { if(resp.code === 200){ - lessonList.value = (resp.result as {items:any[]}).items; + lessonList.value = (resp.result as {data:any[]}).data; + }else{ + lessonList.value = []; } }) - - return { lessonList } } export const useGetCourseDetail = () => { diff --git a/src/store/user.ts b/src/store/user.ts index 197c9f0..d08030b 100644 --- a/src/store/user.ts +++ b/src/store/user.ts @@ -6,6 +6,7 @@ type RecvAddr = { name: string; phone: string; isDefault: boolean; + id:number } type UserState = { diff --git a/src/views/courses/courseCart.vue b/src/views/courses/courseCart.vue index bb2ad43..234c623 100644 --- a/src/views/courses/courseCart.vue +++ b/src/views/courses/courseCart.vue @@ -35,14 +35,14 @@ diff --git a/src/views/housekeeping/index.vue b/src/views/housekeeping/index.vue index a9223fe..efadaf1 100644 --- a/src/views/housekeeping/index.vue +++ b/src/views/housekeeping/index.vue @@ -14,7 +14,7 @@ -