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: ''},