Нет описания

routes.php 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Application Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register all of the routes for an application.
  8. | It's a breeze. Simply tell Laravel the URIs it should respond to
  9. | and give it the controller to call when that URI is requested.
  10. |
  11. */
  12. //Route::get('/', 'WelcomeController@index');
  13. //Route::get('home', 'HomeController@index');
  14. Route::controllers([
  15. 'auth' => 'Auth\AuthController',
  16. 'password' => 'Auth\PasswordController',
  17. ]);
  18. //根目录
  19. Route::get('/', 'Admin\LoginController@login');
  20. //Route::get("/hotfix/returnPath", "Admin\HotfixController@returnPath");
  21. //Admin
  22. Route::group(['prefix' => 'admin'], function(){
  23. //登录
  24. Route::get('/login', 'Admin\LoginController@login');
  25. Route::post('/login', 'Admin\LoginController@dologin');
  26. Route::get('/logout', 'Admin\LoginController@logout');
  27. Route::group(['middleware' => 'login'], function(){
  28. //首页
  29. Route::get('/index', 'Admin\IndexController@index');
  30. //管理员
  31. Route::get('admin', 'Admin\AdminController@index');
  32. Route::get('/admin/all', 'Admin\AdminController@all');
  33. Route::get('/admin/create', 'Admin\AdminController@create');
  34. Route::post('/admin/store', 'Admin\AdminController@store');
  35. Route::get('/admin/edit/{id}', 'Admin\AdminController@edit');
  36. Route::get('/admin/del/{id}', 'Admin\AdminController@del');
  37. Route::get('/admin/up/{id}', 'Admin\AdminController@up');
  38. Route::post('/admin/update', 'Admin\AdminController@update');
  39. //团队
  40. Route::get('/admin/teamindex', 'Admin\AdminController@teamindex');
  41. Route::get('/admin/teamcreate', 'Admin\AdminController@teamcreate');
  42. Route::post('/admin/teamstore', 'Admin\AdminController@teamstore');
  43. Route::get('/admin/teamedit/{id}', 'Admin\AdminController@teamedit');
  44. Route::post('/admin/teamupdate', 'Admin\AdminController@teamupdate');
  45. Route::get('/admin/teamSalers', 'Admin\AdminController@teamSalers');
  46. Route::get('/admin/qrcode_del/{id}', 'Admin\AdminController@qrcode_del');
  47. Route::get('/admin/qrcode_up/{id}', 'Admin\AdminController@qrcode_up');
  48. //销售上传二维码
  49. Route::get('/admin/uploadQrcodeEdit', 'Admin\AdminController@uploadQrcodeEdit');
  50. Route::post('/admin/uploadQrcode', 'Admin\AdminController@uploadQrcode');
  51. //权限
  52. Route::get('/permission/index', 'Admin\PermissionController@index');
  53. Route::get('/permission/create', 'Admin\PermissionController@create');
  54. Route::post('/permission/store', 'Admin\PermissionController@store');
  55. Route::get('/permission/edit/{id}', 'Admin\PermissionController@edit');
  56. Route::post('/permission/update', 'Admin\PermissionController@update');
  57. //角色
  58. Route::get('/role/index', 'Admin\RoleController@index');
  59. Route::get('/role/create', 'Admin\RoleController@create');
  60. Route::post('/role/store', 'Admin\RoleController@store');
  61. Route::get('/role/edit/{name}', 'Admin\RoleController@edit');
  62. Route::post('/role/update', 'Admin\RoleController@update');
  63. //订单管理
  64. Route::get('/order/index', 'Admin\OrderController@orderindex');
  65. Route::get('/order/warehouse', 'Admin\OrderController@warehouse');
  66. Route::get('/order/predictOrder', 'Admin\OrderController@predictOrder'); //预售订单
  67. Route::post('/order/importGoodsExcel', 'Admin\OrderController@importGoodsExcel'); //仓管导入订单成本,物流单号
  68. Route::post('/order/importDeliveryExcel', 'Admin\OrderController@importDeliveryExcel'); //仓管导入订单成本,物流单号
  69. Route::get('/order/warehouse_export', 'Admin\OrderController@warehouse_export'); //仓管订单导出
  70. Route::get('/order/order_export', 'Admin\OrderController@order_export');
  71. Route::get('/order/create', 'Admin\OrderController@ordercreate');
  72. Route::get('/order/getAddress', 'Admin\OrderController@getAddress'); //获取默认地址
  73. Route::post('/order/store', 'Admin\OrderController@orderstore');
  74. Route::get('/order/edit/{id}', 'Admin\OrderController@orderedit');
  75. Route::post('/order/update', 'Admin\OrderController@orderupdate');
  76. Route::get('/order/delete/{id}', 'Admin\OrderController@orderdelete');
  77. Route::get('/order/getCustomer', 'Admin\OrderController@getCustomer');
  78. Route::get('/order/adminList', 'Admin\OrderController@adminList');
  79. Route::get('/order/categoods/{category}', 'Admin\OrderController@categoods');
  80. Route::get('/order/teamAdmins/{team_id}', 'Admin\OrderController@teamAdmins');
  81. Route::get('/order/editLogisticsId', 'Admin\OrderController@editLogisticsId');
  82. Route::get('/order/setrefund/{id}', 'Admin\OrderController@setrefund'); //设为退货 弃用
  83. Route::post('/order/setrefundinfo', 'Admin\OrderController@set_refund'); //设为退货 用于c仓同步到卖家取消订单,不删除单子
  84. Route::get('/order/setverify/{id}', 'Admin\OrderController@setverify'); //设为已审核
  85. Route::get('/order/setverifymore', 'Admin\OrderController@setverifymore'); //设为已审核
  86. Route::get('/order/getVip', 'Admin\OrderController@getVip'); //获取会员信息
  87. Route::get('/order/order_goods_info', 'Admin\OrderController@order_goods_info'); //获取订单商品
  88. //分销订单管理
  89. Route::get('/fxorder/index', 'Admin\FxOrderController@orderindex');
  90. Route::get('/fxorder/warehouse', 'Admin\FxOrderController@warehouse');
  91. Route::get('/fxorder/predictOrder', 'Admin\FxOrderController@predictOrder'); //预售订单
  92. Route::post('/fxorder/importGoodsExcel', 'Admin\FxOrderController@importGoodsExcel'); //仓管导入订单成本,物流单号
  93. Route::post('/fxorder/importDeliveryExcel', 'Admin\FxOrderController@importDeliveryExcel'); //仓管导入订单成本,物流单号
  94. Route::get('/fxorder/warehouse_export', 'Admin\FxOrderController@warehouse_export'); //仓管订单导出
  95. Route::get('/fxorder/order_export', 'Admin\FxOrderController@order_export');
  96. Route::get('/fxorder/create', 'Admin\FxOrderController@ordercreate');
  97. Route::get('/fxorder/getAddress', 'Admin\FxOrderController@getAddress'); //获取默认地址
  98. Route::post('/fxorder/store', 'Admin\FxOrderController@orderstore');
  99. Route::get('/fxorder/edit/{id}', 'Admin\FxOrderController@orderedit');
  100. Route::post('/fxorder/update', 'Admin\FxOrderController@orderupdate');
  101. Route::get('/fxorder/delete/{id}', 'Admin\FxOrderController@orderdelete');
  102. Route::get('/fxorder/getCustomer', 'Admin\FxOrderController@getCustomer');
  103. Route::get('/fxorder/adminList', 'Admin\FxOrderController@adminList');
  104. Route::get('/fxorder/categoods/{category}', 'Admin\FxOrderController@categoods');
  105. Route::get('/fxorder/teamAdmins/{team_id}', 'Admin\FxOrderController@teamAdmins');
  106. Route::get('/fxorder/editLogisticsId', 'Admin\FxOrderController@editLogisticsId');
  107. Route::get('/fxorder/setrefund/{id}', 'Admin\FxOrderController@setrefund'); //设为退货 弃用
  108. Route::post('/fxorder/setrefundinfo', 'Admin\FxOrderController@set_refund'); //设为退货 用于c仓同步到卖家取消订单,不删除单子
  109. Route::get('/fxorder/setverify/{id}', 'Admin\FxOrderController@setverify'); //设为已审核
  110. Route::get('/fxorder/setverifymore', 'Admin\FxOrderController@setverifymore'); //设为已审核
  111. //数据上报
  112. Route::get('/custreport/detailindex', 'Admin\CustReportController@detailindex');
  113. Route::get('/custreport/detail_export', 'Admin\CustReportController@detail_export');
  114. Route::get('/custreport/detailcreate', 'Admin\CustReportController@detailcreate');
  115. Route::post('/custreport/detailstore', 'Admin\CustReportController@detailstore');
  116. Route::get('/custreport/detailedit/{id}', 'Admin\CustReportController@detailedit');
  117. Route::post('/custreport/detailupdate', 'Admin\CustReportController@detailupdate');
  118. Route::get('/custreport/detaildelete/{id}', 'Admin\CustReportController@detaildelete');
  119. Route::get('/custreport/totalindex', 'Admin\CustReportController@totalindex');
  120. Route::get('/custreport/total_export', 'Admin\CustReportController@total_export');
  121. Route::get('/custreport/totalcreate', 'Admin\CustReportController@totalcreate');
  122. Route::post('/custreport/totalstore', 'Admin\CustReportController@totalstore');
  123. Route::get('/custreport/totaledit/{id}', 'Admin\CustReportController@totaledit');
  124. Route::post('/custreport/totalupdate', 'Admin\CustReportController@totalupdate');
  125. Route::get('/custreport/totaldelete/{id}', 'Admin\CustReportController@totaldelete');
  126. //录入地域投入信息
  127. Route::post('/custreport/importDisCost', 'Admin\CustReportController@importDisCost');
  128. //地域投入信息表
  129. Route::get('/custreport/disCostList', 'Admin\CustReportController@disCostList');
  130. //数据报表
  131. //当日数据统计
  132. Route::get('/statistics/fanDay', 'Admin\StatisticsController@fanDay');
  133. Route::get('/statistics/fanDay_export', 'Admin\StatisticsController@fanDay_export');
  134. //分片数据统计
  135. Route::get('/statistics/orderDay', 'Admin\StatisticsController@orderDay');
  136. Route::get('/statistics/orderDay_export', 'Admin\StatisticsController@orderDay_export');
  137. //投放数据
  138. Route::get('/statistics/throwDay', 'Admin\StatisticsController@throwDay');
  139. Route::get('/statistics/throwDay_export', 'Admin\StatisticsController@throwDay_export');
  140. //销售可看当日数据
  141. Route::get('/statistics/fanDaySaler', 'Admin\StatisticsController@fanDaySaler');
  142. Route::get('/statistics/fanDaySaler_export', 'Admin\StatisticsController@fanDaySaler_export');
  143. //销售可看分片数据
  144. Route::get('/statistics/orderDaySaler', 'Admin\StatisticsController@orderDaySaler');
  145. Route::get('/statistics/orderDaySaler_export', 'Admin\StatisticsController@orderDaySaler_export');
  146. //成单率梯形
  147. Route::get('/statistics/orderRateList', 'Admin\StatisticsController@orderRateList');
  148. //实时数据展榜
  149. Route::get('/statistics/orderSaleRank', 'Admin\StatisticsController@orderSaleRank');
  150. //实时订单地域分布
  151. Route::get('/statistics/orderDistrict', 'Admin\StatisticsController@orderDistrict');
  152. //地域roi
  153. Route::get('/statistics/districtRoi', 'Admin\StatisticsController@districtRoi');
  154. //地域roi导出
  155. Route::get('/statistics/districtRoi_export', 'Admin\StatisticsController@districtRoi_export');
  156. //地域roi7日
  157. Route::get('/statistics/districtRoi7day', 'Admin\StatisticsController@districtRoi7day');
  158. Route::get('/statistics/districtRoi7day_export', 'Admin\StatisticsController@districtRoi7day_export');
  159. Route::get('/statistics/districtRoi7dayTotal', 'Admin\StatisticsController@districtRoi7dayTotal');
  160. Route::get('/statistics/districtRoi7dayTotal_export', 'Admin\StatisticsController@districtRoi7dayTotal_export');
  161. //地域roi30日
  162. Route::get('/statistics/districtRoi30day', 'Admin\StatisticsController@districtRoi30day');
  163. Route::get('/statistics/districtRoi30day_export', 'Admin\StatisticsController@districtRoi30day_export');
  164. Route::get('/statistics/districtRoi30dayTotal', 'Admin\StatisticsController@districtRoi30dayTotal');
  165. Route::get('/statistics/districtRoi30dayTotal_export', 'Admin\StatisticsController@districtRoi30dayTotal_export');
  166. //地域roi15日
  167. Route::get('/statistics/districtRoi15day', 'Admin\StatisticsController@districtRoi15day');
  168. Route::get('/statistics/districtRoi15day_export', 'Admin\StatisticsController@districtRoi15day_export');
  169. Route::get('/statistics/districtRoi15dayTotal', 'Admin\StatisticsController@districtRoi15dayTotal');
  170. Route::get('/statistics/districtRoi15dayTotal_export', 'Admin\StatisticsController@districtRoi15dayTotal_export');
  171. //地域roi45日
  172. Route::get('/statistics/districtRoi45day', 'Admin\StatisticsController@districtRoi45day');
  173. Route::get('/statistics/districtRoi45day_export', 'Admin\StatisticsController@districtRoi45day_export');
  174. Route::get('/statistics/districtRoi45dayTotal', 'Admin\StatisticsController@districtRoi45dayTotal');
  175. Route::get('/statistics/districtRoi45dayTotal_export', 'Admin\StatisticsController@districtRoi45dayTotal_export');
  176. //地域roi所有汇总
  177. Route::get('/statistics/districtRoiAllTotal', 'Admin\StatisticsController@districtRoiAllTotal');
  178. Route::get('/statistics/districtRoiAllTotal_export', 'Admin\StatisticsController@districtRoiAllTotal_export');
  179. //团队财务报表
  180. Route::get('/statistics/teamFinanceList', 'Admin\StatisticsController@teamFinanceList');
  181. Route::get('/statistics/teamFinanceList_export', 'Admin\StatisticsController@teamFinanceList_export');
  182. Route::get('/statistics/teamFinanceTotal', 'Admin\StatisticsController@teamFinanceTotal');
  183. Route::get('/statistics/teamFinanceTotal_export', 'Admin\StatisticsController@teamFinanceTotal_export');
  184. Route::get('/statistics/aftersaleFinanceList', 'Admin\StatisticsController@aftersaleFinanceList');
  185. Route::get('/statistics/refundFinanceList', 'Admin\StatisticsController@refundFinanceList');
  186. Route::get('/statistics/sendFinanceList', 'Admin\StatisticsController@sendFinanceList');
  187. Route::get('/fxstatistics/sendFinanceList', 'Admin\FxStatisticsController@sendFinanceList');
  188. Route::get('fxstatistics/sendFinanceList_export', 'Admin\FxStatisticsController@sendFinanceList_export');
  189. Route::get('/statistics/aftersaleFinanceList_export', 'Admin\StatisticsController@aftersaleFinanceList_export');
  190. Route::get('/statistics/refundFinanceList_export', 'Admin\StatisticsController@refundFinanceList_export');
  191. Route::get('/statistics/sendFinanceList_export', 'Admin\StatisticsController@sendFinanceList_export');
  192. #仓库发货财务报表
  193. Route::get('/statistics/warehouseFinanceList', 'Admin\StatisticsController@warehouseFinanceList');
  194. Route::get('/statistics/warehouseFinanceList_export', 'Admin\StatisticsController@warehouseFinanceList_export');
  195. //销售业绩表
  196. Route::get('/statistics/salerBonus', 'Admin\StatisticsController@salerBonus');
  197. Route::get('/statistics/salerBonus_export', 'Admin\StatisticsController@salerBonus_export');
  198. //销售月业绩完成度
  199. Route::get('/statistics/salerTargetProgress', 'Admin\StatisticsController@salerTargetProgress');
  200. Route::get('/statistics/salerTargetProgress_export', 'Admin\StatisticsController@salerTargetProgress_export');
  201. Route::get('statistics/salerTargetCreate', 'Admin\StatisticsController@salerTargetCreate');
  202. Route::post('statistics/salerTargetStore', 'Admin\StatisticsController@salerTargetStore');
  203. Route::get('statistics/salerTargetEdit/{id}', 'Admin\StatisticsController@salerTargetEdit');
  204. Route::post('statistics/salerTargetUpdate', 'Admin\StatisticsController@salerTargetUpdate');
  205. //商品管理
  206. Route::get('goods/index', 'Admin\GoodsController@index');
  207. Route::get('goods/create', 'Admin\GoodsController@create');
  208. Route::post('goods/store', 'Admin\GoodsController@store');
  209. Route::get('goods/edit/{id}', 'Admin\GoodsController@edit');
  210. Route::post('goods/update', 'Admin\GoodsController@update');
  211. Route::get('goods/down/{id}', 'Admin\GoodsController@down'); //下架
  212. Route::get('goods/delete/{id}', 'Admin\GoodsController@delete'); //删除
  213. Route::get('goods/up/{id}', 'Admin\GoodsController@up');
  214. Route::get('goods/searchSkus', 'Admin\GoodsController@searchSkus');
  215. Route::get('goods/skulist', 'Admin\GoodsController@skuList');
  216. Route::get('goods/skucreate', 'Admin\GoodsController@skuCreate');
  217. Route::post('goods/skustore', 'Admin\GoodsController@skuStore');
  218. Route::get('goods/skuedit/{id}', 'Admin\GoodsController@skuEdit');
  219. Route::post('goods/skuupdate', 'Admin\GoodsController@skuUpdate');
  220. Route::get('goods/skudelete/{id}', 'Admin\GoodsController@skuDel'); //下架
  221. Route::get('goods/skudelete2/{id}', 'Admin\GoodsController@skuDelete'); //删除规格
  222. Route::get('goods/skuup/{id}', 'Admin\GoodsController@skuUp');
  223. Route::get('template/index', 'Admin\TemplateController@index');
  224. Route::get('template/create', 'Admin\TemplateController@create');
  225. Route::post('template/store', 'Admin\TemplateController@store');
  226. Route::get('template/edit/{id}', 'Admin\TemplateController@edit');
  227. Route::post('template/update', 'Admin\TemplateController@update');
  228. Route::get('template/delete/{id}', 'Admin\TemplateController@del');
  229. Route::get('template/getAssigns', 'Admin\TemplateController@getAssigns');
  230. Route::post('template/assignSalers', 'Admin\TemplateController@assignSalers');
  231. Route::get('template/logindex', 'Admin\TemplateController@logindex');
  232. //销售模板引流每日报表
  233. Route::get('template/templateLogReport', 'Admin\TemplateController@templateLogReport');
  234. Route::get('template/templateLogReport_export', 'Admin\TemplateController@templateLogReport_export');
  235. //销售复购率
  236. Route::get('statistics/salerOrderFugou', 'Admin\StatisticsController@salerOrderFugou');
  237. Route::get('statistics/salerOrderFugou_export', 'Admin\StatisticsController@salerOrderFugou_export');
  238. Route::get('template/sourceindex', 'Admin\TemplateController@sourceindex');
  239. Route::get('template/sourcecreate', 'Admin\TemplateController@sourcecreate');
  240. Route::post('template/sourcestore', 'Admin\TemplateController@sourcestore');
  241. Route::get('template/sourceedit/{id}', 'Admin\TemplateController@sourceedit');
  242. Route::post('template/sourceupdate', 'Admin\TemplateController@sourceupdate');
  243. Route::get('template/sourcedelete/{id}', 'Admin\TemplateController@sourcedel');
  244. Route::post('template/uploadBack/', 'Admin\TemplateController@uploadBack');
  245. Route::get('template/getTempback/{id}', 'Admin\TemplateController@getTempback');
  246. //每日汇总数据
  247. Route::get('statistics/dayGrandTotal', 'Admin\StatisticsController@dayGrandTotal');
  248. Route::get('statistics/dayGrandTotal_export', 'Admin\StatisticsController@dayGrandTotal_export');
  249. //按月统计销售加粉下单情况
  250. Route::get('template/templateLogMonthReport', 'Admin\TemplateController@templateLogMonthReport');
  251. Route::get('template/templateLogMonthReport_export', 'Admin\TemplateController@templateLogMonthReport_export');
  252. //新粉月销售额梯形图
  253. Route::get('/statistics/newFanMonthAmountList', 'Admin\StatisticsController@newFanMonthAmountList');
  254. Route::get('statistics/volumeRank', 'Admin\StatisticsController@volumeRank');
  255. Route::get('statistics/volumeRank_export', 'Admin\StatisticsController@volumeRank_export');
  256. //团队roi汇总
  257. Route::get('statistics/dayGrandTeamTotal', 'Admin\StatisticsController@dayGrandTeamTotal');
  258. Route::get('statistics/dayGrandTeamTotal_export', 'Admin\StatisticsController@dayGrandTeamTotal_export');
  259. Route::get('statistics/dayGrandSalerTotal', 'Admin\StatisticsController@dayGrandSalerTotal');
  260. Route::get('statistics/dayGrandSalerTotal_export', 'Admin\StatisticsController@dayGrandSalerTotal_export');
  261. Route::get('statistics/depositDayReport', 'Admin\StatisticsController@depositDayReport');
  262. Route::get('statistics/depositDayReport_export', 'Admin\StatisticsController@depositDayReport_export');
  263. Route::get('statistics/depositDetail', 'Admin\StatisticsController@depositDetail');
  264. Route::get('statistics/depositDetail_export', 'Admin\StatisticsController@depositDetail_export');
  265. Route::get('statistics/consumDetail', 'Admin\StatisticsController@consumDetail');
  266. Route::get('statistics/consumDetail_export', 'Admin\StatisticsController@consumDetail_export');
  267. Route::get('statistics/customerMonthAccount', 'Admin\StatisticsController@customerMonthAccount');
  268. Route::get('statistics/customerMonthAccount_export', 'Admin\StatisticsController@customerMonthAccount_export');
  269. //充值
  270. Route::get('deposit/index', 'Admin\CustomerDepositController@index'); //充值记录
  271. Route::get('deposit/consumList', 'Admin\CustomerDepositController@consumList'); //消费记录
  272. Route::get('deposit/customerList', 'Admin\CustomerDepositController@customerList');
  273. Route::get('deposit/create', 'Admin\CustomerDepositController@create');
  274. Route::post('deposit/store', 'Admin\CustomerDepositController@store');
  275. Route::get('deposit/edit', 'Admin\CustomerDepositController@edit');
  276. Route::post('deposit/update', 'Admin\CustomerDepositController@update');
  277. Route::get('deposit/del/{id}', 'Admin\CustomerDepositController@delete');
  278. //获取余额
  279. Route::get('cust/getBalance/{phone}', 'Admin\CustomerDepositController@getBalance');
  280. //编辑充值方式
  281. Route::get('deposit/editPayType', 'Admin\CustomerDepositController@editPayType');
  282. //用户盈利模型
  283. Route::get('statistics/customerOrder','Admin\StatisticsController@customerOrder');
  284. //会员录入管理
  285. Route::get('customer/vipList','Admin\CustomerDepositController@vipCustomerList');
  286. Route::get('customer/vipCreate','Admin\CustomerDepositController@addVipCustomer');
  287. Route::get('customer/vipUpdate','Admin\CustomerDepositController@editVipCustomer');
  288. Route::post('customer/addVip','Admin\CustomerDepositController@storeVipCustomer');
  289. Route::post('customer/editVip','Admin\CustomerDepositController@updateVipCustomer');
  290. Route::get('customer/vipUp','Admin\CustomerDepositController@vipUp');
  291. Route::get('customer/vipDel','Admin\CustomerDepositController@vipDel');
  292. Route::get('customer/vipExport', 'Admin\CustomerDepositController@vipExport');
  293. //会员每月礼品领取记录
  294. Route::get('customer/monthGiftLog','Admin\CustomerDepositController@monthGiftLog');
  295. //会员优惠券领取记录
  296. Route::get('customer/couponLog','Admin\CustomerDepositController@couponLog');
  297. //会员生日套餐领取记录
  298. Route::get('customer/birthdayGiftLog','Admin\CustomerDepositController@birthdayGiftLog');
  299. //会员礼品管理
  300. Route::get('customer/giftList','Admin\CustomerDepositController@monthGiftList');
  301. Route::get('customer/giftAdd','Admin\CustomerDepositController@addMonthGift');
  302. Route::get('customer/giftEdit','Admin\CustomerDepositController@editMonthGift');
  303. Route::post('customer/giftStore','Admin\CustomerDepositController@monthGiftStore');
  304. Route::post('customer/giftUpdate','Admin\CustomerDepositController@monthGiftUpdate');
  305. //会员报表
  306. Route::get('customer/vipReport', 'Admin\CustomerDepositController@membershipReport');
  307. Route::get('customer/vipReportExport', 'Admin\CustomerDepositController@membershipReportExport');
  308. Route::get('goods/index_copy','Admin\GoodsController@indexCopy');
  309. Route::get('goods/index_copy_export','Admin\GoodsController@indexCopyExport');
  310. Route::get('goods/editGoodsSku','Admin\GoodsController@editGoodsSku');
  311. Route::get('goods/goodsindex','Admin\GoodsController@goodsIndex');
  312. Route::get('goods/goodsindexexport','Admin\GoodsController@goodsIndexExport');
  313. Route::get('customerServiceAfterSale/index','Admin\OrderController@customerServiceAfterSaleList');
  314. Route::get('customerServiceAfterSale/create','Admin\OrderController@customerServiceAfterSaleCreate');
  315. Route::post('customerServiceAfterSale/store','Admin\OrderController@customerServiceAfterSaleStore');
  316. Route::get('customerServiceAfterSale/edit','Admin\OrderController@customerServiceAfterSaleEdit');
  317. Route::post('customerServiceAfterSale/update','Admin\OrderController@customerServiceAfterSaleUpdate');
  318. Route::get('customerServiceAfterSale/order_goods_info','Admin\OrderController@orderGoodsInfo');
  319. });
  320. });
  321. //api
  322. Route::group(['prefix' => 'api'], function() {
  323. //模板
  324. Route::get('/template/qrcode', 'Api\TemplateController@salerQrcode');
  325. Route::get('/template/addLongLog', 'Api\TemplateController@addLongLog');
  326. Route::get('/dayGrandTotal', 'Api\TemplateController@dayGrandTotal');
  327. //文章模板自定义
  328. Route::post('/template/createArticleHtml', 'Api\TemplateController@createArticleHtml');
  329. Route::post('/template/updateArticleHtml', 'Api\TemplateController@updateArticleHtml');
  330. Route::get('/template/getArticleHtml', 'Api\TemplateController@getArticleHtml');
  331. Route::post('/template/uploadHtmlPic', 'Api\TemplateController@uploadHtmlPic');
  332. #h5登录
  333. Route::post('/login','Api\LoginController@doLogin');
  334. #添加商品-商品列表
  335. Route::get('/goodsList','Api\GoodsController@index');
  336. #添加商品-商品搜索
  337. Route::post('/searchGoods','Api\GoodsController@searchGoods');
  338. Route::get('/order/orderList', 'Api\OrderController@orderList');
  339. Route::get('/order/orderDetail', 'Api\OrderController@orderDetail');
  340. Route::post('/order/orderstore', 'Api\OrderController@orderstore');
  341. Route::post('/order/orderupdate', 'Api\OrderController@orderupdate');
  342. Route::get('/order/getAddress', 'Api\OrderController@getAddress');
  343. Route::get('/order/getBalance', 'Api\OrderController@getBalance');
  344. Route::post('/order/setverify', 'Api\OrderController@setverify');
  345. Route::get('/customer/addressList','Api\CustomerController@getAddressList');
  346. Route::get('/customer/vipInformation','Api\CustomerController@getVipInformation');
  347. Route::get('/customer/couponList','Api\CustomerController@getCouponsList');
  348. Route::get('/customer/giftList','Api\CustomerController@getMonthGiftList');
  349. });