shopxo/route/route.config

86 lines
3.1 KiB
Plaintext
Raw Normal View History

2018-12-31 19:07:03 +08:00
<?php
// +----------------------------------------------------------------------
// | ShopXO 国内领先企业级B2C免费开源电商系统
// +----------------------------------------------------------------------
// | Copyright (c) 2011~2018 http://shopxo.net All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Devil
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 路由规则
// +----------------------------------------------------------------------
// 分隔符
$ds = MyC('common_route_separator', '-', true);
// 首页
Route::get('/', 'index/index');
// 商品详情
Route::get('goods'.$ds.':id', 'index/goods/index');
// 搜索
Route::get('search'.$ds.'c'.$ds.':category_id', 'index/search/index');
Route::get('search'.$ds.'k'.$ds.':keywords', 'index/search/index');
Route::rule('search', 'index/search/index', 'GET|POST');
// 分类
Route::get('category', 'index/category/index');
2018-12-31 19:15:48 +08:00
// 自定义页面
Route::get('custom'.$ds.':id', 'index/customview/index');
2018-12-31 19:07:03 +08:00
// 购物车
Route::get('cart', 'index/cart/index');
// 订单确认
Route::rule('buy', 'index/buy/index', 'GET|POST');
// 文章
Route::get('article'.$ds.':id', 'index/article/index');
// 用户
Route::get('user', 'index/user/index');
Route::get('login', 'index/user/logininfo');
Route::get('login'.$ds.'modal', 'index/user/modallogininfo');
2018-12-31 19:29:52 +08:00
Route::get('regster', 'index/user/reginfo');
Route::get('regster'.$ds.'sms', 'index/user/smsreginfo');
Route::get('regster'.$ds.'email', 'index/user/emailreginfo');
2018-12-31 19:07:03 +08:00
Route::get('forget', 'index/user/forgetpwdinfo');
Route::get('logout', 'index/user/logout');
// 用户消息
Route::rule('user'.$ds.'message', 'index/message/index', 'GET|POST');
// 用户积分
Route::rule('user'.$ds.'integral', 'index/userintegral/index', 'GET|POST');
// 我的足迹
Route::rule('user'.$ds.'goods'.$ds.'browse', 'index/usergoodsbrowse/index', 'GET|POST');
// 用户资料
Route::get('user'.$ds.'personal', 'index/personal/index');
Route::get('user'.$ds.'personal'.$ds.'save', 'index/personal/saveinfo');
// 用户地址
Route::get('user'.$ds.'address', 'index/useraddress/index');
// 用户安全
Route::get('user'.$ds.'safety', 'index/safety/index');
Route::get('user'.$ds.'safety'.$ds.'login', 'index/safety/loginpwdinfo');
Route::get('user'.$ds.'safety'.$ds.'mobile', 'index/safety/mobileinfo');
Route::get('user'.$ds.'safety'.$ds.'new'.$ds.'mobile', 'index/safety/newmobileinfo');
Route::get('user'.$ds.'safety'.$ds.'email', 'index/safety/emailinfo');
Route::get('user'.$ds.'safety'.$ds.'new'.$ds.'email', 'index/safety/newemailinfo');
// 用户订单
Route::rule('user'.$ds.'order', 'index/order/index', 'GET|POST');
Route::get('user'.$ds.'order'.$ds.'detail'.$ds.':id', 'index/order/detail');
Route::get('user'.$ds.'order'.$ds.'comments'.$ds.':id', 'index/order/comments');
// 用户收藏/商品
Route::rule('user'.$ds.'favor'.$ds.'goods', 'index/userfavor/goods', 'GET|POST');
?>