54 lines
2.8 KiB
JavaScript
54 lines
2.8 KiB
JavaScript
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'
|
|
import JoyfulSelectionCart from '@/view/joyful-selection/cart/index.vue'
|
|
import JoyfulSelectionCartEdit from '@/view/joyful-selection/cart/edit/index.vue'
|
|
import JoyfulSelectionCheckout from '@/view/joyful-selection/order/checkout/index.vue'
|
|
import JoyfulSelectionPayment from '@/view/joyful-selection/order/payment/index.vue'
|
|
import JoyfulSelectionPaymentSuccess from '@/view/joyful-selection/order/payment-success/index.vue'
|
|
import JoyfulSelectionAddressList from '@/view/joyful-selection/address/index.vue'
|
|
import JoyfulSelectionAddressEdit from '@/view/joyful-selection/address/edit/index.vue'
|
|
import JoyfulSelectionOrders from '@/view/joyful-selection/profile/orders/index.vue'
|
|
import JoyfulSelectionProfile from '@/view/joyful-selection/profile/index.vue'
|
|
import JoyfulSelectionPoints from '@/view/joyful-selection/profile/points/index.vue'
|
|
import HomeLiving from '@/view/home-living/index.vue'
|
|
import HappyShopping from '@/view/happy-shopping/index.vue'
|
|
import FreshFruit from '@/view/fresh-fruit/index.vue'
|
|
import CuteSelection from '@/view/cute-selection/index.vue'
|
|
|
|
Vue.use(Router)
|
|
|
|
export default new Router({
|
|
routes: [
|
|
{ path: '/', component: SupplierHome },
|
|
{
|
|
path: '/joyful-selection',
|
|
component: JoyfulSelectionLayout,
|
|
children: [
|
|
{ path: '', redirect: 'home' },
|
|
{ path: 'home', 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-success', component: JoyfulSelectionPaymentSuccess },
|
|
{ path: 'address', component: JoyfulSelectionAddressList },
|
|
{ path: 'address/edit', component: JoyfulSelectionAddressEdit },
|
|
{ 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 },
|
|
{ path: '/cute-selection', component: CuteSelection }
|
|
]
|
|
})
|