routes.product.ini 2.83 KB
; 折扣专区(SALE)
routes.productsale.type = "rewrite"
routes.productsale.match = "/sale"
routes.productsale.route.module = Product
routes.productsale.route.controller = List
routes.productsale.route.action = Sale

; list专区(new)
routes.productnew.type = "rewrite"
routes.productnew.match = "/new"
routes.productnew.route.module = Product
routes.productnew.route.controller = List
routes.productnew.route.action = New

;list(根据product_skn获取产品图片信息)
routes.productgetpic.type = "rewrite"
routes.productgetpic.match = "/getProductPic"
routes.productgetpic.route.module = Product
routes.productgetpic.route.controller = List
routes.productgetpic.route.action = getProductPic

;api(search api suggest)
routes.searchsuggest.type = "rewrite"
routes.searchsuggest.match = "/api/suggest"
routes.searchsuggest.route.module = Product
routes.searchsuggest.route.controller = Search
routes.searchsuggest.route.action = suggest

;error(suggest 错误提示)
routes.searcherror.type = "rewrite"
routes.searcherror.match = "/error"
routes.searcherror.route.module = Product
routes.searcherror.route.controller = Search
routes.searcherror.route.action = Error

;about(品牌介绍)
routes.brandabout.type = "rewrite"
routes.brandabout.match = "/about"
routes.brandabout.route.module = Product
routes.brandabout.route.controller = Index
routes.brandabout.route.action = About

;aboutShop(品牌介绍)
routes.aboutShop.type = "rewrite"
routes.aboutShop.match = "/aboutShop"
routes.aboutShop.route.module = Product
routes.aboutShop.route.controller = Index
routes.aboutShop.route.action = aboutShop

; 商品详情
routes.item.type = "regex"
routes.item.match = "#/product/pro_([0-9]+)_([0-9]+)/(.*)#"
routes.item.route.module = Product
routes.item.route.controller = Item
routes.item.route.action = Index
routes.item.map.1 = productId
routes.item.map.2 = goodsId

;店铺装修
routes.brandshopList.type = "rewrite"
routes.brandshopList.match = "/shoplist"
routes.brandshopList.route.module = Product
routes.brandshopList.route.controller = Index
routes.brandshopList.route.action = shopList

;店铺装修-收藏与取消
routes.brandFavorite.type = "rewrite"
routes.brandFavorite.match = "/shoplist/setFavorite"
routes.brandFavorite.route.module = Product
routes.brandFavorite.route.controller = Index
routes.brandFavorite.route.action = setFavorite

routes.itemshow.type = "regex"
routes.itemshow.match = "#/product/show_([0-9]+)_([0-9]+).html#"
routes.itemshow.route.module = Product
routes.itemshow.route.controller = Item
routes.itemshow.route.action = Show
routes.itemshow.map.1 = productId
routes.itemshow.map.2 = productSkn

routes.error.type = "rewrite"
routes.error.match = "/error.html"
routes.error.route.module = Index
routes.error.route.controller = Error
routes.error.route.action = Index