From d01a6c24a57b6c0d0e3eedf0d383af68e7a50204 Mon Sep 17 00:00:00 2001 From: lcc <805383944@qq.com> Date: Wed, 12 Feb 2025 16:02:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=A7=81=E5=9F=9F=E6=88=91?= =?UTF-8?q?=E7=9A=84=E6=8E=A8=E5=B9=BF=E6=97=B6=E9=97=B4=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../market/Market_sytopic_enroll_model.php | 4 +- home/controllers/h5/market/sylive2/User.php | 6 + home/views/h5/market/sylive2/user/enroll.php | 107 +++++++++++++++++- 3 files changed, 112 insertions(+), 5 deletions(-) diff --git a/common/models/market/Market_sytopic_enroll_model.php b/common/models/market/Market_sytopic_enroll_model.php index aa4bc521..8f584425 100644 --- a/common/models/market/Market_sytopic_enroll_model.php +++ b/common/models/market/Market_sytopic_enroll_model.php @@ -67,8 +67,8 @@ class Market_sytopic_enroll_model extends HD_Model public function statusCn() { $statusArray = [ - self::STATUS_PENDING => '待确认', - self::STATUS_SUCCESS => '已成交', + self::STATUS_PENDING => '已到店', + self::STATUS_SUCCESS => '战败', self::STATUS_INVALID => '无效' ]; return $statusArray; diff --git a/home/controllers/h5/market/sylive2/User.php b/home/controllers/h5/market/sylive2/User.php index 565f8d97..647cf2fb 100644 --- a/home/controllers/h5/market/sylive2/User.php +++ b/home/controllers/h5/market/sylive2/User.php @@ -236,6 +236,8 @@ class User extends Admin { $page = intval($this->input->get('page')); $status = $this->input->get('status'); + $s_time = $this->input->get('s_time'); + $e_time = $this->input->get('e_time'); !$page && $page = 1; $size = 20; $user = $this->user_model->get(['userId' => $this->session['userId']]); @@ -250,6 +252,10 @@ class User extends Admin if (strlen($status)) { $where['status'] = intval($status); } + if($s_time && $e_time){ + $where['enTime>='] = date('Y-m-d', strtotime($s_time)); + $where['enTime<='] = date('Y-m-d', strtotime($e_time)); + } $total = $this->sytopic_enroll_model->count($where); $lists = []; $statusCn = $this->sytopic_enroll_model->statusCn(); diff --git a/home/views/h5/market/sylive2/user/enroll.php b/home/views/h5/market/sylive2/user/enroll.php index 3dd1cf39..a60074e5 100644 --- a/home/views/h5/market/sylive2/user/enroll.php +++ b/home/views/h5/market/sylive2/user/enroll.php @@ -1,4 +1,27 @@ +