diff --git a/package-lock.json b/package-lock.json index 8de5e05..668f831 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,8 +12,10 @@ "@tailwindcss/vite": "^4.1.11", "@videojs-player/vue": "^1.0.0", "animate.css": "^4.1.1", + "aos": "^2.3.4", "axios": "^1.10.0", "dayjs": "^1.11.13", + "gsap": "^3.13.0", "swiper": "^11.2.10", "tailwindcss": "^4.1.11", "video.js": "^7.21.7", @@ -24,6 +26,7 @@ "wowjs": "^1.1.3" }, "devDependencies": { + "@types/aos": "^3.0.7", "@types/node": "^24.0.13", "@vitejs/plugin-vue": "^5.2.1", "@vue/tsconfig": "^0.7.0", @@ -1251,6 +1254,12 @@ "vite": "^5.2.0 || ^6 || ^7" } }, + "node_modules/@types/aos": { + "version": "3.0.7", + "resolved": "https://registry.npmmirror.com/@types/aos/-/aos-3.0.7.tgz", + "integrity": "sha512-sEhyFqvKauUJZDbvAB3Pggynrq6g+2PS4XB3tmUr+mDL1gfDJnwslUC4QQ7/l8UD+LWpr3RxZVR/rHoZrLqZVg==", + "dev": true + }, "node_modules/@types/cookie": { "version": "0.6.0", "resolved": "https://registry.npmmirror.com/@types/cookie/-/cookie-0.6.0.tgz", @@ -1613,6 +1622,16 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/aos": { + "version": "2.3.4", + "resolved": "https://registry.npmmirror.com/aos/-/aos-2.3.4.tgz", + "integrity": "sha512-zh/ahtR2yME4I51z8IttIt4lC1Nw0ktsFtmeDzID1m9naJnWXhCoARaCgNOGXb5CLy3zm+wqmRAEgMYB5E2HUw==", + "dependencies": { + "classlist-polyfill": "^1.0.3", + "lodash.debounce": "^4.0.6", + "lodash.throttle": "^4.0.1" + } + }, "node_modules/array-union": { "version": "2.1.0", "resolved": "https://registry.npmmirror.com/array-union/-/array-union-2.1.0.tgz", @@ -1690,6 +1709,11 @@ "node": ">=18" } }, + "node_modules/classlist-polyfill": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/classlist-polyfill/-/classlist-polyfill-1.2.0.tgz", + "integrity": "sha512-GzIjNdcEtH4ieA2S8NmrSxv7DfEV5fmixQeyTmqmRmRJPGpRBaSnA2a0VrCjyT8iW8JjEdMbKzDotAJf+ajgaQ==" + }, "node_modules/cli-width": { "version": "4.1.0", "resolved": "https://registry.npmmirror.com/cli-width/-/cli-width-4.1.0.tgz", @@ -2278,6 +2302,11 @@ "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" } }, + "node_modules/gsap": { + "version": "3.13.0", + "resolved": "https://registry.npmmirror.com/gsap/-/gsap-3.13.0.tgz", + "integrity": "sha512-QL7MJ2WMjm1PHWsoFrAQH/J8wUeqZvMtHO58qdekHpCfhvhSL4gSiz6vJf5EeMP0LOn3ZCprL2ki/gjED8ghVw==" + }, "node_modules/has-symbols": { "version": "1.1.0", "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz", @@ -2647,6 +2676,16 @@ "node": ">=8" } }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmmirror.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==" + }, + "node_modules/lodash.throttle": { + "version": "4.1.1", + "resolved": "https://registry.npmmirror.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz", + "integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==" + }, "node_modules/m3u8-parser": { "version": "4.8.0", "resolved": "https://registry.npmmirror.com/m3u8-parser/-/m3u8-parser-4.8.0.tgz", diff --git a/package.json b/package.json index 33ae8cf..803b6ee 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,10 @@ "@tailwindcss/vite": "^4.1.11", "@videojs-player/vue": "^1.0.0", "animate.css": "^4.1.1", + "aos": "^2.3.4", "axios": "^1.10.0", "dayjs": "^1.11.13", + "gsap": "^3.13.0", "swiper": "^11.2.10", "tailwindcss": "^4.1.11", "video.js": "^7.21.7", @@ -26,6 +28,7 @@ "wowjs": "^1.1.3" }, "devDependencies": { + "@types/aos": "^3.0.7", "@types/node": "^24.0.13", "@vitejs/plugin-vue": "^5.2.1", "@vue/tsconfig": "^0.7.0", diff --git a/public/图.jpg b/public/图.jpg new file mode 100644 index 0000000..a3e857e Binary files /dev/null and b/public/图.jpg differ diff --git a/src/api/modules/about.ts b/src/api/modules/about.ts index 1793397..8fa08ee 100644 --- a/src/api/modules/about.ts +++ b/src/api/modules/about.ts @@ -68,6 +68,20 @@ export interface PartnerItem { updateTime?: string; } +// 媒体接口 +export interface MediaItem { + id: string; + title: string; + image: string; + description: string; + source?: string; + date?: string; + createBy?: string; + createTime?: string; + updateBy?: string; + updateTime?: string; +} + // 处理API响应 function handleResponse(response: any): T[] { if (!response) return []; diff --git a/src/api/modules/community.ts b/src/api/modules/community.ts index 7bff826..f2a6760 100644 --- a/src/api/modules/community.ts +++ b/src/api/modules/community.ts @@ -14,6 +14,8 @@ export interface OfficialMediaItem { description?: string; image: string; link: string; + url?: string; + username?: string; createBy?: string; createTime?: string; updateBy?: string; @@ -26,6 +28,7 @@ export interface ForumItem { title: string; content: string; image?: string; + likeCount?: number; createBy?: string; createTime?: string; updateBy?: string; @@ -49,6 +52,7 @@ export interface MessageItem { title: string; content: string; image?: string; + description?: string; createBy?: string; createTime?: string; updateBy?: string; @@ -61,6 +65,8 @@ export interface CommunityItem { title: string; content: string; image?: string; + description?: string; + url?: string; createBy?: string; createTime?: string; updateBy?: string; diff --git a/src/api/modules/home.ts b/src/api/modules/home.ts index 8281d0c..3bbc70c 100644 --- a/src/api/modules/home.ts +++ b/src/api/modules/home.ts @@ -16,8 +16,10 @@ export interface BannerItem { // 核心价值主张接口 export interface ValueItem { id: string; + title: string; image: string; description: string; + icon?: string; createBy?: string; createTime?: string; updateBy?: string; @@ -42,6 +44,8 @@ export interface MediaItem { title: string; image: string; description: string; + source?: string; + date?: string; createBy?: string; createTime?: string; updateBy?: string; diff --git a/src/components/about/CompanyModule.vue b/src/components/about/CompanyModule.vue index 30064ce..fe8e690 100644 --- a/src/components/about/CompanyModule.vue +++ b/src/components/about/CompanyModule.vue @@ -1,90 +1,86 @@ + + \ No newline at end of file diff --git a/src/components/about/PartnersModule.vue b/src/components/about/PartnersModule.vue index cc07f60..4b876c5 100644 --- a/src/components/about/PartnersModule.vue +++ b/src/components/about/PartnersModule.vue @@ -1,210 +1,80 @@