rules.js 1.1 KB
import jump from './jump';

export default {
    main: {path: '/pages/index/index', type: jump.switchTab},
    login: {path: ''},
    bindMobile: {path: '/pages/account/bindMobile'},
    chooseArea: {path: '/pages/account/chooseArea'},
    productList: {path: '/pages/product/list/list'},
    productSearch: {path: '/pages/product/search/search'},
    productShop: {path: '/pages/product/list/shop'},
    productDetail: {path: '/pages/product/detail/detail'},
    productCategory: {path: '/pages/product/category/category', type: jump.switchTab},
    home: {path: '/pages/home/home', type: jump.switchTab},
    service: {path: '/pages/home/service/service'},
    address: {path: '/pages/home/address/list', auth: true },
    orderList: {path: '/pages/home/order/order', auth: true },
    orderDetail: {path: '/pages/home/order/detail', auth: true},
    orderExpress: {path: '/pages/home/order/express/express', auth: true},
    cartEnsure: {path: '/pages/cart/ensure/ensure', auth: true },
    cartInvoice: {path: '/pages/cart/invoice/invoice'},
    paySuccess: {path: '/pages/pay/success', type: jump.redirectTo, auth: true},
};