Browse Source

goods list

master
林一峰 7 years ago
parent
commit
7df8174c06
  1. 24
      app/Http/Controllers/Weixin/GoodsController.php
  2. 7
      app/Http/Controllers/Weixin/IndexController.php
  3. 20
      app/Http/Model/Order.php
  4. 59
      resources/views/weixin/goods/categoryGoodsList.blade.php
  5. 2
      resources/views/weixin/goods/goodslist.blade.php
  6. 209
      resources/views/weixin/index/category.blade.php
  7. 2
      resources/views/weixin/index/index.blade.php
  8. 12
      resources/views/weixin/order/orderDetail.blade.php
  9. 33
      resources/views/weixin/order/orderList.blade.php
  10. 5
      routes/web.php

24
app/Http/Controllers/Weixin/GoodsController.php

@ -61,4 +61,28 @@ class GoodsController extends CommonController
return view('weixin.goods.goodsList', $data);
}
//商品列表
public function categoryGoodsList(Request $request)
{
if($request->input('typeid', '') != ''){$data['typeid'] = $request->input('typeid');}
if($request->input('tuijian', '') != ''){$data['tuijian'] = $request->input('tuijian');}
if($request->input('keyword', '') != ''){$data['keyword'] = $request->input('keyword');}
if($request->input('status', '') != ''){$data['status'] = $request->input('status');}
if($request->input('is_promote', '') != ''){$data['is_promote'] = $request->input('is_promote');}
if($request->input('orderby', '') != ''){$data['orderby'] = $request->input('orderby');}
if($request->input('max_price', '') != ''){$data['max_price'] = $request->input('max_price');}else{$data['max_price'] = 99999;}
if($request->input('min_price', '') != ''){$data['min_price'] = $request->input('min_price');}else{$data['min_price'] = 0;}
//商品列表
$postdata = array(
'limit' => 10,
'offset' => 0
);
$url = env('APP_API_URL')."/goods_list";
$goods_list = curl_request($url,$postdata,'GET');
$data['goods_list'] = $goods_list['data']['list'];
return view('weixin.goods.categoryGoodsList', $data);
}
}

7
app/Http/Controllers/Weixin/IndexController.php

