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.

352 lines
23 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
8 years ago
8 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
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
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
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
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
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}/{page}', 'IndexController@goodstype'); //产品分类页,分页
  26. Route::get('/goodstype{cat}', 'IndexController@goodstype')->name('wap_goodstype'); //产品分类页
  27. Route::get('/sitemap.xml', 'IndexController@sitemap')->name('wap_sitemap'); //sitemap
  28. });
  29. //前台路由
  30. Route::group(['namespace' => 'Home'], function () {
  31. Route::get('/', 'IndexController@index')->name('home');
  32. Route::get('/page404', 'IndexController@page404')->name('page404'); //404页面
  33. Route::get('/tags', 'IndexController@tags')->name('home_tags');
  34. Route::get('/search/{id}', 'IndexController@search')->name('home_search'); //搜索页面
  35. Route::get('/p/{id}', 'IndexController@detail')->name('home_detail'); //详情页
  36. Route::get('/cat{cat}/{page}', 'IndexController@category'); //分类页,分页
  37. Route::get('/cat{cat}', 'IndexController@category')->name('home_category'); //分类页
  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('/goodstype{cat}/{page}', 'IndexController@goodstype'); //产品分类页,分页
  43. Route::get('/goodstype{cat}', 'IndexController@goodstype')->name('home_goodstype'); //产品分类页
  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('/page404', 'IndexController@page404')->name('weixin_page404'); //404页面
  54. Route::get('/search', 'IndexController@search')->name('weixin_search'); //搜索页面
  55. Route::get('/p/{id}', 'ArticleController@detail')->name('weixin_article_detail'); //文章详情页
  56. Route::get('/cat{cat}', 'ArticleController@category')->name('weixin_article_category'); //分类页
  57. Route::get('/tag{tag}', 'IndexController@tag')->name('weixin_tag'); //标签页
  58. Route::get('/page/{id}', 'IndexController@page')->name('weixin_singlepage'); //单页
  59. Route::get('/goods/{id}', 'GoodsController@goodsDetail')->name('weixin_goods_detail'); //商品详情页
  60. Route::get('/goodslist', 'GoodsController@goodsList')->name('weixin_goods_list'); //产品分类页
  61. Route::any('/wxpay_notify', 'WxPayController@wxpayNotify')->name('weixin_wxpay_notify'); //微信回调
  62. Route::any('/wxoauth', 'UserController@oauth')->name('weixin_wxoauth'); //微信网页授权
  63. Route::any('/login', 'UserController@login')->name('weixin_login');
  64. Route::any('/register', 'UserController@register')->name('weixin_register');
  65. Route::get('/logout', 'UserController@logout')->name('weixin_user_logout'); //退出
  66. //页面跳转
  67. Route::get('/jump', 'IndexController@jump')->name('weixin_jump');
  68. Route::get('/test', 'IndexController@test')->name('weixin_test'); //测试
  69. });
  70. //微信路由,需登录,全局
  71. Route::group(['prefix' => 'weixin', 'namespace' => 'Weixin', 'middleware' => ['web','wxlogin']], function () {
  72. Route::get('/category', 'CartController@index')->name('weixin_category');
  73. //个人中心
  74. Route::get('/user', 'UserController@index')->name('weixin_user');
  75. Route::get('/userinfo', 'UserController@userinfo')->name('weixin_userinfo');
  76. Route::get('/user_account', 'UserController@userAccount')->name('weixin_user_account');
  77. Route::get('/user_money_list', 'UserController@userMoneyList')->name('weixin_user_money_list');
  78. Route::get('/user_point_list', 'UserController@userPointList')->name('weixin_user_point_list');
  79. //用户充值
  80. Route::get('/user_recharge', 'UserController@userRecharge')->name('weixin_user_recharge');
  81. Route::get('/user_recharge_order', 'UserController@userRechargeOrder')->name('weixin_user_recharge_order');
  82. //优惠券、红包
  83. Route::get('/user_bonus_list', 'UserController@userBonusList')->name('weixin_user_bonus_list');
  84. //浏览记录
  85. Route::get('/user_goods_history', 'UserController@userGoodsHistory')->name('weixin_user_goods_history');
  86. Route::get('/user_goods_history_delete', 'UserController@userGoodsHistoryDelete')->name('weixin_user_goods_history_delete');
  87. Route::get('/user_goods_history_clear', 'UserController@userGoodsHistoryClear')->name('weixin_user_goods_history_clear');
  88. //商品收藏
  89. Route::get('/collect_goods', 'CollectGoodsController@index')->name('weixin_user_collect_goods');
  90. //购物车
  91. Route::get('/cart', 'CartController@index')->name('weixin_cart');
  92. Route::get('/cart_checkout/{ids}', 'CartController@cartCheckout')->name('weixin_cart_checkout');
  93. Route::post('/cart_done', 'CartController@cartDone')->name('weixin_cart_done');
  94. //订单
  95. Route::get('/order_pay/{id}', 'OrderController@pay')->name('weixin_order_pay'); //订单支付
  96. Route::post('/order_dopay', 'OrderController@dopay')->name('weixin_order_dopay'); //订单支付
  97. Route::get('/order_list', 'OrderController@orderList')->name('weixin_order_list'); //全部订单列表
  98. Route::get('/order_wxpay', 'OrderController@orderWxpay')->name('weixin_order_wxpay'); //订单微信支付
  99. //收货地址
  100. Route::get('/user_address', 'AddressController@index')->name('weixin_user_address_list');
  101. Route::get('/user_address_add', 'AddressController@userAddressAdd')->name('weixin_user_address_add');
  102. Route::get('/user_address_update', 'AddressController@userAddressUpdate')->name('weixin_user_address_update');
  103. });
  104. //无需token验证,全局
  105. Route::group(['middleware' => ['web']], function () {
  106. Route::get('/weixin_user_recharge_order_detail', 'Weixin\UserController@userRechargeOrderDetail')->name('weixin_user_recharge_order_detail'); //微信充值支付,为了配合公众号支付授权目录
  107. Route::post('/dataapi/listarc', 'Api\IndexController@listarc')->name('api_listarc');
  108. Route::post('/dataapi/customer_login', 'Api\WechatAuthController@customerLogin');
  109. Route::post('/dataapi/', 'Api\UserController@signin'); //签到
  110. });
  111. //API接口路由,无需token验证
  112. Route::group(['prefix' => 'dataapi', 'namespace' => 'Api', 'middleware' => ['web']], function () {
  113. //轮播图
  114. Route::get('/slide_list', 'SlideController@slideList');
  115. //文章
  116. Route::get('/article_list', 'ArticleController@articleList');
  117. Route::get('/article_detail', 'ArticleController@articleDetail');
  118. Route::get('/arctype_list', 'ArctypeController@arctypeList');
  119. Route::get('/arctype_detail', 'ArctypeController@arctypeDetail');
  120. //商品
  121. Route::get('/goods_detail', 'GoodsController@goodsDetail'); //商品列表
  122. Route::get('/goods_list', 'GoodsController@goodsList'); //商品列表
  123. Route::get('/goodstype_list', 'GoodsTypeController@goodsTypeList'); //商品分类列表
  124. //地区,省市区
  125. Route::get('/region_list', 'RegionController@regionList');
  126. Route::get('/region_detail', 'RegionController@regionDetail');
  127. //用户
  128. Route::post('/wx_register', 'UserController@wxRegister'); //注册
  129. Route::post('/wx_login', 'UserController@wxLogin'); //登录
  130. Route::post('/wx_oauth_register', 'UserController@wxOauthRegister'); //微信授权注册登录
  131. });
  132. //API接口路由,需token验证
  133. Route::group(['prefix' => 'dataapi', 'namespace' => 'Api', 'middleware' => ['web','token']], function () {
  134. //用户中心
  135. Route::post('/user_signin', 'UserController@signin'); //签到
  136. Route::get('/user_info', 'UserController@userInfo'); //用户详细信息
  137. Route::post('/user_info_update', 'UserController@userInfoUpdate'); //修改用户信息
  138. Route::post('/user_password_update', 'UserController@userPasswordUpdate'); //修改用户密码、支付密码
  139. Route::get('/user_list', 'UserController@userList'); //用户列表
  140. //用户充值
  141. Route::post('/user_recharge_add', 'UserRechargeController@userRechargeAdd');
  142. Route::get('/user_recharge_detail', 'UserRechargeController@userRechargeDetail');
  143. Route::get('/user_recharge_list', 'UserRechargeController@userRechargeList');
  144. //用户余额(钱包)
  145. Route::get('/user_money_list', 'UserMoneyController@userMoneyList');
  146. Route::post('/user_money_add', 'UserMoneyController@userMoneyAdd');
  147. //浏览记录
  148. Route::get('/user_goods_history_list', 'UserGoodsHistoryController@userGoodsHistoryList'); //我的足迹列表
  149. Route::post('/user_goods_history_delete', 'UserGoodsHistoryController@userGoodsHistoryDelete'); //我的足迹删除一条
  150. Route::post('/user_goods_history_clear', 'UserGoodsHistoryController@userGoodsHistoryClear'); //我的足迹清空
  151. Route::post('/user_goods_history_add', 'UserGoodsHistoryController@userGoodsHistoryAdd'); //我的足迹添加
  152. //商品评价
  153. Route::get('/goods_comment_list', 'CommentController@goodsCommentList'); //商品评价列表
  154. Route::post('/goods_comment_add', 'CommentController@goodsCommentAdd'); //商品评价添加
  155. Route::post('/goods_comment_update', 'CommentController@goodsCommentUpdate'); //商品评价修改
  156. Route::post('/goods_comment_delete', 'CommentController@goodsCommentDelete'); //商品评价删除
  157. //商品收藏
  158. Route::get('/collect_goods_list', 'CollectGoodsController@collectGoodsList'); //收藏商品列表
  159. Route::post('/collect_goods_add', 'CollectGoodsController@collectGoodsAdd'); //收藏商品
  160. Route::post('/collect_goods_delete', 'CollectGoodsController@collectGoodsDelete'); //取消收藏商品
  161. //订单
  162. Route::post('/order_add', 'OrderController@orderAdd'); //生成订单
  163. Route::get('/order_list', 'OrderController@orderList'); //订单列表
  164. Route::get('/order_detail', 'OrderController@orderDetail'); //订单详情
  165. //购物车
  166. Route::get('/cart_list', 'CartController@cartList'); //购物车列表
  167. Route::post('/cart_clear', 'CartController@cartClear'); //清空购物车
  168. Route::post('/cart_add', 'CartController@cartAdd'); //添加购物车
  169. Route::post('/cart_delete', 'CartController@cartDelete'); //删除购物
  170. Route::get('/cart_checkout_goods_list', 'CartController@cartCheckoutGoodsList'); //购物车结算商品列表
  171. //分销
  172. //积分
  173. Route::get('/user_point_list', 'UserPointController@userPointList'); //用户积分列表
  174. Route::post('/user_point_add', 'UserPointController@userPointAdd');
  175. //优惠券
  176. Route::get('/user_available_bonus_list', 'UserBonusController@userAvailableBonusList'); //用户结算时获取可用优惠券列表
  177. Route::get('/user_bonus_list', 'UserBonusController@userBonusList'); //用户优惠券列表
  178. Route::post('/user_bonus_add', 'UserBonusController@userBonusAdd'); //用户获取优惠券
  179. Route::get('/bonus_list', 'BonusController@bonusList'); //可用获取的优惠券列表
  180. Route::post('/bonus_add', 'BonusController@bonusAdd'); //添加优惠券
  181. Route::post('/bonus_update', 'BonusController@bonusUpdate'); //修改优惠券
  182. Route::post('/bonus_delete', 'BonusController@bonusDelete'); //删除优惠券
  183. //微信
  184. //意见反馈
  185. Route::get('/feedback_list', 'FeedBackController@feedbackList');
  186. Route::post('/feedback_add', 'FeedBackController@feedbackAdd');
  187. //其它
  188. Route::get('/verifycode_check', 'VerifyCodeController@verifyCodeCheck'); //验证码校验
  189. Route::get('/andriod_upgrade', 'IndexController@andriodUpgrade'); //安卓升级
  190. Route::get('/payment_list', 'PaymentController@paymentList'); //支付方式列表
  191. //图片上传
  192. Route::post('/image_upload', 'ImageController@imageUpload'); //普通文件/图片上传
  193. //二维码
  194. Route::get('/create_simple_qrcode', 'QrcodeController@createSimpleQrcode');
  195. //收货地址
  196. Route::get('/user_address_list', 'UserAddressController@userAddressList');
  197. Route::get('/user_address_detail', 'UserAddressController@userAddressDetail');
  198. Route::get('/user_default_address', 'UserAddressController@userDefaultAddress'); //获取用户默认地址
  199. Route::post('/user_address_setdefault', 'UserAddressController@userAddressSetDefault');
  200. Route::post('/user_address_add', 'UserAddressController@userAddressAdd');
  201. Route::post('/user_address_update', 'UserAddressController@userAddressUpdate');
  202. Route::post('/user_address_delete', 'UserAddressController@userAddressDelete');
  203. });
  204. //后台路由
  205. Route::group(['prefix' => 'fladmin', 'namespace' => 'Admin', 'middleware' => ['web']], function () {
  206. Route::get('/', 'IndexController@index')->name('admin');
  207. Route::get('/welcome', 'IndexController@welcome')->name('admin_welcome');
  208. Route::get('/index/upconfig', 'IndexController@upconfig')->name('admin_index_upconfig'); //更新系统参数配置
  209. Route::get('/index/upcache', 'IndexController@upcache')->name('admin_index_upcache'); //更新缓存
  210. //文章
  211. Route::get('/article', 'ArticleController@index')->name('admin_article');
  212. Route::get('/article/add', 'ArticleController@add')->name('admin_article_add');
  213. Route::post('/article/doadd', 'ArticleController@doadd')->name('admin_article_doadd');
  214. Route::get('/article/edit', 'ArticleController@edit')->name('admin_article_edit');
  215. Route::post('/article/doedit', 'ArticleController@doedit')->name('admin_article_doedit');
  216. Route::get('/article/del', 'ArticleController@del')->name('admin_article_del');
  217. Route::get('/article/repetarc', 'ArticleController@repetarc')->name('admin_article_repetarc');
  218. Route::get('/article/recommendarc', 'ArticleController@recommendarc')->name('admin_article_recommendarc');
  219. Route::get('/article/articleexists', 'ArticleController@articleexists')->name('admin_article_articleexists');
  220. //栏目
  221. Route::get('/category', 'CategoryController@index')->name('admin_category');
  222. Route::get('/category/add', 'CategoryController@add')->name('admin_category_add');
  223. Route::post('/category/doadd', 'CategoryController@doadd')->name('admin_category_doadd');
  224. Route::get('/category/edit', 'CategoryController@edit')->name('admin_category_edit');
  225. Route::post('/category/doedit', 'CategoryController@doedit')->name('admin_category_doedit');
  226. Route::get('/category/del', 'CategoryController@del')->name('admin_category_del');
  227. //标签
  228. Route::get('/tag', 'TagController@index')->name('admin_tag');
  229. Route::get('/tag/add', 'TagController@add')->name('admin_tag_add');
  230. Route::post('/tag/doadd', 'TagController@doadd')->name('admin_tag_doadd');
  231. Route::get('/tag/edit', 'TagController@edit')->name('admin_tag_edit');
  232. Route::post('/tag/doedit', 'TagController@doedit')->name('admin_tag_doedit');
  233. Route::get('/tag/del', 'TagController@del')->name('admin_tag_del');
  234. //单页
  235. Route::get('/page', 'PageController@index')->name('admin_page');
  236. Route::get('/page/add', 'PageController@add')->name('admin_page_add');
  237. Route::post('/page/doadd', 'PageController@doadd')->name('admin_page_doadd');
  238. Route::get('/page/edit', 'PageController@edit')->name('admin_page_edit');
  239. Route::post('/page/doedit', 'PageController@doedit')->name('admin_page_doedit');
  240. Route::get('/page/del', 'PageController@del')->name('admin_page_del');
  241. //产品
  242. Route::get('/goods', 'GoodsController@index')->name('admin_goods');
  243. Route::get('/goods/add', 'GoodsController@add')->name('admin_goods_add');
  244. Route::post('/goods/doadd', 'GoodsController@doadd')->name('admin_goods_doadd');
  245. Route::get('/goods/edit', 'GoodsController@edit')->name('admin_goods_edit');
  246. Route::post('/goods/doedit', 'GoodsController@doedit')->name('admin_goods_doedit');
  247. Route::get('/goods/del', 'GoodsController@del')->name('admin_goods_del');
  248. Route::get('/goods/recommendarc', 'GoodsController@recommendarc')->name('admin_goods_recommendarc');
  249. Route::get('/goods/articleexists', 'GoodsController@goodsexists')->name('admin_goods_goodsexists');
  250. //产品分类
  251. Route::get('/goodstype', 'GoodsTypeController@index')->name('admin_goodstype');
  252. Route::get('/goodstype/add', 'GoodsTypeController@add')->name('admin_goodstype_add');
  253. Route::post('/goodstype/doadd', 'GoodsTypeController@doadd')->name('admin_goodstype_doadd');
  254. Route::get('/goodstype/edit', 'GoodsTypeController@edit')->name('admin_goodstype_edit');
  255. Route::post('/goodstype/doedit', 'GoodsTypeController@doedit')->name('admin_goodstype_doedit');
  256. Route::get('/goodstype/del', 'GoodsTypeController@del')->name('admin_goodstype_del');
  257. //友情链接
  258. Route::get('/friendlink', 'FriendlinkController@index')->name('admin_friendlink');
  259. Route::get('/friendlink/add', 'FriendlinkController@add')->name('admin_friendlink_add');
  260. Route::post('/friendlink/doadd', 'FriendlinkController@doadd')->name('admin_friendlink_doadd');
  261. Route::get('/friendlink/edit', 'FriendlinkController@edit')->name('admin_friendlink_edit');
  262. Route::post('/friendlink/doedit', 'FriendlinkController@doedit')->name('admin_friendlink_doedit');
  263. Route::get('/friendlink/del', 'FriendlinkController@del')->name('admin_friendlink_del');
  264. //关键词管理
  265. Route::get('/keyword', 'KeywordController@index')->name('admin_keyword');
  266. Route::get('/keyword/add', 'KeywordController@add')->name('admin_keyword_add');
  267. Route::post('/keyword/doadd', 'KeywordController@doadd')->name('admin_keyword_doadd');
  268. Route::get('/keyword/edit', 'KeywordController@edit')->name('admin_keyword_edit');
  269. Route::post('/keyword/doedit', 'KeywordController@doedit')->name('admin_keyword_doedit');
  270. Route::get('/keyword/del', 'KeywordController@del')->name('admin_keyword_del');
  271. //搜索关键词
  272. Route::get('/searchword', 'SearchwordController@index')->name('admin_searchword');
  273. Route::get('/searchword/add', 'SearchwordController@add')->name('admin_searchword_add');
  274. Route::post('/searchword/doadd', 'SearchwordController@doadd')->name('admin_searchword_doadd');
  275. Route::get('/searchword/edit', 'SearchwordController@edit')->name('admin_searchword_edit');
  276. Route::post('/searchword/doedit', 'SearchwordController@doedit')->name('admin_searchword_doedit');
  277. Route::get('/searchword/del', 'SearchwordController@del')->name('admin_searchword_del');
  278. //幻灯片
  279. Route::get('/slide', 'SlideController@index')->name('admin_slide');
  280. Route::get('/slide/add', 'SlideController@add')->name('admin_slide_add');
  281. Route::post('/slide/doadd', 'SlideController@doadd')->name('admin_slide_doadd');
  282. Route::get('/slide/edit', 'SlideController@edit')->name('admin_slide_edit');
  283. Route::post('/slide/doedit', 'SlideController@doedit')->name('admin_slide_doedit');
  284. Route::get('/slide/del', 'SlideController@del')->name('admin_slide_del');
  285. //在线留言管理
  286. Route::get('/guestbook', 'GuestbookController@index')->name('admin_guestbook');
  287. Route::get('/guestbook/del', 'GuestbookController@del')->name('admin_guestbook_del');
  288. //系统参数配置
  289. Route::get('/sysconfig', 'SysconfigController@index')->name('admin_sysconfig');
  290. Route::get('/sysconfig/add', 'SysconfigController@add')->name('admin_sysconfig_add');
  291. Route::post('/sysconfig/doadd', 'SysconfigController@doadd')->name('admin_sysconfig_doadd');
  292. Route::get('/sysconfig/edit', 'SysconfigController@edit')->name('admin_sysconfig_edit');
  293. Route::post('/sysconfig/doedit', 'SysconfigController@doedit')->name('admin_sysconfig_doedit');
  294. Route::get('/sysconfig/del', 'SysconfigController@del')->name('admin_sysconfig_del');
  295. //用户管理
  296. Route::get('/user', 'UserController@index')->name('admin_user');
  297. Route::get('/user/add', 'UserController@add')->name('admin_user_add');
  298. Route::post('/user/doadd', 'UserController@doadd')->name('admin_user_doadd');
  299. Route::get('/user/edit', 'UserController@edit')->name('admin_user_edit');
  300. Route::post('/user/doedit', 'UserController@doedit')->name('admin_user_doedit');
  301. Route::get('/user/del', 'UserController@del')->name('admin_user_del');
  302. //角色管理
  303. Route::get('/userrole', 'UserRoleController@index')->name('admin_userrole');
  304. Route::get('/userrole/add', 'UserRoleController@add')->name('admin_userrole_add');
  305. Route::post('/userrole/doadd', 'UserRoleController@doadd')->name('admin_userrole_doadd');
  306. Route::get('/userrole/edit', 'UserRoleController@edit')->name('admin_userrole_edit');
  307. Route::post('/userrole/doedit', 'UserRoleController@doedit')->name('admin_userrole_doedit');
  308. Route::get('/userrole/del', 'UserRoleController@del')->name('admin_userrole_del');
  309. Route::get('/userrole/permissions', 'UserRoleController@permissions')->name('admin_userrole_permissions'); //权限设置
  310. Route::post('/userrole/dopermissions', 'UserRoleController@dopermissions')->name('admin_userrole_dopermissions');
  311. //菜单管理
  312. Route::get('/menu', 'MenuController@index')->name('admin_menu');
  313. Route::get('/menu/add', 'MenuController@add')->name('admin_menu_add');
  314. Route::post('/menu/doadd', 'MenuController@doadd')->name('admin_menu_doadd');
  315. Route::get('/menu/edit', 'MenuController@edit')->name('admin_menu_edit');
  316. Route::post('/menu/doedit', 'MenuController@doedit')->name('admin_menu_doedit');
  317. Route::get('/menu/del', 'MenuController@del')->name('admin_menu_del');
  318. //微信自定义菜单管理
  319. Route::get('/weixinmenu', 'WeixinMenuController@index')->name('admin_weixinmenu');
  320. Route::get('/weixinmenu/add', 'WeixinMenuController@add')->name('admin_weixinmenu_add');
  321. Route::post('/weixinmenu/doadd', 'WeixinMenuController@doadd')->name('admin_weixinmenu_doadd');
  322. Route::get('/weixinmenu/edit', 'WeixinMenuController@edit')->name('admin_weixinmenu_edit');
  323. Route::post('/weixinmenu/doedit', 'WeixinMenuController@doedit')->name('admin_weixinmenu_doedit');
  324. Route::get('/weixinmenu/del', 'WeixinMenuController@del')->name('admin_weixinmenu_del');
  325. Route::get('/weixinmenu/createmenu', 'WeixinMenuController@createmenu')->name('admin_weixinmenu_createmenu'); //生成自定义菜单
  326. //后台登录注销
  327. Route::get('/login', 'LoginController@login')->name('admin_login');
  328. Route::post('/dologin', 'LoginController@dologin')->name('admin_dologin');
  329. Route::get('/logout', 'LoginController@logout')->name('admin_logout');
  330. Route::get('/recoverpwd', 'LoginController@recoverpwd')->name('admin_recoverpwd');
  331. //页面跳转
  332. Route::get('/jump', 'LoginController@jump')->name('admin_jump');
  333. //测试
  334. Route::get('/test', 'LoginController@test')->name('admin_test');
  335. });