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

export default {
  home: {path: '/pages/index/index', type: jump.switchTab},
  bindMobile: {path: '/pages/account/bindMobile'},
  login: {path: '/pages/account/login'},
  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/goodsDetail/goodsDetail', report: {paramKey: 'productSkn'}},
  productPool: {path: '/pages/goodsList/productPool', report: {paramKey: 'productSkn'}},
  shopCategory: {path: '/pages/shop/category/category', type: jump.switchTab, report: {pageName: 'category'}},
  shopProductList: {path: '/pages/shop/list/list', report: {pageName: 'shopProductList'}},
  shopGoodsList: {path: '/pages/goodsList/goodsList', report: {pageName: 'goodsList'}},
  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},
  cartGift: {path: '/pages/cart/gift/gift', auth: true, report: {paramKey: 'promotion_id'}},
  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},
  webview: {path: '/pages/webview/webview'}
};