239 lines
9.6 KiB
JavaScript
239 lines
9.6 KiB
JavaScript
import Vue from 'vue'
|
|
import Router from 'vue-router'
|
|
import { normalizeURL, decode } from 'ufo'
|
|
import { interopDefault } from './utils'
|
|
import scrollBehavior from './router.scrollBehavior.js'
|
|
|
|
const _d6c54e1c = () => interopDefault(import('..\\pages\\about_us\\index.vue' /* webpackChunkName: "pages/about_us/index" */))
|
|
const _609166fe = () => interopDefault(import('..\\pages\\category.vue' /* webpackChunkName: "pages/category" */))
|
|
const _18c52282 = () => interopDefault(import('..\\pages\\confirm_order.vue' /* webpackChunkName: "pages/confirm_order" */))
|
|
const _4bed1400 = () => interopDefault(import('..\\pages\\demand_list\\index.vue' /* webpackChunkName: "pages/demand_list/index" */))
|
|
const _c773e358 = () => interopDefault(import('..\\pages\\get_coupons.vue' /* webpackChunkName: "pages/get_coupons" */))
|
|
const _493f9b42 = () => interopDefault(import('..\\pages\\help_center\\index.vue' /* webpackChunkName: "pages/help_center/index" */))
|
|
const _504a0088 = () => interopDefault(import('..\\pages\\news_list\\index.vue' /* webpackChunkName: "pages/news_list/index" */))
|
|
const _01415e36 = () => interopDefault(import('..\\pages\\payment.vue' /* webpackChunkName: "pages/payment" */))
|
|
const _670719bd = () => interopDefault(import('..\\pages\\search_goodsList.vue' /* webpackChunkName: "pages/search_goodsList" */))
|
|
const _59a05242 = () => interopDefault(import('..\\pages\\seckill.vue' /* webpackChunkName: "pages/seckill" */))
|
|
const _5a240f79 = () => interopDefault(import('..\\pages\\shop_cart.vue' /* webpackChunkName: "pages/shop_cart" */))
|
|
const _29ab62c8 = () => interopDefault(import('..\\pages\\shop_street.vue' /* webpackChunkName: "pages/shop_street" */))
|
|
const _391bb0f8 = () => interopDefault(import('..\\pages\\shop_street_detail.vue' /* webpackChunkName: "pages/shop_street_detail" */))
|
|
const _f731505a = () => interopDefault(import('..\\pages\\special_area.vue' /* webpackChunkName: "pages/special_area" */))
|
|
const _23211b57 = () => interopDefault(import('..\\pages\\store_settled\\index.vue' /* webpackChunkName: "pages/store_settled/index" */))
|
|
const _7e6be170 = () => interopDefault(import('..\\pages\\account\\forget_pwd.vue' /* webpackChunkName: "pages/account/forget_pwd" */))
|
|
const _33642a1c = () => interopDefault(import('..\\pages\\account\\login.vue' /* webpackChunkName: "pages/account/login" */))
|
|
const _33916940 = () => interopDefault(import('..\\pages\\account\\register.vue' /* webpackChunkName: "pages/account/register" */))
|
|
const _112d931a = () => interopDefault(import('..\\pages\\demand_list\\demand_detail.vue' /* webpackChunkName: "pages/demand_list/demand_detail" */))
|
|
const _944b8580 = () => interopDefault(import('..\\pages\\help_center\\help_center_detail.vue' /* webpackChunkName: "pages/help_center/help_center_detail" */))
|
|
const _87a6e340 = () => interopDefault(import('..\\pages\\news_list\\news_list_detail.vue' /* webpackChunkName: "pages/news_list/news_list_detail" */))
|
|
const _4d5541c8 = () => interopDefault(import('..\\pages\\store_settled\\detail.vue' /* webpackChunkName: "pages/store_settled/detail" */))
|
|
const _42e7b31c = () => interopDefault(import('..\\pages\\store_settled\\record.vue' /* webpackChunkName: "pages/store_settled/record" */))
|
|
const _63cbb8a9 = () => interopDefault(import('..\\pages\\user\\address\\index.vue' /* webpackChunkName: "pages/user/address/index" */))
|
|
const _040d6b14 = () => interopDefault(import('..\\pages\\user\\after_sales\\index.vue' /* webpackChunkName: "pages/user/after_sales/index" */))
|
|
const _307381e9 = () => interopDefault(import('..\\pages\\user\\collection.vue' /* webpackChunkName: "pages/user/collection" */))
|
|
const _40684652 = () => interopDefault(import('..\\pages\\user\\coupons.vue' /* webpackChunkName: "pages/user/coupons" */))
|
|
const _445779ca = () => interopDefault(import('..\\pages\\user\\evaluation\\index.vue' /* webpackChunkName: "pages/user/evaluation/index" */))
|
|
const _3d5901cf = () => interopDefault(import('..\\pages\\user\\order\\index.vue' /* webpackChunkName: "pages/user/order/index" */))
|
|
const _3a321624 = () => interopDefault(import('..\\pages\\user\\profile.vue' /* webpackChunkName: "pages/user/profile" */))
|
|
const _f7dd349c = () => interopDefault(import('..\\pages\\user\\user_wallet.vue' /* webpackChunkName: "pages/user/user_wallet" */))
|
|
const _72ece90a = () => interopDefault(import('..\\pages\\user\\after_sales\\after_sale_details.vue' /* webpackChunkName: "pages/user/after_sales/after_sale_details" */))
|
|
const _63b0ac88 = () => interopDefault(import('..\\pages\\user\\after_sales\\apply_result.vue' /* webpackChunkName: "pages/user/after_sales/apply_result" */))
|
|
const _7ec532a6 = () => interopDefault(import('..\\pages\\user\\after_sales\\apply_sale.vue' /* webpackChunkName: "pages/user/after_sales/apply_sale" */))
|
|
const _f1327f40 = () => interopDefault(import('..\\pages\\user\\evaluation\\evaluate.vue' /* webpackChunkName: "pages/user/evaluation/evaluate" */))
|
|
const _061a47a4 = () => interopDefault(import('..\\pages\\user\\order\\detail.vue' /* webpackChunkName: "pages/user/order/detail" */))
|
|
const _01725502 = () => interopDefault(import('..\\pages\\index.vue' /* webpackChunkName: "pages/index" */))
|
|
const _5db79a01 = () => interopDefault(import('..\\pages\\goods_details\\_id.vue' /* webpackChunkName: "pages/goods_details/_id" */))
|
|
const _5293c9fc = () => interopDefault(import('..\\pages\\goods_list\\_type.vue' /* webpackChunkName: "pages/goods_list/_type" */))
|
|
|
|
const emptyFn = () => {}
|
|
|
|
Vue.use(Router)
|
|
|
|
export const routerOptions = {
|
|
mode: 'history',
|
|
base: '/',
|
|
linkActiveClass: 'nuxt-link-active',
|
|
linkExactActiveClass: 'nuxt-link-exact-active',
|
|
scrollBehavior,
|
|
|
|
routes: [{
|
|
path: "/about_us",
|
|
component: _d6c54e1c,
|
|
name: "about_us"
|
|
}, {
|
|
path: "/category",
|
|
component: _609166fe,
|
|
name: "category"
|
|
}, {
|
|
path: "/confirm_order",
|
|
component: _18c52282,
|
|
name: "confirm_order"
|
|
}, {
|
|
path: "/demand_list",
|
|
component: _4bed1400,
|
|
name: "demand_list"
|
|
}, {
|
|
path: "/get_coupons",
|
|
component: _c773e358,
|
|
name: "get_coupons"
|
|
}, {
|
|
path: "/help_center",
|
|
component: _493f9b42,
|
|
name: "help_center"
|
|
}, {
|
|
path: "/news_list",
|
|
component: _504a0088,
|
|
name: "news_list"
|
|
}, {
|
|
path: "/payment",
|
|
component: _01415e36,
|
|
name: "payment"
|
|
}, {
|
|
path: "/search_goodsList",
|
|
component: _670719bd,
|
|
name: "search_goodsList"
|
|
}, {
|
|
path: "/seckill",
|
|
component: _59a05242,
|
|
name: "seckill"
|
|
}, {
|
|
path: "/shop_cart",
|
|
component: _5a240f79,
|
|
name: "shop_cart"
|
|
}, {
|
|
path: "/shop_street",
|
|
component: _29ab62c8,
|
|
name: "shop_street"
|
|
}, {
|
|
path: "/shop_street_detail",
|
|
component: _391bb0f8,
|
|
name: "shop_street_detail"
|
|
}, {
|
|
path: "/special_area",
|
|
component: _f731505a,
|
|
name: "special_area"
|
|
}, {
|
|
path: "/store_settled",
|
|
component: _23211b57,
|
|
name: "store_settled"
|
|
}, {
|
|
path: "/account/forget_pwd",
|
|
component: _7e6be170,
|
|
name: "account-forget_pwd"
|
|
}, {
|
|
path: "/account/login",
|
|
component: _33642a1c,
|
|
name: "account-login"
|
|
}, {
|
|
path: "/account/register",
|
|
component: _33916940,
|
|
name: "account-register"
|
|
}, {
|
|
path: "/demand_list/demand_detail",
|
|
component: _112d931a,
|
|
name: "demand_list-demand_detail"
|
|
}, {
|
|
path: "/help_center/help_center_detail",
|
|
component: _944b8580,
|
|
name: "help_center-help_center_detail"
|
|
}, {
|
|
path: "/news_list/news_list_detail",
|
|
component: _87a6e340,
|
|
name: "news_list-news_list_detail"
|
|
}, {
|
|
path: "/store_settled/detail",
|
|
component: _4d5541c8,
|
|
name: "store_settled-detail"
|
|
}, {
|
|
path: "/store_settled/record",
|
|
component: _42e7b31c,
|
|
name: "store_settled-record"
|
|
}, {
|
|
path: "/user/address",
|
|
component: _63cbb8a9,
|
|
name: "user-address"
|
|
}, {
|
|
path: "/user/after_sales",
|
|
component: _040d6b14,
|
|
name: "user-after_sales"
|
|
}, {
|
|
path: "/user/collection",
|
|
component: _307381e9,
|
|
name: "user-collection"
|
|
}, {
|
|
path: "/user/coupons",
|
|
component: _40684652,
|
|
name: "user-coupons"
|
|
}, {
|
|
path: "/user/evaluation",
|
|
component: _445779ca,
|
|
name: "user-evaluation"
|
|
}, {
|
|
path: "/user/order",
|
|
component: _3d5901cf,
|
|
name: "user-order"
|
|
}, {
|
|
path: "/user/profile",
|
|
component: _3a321624,
|
|
name: "user-profile"
|
|
}, {
|
|
path: "/user/user_wallet",
|
|
component: _f7dd349c,
|
|
name: "user-user_wallet"
|
|
}, {
|
|
path: "/user/after_sales/after_sale_details",
|
|
component: _72ece90a,
|
|
name: "user-after_sales-after_sale_details"
|
|
}, {
|
|
path: "/user/after_sales/apply_result",
|
|
component: _63b0ac88,
|
|
name: "user-after_sales-apply_result"
|
|
}, {
|
|
path: "/user/after_sales/apply_sale",
|
|
component: _7ec532a6,
|
|
name: "user-after_sales-apply_sale"
|
|
}, {
|
|
path: "/user/evaluation/evaluate",
|
|
component: _f1327f40,
|
|
name: "user-evaluation-evaluate"
|
|
}, {
|
|
path: "/user/order/detail",
|
|
component: _061a47a4,
|
|
name: "user-order-detail"
|
|
}, {
|
|
path: "/",
|
|
component: _01725502,
|
|
name: "index"
|
|
}, {
|
|
path: "/goods_details/:id?",
|
|
component: _5db79a01,
|
|
name: "goods_details-id"
|
|
}, {
|
|
path: "/goods_list/:type?",
|
|
component: _5293c9fc,
|
|
name: "goods_list-type"
|
|
}],
|
|
|
|
fallback: false
|
|
}
|
|
|
|
export function createRouter (ssrContext, config) {
|
|
const base = (config._app && config._app.basePath) || routerOptions.base
|
|
const router = new Router({ ...routerOptions, base })
|
|
|
|
// TODO: remove in Nuxt 3
|
|
const originalPush = router.push
|
|
router.push = function push (location, onComplete = emptyFn, onAbort) {
|
|
return originalPush.call(this, location, onComplete, onAbort)
|
|
}
|
|
|
|
const resolve = router.resolve.bind(router)
|
|
router.resolve = (to, current, append) => {
|
|
if (typeof to === 'string') {
|
|
to = normalizeURL(to)
|
|
}
|
|
return resolve(to, current, append)
|
|
}
|
|
|
|
return router
|
|
}
|