routes.product.ini
2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
; 折扣专区(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
; 商品详情
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.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