Browse Source

浏览记录

master
ZLW-PC\Administrator 7 years ago
parent
commit
db466238a0
  1. 16
      app/Http/Controllers/Admin/GoodsController.php
  2. 86
      app/Http/Controllers/Api/UserGoodsHistoryController.php
  3. 53
      app/Http/Controllers/Weixin/ArticleController.php
  4. 54
      app/Http/Controllers/Weixin/CommonController.php
  5. 3
      app/Http/Controllers/Weixin/GoodsController.php
  6. 44
      app/Http/Controllers/Weixin/IndexController.php
  7. 20
      app/Http/Controllers/Weixin/UserController.php
  8. 17
      app/Http/Model/Goods.php
  9. 14
      app/Http/Model/UserGoodsHistory.php
  10. 1
      resources/views/admin/goods/edit.blade.php
  11. 0
      resources/views/weixin/article/category.blade.php
  12. 2
      resources/views/weixin/article/detail.blade.php
  13. 0
      resources/views/weixin/goods/goods.blade.php
  14. 0
      resources/views/weixin/goods/goodslist.blade.php
  15. 4
      resources/views/weixin/index/index.blade.php
  16. 47
      resources/views/weixin/index/jump.blade.php
  17. 29
      resources/views/weixin/user/userGoodsHistory.blade.php
  18. 14
      routes/web.php

16
app/Http/Controllers/Admin/GoodsController.php

