From 0dc9f602f143ee61c1eb202007ba145ca388fa89 Mon Sep 17 00:00:00 2001 From: dzl <786316265@qq.com> Date: Tue, 14 Oct 2025 16:24:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BC=98=E6=83=A0=E5=8D=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 8 +- src/views/CouponGet.vue | 306 ++++++++++++++++++++++++++++++++++ src/views/CouponManage.vue | 302 +++------------------------------ src/views/ProductCategory.vue | 7 +- src/views/Shop.vue | 2 +- 5 files changed, 340 insertions(+), 285 deletions(-) create mode 100644 src/views/CouponGet.vue diff --git a/src/router/index.js b/src/router/index.js index 62ab11e..b17a5d8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -234,9 +234,15 @@ const routes = [ { path: '/coupon', name: 'Coupon', - component: () => import('@/views/CouponManage.vue'), + component: () => import('@/views/CouponGet.vue'), meta: {title: '优惠券', requiresAuth: true} }, + { + path: '/couponmanage', + name: 'CouponManage', + component: () => import('@/views/CouponManage.vue'), + meta: {title: '优惠券管理', requiresAuth: true} + }, { path: '/:pathMatch(.*)*', name: 'NotFound', diff --git a/src/views/CouponGet.vue b/src/views/CouponGet.vue new file mode 100644 index 0000000..2cd6115 --- /dev/null +++ b/src/views/CouponGet.vue @@ -0,0 +1,306 @@ + + + + + diff --git a/src/views/CouponManage.vue b/src/views/CouponManage.vue index 0dc19b2..b482c42 100644 --- a/src/views/CouponManage.vue +++ b/src/views/CouponManage.vue @@ -1,305 +1,49 @@ diff --git a/src/views/ProductCategory.vue b/src/views/ProductCategory.vue index a9d1e7d..52b7a42 100644 --- a/src/views/ProductCategory.vue +++ b/src/views/ProductCategory.vue @@ -18,8 +18,7 @@
- - + {{ item.name }}
@@ -28,7 +27,7 @@
商品
- + {{ item.name }}
@@ -271,7 +270,7 @@ onMounted(() => { .relative-img { width: 40px; - height: 45px; + height: 40px; margin-bottom: 8px; } diff --git a/src/views/Shop.vue b/src/views/Shop.vue index 1cd5f90..f90a549 100644 --- a/src/views/Shop.vue +++ b/src/views/Shop.vue @@ -64,7 +64,7 @@ const selectedCategory = ref('all') const shopBarItems = [ {name: '商品分类',img: '/imgs/shop/1.png',path: '/productCategory'}, {name: '观看直播',img: '/imgs/shop/2.png',path: ''}, - {name: '违规通告',img: '/imgs/shop/3.png',path: ''}, + {name: '卡包管理',img: '/imgs/shop/3.png',path: '/couponmanage'}, {name: '百亿补贴',img: '/imgs/shop/4.png',path: ''}, {name: '现时秒杀',img: '/imgs/shop/5.png',path: ''}, {name: '会员专区',img: '/imgs/shop/6.png',path: ''},