You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

432 lines
30 KiB

8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
7 years ago
8 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
8 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
8 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Web Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register web routes for your application. These
  8. | routes are loaded by the RouteServiceProvider within a group which
  9. | contains the "web" middleware group. Now create something great!
  10. |
  11. */
  12. //wap路由,要放到最前面,否则解析不到
  13. Route::group(['domain' => env('APP_SUBDOMAIN'), 'namespace' => 'Wap'], function () {
  14. Route::get('/', 'IndexController@index')->name('wap_home');
  15. Route::get('/page404', 'IndexController@page404')->name('wap_page404'); //404页面
  16. Route::get('/tags', 'IndexController@tags')->name('wap_tags');
  17. Route::get('/search/{id}', 'IndexController@search')->name('wap_search'); //搜索页面
  18. Route::get('/p/{id}', 'IndexController@detail')->name('wap_detail'); //详情页
  19. Route::get('/cat{cat}/{page}', 'IndexController@category'); //分类页,分页
  20. Route::get('/cat{cat}', 'IndexController@category')->name('wap_category'); //分类页
  21. Route::get('/tag{tag}/{page}', 'IndexController@tag'); //标签页,分页
  22. Route::get('/tag{tag}', 'IndexController@tag')->name('wap_tag'); //标签页
  23. Route::get('/page/{id}', 'IndexController@page')->name('wap_singlepage'); //单页
  24. Route::get('/goods/{id}', 'IndexController@goods')->name('wap_goods'); //商品详情页
  25. Route::get('/goodstype{cat}', 'IndexController@goodstype')->name('wap_goodstype'); //产品分类页
  26. Route::get('/sitemap.xml', 'IndexController@sitemap')->name('wap_sitemap'); //sitemap
  27. });
  28. //前台路由
  29. Route::group(['namespace' => 'Home'], function () {
  30. Route::get('/', 'IndexController@index')->name('home');
  31. Route::get('/page404', 'IndexController@page404')->name('page404'); //404页面
  32. Route::get('/tags', 'IndexController@tags')->name('home_tags');
  33. Route::get('/search/{id}', 'IndexController@search')->name('home_search'); //搜索页面
  34. Route::get('/p/{id}', 'IndexController@detail')->name('home_detail'); //详情页
  35. Route::get('/cat{cat}/{page}', 'IndexController@category'); //分类页,分页
  36. Route::get('/cat{cat}', 'IndexController@category')->name('home_category'); //分类页
  37. Route::get('/arclist', 'IndexController@arclist')->name('home_arclist'); //文章列表
  38. Route::get('/tag{tag}/{page}', 'IndexController@tag'); //标签页,分页
  39. Route::get('/tag{tag}', 'IndexController@tag')->name('home_tag'); //标签页
  40. Route::get('/page/{id}', 'IndexController@page')->name('home_singlepage'); //单页
  41. Route::get('/goods/{id}', 'IndexController@goods')->name('home_goods'); //商品详情页
  42. Route::get('/goodslist', 'IndexController@goodslist')->name('home_goodslist'); //产品分类页
  43. Route::get('/brandlist', 'IndexController@brandList')->name('home_brandlist'); //品牌列表
  44. Route::get('/sitemap.xml', 'IndexController@sitemap')->name('home_sitemap');//sitemap
  45. Route::get('/test', 'IndexController@test')->name('home_test'); //测试
  46. Route::get('/aaa', function () {
  47. dd('wap');
  48. });
  49. });
  50. //微信路由,无需登录
  51. Route::group(['prefix' => 'weixin', 'namespace' => 'Weixin'], function () {
  52. Route::get('/', 'IndexController@index')->name('weixin');
  53. Route::get('/category', 'IndexController@category')->name('weixin_category');
  54. Route::get('/category_goods_list', 'GoodsController@categoryGoodsList')->name('weixin_category_goods_list'); //产品分类页
  55. Route::get('/page404', 'IndexController@page404')->name('weixin_page404'); //404页面
  56. Route::get('/search', 'IndexController@search')->name('weixin_search'); //搜索页面
  57. Route::get('/p/{id}', 'ArticleController@detail')->name('weixin_article_detail'); //文章详情页
  58. Route::get('/cat{cat}', 'ArticleController@category')->name('weixin_article_category'); //分类页
  59. Route::get('/tag{tag}', 'IndexController@tag')->name('weixin_tag'); //标签页
  60. Route::get('/page/{id}', 'IndexController@page')->name('weixin_singlepage');//单页
  61. Route::get('/goods/{id}', 'GoodsController@goodsDetail')->name('weixin_goods_detail'); //商品详情页
  62. Route::get('/goodslist', 'GoodsController@goodsList')->name('weixin_goods_list'); //商品筛选列表
  63. Route::get('/brandlist', 'GoodsBrandController@brandList')->name('weixin_brand_list'); //品牌列表
  64. Route::get('/brand_detail/{id}', 'GoodsBrandController@brandDetail')->name('weixin_brand_detail'); //品牌详情
  65. Route::get('/bonus_list', 'BonusController@bonusList')->name('weixin_bonus_list');
  66. Route::any('/wxpay_notify', 'WxPayController@wxpayNotify')->name('weixin_wxpay_notify'); //微信回调
  67. Route::any('/wxoauth', 'UserController@oauth')->name('weixin_wxoauth'); //微信网页授权
  68. Route::any('/login', 'UserController@login')->name('weixin_login');
  69. Route::any('/register', 'UserController@register')->name('weixin_register');
  70. Route::get('/logout', 'UserController@logout')->name('weixin_user_logout'); //退出
  71. //页面跳转
  72. Route::get('/jump', 'IndexController@jump')->name('weixin_jump');
  73. Route::get('/test', 'IndexController@test')->name('weixin_test'); //测试
  74. });
  75. //微信路由,需登录,全局
  76. Route::group(['prefix' => 'weixin', 'namespace' => 'Weixin', 'middleware' => ['web','wxlogin']], function () {
  77. //个人中心
  78. Route::get('/user', 'UserController@index')->name('weixin_user');
  79. Route::get('/userinfo', 'UserController@userinfo')->name('weixin_userinfo');
  80. Route::get('/user_account', 'UserController@userAccount')->name('weixin_user_account');
  81. Route::get('/user_money_list', 'UserController@userMoneyList')->name('weixin_user_money_list');
  82. Route::get('/user_point_list', 'UserController@userPointList')->name('weixin_user_point_list');
  83. Route::get('/user_message_list', 'UserController@userMessageList')->name('weixin_user_message_list');
  84. Route::get('/user_distribution', 'UserController@userDistribution')->name('weixin_user_distribution');
  85. Route::any('/user_withdraw', 'UserController@userWithdraw')->name('weixin_user_withdraw');
  86. Route::get('/user_withdraw_list', 'UserController@userWithdrawList')->name('weixin_user_withdraw_list');
  87. //用户充值
  88. Route::get('/user_recharge', 'UserController@userRecharge')->name('weixin_user_recharge');
  89. Route::get('/user_recharge_order', 'UserController@userRechargeOrder')->name('weixin_user_recharge_order');
  90. //优惠券、红包
  91. Route::get('/user_bonus_list', 'UserController@userBonusList')->name('weixin_user_bonus_list');
  92. //浏览记录
  93. Route::get('/user_goods_history', 'UserController@userGoodsHistory')->name('weixin_user_goods_history');
  94. Route::get('/user_goods_history_delete', 'UserController@userGoodsHistoryDelete')->name('weixin_user_goods_history_delete');
  95. Route::get('/user_goods_history_clear', 'UserController@userGoodsHistoryClear')->name('weixin_user_goods_history_clear');
  96. //商品收藏
  97. Route::get('/collect_goods', 'CollectGoodsController@index')->name('weixin_user_collect_goods');
  98. //购物车
  99. Route::get('/cart', 'CartController@index')->name('weixin_cart');
  100. Route::get('/cart_checkout/{ids}', 'CartController@cartCheckout')->name('weixin_cart_checkout');
  101. Route::post('/cart_done', 'CartController@cartDone')->name('weixin_cart_done');
  102. //订单
  103. Route::get('/order_pay/{id}', 'OrderController@pay')->name('weixin_order_pay'); //订单支付
  104. Route::post('/order_dopay', 'OrderController@dopay')->name('weixin_order_dopay'); //订单支付
  105. Route::get('/order_list', 'OrderController@orderList')->name('weixin_order_list'); //全部订单列表
  106. Route::get('/order_detail', 'OrderController@orderDetail')->name('weixin_order_detail'); //订单详情
  107. Route::get('/order_wxpay', 'OrderController@orderWxpay')->name('weixin_order_wxpay'); //订单微信支付
  108. Route::get('/order_yuepay', 'OrderController@orderYuepay')->name('weixin_order_yuepay'); //订单余额支付
  109. Route::any('/order_comment', 'OrderController@orderComment')->name('weixin_order_comment'); //订单评价
  110. //收货地址
  111. Route::get('/user_address', 'AddressController@index')->name('weixin_user_address_list');
  112. Route::get('/user_address_add', 'AddressController@userAddressAdd')->name('weixin_user_address_add');
  113. Route::get('/user_address_update', 'AddressController@userAddressUpdate')->name('weixin_user_address_update');
  114. //意见反馈
  115. Route::get('/user_feedback_add', 'FeedbackController@userFeedbackAdd')->name('weixin_user_feedback_add');
  116. });
  117. //无需token验证,全局
  118. Route::group(['middleware' => ['web']], function () {
  119. Route::get('/weixin_user_recharge_order_detail', 'Weixin\UserController@userRechargeOrderDetail')->name('weixin_user_recharge_order_detail'); //微信充值支付,为了配合公众号支付授权目录
  120. Route::post('/dataapi/listarc', 'Api\IndexController@listarc')->name('api_listarc');
  121. Route::post('/dataapi/customer_login', 'Api\WechatAuthController@customerLogin');
  122. Route::post('/dataapi/', 'Api\UserController@signin'); //签到
  123. });
  124. //API接口路由,无需token验证
  125. Route::group(['prefix' => 'dataapi', 'namespace' => 'Api', 'middleware' => ['web']], function () {
  126. //轮播图
  127. Route::get('/slide_list', 'SlideController@slideList');
  128. //文章
  129. Route::get('/article_list', 'ArticleController@articleList');
  130. Route::get('/article_detail', 'ArticleController@articleDetail');
  131. Route::get('/arctype_list', 'ArctypeController@arctypeList');
  132. Route::get('/arctype_detail', 'ArctypeController@arctypeDetail');
  133. //商品
  134. Route::get('/goods_detail', 'GoodsController@goodsDetail'); //商品详情
  135. Route::get('/goods_list', 'GoodsController@goodsList'); //商品列表
  136. Route::get('/goodstype_list', 'GoodsTypeController@goodsTypeList'); //商品分类列表
  137. Route::get('/goods_searchword_list', 'GoodsController@goodsSearchwordList'); //商品搜索词列表
  138. Route::get('/goodsbrand_detail', 'GoodsBrandController@goodsBrandDetail'); //商品品牌详情
  139. Route::get('/goodsbrand_list', 'GoodsBrandController@goodsBrandList'); //商品品牌列表
  140. //地区,省市区
  141. Route::get('/region_list', 'RegionController@regionList');
  142. Route::get('/region_detail', 'RegionController@regionDetail');
  143. //用户
  144. Route::post('/wx_register', 'UserController@wxRegister'); //注册
  145. Route::post('/wx_login', 'UserController@wxLogin'); //登录
  146. Route::post('/wx_oauth_register', 'UserController@wxOauthRegister'); //微信授权注册登录
  147. //可用的优惠券列表
  148. Route::get('/bonus_list', 'BonusController@bonusList'); //可用获取的优惠券列表
  149. });
  150. //API接口路由,需token验证
  151. Route::group(['prefix' => 'dataapi', 'namespace' => 'Api', 'middleware' => ['web','token']], function () {
  152. //用户中心
  153. Route::post('/user_signin', 'UserController@signin'); //签到
  154. Route::get('/user_info', 'UserController@userInfo'); //用户详细信息
  155. Route::post('/user_info_update', 'UserController@userInfoUpdate'); //修改用户信息
  156. Route::post('/user_password_update', 'UserController@userPasswordUpdate'); //修改用户密码、支付密码
  157. Route::get('/user_list', 'UserController@userList'); //用户列表
  158. Route::post('/user_money_update', 'UserController@userMoneyUpdate'); //修改用户余额
  159. //用户充值
  160. Route::post('/user_recharge_add', 'UserRechargeController@userRechargeAdd');
  161. Route::get('/user_recharge_detail', 'UserRechargeController@userRechargeDetail');
  162. Route::get('/user_recharge_list', 'UserRechargeController@userRechargeList');
  163. //用户余额(钱包)
  164. Route::get('/user_money_list', 'UserMoneyController@userMoneyList');
  165. Route::post('/user_money_add', 'UserMoneyController@userMoneyAdd');
  166. //用户消息
  167. Route::get('/user_message_list', 'UserMessageController@userMessageList');
  168. Route::post('/user_message_add', 'UserMessageController@userMessageAdd');
  169. Route::post('/user_message_update', 'UserMessageController@userMessageUpdate');
  170. //用户提现
  171. Route::get('/user_withdraw_list', 'UserWithdrawController@userWithdrawList');
  172. Route::post('/user_withdraw_add', 'UserWithdrawController@userWithdrawAdd');
  173. Route::post('/user_withdraw_update', 'UserWithdrawController@userWithdrawUpdate');
  174. //浏览记录
  175. Route::get('/user_goods_history_list', 'UserGoodsHistoryController@userGoodsHistoryList'); //我的足迹列表
  176. Route::post('/user_goods_history_delete', 'UserGoodsHistoryController@userGoodsHistoryDelete'); //我的足迹删除一条
  177. Route::post('/user_goods_history_clear', 'UserGoodsHistoryController@userGoodsHistoryClear'); //我的足迹清空
  178. Route::post('/user_goods_history_add', 'UserGoodsHistoryController@userGoodsHistoryAdd'); //我的足迹添加
  179. //评价
  180. Route::get('/comment_list', 'CommentController@commentList'); //商品评价列表
  181. Route::post('/comment_add', 'CommentController@commentAdd'); //商品评价添加
  182. Route::post('/comment_batch_add', 'CommentController@commentBatchAdd'); //商品评价批量添加
  183. Route::post('/comment_update', 'CommentController@commentUpdate'); //商品评价修改
  184. Route::post('/comment_delete', 'CommentController@commentDelete'); //商品评价删除
  185. //商品收藏
  186. Route::get('/collect_goods_list', 'CollectGoodsController@collectGoodsList'); //收藏商品列表
  187. Route::post('/collect_goods_add', 'CollectGoodsController@collectGoodsAdd'); //收藏商品
  188. Route::post('/collect_goods_delete', 'CollectGoodsController@collectGoodsDelete'); //取消收藏商品
  189. //订单
  190. Route::post('/order_add', 'OrderController@orderAdd'); //生成订单
  191. Route::post('/order_update', 'OrderController@orderUpdate'); //订单修改
  192. Route::post('/order_status_update', 'OrderController@orderStatusUpdate'); //订单状态修改
  193. Route::get('/order_list', 'OrderController@orderList'); //订单列表
  194. Route::get('/order_detail', 'OrderController@orderDetail'); //订单详情
  195. //购物车
  196. Route::get('/cart_list', 'CartController@cartList'); //购物车列表
  197. Route::post('/cart_clear', 'CartController@cartClear'); //清空购物车
  198. Route::post('/cart_add', 'CartController@cartAdd'); //添加购物车
  199. Route::post('/cart_delete', 'CartController@cartDelete'); //删除购物
  200. Route::get('/cart_checkout_goods_list', 'CartController@cartCheckoutGoodsList'); //购物车结算商品列表
  201. //分销
  202. //积分
  203. Route::get('/user_point_list', 'UserPointController@userPointList'); //用户积分列表
  204. Route::post('/user_point_add', 'UserPointController@userPointAdd');
  205. //优惠券
  206. Route::get('/user_available_bonus_list', 'UserBonusController@userAvailableBonusList'); //用户结算时获取可用优惠券列表
  207. Route::get('/user_bonus_list', 'UserBonusController@userBonusList'); //用户优惠券列表
  208. Route::post('/user_bonus_add', 'UserBonusController@userBonusAdd'); //用户获取优惠券
  209. Route::post('/bonus_add', 'BonusController@bonusAdd'); //添加优惠券
  210. Route::post('/bonus_update', 'BonusController@bonusUpdate'); //修改优惠券
  211. Route::post('/bonus_delete', 'BonusController@bonusDelete'); //删除优惠券
  212. //微信
  213. //意见反馈
  214. Route::get('/feedback_list', 'FeedBackController@feedbackList');
  215. Route::post('/feedback_add', 'FeedBackController@feedbackAdd');
  216. //其它
  217. Route::get('/verifycode_check', 'VerifyCodeController@verifyCodeCheck'); //验证码校验
  218. Route::get('/andriod_upgrade', 'IndexController@andriodUpgrade'); //安卓升级
  219. Route::get('/payment_list', 'PaymentController@paymentList'); //支付方式列表
  220. //图片上传
  221. Route::post('/image_upload', 'ImageController@imageUpload'); //普通文件/图片上传
  222. Route::post('/multiple_file_upload', 'ImageController@multipleFileUpload'); //多文件上传
  223. //二维码
  224. Route::get('/create_simple_qrcode', 'QrcodeController@createSimpleQrcode');
  225. //收货地址
  226. Route::get('/user_address_list', 'UserAddressController@userAddressList');
  227. Route::get('/user_address_detail', 'UserAddressController@userAddressDetail');
  228. Route::get('/user_default_address', 'UserAddressController@userDefaultAddress'); //获取用户默认地址
  229. Route::post('/user_address_setdefault', 'UserAddressController@userAddressSetDefault');
  230. Route::post('/user_address_add', 'UserAddressController@userAddressAdd');
  231. Route::post('/user_address_update', 'UserAddressController@userAddressUpdate');
  232. Route::post('/user_address_delete', 'UserAddressController@userAddressDelete');
  233. });
  234. //后台路由
  235. Route::group(['prefix' => 'fladmin', 'namespace' => 'Admin', 'middleware' => ['web']], function () {
  236. Route::get('/', 'IndexController@index')->name('admin');
  237. Route::get('/welcome', 'IndexController@welcome')->name('admin_welcome');
  238. Route::get('/index/upconfig', 'IndexController@upconfig')->name('admin_index_upconfig'); //更新系统参数配置
  239. Route::get('/index/upcache', 'IndexController@upcache')->name('admin_index_upcache'); //更新缓存
  240. //文章
  241. Route::get('/article', 'ArticleController@index')->name('admin_article');
  242. Route::get('/article/add', 'ArticleController@add')->name('admin_article_add');
  243. Route::post('/article/doadd', 'ArticleController@doadd')->name('admin_article_doadd');
  244. Route::get('/article/edit', 'ArticleController@edit')->name('admin_article_edit');
  245. Route::post('/article/doedit', 'ArticleController@doedit')->name('admin_article_doedit');
  246. Route::get('/article/del', 'ArticleController@del')->name('admin_article_del');
  247. Route::get('/article/repetarc', 'ArticleController@repetarc')->name('admin_article_repetarc');
  248. Route::get('/article/recommendarc', 'ArticleController@recommendarc')->name('admin_article_recommendarc');
  249. Route::get('/article/articleexists', 'ArticleController@articleexists')->name('admin_article_articleexists');
  250. //栏目
  251. Route::get('/category', 'CategoryController@index')->name('admin_category');
  252. Route::get('/category/add', 'CategoryController@add')->name('admin_category_add');
  253. Route::post('/category/doadd', 'CategoryController@doadd')->name('admin_category_doadd');
  254. Route::get('/category/edit', 'CategoryController@edit')->name('admin_category_edit');
  255. Route::post('/category/doedit', 'CategoryController@doedit')->name('admin_category_doedit');
  256. Route::get('/category/del', 'CategoryController@del')->name('admin_category_del');
  257. //标签
  258. Route::get('/tag', 'TagController@index')->name('admin_tag');
  259. Route::get('/tag/add', 'TagController@add')->name('admin_tag_add');
  260. Route::post('/tag/doadd', 'TagController@doadd')->name('admin_tag_doadd');
  261. Route::get('/tag/edit', 'TagController@edit')->name('admin_tag_edit');
  262. Route::post('/tag/doedit', 'TagController@doedit')->name('admin_tag_doedit');
  263. Route::get('/tag/del', 'TagController@del')->name('admin_tag_del');
  264. //单页
  265. Route::get('/page', 'PageController@index')->name('admin_page');
  266. Route::get('/page/add', 'PageController@add')->name('admin_page_add');
  267. Route::post('/page/doadd', 'PageController@doadd')->name('admin_page_doadd');
  268. Route::get('/page/edit', 'PageController@edit')->name('admin_page_edit');
  269. Route::post('/page/doedit', 'PageController@doedit')->name('admin_page_doedit');
  270. Route::get('/page/del', 'PageController@del')->name('admin_page_del');
  271. //产品
  272. Route::get('/goods', 'GoodsController@index')->name('admin_goods');
  273. Route::get('/goods/add', 'GoodsController@add')->name('admin_goods_add');
  274. Route::post('/goods/doadd', 'GoodsController@doadd')->name('admin_goods_doadd');
  275. Route::get('/goods/edit', 'GoodsController@edit')->name('admin_goods_edit');
  276. Route::post('/goods/doedit', 'GoodsController@doedit')->name('admin_goods_doedit');
  277. Route::get('/goods/del', 'GoodsController@del')->name('admin_goods_del');
  278. Route::get('/goods/recommendarc', 'GoodsController@recommendarc')->name('admin_goods_recommendarc');
  279. Route::get('/goods/articleexists', 'GoodsController@goodsexists')->name('admin_goods_goodsexists');
  280. //产品分类
  281. Route::get('/goodstype', 'GoodsTypeController@index')->name('admin_goodstype');
  282. Route::get('/goodstype/add', 'GoodsTypeController@add')->name('admin_goodstype_add');
  283. Route::post('/goodstype/doadd', 'GoodsTypeController@doadd')->name('admin_goodstype_doadd');
  284. Route::get('/goodstype/edit', 'GoodsTypeController@edit')->name('admin_goodstype_edit');
  285. Route::post('/goodstype/doedit', 'GoodsTypeController@doedit')->name('admin_goodstype_doedit');
  286. Route::get('/goodstype/del', 'GoodsTypeController@del')->name('admin_goodstype_del');
  287. //订单
  288. Route::get('/order', 'OrderController@index')->name('admin_order');
  289. Route::get('/order/detail', 'OrderController@detail')->name('admin_order_detail');
  290. Route::get('/order/edit', 'OrderController@edit')->name('admin_order_edit');
  291. Route::post('/order/doedit', 'OrderController@doedit')->name('admin_order_doedit');
  292. Route::get('/order/del', 'OrderController@del')->name('admin_order_del');
  293. Route::any('/order/output_excel', 'OrderController@outputExcel')->name('admin_order_output_excel');
  294. Route::post('/order/change_shipping', 'OrderController@changeShipping')->name('admin_order_change_shipping');
  295. Route::post('/order/change_status', 'OrderController@changeStatus')->name('admin_order_change_status');
  296. //快递管理
  297. Route::get('/kuaidi', 'KuaidiController@index')->name('admin_kuaidi');
  298. Route::any('/kuaidi/add', 'KuaidiController@add')->name('admin_kuaidi_add');
  299. Route::any('/kuaidi/edit', 'KuaidiController@edit')->name('admin_kuaidi_edit');
  300. Route::get('/kuaidi/del', 'KuaidiController@del')->name('admin_kuaidi_del');
  301. //优惠券管理
  302. Route::get('/bonus', 'BonusController@index')->name('admin_bonus');
  303. Route::any('/bonus/add', 'BonusController@add')->name('admin_bonus_add');
  304. Route::any('/bonus/edit', 'BonusController@edit')->name('admin_bonus_edit');
  305. Route::get('/bonus/del', 'BonusController@del')->name('admin_bonus_del');
  306. //商品品牌
  307. Route::get('/goodsbrand', 'GoodsBrandController@index')->name('admin_goodsbrand');
  308. Route::get('/goodsbrand/add', 'GoodsBrandController@add')->name('admin_goodsbrand_add');
  309. Route::post('/goodsbrand/doadd', 'GoodsBrandController@doadd')->name('admin_goodsbrand_doadd');
  310. Route::get('/goodsbrand/edit', 'GoodsBrandController@edit')->name('admin_goodsbrand_edit');
  311. Route::post('/goodsbrand/doedit', 'GoodsBrandController@doedit')->name('admin_goodsbrand_doedit');
  312. Route::get('/goodsbrand/del', 'GoodsBrandController@del')->name('admin_goodsbrand_del');
  313. //友情链接
  314. Route::get('/friendlink', 'FriendlinkController@index')->name('admin_friendlink');
  315. Route::get('/friendlink/add', 'FriendlinkController@add')->name('admin_friendlink_add');
  316. Route::post('/friendlink/doadd', 'FriendlinkController@doadd')->name('admin_friendlink_doadd');
  317. Route::get('/friendlink/edit', 'FriendlinkController@edit')->name('admin_friendlink_edit');
  318. Route::post('/friendlink/doedit', 'FriendlinkController@doedit')->name('admin_friendlink_doedit');
  319. Route::get('/friendlink/del', 'FriendlinkController@del')->name('admin_friendlink_del');
  320. //关键词管理
  321. Route::get('/keyword', 'KeywordController@index')->name('admin_keyword');
  322. Route::get('/keyword/add', 'KeywordController@add')->name('admin_keyword_add');
  323. Route::post('/keyword/doadd', 'KeywordController@doadd')->name('admin_keyword_doadd');
  324. Route::get('/keyword/edit', 'KeywordController@edit')->name('admin_keyword_edit');
  325. Route::post('/keyword/doedit', 'KeywordController@doedit')->name('admin_keyword_doedit');
  326. Route::get('/keyword/del', 'KeywordController@del')->name('admin_keyword_del');
  327. //搜索关键词
  328. Route::get('/searchword', 'SearchwordController@index')->name('admin_searchword');
  329. Route::get('/searchword/add', 'SearchwordController@add')->name('admin_searchword_add');
  330. Route::post('/searchword/doadd', 'SearchwordController@doadd')->name('admin_searchword_doadd');
  331. Route::get('/searchword/edit', 'SearchwordController@edit')->name('admin_searchword_edit');
  332. Route::post('/searchword/doedit', 'SearchwordController@doedit')->name('admin_searchword_doedit');
  333. Route::get('/searchword/del', 'SearchwordController@del')->name('admin_searchword_del');
  334. //幻灯片
  335. Route::get('/slide', 'SlideController@index')->name('admin_slide');
  336. Route::get('/slide/add', 'SlideController@add')->name('admin_slide_add');
  337. Route::post('/slide/doadd', 'SlideController@doadd')->name('admin_slide_doadd');
  338. Route::get('/slide/edit', 'SlideController@edit')->name('admin_slide_edit');
  339. Route::post('/slide/doedit', 'SlideController@doedit')->name('admin_slide_doedit');
  340. Route::get('/slide/del', 'SlideController@del')->name('admin_slide_del');
  341. //在线留言管理
  342. Route::get('/guestbook', 'GuestbookController@index')->name('admin_guestbook');
  343. Route::get('/guestbook/del', 'GuestbookController@del')->name('admin_guestbook_del');
  344. //系统参数配置
  345. Route::get('/sysconfig', 'SysconfigController@index')->name('admin_sysconfig');
  346. Route::get('/sysconfig/add', 'SysconfigController@add')->name('admin_sysconfig_add');
  347. Route::post('/sysconfig/doadd', 'SysconfigController@doadd')->name('admin_sysconfig_doadd');
  348. Route::get('/sysconfig/edit', 'SysconfigController@edit')->name('admin_sysconfig_edit');
  349. Route::post('/sysconfig/doedit', 'SysconfigController@doedit')->name('admin_sysconfig_doedit');
  350. Route::get('/sysconfig/del', 'SysconfigController@del')->name('admin_sysconfig_del');
  351. //意见反馈
  352. Route::get('/feedback', 'FeedbackController@index')->name('admin_feedback');
  353. Route::get('/feedback/add', 'FeedbackController@add')->name('admin_feedback_add');
  354. Route::post('/feedback/doadd', 'FeedbackController@doadd')->name('admin_feedback_doadd');
  355. Route::get('/feedback/edit', 'FeedbackController@edit')->name('admin_feedback_edit');
  356. Route::post('/feedback/doedit', 'FeedbackController@doedit')->name('admin_feedback_doedit');
  357. Route::get('/feedback/del', 'FeedbackController@del')->name('admin_feedback_del');
  358. //会员管理
  359. Route::get('/user', 'UserController@index')->name('admin_user');
  360. Route::any('/user/add', 'UserController@add')->name('admin_user_add');
  361. Route::any('/user/edit', 'UserController@edit')->name('admin_user_edit');
  362. Route::get('/user/del', 'UserController@del')->name('admin_user_del');
  363. Route::get('/user/money', 'UserController@money')->name('admin_user_money'); //会员账户记录
  364. Route::any('/user/manual_recharge', 'UserController@manualRecharge')->name('admin_user_manual_recharge'); //人工充值
  365. //会员管理
  366. Route::get('/userrank', 'UserRankController@index')->name('admin_userrank');
  367. Route::any('/userrank/add', 'UserRankController@add')->name('admin_userrank_add');
  368. Route::any('/userrank/edit', 'UserRankController@edit')->name('admin_userrank_edit');
  369. Route::get('/userrank/del', 'UserRankController@del')->name('admin_userrank_del');
  370. //提现申请
  371. Route::get('/userwithdraw', 'UserWithdrawController@index')->name('admin_userwithdraw');
  372. Route::get('/userwithdraw/edit', 'UserWithdrawController@edit')->name('admin_userwithdraw_edit');
  373. Route::post('/userwithdraw/doedit', 'UserWithdrawController@doedit')->name('admin_userwithdraw_doedit');
  374. Route::post('/userwithdraw/change_status', 'UserWithdrawController@changeStatus')->name('admin_userwithdraw_change_status');
  375. //管理员管理
  376. Route::get('/admin', 'AdminController@index')->name('admin_admin');
  377. Route::get('/admin/add', 'AdminController@add')->name('admin_admin_add');
  378. Route::post('/admin/doadd', 'AdminController@doadd')->name('admin_admin_doadd');
  379. Route::get('/admin/edit', 'AdminController@edit')->name('admin_admin_edit');
  380. Route::post('/admin/doedit', 'AdminController@doedit')->name('admin_admin_doedit');
  381. Route::get('/admin/del', 'AdminController@del')->name('admin_admin_del');
  382. //角色管理
  383. Route::get('/adminrole', 'AdminRoleController@index')->name('admin_adminrole');
  384. Route::get('/adminrole/add', 'AdminRoleController@add')->name('admin_adminrole_add');
  385. Route::post('/adminrole/doadd', 'AdminRoleController@doadd')->name('admin_adminrole_doadd');
  386. Route::get('/adminrole/edit', 'AdminRoleController@edit')->name('admin_adminrole_edit');
  387. Route::post('/adminrole/doedit', 'AdminRoleController@doedit')->name('admin_adminrole_doedit');
  388. Route::get('/adminrole/del', 'AdminRoleController@del')->name('admin_adminrole_del');
  389. Route::get('/adminrole/permissions', 'AdminRoleController@permissions')->name('admin_adminrole_permissions'); //权限设置
  390. Route::post('/adminrole/dopermissions', 'AdminRoleController@dopermissions')->name('admin_adminrole_dopermissions');
  391. //菜单管理
  392. Route::get('/menu', 'MenuController@index')->name('admin_menu');
  393. Route::get('/menu/add', 'MenuController@add')->name('admin_menu_add');
  394. Route::post('/menu/doadd', 'MenuController@doadd')->name('admin_menu_doadd');
  395. Route::get('/menu/edit', 'MenuController@edit')->name('admin_menu_edit');
  396. Route::post('/menu/doedit', 'MenuController@doedit')->name('admin_menu_doedit');
  397. Route::get('/menu/del', 'MenuController@del')->name('admin_menu_del');
  398. //微信自定义菜单管理
  399. Route::get('/weixinmenu', 'WeixinMenuController@index')->name('admin_weixinmenu');
  400. Route::get('/weixinmenu/add', 'WeixinMenuController@add')->name('admin_weixinmenu_add');
  401. Route::post('/weixinmenu/doadd', 'WeixinMenuController@doadd')->name('admin_weixinmenu_doadd');
  402. Route::get('/weixinmenu/edit', 'WeixinMenuController@edit')->name('admin_weixinmenu_edit');
  403. Route::post('/weixinmenu/doedit', 'WeixinMenuController@doedit')->name('admin_weixinmenu_doedit');
  404. Route::get('/weixinmenu/del', 'WeixinMenuController@del')->name('admin_weixinmenu_del');
  405. Route::get('/weixinmenu/createmenu', 'WeixinMenuController@createmenu')->name('admin_weixinmenu_createmenu'); //生成自定义菜单
  406. //后台登录注销
  407. Route::get('/login', 'LoginController@login')->name('admin_login');
  408. Route::post('/dologin', 'LoginController@dologin')->name('admin_dologin');
  409. Route::get('/logout', 'LoginController@logout')->name('admin_logout');
  410. Route::get('/recoverpwd', 'LoginController@recoverpwd')->name('admin_recoverpwd');
  411. //页面跳转
  412. Route::get('/jump', 'LoginController@jump')->name('admin_jump');
  413. //测试
  414. Route::get('/test', 'LoginController@test')->name('admin_test');
  415. });