Blame view

yohobuy/m.yohobuy.com/configs/routes.index.ini 5.29 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
; 默认页
routes.index.type = "rewrite"
routes.index.match = "/index.html"
routes.index.route.module = Index
routes.index.route.controller = Index
routes.index.route.action = Index

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

; 搜索页
hf authored
16
routes.search.type = "rewrite"
hf authored
17
routes.search.match = "/(search.html|search)$"
hf authored
18 19 20
routes.search.route.module = Index
routes.search.route.controller = Search
routes.search.route.action = Index
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42

; 注册页
routes.reg.type = "rewrite"
routes.reg.match = "/reg.html"
routes.reg.route.module = Passport
routes.reg.route.controller = Reg
routes.reg.route.action = Index

; 登录页
routes.login.type = "rewrite"
routes.login.match = "/signin.html"
routes.login.route.module = Passport
routes.login.route.controller = Login
routes.login.route.action = Index

; 登录页(国际账号)
routes.interational.type = "rewrite"
routes.interational.match = "/login.html"
routes.interational.route.module = Passport
routes.interational.route.controller = Login
routes.interational.route.action = International
43 44 45 46 47
; 登录页
routes.logout.type = "rewrite"
routes.logout.match = "/passport/signout/index"
routes.logout.route.module = Passport
routes.logout.route.controller = Login
48
routes.logout.route.action = Out
49
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
; 找回密码(手机号)
routes.phoneback.type = "rewrite"
routes.phoneback.match = "/phoneback.html"
routes.phoneback.route.module = Passport
routes.phoneback.route.controller = Back
routes.phoneback.route.action = Mobile

; 找回密码(邮箱)
routes.emailback.type = "rewrite"
routes.emailback.match = "/emailback.html"
routes.emailback.route.module = Passport
routes.emailback.route.controller = Back
routes.emailback.route.action = Email

; 所有品类
65 66 67 68 69 70 71 72
routes.cate.type = "rewrite"
routes.cate.match = "/cate"
routes.cate.route.module = Category
routes.cate.route.controller = Class
routes.cate.route.action = Index

; 品牌一览
routes.brands.type = "rewrite"
73
routes.brands.match = "/brands$"
74 75 76
routes.brands.route.module = Category
routes.brands.route.controller = Brand
routes.brands.route.action = Index
77
78
; 品牌一览搜索页
79 80 81 82 83
routes.brandsearch.type = "rewrite"
routes.brandsearch.match = "/brands/search"
routes.brandsearch.route.module = Category
routes.brandsearch.route.controller = Brand
routes.brandsearch.route.action = Search
84
hf authored
85 86
; 新品到着(NEW)
routes.productnew.type = "rewrite"
87
routes.productnew.match = "/product/new$"
hf authored
88 89 90 91 92 93 94 95 96 97 98
routes.productnew.route.module = Product
routes.productnew.route.controller = Newsale
routes.productnew.route.action = Index

; 折扣专区(SALE)
routes.productsale.type = "rewrite"
routes.productsale.match = "/sale"
routes.productsale.route.module = Product
routes.productsale.route.controller = Newsale
routes.productsale.route.action = Discount
99
; 热销排行榜
hf authored
100 101 102 103 104
routes.productrank.type = "rewrite"
routes.productrank.match = "/hotrank"
routes.productrank.route.module = Product
routes.productrank.route.controller = Newsale
routes.productrank.route.action = Hotrank
105
hf authored
106 107 108 109 110
; 女生首页
routes.girls.type = "rewrite"
routes.girls.match = "/girl$"
routes.girls.route.module = Index
routes.girls.route.controller = Girls
111
routes.girls.route.action = Index
hf authored
112
113 114 115 116 117 118 119
; 商品筛选
routes.goodsfilter.type = "rewrite"
routes.goodsfilter.match = "/search/filter"
routes.goodsfilter.route.module = Index
routes.goodsfilter.route.controller = Search
routes.goodsfilter.route.action = Filter
hf authored
120
; 品牌搜索
121 122 123 124 125
routes.brandsearch.type = "rewrite"
routes.brandsearch.match = "/brands/search$"
routes.brandsearch.route.module = Category
routes.brandsearch.route.controller = Brand
routes.brandsearch.route.action = Search
hf authored
126
127 128 129 130 131 132 133
; 晒单
routes.helpshareorder.type = "rewrite"
routes.helpshareorder.match = "/help/shareorder.html$"
routes.helpshareorder.route.module = Index
routes.helpshareorder.route.controller = Help
routes.helpshareorder.route.action = Shareorder
134 135 136 137 138 139 140 141 142
; 商品详情
routes.product.type = "regex"
routes.product.match = "#/product/pro_([0-9]+)_([0-9]+)/(.*)#"
routes.product.route.module = Product
routes.product.route.controller = Detail
routes.product.route.action = Index
routes.product.map.1 = productId
routes.product.map.2 = goodsId
143 144 145 146 147 148
routes.productintro.type = "regex"
routes.productintro.match = "#/product/intro_([0-9]+)/(.*).html#"
routes.productintro.route.module = Product
routes.productintro.route.controller = Detail
routes.productintro.route.action = Intro
routes.productintro.map.1 = productSkn
149
150 151 152 153 154 155 156
routes.productskn.type = "regex"
routes.productskn.match = "#/product/show_([0-9]+).html#"
routes.productskn.route.module = Product
routes.productskn.route.controller = Detail
routes.productskn.route.action = Show
routes.productskn.map.1 = productSkn
157 158
; 订单相关
routes.cart.type = "rewrite"
159
routes.cart.match = "/home/orders/detail$"
160 161
routes.cart.route.module = Index
routes.cart.route.controller = Home
hf authored
162
routes.cart.route.action = Orderdetail
163 164

; 微信支付接口
165 166 167 168 169
;routes.weixinapi.type = "rewrite"
;routes.weixinapi.match = "/shopping/pay/wechatwapapi$"
;routes.weixinapi.route.module = Index
;routes.weixinapi.route.controller = Home
;routes.weixinapi.route.action = Weixinapi
hf authored
170 171 172 173 174 175 176

; 支付中心 (微信中配置的目录)
routes.pay.type = "rewrite"
routes.pay.match = "/home/orders/pay$"
routes.pay.route.module = Index
routes.pay.route.controller = Home
routes.pay.route.action = Pay