rules.js
1.44 KB
import jump from './jump';
export default {
home: {path: '/pages/index/index', type: jump.switchTab},
bindMobile: {path: '/pages/account/bindMobile'},
chooseArea: {path: '/pages/account/chooseArea'},
productList: {path: '/pages/product/list/list', report: {
pageName: 'goodsList', pageParam: '', paramKey: 'sort'
}},
productSearch: {path: '/pages/product/search/search'},
productShop: {path: '/pages/product/list/shop', report: {pageName: 'brandStore', paramKey: 'shopId'}},
productDetail: {path: '/pages/product/detail/detail', report: {paramKey: 'productSkn'}},
shopCategory: {path: '/pages/shop/category/category', type: jump.switchTab, report: {pageName: 'category'}},
userCenter: {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, report: {paramKey: 'type'}},
orderDetail: {path: '/pages/home/order/detail', auth: true, report: {paramKey: 'orderCode'}},
orderExpress: {path: '/pages/home/order/express/express', auth: true, report: {paramKey: 'order_code'}},
shoppingCart: {path: '/pages/cart/cart', type: jump.switchTab, auth: true},
cartEnsure: {path: '/pages/cart/ensure/ensure', auth: true, report: {paramKey: 'productSku'}},
cartInvoice: {path: '/pages/cart/invoice/invoice'},
paySuccess: {path: '/pages/pay/success', type: jump.redirectTo, auth: true},
};