From 38bca9ca2abd2794b41f4420638a9bec9da70607 Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期二, 28 十一月 2023 20:24:51 +0800
Subject: [PATCH] 11.27,9

---
 cloud-server-management/src/main/webapp/static/modular/system/ball/yuyue_info.js |   49 ++++++++++++++++++++++++++++++++++---------------
 1 files changed, 34 insertions(+), 15 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/ball/yuyue_info.js b/cloud-server-management/src/main/webapp/static/modular/system/ball/yuyue_info.js
index dcdecf0..13d0683 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/ball/yuyue_info.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/ball/yuyue_info.js
@@ -63,8 +63,36 @@
         }
     })
     ajax.set("date",$('#time').val());
+    var siteId = document.getElementById("siteId");
+    var siteName = siteId.options[siteId.selectedIndex].text;
+
+    var halfId = document.getElementById("half");
+    var halfName = halfId.options[halfId.selectedIndex].text;
+    ajax.set("siteName",siteName);
+    ajax.set("halfName",halfName);
+
     ajax.start()
 
+    // var ajax1 = new $ax(Feng.ctxPath + "/ball/halfName/"+ $('#siteId').val(), function(data){
+    //     console.log("================"+data)
+    //     if(data!=null){
+    //         let htmlStr = '';
+    //         for (let i = 0; i < data.length; i++) {
+    //             htmlStr += '<option value="' + data[i] + '">' + data[i] + '</option>'
+    //         }
+    //         $("#half").empty().append(htmlStr);
+    //     }
+    // })
+    // ajax1.start()
+
+
+
+
+
+};
+
+
+CoursePackageInfo.queryHalf = function (a) {
     var ajax1 = new $ax(Feng.ctxPath + "/ball/halfName/"+ $('#siteId').val(), function(data){
         console.log("================"+data)
         if(data!=null){
@@ -76,13 +104,7 @@
         }
     })
     ajax1.start()
-
-
-
-
-
-};
-
+}
 
 
 CoursePackageInfo.addTime1 = function (a) {
@@ -172,7 +194,7 @@
 
 // 去除最后一个逗号
     values = values.slice(0, -1);
-
+    console.log("看看预约时间段")
     console.log(values);
 
     var times = values;
@@ -674,13 +696,6 @@
 
 $(function () {
 
-    console.log("=======iiiii======"+            window.parent.TStudent.seItem.status)
-
-    if (window.parent.TStudent.seItem.status != 5 ){
-        // Hide the elements with the specified IDs
-        document.getElementById("hi1").style.display = "none";
-        document.getElementById("hi2").style.display = "none";
-        document.getElementById("hi3").style.display = "none";}
 
 
 
@@ -710,6 +725,10 @@
     $('#storeId').change(function () {
         querySite();
     })
+    $('#siteId').change(function () {
+        if ($('#time').val()!="")
+        CoursePackageInfo.addTime();
+    })
 
     $('input[name="payType"]').click(function () {
         $('input[name="payType"]').each(function (index, e) {

--
Gitblit v1.7.1