| | |
| | | } |
| | | }) |
| | | ajax.set("date",$('#time').val()); |
| | | var siteId = document.getElementById("siteId"); |
| | | var siteName = siteId.options[siteId.selectedIndex].text; |
| | | ajax.set("siteName",siteName); |
| | | |
| | | var halfId = document.getElementById("half"); |
| | | var halfName = halfId.options[halfId.selectedIndex].text; |
| | | 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() |
| | | // 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){ |
| | | let htmlStr = ''; |
| | | for (let i = 0; i < data.length; i++) { |
| | | htmlStr += '<option value="' + data[i] + '">' + data[i] + '</option>' |
| | | } |
| | | |
| | | $("#half").empty().append(htmlStr); |
| | | } |
| | | }) |
| | | ajax1.start() |
| | | |
| | | |
| | | var ajax2 = new $ax(Feng.ctxPath + "/ball/nextName/"+ $('#siteId').val(), function(data){ |
| | | console.log("================"+data) |
| | | if(data!=null){ |
| | | let htmlStr = ''; |
| | | if (data.length>0){ |
| | | for (let i = 0; i < data.length; i++) { |
| | | htmlStr += '<option value="' + data[i] + '">' + data[i] + '</option>' |
| | | } |
| | | $("#nextSite1").show() |
| | | $("#nextSite").empty().append(htmlStr); |
| | | |
| | | |
| | | }else { |
| | | $("#nextSite1").hidden() |
| | | $("#nextSite").empty() |
| | | } |
| | | } |
| | | }) |
| | | ajax2.start() |
| | | |
| | | } |
| | | |
| | | |
| | | CoursePackageInfo.addTime1 = function (a) { |
| | |
| | | |
| | | // 去除最后一个逗号 |
| | | values = values.slice(0, -1); |
| | | |
| | | console.log("看看预约时间段") |
| | | console.log(values); |
| | | |
| | | var times = values; |
| | |
| | | ajax.set("city",city); |
| | | ajax.set("cityCode",cityCode); |
| | | ajax.set("storeId",storeId); |
| | | ajax.set("isHalf",type); |
| | | if (type ==1){ |
| | | ajax.set("isHalf",2); |
| | | }else { |
| | | ajax.set("isHalf",1); |
| | | |
| | | } |
| | | ajax.set("siteId",siteId); |
| | | ajax.set("nextName",site); |
| | | ajax.set("halfName",half); |
| | |
| | | |
| | | $(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";} |
| | | |
| | | |
| | | |
| | |
| | | |
| | | $('#storeId').change(function () { |
| | | querySite(); |
| | | CoursePackageInfo.queryHalf(); |
| | | |
| | | }) |
| | | $('#siteId').change(function () { |
| | | if ($('#time').val()!="") |
| | | CoursePackageInfo.addTime(); |
| | | }) |
| | | |
| | | $('input[name="payType"]').click(function () { |