diff --git a/home/controllers/h5/market/sylive2/Ucenter.php b/home/controllers/h5/market/sylive2/Ucenter.php index bb5c352c..be4164be 100644 --- a/home/controllers/h5/market/sylive2/Ucenter.php +++ b/home/controllers/h5/market/sylive2/Ucenter.php @@ -31,6 +31,7 @@ class Ucenter extends Wx{ $lists[] = ['title'=>'我的权益','url'=>"/h5/market/sylive2/ucenter/orders?skey={$params['skey']}"]; $lists[] = ['title'=>'我的抽奖','url'=>"/h5/market/sylive2/ucenter/win?skey={$params['skey']}"]; + $lists[] = ['title'=>'我的秒杀','url'=>"/h5/market/sylive2/ucenter/orders?skey={$params['skey']}&type=1"]; $jsondata['serviceLink'] && $lists[] = ['title'=>'联系客服','url'=>$jsondata['serviceLink']]; $user = $this->user_model->get(['userId'=>$this->uid],'unionid,nickname,headimg'); @@ -196,6 +197,7 @@ class Ucenter extends Wx{ 'type' => 0, 'status' => 1 ]; + $where['type'] = int($params['type']) ? 1 : 0; $total = $this->market_sylive_order_model->count($where); $lists = []; if($total){ diff --git a/home/views/h5/market/sylive2/ucenter/orders.php b/home/views/h5/market/sylive2/ucenter/orders.php index ace932b8..4773fb1d 100644 --- a/home/views/h5/market/sylive2/ucenter/orders.php +++ b/home/views/h5/market/sylive2/ucenter/orders.php @@ -122,7 +122,8 @@ that.loading = true; var params = { 'skey':'', - 'page':that.page + 'page':that.page, + 'type':'input->get('type');?>' } //请求接口 $.get('/h5/market/sylive2/ucenter/ajax_order',params,function (res){