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): ?>