feat: 首页优化

This commit is contained in:
2026-07-27 16:43:37 +08:00
parent f2c1cfcb15
commit eed5c3fe03
19 changed files with 718 additions and 103 deletions
+19 -12
View File
@@ -1,6 +1,7 @@
import Vue from 'vue'
import Router from 'vue-router'
import SupplierHome from '@/view/index.vue'
import JoyfulSelectionLayout from '@/view/joyful-selection/layout.vue'
import JoyfulSelectionHome from '@/view/joyful-selection/index.vue'
import JoyfulSelectionProductList from '@/view/joyful-selection/products/index.vue'
import JoyfulSelectionProductDetail from '@/view/joyful-selection/product-detail/index.vue'
@@ -23,18 +24,24 @@ Vue.use(Router)
export default new Router({
routes: [
{ path: '/', component: SupplierHome },
{ path: '/joyful-selection', component: JoyfulSelectionHome },
{ path: '/joyful-selection/products', component: JoyfulSelectionProductList },
{ path: '/joyful-selection/product-detail', component: JoyfulSelectionProductDetail },
{ path: '/joyful-selection/cart', component: JoyfulSelectionCart },
{ path: '/joyful-selection/cart/edit', component: JoyfulSelectionCartEdit },
{ path: '/joyful-selection/checkout', component: JoyfulSelectionCheckout },
{ path: '/joyful-selection/payment', component: JoyfulSelectionPayment },
{ path: '/joyful-selection/payment-confirm', component: JoyfulSelectionPaymentConfirm },
{ path: '/joyful-selection/payment-success', component: JoyfulSelectionPaymentSuccess },
{ path: '/joyful-selection/orders', component: JoyfulSelectionOrders },
{ path: '/joyful-selection/profile', component: JoyfulSelectionProfile },
{ path: '/joyful-selection/points', component: JoyfulSelectionPoints },
{
path: '/joyful-selection',
component: JoyfulSelectionLayout,
children: [
{ path: '', component: JoyfulSelectionHome },
{ path: 'products', component: JoyfulSelectionProductList },
{ path: 'product-detail', component: JoyfulSelectionProductDetail },
{ path: 'cart', component: JoyfulSelectionCart },
{ path: 'cart/edit', component: JoyfulSelectionCartEdit },
{ path: 'checkout', component: JoyfulSelectionCheckout },
{ path: 'payment', component: JoyfulSelectionPayment },
{ path: 'payment-confirm', component: JoyfulSelectionPaymentConfirm },
{ path: 'payment-success', component: JoyfulSelectionPaymentSuccess },
{ path: 'orders', component: JoyfulSelectionOrders },
{ path: 'profile', component: JoyfulSelectionProfile },
{ path: 'points', component: JoyfulSelectionPoints }
]
},
{ path: '/home-living', component: HomeLiving },
{ path: '/happy-shopping', component: HappyShopping },
{ path: '/fresh-fruit', component: FreshFruit },