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.

460 lines
32 KiB

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