From 6e97777f8cc87e4ec59377b76434be563b9428e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Mon, 19 Jun 2023 14:45:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AE=A2=E4=BA=BA=E6=95=B0=E8=A7=A3?= =?UTF-8?q?=E9=99=A4=E5=8E=9F=E6=9D=A55=E4=BA=BA=E7=9A=84=E4=B8=8A?= =?UTF-8?q?=E9=99=90=EF=BC=8C=E6=94=B9=E4=B8=BA10=E4=BA=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/trainsystem/controllers/addorders.php | 4 ++-- application/third_party/trainsystem/views/homepage.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/third_party/trainsystem/controllers/addorders.php b/application/third_party/trainsystem/controllers/addorders.php index 9dab2bf4..3cab8592 100644 --- a/application/third_party/trainsystem/controllers/addorders.php +++ b/application/third_party/trainsystem/controllers/addorders.php @@ -232,9 +232,9 @@ class addorders extends CI_Controller{ return false; } - if (count($data['people_list']) > 5) { + if (count($data['people_list']) > 10) { //显示错误,用户超过五个 - $reback["mes"]="乘客不能超过五个"; + $reback["mes"]="乘客不能超过十个"; echo json_encode($reback); return false; } diff --git a/application/third_party/trainsystem/views/homepage.php b/application/third_party/trainsystem/views/homepage.php index 364ad023..0d0db302 100644 --- a/application/third_party/trainsystem/views/homepage.php +++ b/application/third_party/trainsystem/views/homepage.php @@ -45,8 +45,8 @@ $(function(){ function selseat(seat){ var type = $(seat).attr('type'); var total = $(seat).parent().parent().find('.train-summary .seat_TotalPeople').html(); - if(total>=5){ - total = 5; + if(total>=10){ + total = 10; $('.seat_TotalPeople').html(total); } var count = $(seat).parent().parent().find('.selected').length; @@ -142,7 +142,7 @@ function selseat(seat){ people as $key=>$p): ?> - +