@ -77,7 +77,10 @@ class GoodsController extends CommonController
unset($_POST["_token"]);
if(isset($_POST['editorValue'])){unset($_POST['editorValue']);}
if(isset($_POST['promote_start_date'])){$_POST['promote_start_date'] = strtotime($_POST['promote_start_date']);}
if(isset($_POST['promote_end_date'])){$_POST['promote_end_date'] = strtotime($_POST['promote_end_date']);}
if(empty($_POST['promote_price'])){unset($_POST['promote_price']);}
if(DB::table('goods')->insert(array_filter($_POST)))
{
success_jump('添加成功!', route('admin_goods'));
@ -93,7 +96,11 @@ class GoodsController extends CommonController
if(!empty($_GET["id"])){$id = $_GET["id"];}else {$id="";}if(preg_match('/[0-9]*/',$id)){}else{exit;}
$data['id'] = $id;
$data['post'] = object_to_array(DB::table('goods')->where('id', $id)->first(), 1);
$goods = DB::table('goods')->where('id', $id)->first();
if($goods->promote_start_date != 0){$goods->promote_start_date = date('Y-m-d H:i:s',$goods->promote_start_date);}
if($goods->promote_end_date != 0){$goods->promote_end_date = date('Y-m-d H:i:s',$goods->promote_end_date);}
$data['post'] = object_to_array($goods, 1);
return view('admin.goods.edit', $data);
}
@ -125,7 +132,10 @@ class GoodsController extends CommonController
unset($_POST["_token"]);
if(isset($_POST['editorValue'])){unset($_POST['editorValue']);}
if(isset($_POST['promote_start_date'])){$_POST['promote_start_date'] = strtotime($_POST['promote_start_date']);}
if(isset($_POST['promote_end_date'])){$_POST['promote_end_date'] = strtotime($_POST['promote_end_date']);}
if(empty($_POST['promote_price'])){unset($_POST['promote_price']);}
if(DB::table('goods')->where('id', $id)->update($_POST))
{
success_jump('修改成功!', route('admin_goods'));

86
app/Http/Controllers/Api/UserGoodsHistoryController.php

@ -0,0 +1,86 @@
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Api\CommonController;
use Illuminate\Http\Request;
use App\Common\ReturnData;
use App\Common\Token;
use App\Http\Model\UserGoodsHistory;
class UserGoodsHistoryController extends CommonController
{
public function __construct()
{
parent::__construct();
}
//我的足迹列表
public function userGoodsHistoryList(Request $request)
{
//参数
$data['limit'] = $request->input('limit', 10);
$data['offset'] = $request->input('offset', 0);
$data['user_id'] = Token::$uid;
$res = UserGoodsHistory::getList($data);
if($res === false)
{
return ReturnData::create(ReturnData::SYSTEM_FAIL);
}
return ReturnData::create(ReturnData::SUCCESS,$res);
}
//我的足迹添加
public function userGoodsHistoryAdd(Request $request)
{
//参数
$data['goods_id'] = $request->input('goods_id',null);
$data['user_id'] = Token::$uid;
if($data['goods_id']===null || $data['user_id']===null)
{
return ReturnData::create(ReturnData::PARAMS_ERROR);
}
$res = UserGoodsHistory::add($data);
if($res === false)
{
return ReturnData::create(ReturnData::SYSTEM_FAIL);
}
return ReturnData::create(ReturnData::SUCCESS,$res);
}
//删除一条我的足迹
public function userGoodsHistoryDelete(Request $request)
{
//参数
$id = $request->input('id',null);
$res = UserGoodsHistory::remove($id,Token::$uid);
if($res === false)
{
return ReturnData::create(ReturnData::SYSTEM_FAIL);
}
return ReturnData::create(ReturnData::SUCCESS,$res);
}
//清空我的足迹
public function userGoodsHistoryClear(Request $request)
{
//参数
$user_id = Token::$uid;
$res = UserGoodsHistory::remove($user_id);
if($res === false)
{
return ReturnData::create(ReturnData::SYSTEM_FAIL);
}
return ReturnData::create(ReturnData::SUCCESS,$res);
}
}

53
app/Http/Controllers/Weixin/ArticleController.php

@ -0,0 +1,53 @@
<?php
namespace App\Http\Controllers\Weixin;
use App\Http\Controllers\Weixin\CommonController;
use Illuminate\Http\Request;
class ArticleController extends CommonController
{
public function __construct()
{
parent::__construct();
}
//列表页
public function category($cat)
{
//文章分类
$postdata = array(
'id' => $cat
);
$url = env('APP_API_URL')."/arctype_detail";
$arctype_detail = curl_request($url,$postdata,'GET');
$data['post'] = $arctype_detail['data'];
//文章列表
$postdata = array(
'limit' => 10,
'offset' => 0
);
$url = env('APP_API_URL')."/article_list";
$article_list = curl_request($url,$postdata,'GET');
$data['article_list'] = $article_list['data']['list'];
return view('weixin.article.category', $data);
}
//文章详情页
public function detail($id)
{
//最新资讯
$postdata = array(
'id' => $id
);
$url = env('APP_API_URL')."/article_detail";
$article_detail = curl_request($url,$postdata,'GET');
if(empty($article_detail['data'])){return redirect()->route('weixin_page404');}
$article_detail['data']['body'] = preg_replace('/src=\"\/uploads\/allimg/',"src=\"".env('APP_URL')."/uploads/allimg",$article_detail['data']['body']);
$data['post'] = $article_detail['data'];
return view('weixin.article.detail', $data);
}
}

54
app/Http/Controllers/Weixin/CommonController.php

@ -9,4 +9,58 @@ class CommonController extends Controller
{
parent::__construct();
}
/**
* 操作错误跳转的快捷方法
* @access protected
* @param string $msg 错误信息
* @param string $url 页面跳转地址
* @param mixed $time 当数字时指定跳转时间
* @return void
*/
public function error_jump($msg='', $url='', $time=3)
{
if ($url=='' && isset($_SERVER["HTTP_REFERER"]))
{
$url = $_SERVER["HTTP_REFERER"];
}
if(!headers_sent())
{
header("Location:".route('weixin_jump')."?error=$msg&url=$url&time=$time");
exit();
}
else
{
$str = "<meta http-equiv='Refresh' content='URL=".route('weixin_jump')."?error=$msg&url=$url&time=$time"."'>";
exit($str);
}
}
/**
* 操作成功跳转的快捷方法
* @access protected
* @param string $msg 提示信息
* @param string $url 页面跳转地址
* @param mixed $time 当数字时指定跳转时间
* @return void
*/
public function success_jump($msg='', $url='', $time=1)
{
if ($url=='' && isset($_SERVER["HTTP_REFERER"]))
{
$url = $_SERVER["HTTP_REFERER"];
}
if(!headers_sent())
{
header("Location:".route('weixin_jump')."?message=$msg&url=$url&time=$time");
exit();
}
else
{
$str = "<meta http-equiv='Refresh' content='URL=".route('weixin_jump')."?message=$msg&url=$url&time=$time"."'>";
exit($str);
}
}
}

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

@ -32,7 +32,6 @@ class GoodsController extends CommonController
$goods_list = curl_request($url,$postdata,'GET');
$data['goods_list'] = $goods_list['data']['list'];
return view('weixin.index.goodslist', $data);
return view('weixin.goods.goodslist', $data);
}
}

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

