feat: 前端页面和组件全面完善

- 优化通用组件:导航栏、页脚、图片上传、搜索
- 完善业务组件:商品卡片、秒杀卡片
- 更新用户端页面:首页、商品、秒杀、订单、购物车、个人中心
- 新增用户收藏页面
- 完善管理后台:仪表盘、商品/订单/用户/秒杀管理
- 新增管理后台:收藏管理、评价管理、系统监控页面
This commit is contained in:
2026-03-10 23:21:53 +08:00
parent abba469a20
commit c52d9c52e3
25 changed files with 3409 additions and 1467 deletions

View File

@@ -133,12 +133,11 @@ import { useRouter } from 'vue-router'
import { ElMessage } from 'element-plus'
import FlashSaleCard from '@/components/business/FlashSaleCard.vue'
import ProductCard from '@/components/business/ProductCard.vue'
import flashsaleApi from '@/api/flashsale'
import productApi from '@/api/product'
import { flashsaleApi } from '@/api/modules/flashsale'
import { productApi } from '@/api/modules/product'
import { useCartStore } from '@/stores/cart'
import { useUserStore } from '@/stores/user'
import type { FlashSale } from '@/types/flashsale'
import type { Product } from '@/types/product'
import type { FlashSale, Product } from '@/types/api'
const router = useRouter()
const cartStore = useCartStore()
@@ -151,7 +150,7 @@ const banners = [
title: '秒杀系统',
subtitle: '基于Redis集群构建的高并发秒杀系统',
buttonText: '立即抢购',
link: '/flashsale',
link: '/flashsales',
bgColor: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
icon: 'Lightning'
},
@@ -160,7 +159,7 @@ const banners = [
title: '防超卖机制',
subtitle: '采用分布式锁和Lua脚本确保数据一致性',
buttonText: '了解更多',
link: '/flashsale',
link: '/flashsales',
bgColor: 'linear-gradient(135deg, #f093fb 0%, #f5576c 100%)',
icon: 'Lock'
},
@@ -258,4 +257,4 @@ onMounted(() => {
:deep(.el-carousel__item) {
overflow: hidden;
}
</style>
</style>