# 路由 API路由配置文件 /route/api/route.php ### 无需登录授权接口 ``` Route::post('login','AuthController/login')->name('login'); //手机号登录 Route::post('login/mobile','AuthController/mobile')->name('loginMobile'); //验证码发送 Route::post('register/verify','AuthController/verify')->name('registerVerify'); //手机号注册 Route::post('register','AuthController/register')->name('register'); //手机号修改密码 Route::post('register/reset','AuthController/reset')->name('registerReset'); //公众号服务 Route::any('wechat/serve','wechat.WechatController/serve'); //公众号支付回调 Route::any('wechat/notify','wechat.WechatController/notify'); //小程序支付回调 Route::any('routine/notify','wechat.AuthController/notify'); Route::miss(function(){return \think\Response::create()->code(404);}); ``` ``` Route::group(function(){ //公共类 Route::get('index', 'PublicController/index')->name('index');//首页 Route::get('search/keyword', 'PublicController/search')->name('searchKeyword');//热门搜索关键字获取 //产品分类类 Route::get('category', 'store.CategoryController/category')->name('category'); //产品类 Route::get('product/detail/:id', 'store.StoreProductController/detail')->name('detail');//产品详情 Route::get('groom/list/:type', 'store.StoreProductController/groom_list')->name('groomList');//获取首页推荐不同类型产品的轮播图和产品 Route::get('products', 'store.StoreProductController/lst')->name('products');//产品列表 Route::get('product/hot','store.StoreProductController/product_hot')->name('productHot');//为你推荐 Route::get('reply/list/:id', 'store.StoreProductController/reply_list')->name('replyList');//产品评价列表 Route::get('reply/config/:id', 'store.StoreProductController/reply_config')->name('replyConfig');//产品评价数量和好评度 //文章分类类 Route::get('article/category/list', 'publics.ArticleCategoryController/lst')->name('articleCategoryList');//文章分类列表 //文章类 Route::get('article/list/:cid', 'publics.ArticleController/lst')->name('articleList');//文章列表 Route::get('article/details/:id', 'publics.ArticleController/details')->name('articleDetails');//文章详情 Route::get('article/hot/list', 'publics.ArticleController/hot')->name('articleHotList');//文章 热门 Route::get('article/banner/list', 'publics.ArticleController/banner')->name('articleBannerList');//文章 banner //活动---秒杀 Route::get('seckill/index', 'activity.StoreSeckillController/index')->name('seckillIndex');//秒杀产品时间区间 Route::get('seckill/list/:time', 'activity.StoreSeckillController/lst')->name('seckillList');//秒杀产品列表 Route::get('seckill/detail/:id', 'activity.StoreSeckillController/detail')->name('seckillDetail');//秒杀产品详情 //活动---砍价 Route::get('bargain/config', 'activity.StoreBargainController/config')->name('bargainConfig');//砍价产品列表配置 Route::get('bargain/list', 'activity.StoreBargainController/lst')->name('bargainList');//砍价产品列表 //活动---拼团 Route::get('combination/list', 'activity.StoreCombinationController/lst')->name('combinationList');//拼团产品列表 Route::get('combination/detail/:id', 'activity.StoreCombinationController/detail')->name('combinationDetail');//拼团产品详情 //用户类 Route::get('user/activity', 'user.UserController/activity')->name('userActivity');//活动状态 //微信 Route::get('wechat/config', 'wechat.WechatController/config')->name('wechatConfig');//微信 sdk 配置 Route::get('wechat/auth', 'wechat.WechatController/auth')->name('wechatAuth');//微信授权 //小程序登陆 Route::post('wechat/mp_auth','wechat.AuthController/mp_auth')->name('mpAuth');//小程序登陆 Route::get('wechat/get_logo','wechat.AuthController/get_logo')->name('getLogo');//小程序登陆授权展示logo Route::post('wechat/set_form_id', 'wechat.AuthController/set_form_id')->name('setFormId');//小程序登陆授权展示logo //物流公司 Route::get('logistics', 'PublicController/logistics')->name('logistics');//物流公司列表 //分享配置 Route::get('share', 'PublicController/share')->name('share');//分享配置 //优惠券 Route::get('coupons', 'store.StoreCouponsController/lst')->name('couponsList');//可领取优惠券列表 //短信购买异步通知 Route::post('sms/pay/notify', 'PublicController/sms_pay_notify')->name('smsPayNotify');//短信购买异步通知 }); ``` ### 需要登录授权接口 ``` //管理员订单操作类 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">group</span><span class="token2">(</span><span class="token5">function</span> <span class="token2">(</span><span class="token2">)</span> <span class="token2">{</span> //订单数据统计 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'admin/order/statistics'</span><span class="token2">,</span> <span class="token3">'admin.StoreOrderController/statistics'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'adminOrderStatistics'</span><span class="token2">)</span><span class="token2">;</span> //订单每月统计数据 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'admin/order/data'</span><span class="token2">,</span> <span class="token3">'admin.StoreOrderController/data'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'adminOrderData'</span><span class="token2">)</span><span class="token2">;</span> //订单列表 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'admin/order/list'</span><span class="token2">,</span> <span class="token3">'admin.StoreOrderController/lst'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'adminOrderList'</span><span class="token2">)</span><span class="token2">;</span> //订单详情 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'admin/order/detail/:orderId'</span><span class="token2">,</span> <span class="token3">'admin.StoreOrderController/detail'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'adminOrderDetail'</span><span class="token2">)</span><span class="token2">;</span> //订单发货获取订单信息 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'admin/order/delivery/gain/:orderId'</span><span class="token2">,</span> <span class="token3">'admin.StoreOrderController/delivery_gain'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'adminOrderDeliveryGain'</span><span class="token2">)</span><span class="token2">;</span> <span class="token2">;</span><span class="token4">//订单发货 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'admin/order/delivery/keep'</span><span class="token2">,</span> <span class="token3">'admin.StoreOrderController/delivery_keep'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'adminOrderDeliveryKeep'</span><span class="token2">)</span> <span class="token4">//订单改价 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'admin/order/price'</span><span class="token2">,</span> <span class="token3">'admin.StoreOrderController/price'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'adminOrderPrice'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单备注 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'admin/order/remark'</span><span class="token2">,</span> <span class="token3">'admin.StoreOrderController/remark'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'adminOrderRemark'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单交易额时间统计 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'admin/order/time'</span><span class="token2">,</span> <span class="token3">'admin.StoreOrderController/time'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'adminOrderTime'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单支付 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'admin/order/offline'</span><span class="token2">,</span> <span class="token3">'admin.StoreOrderController/offline'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'adminOrderOffline'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单退款 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'admin/order/refund'</span><span class="token2">,</span> <span class="token3">'admin.StoreOrderController/refund'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'adminOrderRefund'</span><span class="token2">)</span><span class="token2">;</span> <span class="token2">}</span><span class="token2">)</span><span class="token2">; //会员授权接口 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">group</span><span class="token2">(</span><span class="token5">function</span> <span class="token2">(</span><span class="token2">)</span> <span class="token2">{</span> <span class="token4">// 退出登录 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'logout'</span><span class="token2">,</span> <span class="token3">'AuthController/logout'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'logout'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">// 切换账号 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'switch_h5'</span><span class="token2">,</span> <span class="token3">'AuthController/switch_h5'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'switch_h5'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">// 绑定手机号 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'binding'</span><span class="token2">,</span> <span class="token3">'AuthController/binding_phone'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'bindingPhone'</span><span class="token2">)</span><span class="token2">;</span> //产品类 //产品分享二维码 推广员 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'product/code/:id'</span><span class="token2">,</span> <span class="token3">'store.StoreProductController/code'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'productCode'</span><span class="token2">)</span><span class="token2">;</span> //公共类 //图片上传 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'upload/image'</span><span class="token2">,</span> <span class="token3">'PublicController/upload_image'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'uploadImage'</span><span class="token2">)</span><span class="token2">;</span> //用户类 //客服列表 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'user/service/list'</span><span class="token2">,</span> <span class="token3">'user.StoreService/lst'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'userServiceList'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//客服列表 //客服聊天记录 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'user/service/record/:toUid'</span><span class="token2">,</span> <span class="token3">'user.StoreService/record'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'userServiceRecord'</span><span class="token2">)</span><span class="token2">;</span> //用户类 用户coupons/order //个人中心 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'user'</span><span class="token2">,</span> <span class="token3">'user.UserController/user'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'user'</span><span class="token2">)</span><span class="token2">;</span> //用户修改信息 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'user/edit'</span><span class="token2">,</span> <span class="token3">'user.UserController/edit'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'userEdit'</span><span class="token2">)</span><span class="token2">;</span> <span class="token2">;//用户资金统计 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'user/balance'</span><span class="token2">,</span> <span class="token3">'user.UserController/balance'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'userBalance'</span><span class="token2">)</span> // 用户信息 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'userinfo'</span><span class="token2">,</span> <span class="token3">'user.UserController/userinfo'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'userinfo'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//用户类 地址</span> //获取单个地址 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'address/detail/:id'</span><span class="token2">,</span> <span class="token3">'user.UserController/address'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'address'</span><span class="token2">)</span><span class="token2">;</span> //地址列表 Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'address/list'</span><span class="token2">,</span> <span class="token3">'user.UserController/address_list'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'addressList'</span><span class="token2">)</span><span class="token2">;</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'address/default/set'</span><span class="token2">,</span> <span class="token3">'user.UserController/address_default_set'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'addressDefaultSet'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//设置默认地址</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'address/default'</span><span class="token2">,</span> <span class="token3">'user.UserController/address_default'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'addressDefault'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//获取默认地址</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'address/edit'</span><span class="token2">,</span> <span class="token3">'user.UserController/address_edit'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'addressEdit'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//修改 添加 地址</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'address/del'</span><span class="token2">,</span> <span class="token3">'user.UserController/address_del'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'addressDel'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//删除地址</span> <span class="token4">//用户类 收藏</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'collect/user'</span><span class="token2">,</span> <span class="token3">'user.UserController/collect_user'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'collectUser'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//收藏产品列表</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'collect/add'</span><span class="token2">,</span> <span class="token3">'user.UserController/collect_add'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'collectAdd'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//添加收藏</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'collect/del'</span><span class="token2">,</span> <span class="token3">'user.UserController/collect_del'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'collectDel'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//取消收藏</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'collect/all'</span><span class="token2">,</span> <span class="token3">'user.UserController/collect_all'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'collectAll'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//批量添加收藏</span> <span class="token4">//用戶类 分享</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'user/share'</span><span class="token2">,</span> <span class="token3">'PublicController/user_share'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'user_share'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//记录用户分享</span> <span class="token4">//用户类 点赞</span> <span class="token4">// Route::post('like/add', 'user.UserController/like_add')->name('likeAdd');//添加点赞</span> <span class="token4">// Route::post('like/del', 'user.UserController/like_del')->name('likeDel');//取消点赞</span> <span class="token4">//用户类 签到</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'sign/config'</span><span class="token2">,</span> <span class="token3">'user.UserController/sign_config'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'signConfig'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//签到配置</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'sign/list'</span><span class="token2">,</span> <span class="token3">'user.UserController/sign_list'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'signList'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//签到列表</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'sign/month'</span><span class="token2">,</span> <span class="token3">'user.UserController/sign_month'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'signIntegral'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//签到列表(年月)</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'sign/user'</span><span class="token2">,</span> <span class="token3">'user.UserController/sign_user'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'signUser'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//签到用户信息</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'sign/integral'</span><span class="token2">,</span> <span class="token3">'user.UserController/sign_integral'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'signIntegral'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//签到</span> <span class="token4">//优惠券类</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'coupon/receive'</span><span class="token2">,</span> <span class="token3">'store.StoreCouponsController/receive'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'couponReceive'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//领取优惠券</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'coupon/receive/batch'</span><span class="token2">,</span> <span class="token3">'store.StoreCouponsController/receive_batch'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'couponReceiveBatch'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//批量领取优惠券</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'coupons/user/:types'</span><span class="token2">,</span> <span class="token3">'store.StoreCouponsController/user'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'couponsUser'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//用户已领取优惠券</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'coupons/order/:price'</span><span class="token2">,</span> <span class="token3">'store.StoreCouponsController/order'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'couponsOrder'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//优惠券 订单列表</span> <span class="token4">//购物车类</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'cart/list'</span><span class="token2">,</span> <span class="token3">'store.StoreCartController/lst'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'cartList'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//购物车列表</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'cart/add'</span><span class="token2">,</span> <span class="token3">'store.StoreCartController/add'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'cartAdd'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//购物车添加</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'cart/del'</span><span class="token2">,</span> <span class="token3">'store.StoreCartController/del'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'cartDel'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//购物车删除</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'order/cancel'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/cancel'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderCancel'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单取消</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'cart/num'</span><span class="token2">,</span> <span class="token3">'store.StoreCartController/num'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'cartNum'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//购物车 修改产品数量</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'cart/count'</span><span class="token2">,</span> <span class="token3">'store.StoreCartController/count'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'cartCount'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//购物车 获取数量</span> <span class="token4">//订单类</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'order/confirm'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/confirm'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderConfirm'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单确认</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'order/computed/:key'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/computedOrder'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'computedOrder'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//计算订单金额</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'order/create/:key'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/create'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderCreate'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单创建</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'order/data'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/data'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderData'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单统计数据</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'order/list'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/lst'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderList'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单列表</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'order/detail/:uni'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/detail'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderDetail'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单详情</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'order/refund/reason'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/refund_reason'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderRefundReason'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单退款理由</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'order/refund/verify'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/refund_verify'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderRefundVerify'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单退款审核</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'order/take'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/take'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderTake'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单收货</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'order/express/:uni'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/express'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderExpress'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单查看物流</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'order/del'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/del'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderDel'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单删除</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'order/again'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/again'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderAgain'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单 再次下单</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'order/pay'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/pay'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderPay'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单支付</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'order/product'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/product'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderProduct'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单产品信息</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'order/comment'</span><span class="token2">,</span> <span class="token3">'order.StoreOrderController/comment'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'orderComment'</span><span class="token2">)</span><span class="token2">;</span> <span class="token4">//订单评价</span> <span class="token4">//活动---砍价</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'bargain/detail/:id'</span><span class="token2">,</span> <span class="token3">'activity.StoreBargainController/detail'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'bargainDetail'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//砍价产品详情</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'bargain/start'</span><span class="token2">,</span> <span class="token3">'activity.StoreBargainController/start'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'bargainStart'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//砍价开启</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'bargain/start/user'</span><span class="token2">,</span> <span class="token3">'activity.StoreBargainController/start_user'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'bargainStartUser'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//砍价 开启砍价用户信息</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'bargain/share'</span><span class="token2">,</span> <span class="token3">'activity.StoreBargainController/share'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'bargainShare'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//砍价 观看/分享/参与次数</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'bargain/help'</span><span class="token2">,</span> <span class="token3">'activity.StoreBargainController/help'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'bargainHelp'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//砍价 帮助好友砍价</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'bargain/help/price'</span><span class="token2">,</span> <span class="token3">'activity.StoreBargainController/help_price'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'bargainHelpPrice'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//砍价 砍掉金额</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'bargain/help/count'</span><span class="token2">,</span> <span class="token3">'activity.StoreBargainController/help_count'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'bargainHelpCount'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//砍价 砍价帮总人数、剩余金额、进度条、已经砍掉的价格</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'bargain/help/list'</span><span class="token2">,</span> <span class="token3">'activity.StoreBargainController/help_list'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'bargainHelpList'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//砍价 砍价帮</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'bargain/poster'</span><span class="token2">,</span> <span class="token3">'activity.StoreBargainController/poster'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'bargainPoster'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//砍价海报</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'bargain/user/list'</span><span class="token2">,</span> <span class="token3">'activity.StoreBargainController/user_list'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'bargainUserList'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//砍价列表(已参与)</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'bargain/user/cancel'</span><span class="token2">,</span> <span class="token3">'activity.StoreBargainController/user_cancel'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'bargainUserCancel'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//砍价取消</span> <span class="token4">//活动---拼团</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'combination/pink/:id'</span><span class="token2">,</span> <span class="token3">'activity.StoreCombinationController/pink'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'combinationPink'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//拼团开团</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'combination/remove'</span><span class="token2">,</span> <span class="token3">'activity.StoreCombinationController/remove'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'combinationRemove'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//拼团 取消开团</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'combination/poster'</span><span class="token2">,</span> <span class="token3">'activity.StoreCombinationController/poster'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'combinationPoster'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//拼团海报</span> <span class="token4">//账单类</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'commission'</span><span class="token2">,</span> <span class="token3">'user.UserBillController/commission'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'commission'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//推广数据 昨天的佣金 累计提现金额 当前佣金</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'spread/people'</span><span class="token2">,</span> <span class="token3">'user.UserBillController/spread_people'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'spreadPeople'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//推荐用户</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'spread/order'</span><span class="token2">,</span> <span class="token3">'user.UserBillController/spread_order'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'spreadOrder'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//推广订单</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'spread/commission/:type'</span><span class="token2">,</span> <span class="token3">'user.UserBillController/spread_commission'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'spreadCommission'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//推广佣金明细</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'spread/count/:type'</span><span class="token2">,</span> <span class="token3">'user.UserBillController/spread_count'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'spreadCount'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//推广 佣金 3/提现 4 总和</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'spread/banner'</span><span class="token2">,</span> <span class="token3">'user.UserBillController/spread_banner'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'spreadBanner'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//推广分销二维码海报生成</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'integral/list'</span><span class="token2">,</span> <span class="token3">'user.UserBillController/integral_list'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'integralList'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//积分记录</span> <span class="token4">//提现类</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'extract/bank'</span><span class="token2">,</span> <span class="token3">'user.UserExtractController/bank'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'extractBank'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//提现银行/提现最低金额</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'extract/cash'</span><span class="token2">,</span> <span class="token3">'user.UserExtractController/cash'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'extractCash'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//提现申请</span> <span class="token4">//充值类</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'recharge/routine'</span><span class="token2">,</span> <span class="token3">'user.UserRechargeController/routine'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'rechargeRoutine'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//小程序充值</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">post</span><span class="token2">(</span><span class="token3">'recharge/wechat'</span><span class="token2">,</span> <span class="token3">'user.UserRechargeController/wechat'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'rechargeWechat'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//公众号充值</span> <span class="token4">//会员等级类</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'menu/user'</span><span class="token2">,</span> <span class="token3">'PublicController/menu_user'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'menuUser'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//个人中心菜单</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'user/level/detection'</span><span class="token2">,</span> <span class="token3">'user.UserLevelController/detection'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'userLevelDetection'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//检测用户是否可以成为会员</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">(</span><span class="token3">'user/level/grade'</span><span class="token2">,</span> <span class="token3">'user.UserLevelController/grade'</span><span class="token2">)</span><span class="token1">-</span><span class="token1">></span><span class="token6">name</span><span class="token2">(</span><span class="token3">'userLevelGrade'</span><span class="token2">)</span><span class="token2">;</span><span class="token4">//会员等级列表</span> Route<span class="token2">:</span><span class="token2">:</span><span class="token6">get</span><span class="token2">('user/level/task/:id', 'user.UserLevelController/task')->name('userLevelTask');//获取等级任务 }); ```