@ -11,6 +11,12 @@ class IndexController extends CommonController
{
parent::__construct();
}
//页面跳转
public function jump()
{
return view('weixin.index.jump');
}
//首页
public function index()
@ -45,44 +51,6 @@ class IndexController extends CommonController
return view('weixin.index.index',$data);
}
//列表页
public function category($cat)
{
//文章分类
$postdata = array(
'id' => $cat
);
$url = env('APP_API_URL')."/arctype_detail";
$arctype_detail = curl_request($url,$postdata,'GET');
$data['post'] = $arctype_detail['data'];
//文章列表
$postdata = array(
'limit' => 10,
'offset' => 0
);
$url = env('APP_API_URL')."/article_list";
$article_list = curl_request($url,$postdata,'GET');
$data['article_list'] = $article_list['data']['list'];
return view('weixin.index.category', $data);
}
//文章详情页
public function detail($id)
{
//最新资讯
$postdata = array(
'id' => $id
);
$url = env('APP_API_URL')."/article_detail";
$article_detail = curl_request($url,$postdata,'GET');
if(empty($article_detail['data'])){return redirect()->route('weixin_page404');}
$data['post'] = $article_detail['data'];
return view('weixin.index.detail', $data);
}
//标签详情页,共有3种显示方式,1正常列表,2列表显示文章,3显示描述
public function tag($tag, $page=0)
{

20
app/Http/Controllers/Weixin/UserController.php

@ -13,7 +13,7 @@ class UserController extends CommonController
//个人中心
public function index(Request $request)
{
{$_SESSION['weixin_user_info']['access_token'] = '72d623d26a1a6d61186a97f9ccf752f7';
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');}
@ -38,23 +38,15 @@ class UserController extends CommonController
//浏览记录
public function userGoodsHistory(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
'offset' => 0,
'access_token' => $_SESSION['weixin_user_info']['access_token']
);
$url = env('APP_API_URL')."/goods_list";
$goods_list = curl_request($url,$postdata,'GET');
$data['goods_list'] = $goods_list['data']['list'];
$url = env('APP_API_URL')."/user_goods_history_list";
$res = curl_request($url,$postdata,'GET');
$data['user_goods_history'] = $res['data']['list'];
return view('weixin.user.userGoodsHistory', $data);
}

17
app/Http/Model/Goods.php

@ -31,9 +31,9 @@ class Goods extends BaseModel
//protected $connection = 'connection-name';
//常用字段
protected static $common_field = [
protected static $common_field = array(
'id', 'typeid', 'tuijian', 'click', 'title', 'sn', 'price','litpic', 'pubdate', 'add_time', 'market_price', 'goods_number', 'sale', 'comments','promote_start_date','promote_price','promote_end_date','goods_img','spec','point'
];
);
const STATUS = 0; //商品是否删除,0未删除
@ -110,13 +110,20 @@ class Goods extends BaseModel
return $res;
}
public static function getOne($id)
public static function getOne(array $param)
{
if(isset($status)){$where['status'] = $status;}else{$where['status'] = self::STATUS;}
extract($param);
$model = new Goods;
$where['id'] = $id;
$goods = self::where($where)->first();
if(isset($where)){$model = $model->where($where);}
if(isset($field)){$model = $model->select($field);}
$goods = $model->first();
$goods['goods_detail_url'] = route('weixin_goods_detail',array('id'=>$goods->id));
$goods['price'] = self::get_final_price($id);
return $goods;

14
app/Http/Model/UserGoodsHistory.php

@ -36,6 +36,16 @@ class UserGoodsHistory extends BaseModel
if($res['count']>0)
{
$res['list'] = $model->skip($offset)->take($limit)->orderBy('id','desc')->get();
if($res['list'])
{
foreach($res['list'] as $k=>$v)
{
$goods = Goods::getOne(array('id'=>$v['goods_id'],'field'=>array('id', 'typeid', 'tuijian', 'click', 'title', 'sn', 'price','litpic', 'pubdate', 'add_time', 'market_price', 'goods_number', 'sale', 'comments','promote_start_date','promote_price','promote_end_date','goods_img','spec','point')));
$res['list'][$k]['goods'] = $goods;
}
}
}
else
{
@ -77,9 +87,9 @@ class UserGoodsHistory extends BaseModel
}
//删除一条记录
public static function remove($id)
public static function remove($id,$user_id)
{
if (self::whereIn('id', explode(',', $id))->delete() === false)
if (self::whereIn('id', explode(',', $id))->where('user_id',$user_id)->delete() === false)
{
return false;
}

1
resources/views/admin/goods/edit.blade.php

@ -2,6 +2,7 @@
@section('title', '商品信息修改')
@section('content')
<script language="javascript" type="text/javascript" src="http://<?php echo env('APP_DOMAIN'); ?>/js/My97DatePicker/WdatePicker.js"></script>
<h5 class="sub-header"><a href="/fladmin/goods">商品列表</a> > 修改商品</h5>
<form id="addarc" method="post" action="/fladmin/goods/doedit" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }}

0
resources/views/weixin/index/category.blade.php → resources/views/weixin/article/category.blade.php

2
resources/views/weixin/index/detail.blade.php → resources/views/weixin/article/detail.blade.php

@ -37,7 +37,7 @@
&nbsp;</div>
<div>
3.客户还可以通过交易所的咨询电话进行查询:0755-2288800(深市),021-16893006(沪市)投资者所查到的配号是投资者在一个帐户上申购新股所得配号的起始号,其余配号依次顺延.</div>
<div class="arcnext cl">: <a class="red" href="http://m.1104.org/cat60/id4051" rel="prev">网上申购新股如何操作</a></div></div>
<!-- <div class="arcnext cl">: <a class="red" href="" rel="prev"></a></div> --></div>
@include('weixin.common.footer')
</body></html>

0
resources/views/weixin/index/goods.blade.php → resources/views/weixin/goods/goods.blade.php

0
resources/views/weixin/index/goodslist.blade.php → resources/views/weixin/goods/goodslist.blade.php

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

@ -140,9 +140,9 @@ var swiper = new Swiper('.swiper-nav', {
<div class="banner_tit"><img src="images/weixin/ind_52.jpg" alt="猜您喜欢"/></div>
<div class="likeshop">
<ul class="goods_list" id="goods_list">
<?php foreach($goods_list as $k=>$v){ ?>
<?php if($goods_list){foreach($goods_list as $k=>$v){ ?>
<li><a href="<?php echo $v['goods_detail_url']; ?>"><img alt="<?php echo $v['title']; ?>" src="<?php echo $v['litpic']; ?>"><div class="goods_info"><p class="goods_tit"><?php echo $v['title']; ?></p><div class="goods_price">¥<b><?php echo $v['price']; ?></b></div></div></a></li>
<?php } ?>
<?php }} ?>
</ul>
</div>
</div>

47
resources/views/weixin/index/jump.blade.php

@ -0,0 +1,47 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>跳转提示</title>
<style type="text/css">
*{ padding: 0; margin: 0; }
body{ background: #fff; font-family: '微软雅黑'; color: #333; font-size: 16px; }
.system-message{padding: 24px 48px;margin:5% auto 0 auto;width:600px;}
.system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
.system-message .jump{ padding-top: 10px}
.system-message .jump a{ color: #333;}
.system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px }
.system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display:none}
</style>
</head><body>
<?php
/** 参数说明
* $_REQUEST['message']; //成功提示
* $_REQUEST['error']; //失败提示
* $_REQUEST['url']; //要跳转到哪里
* $_REQUEST['time']; //几秒后跳转
*/
?>
<div class="system-message">
<?php if(isset($_REQUEST['message'])) { ?>
<h1>:)</h1>
<p class="success"><?php echo $_REQUEST['message']; ?></p>
<?php }elseif(isset($_REQUEST['error'])){ ?>
<h1>:(</h1>
<p class="error"><?php echo $_REQUEST['error']; ?></p>
<?php } ?>
<p class="detail"></p>
<p class="jump">页面自动 <a id="href" href="<?php if(isset($_REQUEST['url'])){ echo $_REQUEST['url']; } ?>">跳转</a> 等待时间: <b id="wait"><?php if(isset($_REQUEST['time'])){ echo $_REQUEST['time']; } ?></b></p>
</div>
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
var time = --wait.innerHTML;
if(time <= 0)
{
location.href = href;
clearInterval(interval);
};
}, 1000);
})();
</script>
</body></html>

