From e809f5955584e600d8612540ea814977c49774c2 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期三, 27 八月 2025 23:51:54 +0800
Subject: [PATCH] 修改bug

---
 ManagementQYTTravel/guns-admin/src/main/webapp/static/home.js |   26 ++++++++++++++------------
 1 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/ManagementQYTTravel/guns-admin/src/main/webapp/static/home.js b/ManagementQYTTravel/guns-admin/src/main/webapp/static/home.js
index b1c2a2e..826ce8f 100644
--- a/ManagementQYTTravel/guns-admin/src/main/webapp/static/home.js
+++ b/ManagementQYTTravel/guns-admin/src/main/webapp/static/home.js
@@ -183,14 +183,16 @@
 
 var map = new AMap.Map('container',{
     resizeEnable: true,
-    zoom:10
+    center: [107.561768, 26.188572],
+    zoom: 10
 });
 
 
-var map_ = new AMap.Map('container_',{
+var map_ = new AMap.Map('container_', {
     resizeEnable: true,
+    center: [107.561768, 26.188572],
     mapStyle: 'amap://styles/1de318cbb8d12c02303a22c550b9ccc9',
-    zoom:10
+    zoom: 10
 });
 
 var mouseTool = new AMap.MouseTool(map);
@@ -394,15 +396,15 @@
             var kuahceng = order.kuahceng;
             var o = '';
             $('#order').html(o);
-            // var zc = '<div class="list-group"><a href="#" class="list-group-item active">快车未接订单</a>'
-            // for(var i in zhuanche){
-            //     zc += '<a href="#" class="list-group-item"><p class="list-group-item-text">起点:' + zhuanche[i].start + '</p><p class="list-group-item-text">终点:' + zhuanche[i].end + '</p>' +
-            //         '<p class="list-group-item-text">下单时间:' + zhuanche[i].travelTime + '</p><p class="list-group-item-text">车型:' + zhuanche[i].carModel + '</p>' +
-            //         '<p class="list-group-item-text">人数:' + zhuanche[i].num + '</p></a>';
-            // }
-            // zc += '</div>';
-            // o += zc;
-            //
+            var zc = '<div class="list-group"><a href="#" class="list-group-item active">快车未接订单</a>'
+            for(var i in zhuanche){
+                zc += '<a href="#" class="list-group-item"><p class="list-group-item-text">起点:' + zhuanche[i].start + '</p><p class="list-group-item-text">终点:' + zhuanche[i].end + '</p>' +
+                    '<p class="list-group-item-text">下单时间:' + zhuanche[i].travelTime + '</p><p class="list-group-item-text">车型:' + zhuanche[i].carModel + '</p>' +
+                    '<p class="list-group-item-text">人数:' + zhuanche[i].num + '</p></a>';
+            }
+            zc += '</div>';
+            o += zc;
+
             // var kc = '<div class="list-group"><a href="#" class="list-group-item active">跨城出行未接订单</a>'
             // for(var i in kuacheng){
             //     kc += '<a href="#" class="list-group-item"><p class="list-group-item-text">起点:' + kuacheng[i].start + '</p><p class="list-group-item-text">终点:' + kuacheng[i].end + '</p>' +

--
Gitblit v1.7.1