@ -57,6 +57,13 @@ class IndexController extends CommonController
return view('weixin.index.index',$data);
}
//分类
public function category()
{
$data['aaa'] = 111;
return view('weixin.index.category',$data);
}
//标签详情页,共有3种显示方式,1正常列表,2列表显示文章,3显示描述
public function tag($tag, $page=0)
{

20
app/Http/Model/Order.php

@ -72,7 +72,9 @@ class Order extends BaseModel
{
foreach($order_list as $k=>$v)
{
$order_list[$k]['order_status_text'] = self::getOrderStatusText($v);
$order_status_arr = self::getOrderStatusText($v);
$order_list[$k]['order_status_text'] = $order_status_arr['text'];
$order_list[$k]['order_status_num'] = $order_status_arr['num'];
$order_goods = OrderGoods::where(array('order_id'=>$v['id']))->get();
$order_list[$k]['goods_list'] = $order_goods;
@ -102,7 +104,9 @@ class Order extends BaseModel
return ReturnData::create(ReturnData::SYSTEM_FAIL);
}
$res['order_status_text'] = self::getOrderStatusText($res);
$order_status_arr = self::getOrderStatusText($res);
$res['order_status_text'] = $order_status_arr['text'];
$res['order_status_num'] = $order_status_arr['num'];
$res['province_name'] = Region::getRegionName($res['province']);
$res['city_name'] = Region::getRegionName($res['city']);
@ -163,7 +167,7 @@ class Order extends BaseModel
'place_type' => $place_type, //订单来源
'bonus_id' => !empty($user_bonus)?$user_bonus['id']:0,
'bonus_money' => !empty($user_bonus)?$user_bonus['money']:0.00,
'message' => $message
'message' => !empty($message)?$message:'',
);
//插入订单
@ -245,23 +249,23 @@ class Order extends BaseModel
$res = '';
if($where['order_status'] == 0 && $where['pay_status'] ==0)
{
$res = '待付款';
$res = array('text'=>'待付款','num'=>1);
}
elseif($where['order_status'] == 0 && $where['shipping_status'] == 0 && $where['pay_status'] == 1)
{
$res = '待发货';
$res = array('text'=>'待发货','num'=>2);
}
elseif($where['order_status'] == 0 && $where['refund_status'] == 0 && $where['shipping_status'] == 1 && $where['pay_status'] == 1)
{
$res = '待收货';
$res = array('text'=>'待收货','num'=>3);
}
elseif($where['order_status'] == 3 && $where['refund_status'] == 0 && $where['shipping_status'] == 2 && $where['is_comment'] == 0)
{
$res = '交易成功';
$res = array('text'=>'交易成功','num'=>4);
}
elseif($where['order_status'] == 3 && $where['refund_status'] == 1)
{
$res = '售后';
$res = array('text'=>'售后','num'=>5);
}
return $res;

59
resources/views/weixin/goods/categoryGoodsList.blade.php

@ -0,0 +1,59 @@
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<title>商城</title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
<link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script>
<meta name="keywords" content="关键词"><meta name="description" content="描述"></head><body>
<div class="classreturn loginsignup">
<div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div>
<div class="ds-in-bl tit center"><span>所有分类</span></div>
<div class="ds-in-bl nav_menu"><a href="javascript:void(0);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/class1.png" alt="菜单"></a></div>
</div>
@include('weixin.common.headerNav')
<div class="flool classlist">
<div class="fl category1">
<ul>
<li class="on">
<a href="javascript:void(0);" data-id="0">数码产品</a>
</li>
<li class="">
<a href="javascript:void(0);" data-id="1">家用电器</a>
</li>
<li class="">
<a href="javascript:void(0);" data-id="2">电脑</a>
</li>
<li class="">
<a href="javascript:void(0);" data-id="3">家具</a>
</li>
<li class="">
<a href="javascript:void(0);" data-id="4">服装</a>
</li>
<li class="">
<a href="javascript:void(0);" data-id="5">箱包</a>
</li>
<li class="">
<a href="javascript:void(0);" data-id="6">个人化妆</a>
</li>
</ul>
</div>
<div class="fr category2">
<ul class="goods_list_small">
<li><a href="http://m.m99.info/cat1/youhuo1486"><img alt="1" src="images/weixin/goods_thumb_400_400.jpeg"><div class="goods_info"><p class="goods_tit">美女真空凸点诱惑</p><div class="goods_price"><b>100.00</b></div></div></a></li>
<li><a href="http://m.m99.info/cat1/youhuo1485"><img alt="2" src="images/weixin/goods_thumb_400_400.jpeg"><div class="goods_info"><p class="goods_tit">性感小骚货在床上</p><div class="goods_price"><b>100.00</b></div></div></a></li>
<li><a href="http://m.m99.info/cat1/youhuo1484"><img alt="3" src="images/weixin/goods_thumb_400_400.jpeg"><div class="goods_info"><p class="goods_tit">小野猫嫩模大尺度写真</p><div class="goods_price"><b>100.00</b></div></div></a></li>
<li><a href="http://m.m99.info/cat1/youhuo1482"><img alt="4" src="images/weixin/goods_thumb_400_400.jpeg"><div class="goods_info"><p class="goods_tit">韩国嫩模的逆天身材</p><div class="goods_price"><b>100.00</b></div></div></a></li>
<li><a href="http://m.m99.info/cat1/youhuo1481"><img alt="5" src="images/weixin/goods_thumb_400_400.jpeg"><div class="goods_info"><p class="goods_tit">推女郎林夕图片</p><div class="goods_price"><b>100.00</b></div></div></a></li>
<li><a href="http://m.m99.info/cat1/youhuo1486"><img alt="1" src="images/weixin/goods_thumb_400_400.jpeg"><div class="goods_info"><p class="goods_tit">美女真空凸点诱惑</p><div class="goods_price"><b>100.00</b></div></div></a></li>
<li><a href="http://m.m99.info/cat1/youhuo1485"><img alt="2" src="images/weixin/goods_thumb_400_400.jpeg"><div class="goods_info"><p class="goods_tit">性感小骚货在床上</p><div class="goods_price"><b>100.00</b></div></div></a></li>
<li><a href="http://m.m99.info/cat1/youhuo1484"><img alt="3" src="images/weixin/goods_thumb_400_400.jpeg"><div class="goods_info"><p class="goods_tit">小野猫嫩模大尺度写真</p><div class="goods_price"><b>100.00</b></div></div></a></li>
<li><a href="http://m.m99.info/cat1/youhuo1482"><img alt="4" src="images/weixin/goods_thumb_400_400.jpeg"><div class="goods_info"><p class="goods_tit">韩国嫩模的逆天身材</p><div class="goods_price"><b>100.00</b></div></div></a></li>
<li><a href="http://m.m99.info/cat1/youhuo1481"><img alt="5" src="images/weixin/goods_thumb_400_400.jpeg"><div class="goods_info"><p class="goods_tit">推女郎林夕图片</p><div class="goods_price"><b>100.00</b></div></div></a></li>
<li><a href="http://m.m99.info/cat1/youhuo1483"><img alt="6" src="images/weixin/goods_thumb_400_400.jpeg"><div class="goods_info"><p class="goods_tit">性感闺蜜艺术照</p><div class="goods_price"><b>100.00</b></div></div></a></li>
</ul>
</div>
</div>
@include('weixin.common.footer')
</body></html>

2
resources/views/weixin/goods/goodslist.blade.php

@ -15,7 +15,7 @@
</li>
<li class="red">
<a href="/index.php/Mobile/Goods/search/id/0/q/冰箱/sort/sales_sum">
<span class="dq">销量</span>
<span class="dq">销量</span>
</a>
</li>
<li>

209
resources/views/weixin/index/category.blade.php

@ -0,0 +1,209 @@
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<title>微商城</title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
<link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script>
<meta name="keywords" content="关键词"><meta name="description" content="描述"></head><body>
<div class="classreturn loginsignup">
<div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div>
<div class="ds-in-bl tit center"><span>所有分类</span></div>
<div class="ds-in-bl nav_menu"><a href="javascript:void(0);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/class1.png" alt="菜单"></a></div>
</div>
@include('weixin.common.headerNav')
<div class="flool classlist">
<div class="fl category1">
<ul>
<li class="on">
<a href="javascript:void(0);" data-id="0">数码产品</a>
</li>
<li class="">
<a href="javascript:void(0);" data-id="1">家用电器</a>
</li>
<li class="">
<a href="javascript:void(0);" data-id="2">电脑</a>
</li>
<li class="">
<a href="javascript:void(0);" data-id="3">家具</a>
</li>
<li class="">
<a href="javascript:void(0);" data-id="4">服装</a>
</li>
<li class="">
<a href="javascript:void(0);" data-id="5">箱包</a>
</li>
<li class="">
<a href="javascript:void(0);" data-id="6">个人化妆</a>
</li>
</ul>
</div>
<div class="fr category2">
<div class="branchList" style="">
<!--广告图-s-->
<div class="tp-bann" data-id="0">
<a href="http://www.tp-shop.cn" target="_blank">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/57792b4ee20e3.jpg">
</a>
</div>
<!--广告图-e-->
<!--分类-s-->
<div class="tp-class-list">
<h4><a href="/index.php/Mobile/Goods/goodsList/id/12.html">手机配件</a></h4>
<ul class="tp-category">
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/100.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>电池 电源 充电器</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/102.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>贴膜,保护套</p>
</a>
</li>
</ul>
<h4><a href="/index.php/Mobile/Goods/goodsList/id/13.html">摄影摄像</a></h4>
<ul class="tp-category">
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/103.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>数码相机</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/104.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>单反相机</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/105.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>摄像机</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/106.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>镜头</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/107.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>数码相框</p>
</a>
</li>
</ul>
<h4><a href="/index.php/Mobile/Goods/goodsList/id/14.html">运营商</a></h4>
<ul class="tp-category">
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/108.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>选号码</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/109.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>办套餐</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/110.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>合约机</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/111.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>中国移动</p>
</a>
</li>
</ul>
<h4><a href="/index.php/Mobile/Goods/goodsList/id/15.html">数码配件</a></h4>
<ul class="tp-category">
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/112.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>充值卡</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/113.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>读卡器</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/114.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>支架</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/115.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>滤镜</p>
</a>
</li>
</ul>
<h4><a href="/index.php/Mobile/Goods/goodsList/id/16.html">娱乐影视</a></h4>
<ul class="tp-category">
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/116.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>音响麦克风</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/117.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>耳机/耳麦</p>
</a>
</li>
</ul>
<h4><a href="/index.php/Mobile/Goods/goodsList/id/17.html">电子教育</a></h4>
<ul class="tp-category">
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/118.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>学生平板</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/119.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>点读机</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/120.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>电纸书</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/121.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>电子词典</p>
</a>
</li>
<li>
<a href="/index.php/Mobile/Goods/goodsList/id/122.html">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/none2.png">
<p>复读机</p>
</a>
</li>
</ul>
</div>
<!--分类-e-->
</div>
</div>
</div>
@include('weixin.common.footer')
</body></html>

2
resources/views/weixin/index/index.blade.php

@ -104,7 +104,7 @@ var swiper = new Swiper('.swiper-nav', {
<img src="<?php echo env('APP_URL'); ?>/images/weixin/icon_15.png" alt="团购" />
<span>团购</span>
</a>
<a href="http://www.shop.com/index.php/mobile/User/order_list.html">
<a href="<?php echo route('weixin_order_list'); ?>">
<img src="<?php echo env('APP_URL'); ?>/images/weixin/icon_16.png" alt="我的订单" />
<span>我的订单</span>
</a>

12
resources/views/weixin/order/orderDetail.blade.php

@ -11,6 +11,14 @@
</div>
@include('weixin.common.headerNav')
<div class="orderdetail-des">
<p><?php echo $post['order_status_text']; ?></p>
</div>
<style>
.orderdetail-des{background:#ea5a3d;padding:20px 10px;color:#fff;font-size:18px;}
</style>
<!-- 选择收货地址-start -->
<div class="checkout-addr">
<p class="title"><span class="name" id="default_consignee"><?php echo $post['name']; ?></span> <span class="tel" id="default_phone"><?php echo $post['mobile']; ?></span></p>
@ -27,12 +35,12 @@
<div class="floor mt10">
<div class="tit_h">订单商品</div>
<ul class="goodslist">
<?php if($post){foreach($post['goods_list'] as $key=>$value){ ?>
<?php foreach($post['goods_list'] as $key=>$value){ ?>
<li>
<img src="<?php echo $value['goods_img']; ?>">
<p><b><?php echo $value['goods_name']; ?></b><span>¥<?php echo $value['goods_price']; ?><i>x<?php echo $value['goods_number']; ?></i></span></p>
</li>
<?php }} ?>
<?php } ?>
</ul>
<p class="des">合计: <?php echo $post['order_amount']; ?> <small>(含运费:¥<?php echo $post['shipping_fee']; ?>)</small></p>

33
resources/views/weixin/order/orderList.blade.php

@ -10,6 +10,32 @@
</div>
@include('weixin.common.headerNav')
<!--导航左右滑动-start-->
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/swiper.min.js"></script>
<link rel="stylesheet" href="<?php echo env('APP_URL'); ?>/css/swiper.min.css">
<div class="swiper-nav">
<div class="swiper-wrapper">
<div class="swiper-slide<?php $order_status=0;if(isset($_REQUEST['status']) && !empty($_REQUEST['status'])){$order_status=$_REQUEST['status'];}if($order_status==0){echo ' swiper-slide-activate';} ?>"><a href="<?php echo route('weixin_order_list'); ?>">全部</a></div>
<div class="swiper-slide<?php if($order_status==1){echo ' swiper-slide-activate';} ?>"><a href="<?php echo route('weixin_order_list',array('status'=>1)); ?>">待付款</a></div>
<div class="swiper-slide<?php if($order_status==2){echo ' swiper-slide-activate';} ?>"><a href="<?php echo route('weixin_order_list',array('status'=>2)); ?>">待发货</a></div>
<div class="swiper-slide<?php if($order_status==3){echo ' swiper-slide-activate';} ?>"><a href="<?php echo route('weixin_order_list',array('status'=>3)); ?>">待收货</a></div>
<div class="swiper-slide<?php if($order_status==4){echo ' swiper-slide-activate';} ?>"><a href="<?php echo route('weixin_order_list',array('status'=>4)); ?>">待评价</a></div>
<div class="swiper-slide<?php if($order_status==5){echo ' swiper-slide-activate';} ?>"><a href="<?php echo route('weixin_order_list',array('status'=>5)); ?>">退款/售后</a></div>
</div>
</div>
<style>
.swiper-nav{width:100%;height:46px;line-height:46px;border-bottom:1px solid #efefef;background:#fff;}
.swiper-slide{text-align:center;font-size:18px;background:#fff;}.swiper-slide a{color:#666;}
.swiper-slide-activate{color:#f23030;border-bottom:2px solid #f23030;}.swiper-slide-activate a{color:#f23030;}
</style>
<script>
var swiper = new Swiper('.swiper-nav', {
slidesPerView: 4 //一行4列显示
});
</script>
<!--导航左右滑动-end-->
<?php if($list){foreach($list as $key=>$value){ ?>
<div class="floor mt10">
<a href="<?php echo route('weixin_order_detail',array('id'=>$value['id'])); ?>">
@ -25,9 +51,11 @@
</a>
<p class="des">合计: <?php echo $value['order_amount']; ?> <small>(含运费:¥<?php echo $value['shipping_fee']; ?>)</small></p>
<div class="tag"><a href="" class="activate">我要付款</a><a href="">评价</a></div>
<div class="tag"><?php if($value['order_status_num']==1){ ?><a href="<?php echo route('weixin_order_pay',array('id'=>$value['id'])); ?>">我要付款</a><?php } ?><a href="" class="activate">评价</a></div>
</div>
<?php }} ?>
<?php }}else{ ?>
<div style="text-align:center;line-height:40px;color:#999;">暂无记录</div>
<?php } ?>
<style>
.goodslist{background-color:#fbfbfb;}
.goodslist li{display:-webkit-box;margin:0 10px;padding:10px 0;border-bottom:1px solid #f1f1f1;}.goodslist li:last-child{border-bottom:none;}
@ -44,5 +72,4 @@
.tag a{color:#666;background-color:#fff;border:1px solid #ddd;border-radius:5px;font-size:14px;padding:2px 6px;display:inline-block;margin-right:10px;}
.tag a.activate{color:#ea6f5a;border:1px solid #ea6f5a;}
</style>
@include('weixin.common.footer')
</body></html>

5
routes/web.php

@ -55,7 +55,9 @@ Route::group(['namespace' => 'Home'], function () {
//微信路由,无需登录
Route::group(['prefix' => 'weixin', 'namespace' => 'Weixin'], function () {
Route::get('/', 'IndexController@index')->name('weixin');
Route::get('/page404', 'IndexController@page404')->name('weixin_page404'); //404页面
Route::get('/category', 'IndexController@category')->name('weixin_category');
Route::get('/category_goods_list', 'GoodsController@categoryGoodsList')->name('weixin_category_goods_list'); //产品分类页
Route::get('/page404', 'IndexController@page404')->name('weixin_page404'); //404页面
Route::get('/search', 'IndexController@search')->name('weixin_search'); //搜索页面
Route::get('/p/{id}', 'ArticleController@detail')->name('weixin_article_detail'); //文章详情页
Route::get('/cat{cat}', 'ArticleController@category')->name('weixin_article_category'); //分类页
@ -77,7 +79,6 @@ Route::group(['prefix' => 'weixin', 'namespace' => 'Weixin'], function () {
//微信路由,需登录,全局
Route::group(['prefix' => 'weixin', 'namespace' => 'Weixin', 'middleware' => ['web','wxlogin']], function () {
Route::get('/category', 'CartController@index')->name('weixin_category');
//个人中心
Route::get('/user', 'UserController@index')->name('weixin_user');
Route::get('/userinfo', 'UserController@userinfo')->name('weixin_userinfo');

Loading…
Cancel
Save