29
resources/views/weixin/user/userGoodsHistory.blade.php

@ -1,33 +1,22 @@
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<title>商城</title><meta name="keywords" content="关键词"><meta name="description" content="描述"><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
<title>我的足迹</title><meta name="keywords" content="关键词"><meta name="description" content="描述"><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></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);" style="color:#999;">清空</a></div>
<div class="ds-in-bl nav_menu"><a href="javascript:void(0);" style="color:#999;" id="clear_history">清空</a></div>
</div>
<div class="floor">
<ul class="goods_list_s cl">
<li><a href="http://www.baidu.com"><span class="goods_thumb"><img alt="决定基金业绩的主要因素" src="<?php echo env('APP_URL'); ?>/images/weixin/goods_thumb_400_400.jpeg"></span></a>
<div class="goods_info"><p class="goods_tit">买基金要因素决定基金业绩的主要因素决定基金业绩的主要因素决定基金业绩的主要因素</p>
<p class="goods_price"><b>100.00</b></p>
<p class="goods_des fr">删除</p>
</div>
</li>
<li><a href="http://www.baidu.com"><span class="goods_thumb"><img alt="决定基金业绩的主要因素" src="<?php echo env('APP_URL'); ?>/images/weixin/goods_thumb_400_400.jpeg"></span></a>
<div class="goods_info"><p class="goods_tit">买基金要因素决定基金业绩的主要因素决定基金业绩的主要因素决定基金业绩的主要因素</p>
<p class="goods_price"><b>100.00</b></p>
<p class="goods_des fr">删除</p>
</div>
</li>
<li><a href="http://www.baidu.com"><span class="goods_thumb"><img alt="决定基金业绩的主要因素" src="<?php echo env('APP_URL'); ?>/images/weixin/goods_thumb_400_400.jpeg"></span></a>
<div class="goods_info"><p class="goods_tit">买基金要因素决定基金业绩的主要因素决定基金业绩的主要因素决定基金业绩的主要因素</p>
<p class="goods_price"><b>100.00</b></p>
<p class="goods_des fr">删除</p>
</div>
</li>
<?php if($user_goods_history){foreach($user_goods_history as $k=>$v){ ?>
<li><a href="<?php echo $v['goods']['goods_detail_url']; ?>"><span class="goods_thumb"><img alt="<?php echo $v['goods']['title']; ?>" src="<?php echo env('APP_URL'); ?><?php echo $v['goods']['litpic']; ?>"></span></a>
<div class="goods_info"><p class="goods_tit"><?php echo $v['goods']['title']; ?></p>
<p class="goods_price"><b><?php echo $v['goods']['price']; ?></b></p>
<p class="goods_des fr"><span id="del_history">删除</span></p>
</div></li>
<?php }} ?>
</ul>
</div>

14
routes/web.php

@ -57,11 +57,11 @@ Route::group(['prefix' => 'weixin', 'namespace' => 'Weixin'], function () {
Route::get('/', 'IndexController@index')->name('weixin');
Route::get('/page404', 'IndexController@page404')->name('weixin_page404'); //404页面
Route::get('/search', 'IndexController@search')->name('weixin_search'); //搜索页面
Route::get('/p/{id}', 'IndexController@detail')->name('weixin_article_detail'); //文章详情页
Route::get('/cat{cat}', 'IndexController@category')->name('weixin_article_category'); //分类页
Route::get('/p/{id}', 'ArticleController@detail')->name('weixin_article_detail'); //文章详情页
Route::get('/cat{cat}', 'ArticleController@category')->name('weixin_article_category'); //分类页
Route::get('/tag{tag}', 'IndexController@tag')->name('weixin_tag'); //标签页
Route::get('/page/{id}', 'IndexController@page')->name('weixin_singlepage'); //单页
Route::get('/goods/{id}', 'IndexController@goods')->name('weixin_goods_detail'); //商品详情页
Route::get('/goods/{id}', 'GoodsController@goods')->name('weixin_goods_detail'); //商品详情页
Route::get('/goodslist', 'GoodsController@goodslist')->name('weixin_goods_list'); //产品分类页
Route::get('/user', 'UserController@index')->name('weixin_user');
@ -71,6 +71,8 @@ Route::group(['prefix' => 'weixin', 'namespace' => 'Weixin'], function () {
Route::get('/user_address_list', 'AddressController@index')->name('weixin_user_address_list');
//页面跳转
Route::get('/jump', 'IndexController@jump')->name('weixin_jump');
Route::get('/test', 'IndexController@test')->name('weixin_test'); //测试
});
@ -233,6 +235,10 @@ Route::group(['prefix' => 'dataapi', 'namespace' => 'Api', 'middleware' => ['web
Route::get('/user_money_list', 'UserMoneyController@userMoneyList'); //用户余额明细
Route::post('/user_money_add', 'UserMoneyController@userMoneyAdd'); //添加余额明细
//浏览记录
Route::get('/user_goods_history_list', 'UserGoodsHistoryController@userGoodsHistoryList'); //我的足迹列表
Route::get('/user_goods_history_delete', 'UserGoodsHistoryController@userGoodsHistoryDelete'); //我的足迹删除一条
Route::get('/user_goods_history_clear', 'UserGoodsHistoryController@userGoodsHistoryClear'); //我的足迹清空
//商品评价
Route::get('/goods_comment_list', 'CommentController@goodsCommentList'); //商品评价列表
Route::post('/goods_comment_add', 'CommentController@goodsCommentAdd'); //商品评价添加

Loading…
Cancel
Save