HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/frameMyrskyNew/home_page.php
<?php
/**
 * @package WordPress
 * @subpackage frameLED_Theme
 */
/*
Template Name: home page
*/
?>

<?php get_header() ?>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory')?>/js/easySlider.js"></script>

<script type="text/javascript">
jQuery(document).ready(function(){	
		jQuery("#rolling_ad").easySlider({
				prevText:  ' ',
        nextText:  ' ',
        auto: true,
        continuous: true,
        speed:  200,
        pause:  8000 ,
        vertical:true
				 	
		});
	
});	
</script>
<script type="text/javascript">
	jQuery.noConflict();
</script>

<span class="quickQuote_span">
<!-- <php include 'quickQuote.php'; > -->
</span>
	<?php if (have_posts()) : while (have_posts()) : the_post(); 
						the_content(); 

		 			endwhile; endif; 
		?>	
<div class="clear"></div>


<!--set by cyk-------------------------------------------------------------------------------------------------------------->


<script type="text/javascript" src="<?php bloginfo('stylesheet_directory')?>/js/jquery1.7.2.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory')?>/js/jquery-ui.min.js"></script>
<script type="text/javascript">
$(function(){
	var tmp;
	$('.note').css('cursor','move');
	
	$('.note').parent().each(function(){
		tmp = $(this).css('z-index');
		if(tmp>zIndex) zIndex = tmp;
	})
	$('.note').click(function(){
		$('.note').parent().css('position','absolute');
	})
	make_draggable($('.note').parent());
	
$('.note b').css('cursor','pointer').click(function(){
	$(this).parent().parent().hide();
})	
	
});




var zIndex = 0;
function make_draggable(elements){
	elements.draggable({
		opacity: 0.8,
		containment:'body',
		start:function(e,ui){ ui.helper.css('z-index',++zIndex)},
		stop:function(e,ui){
			//移动结束执行
			//alert(1);
		}
	});
}
</script>
<script>
$(function(){
	$('.mainBody_order_search_btn').click(function(){
	//$('#order_search').attr('action',getJumpURL('<?php echo get_option('home'); ?>/电路板服务/电路板订单查询/'));
	$('#order_search').submit();
	})
})





function changemenu(param){
	 console.log("看看", param);
var client= document.getElementById("client"); 
var clinic= document.getElementById("clinic");
var therapist= document.getElementById("therapist");
var box1 = document.getElementById("client_box"); 
var box2 = document.getElementById("clinic_box"); 
var box3 = document.getElementById("therapist_box"); 
if(param=='client'){
client.style.color = "#209deb"; 
client.style.border  = "1px solid #209deb";  
client.style.background="-webkit-gradient(linear,left top,right top,from(#74b4f8),to(#bad3f9))"
clinic.style.color = "#7a7a7a";  
clinic.style.border  = "1px solid #fff";  
clinic.style.background  = "#fff"; 
therapist.style.color = "#7a7a7a";  
therapist.style.border  = "1px solid #fff"; 
therapist.style.background  = "#fff"; 
box1.style.display = "block";  
box2.style.display = "none";  
box3.style.display = "none";
}
 if(param=='clinic'){
clinic.style.color = "#209deb";  
clinic.style.border  = "1px solid #209deb";  
clinic.style.background="-webkit-gradient(linear,left top,right top,from(#74b4f8),to(#bad3f9))"
client.style.color = "#7a7a7a";  
client.style.border  = "1px solid #fff";  
client.style.background  = "#fff"; 
therapist.style.color = "#7a7a7a";  
therapist.style.border  = "1px solid #fff"; 
therapist.style.background  = "#fff"; 
box2.style.display = "block";  
box1.style.display = "none";  
box3.style.display = "none";
}
 if(param=='therapist'){
therapist.style.color = "#209deb";  
therapist.style.border  = "1px solid #209deb";  
therapist.style.background="-webkit-gradient(linear,left top,right top,from(#74b4f8),to(#bad3f9))"
clinic.style.color = "#7a7a7a";  
clinic.style.border  = "1px solid #fff"; 
clinic.style.background  = "#fff"; 
client.style.color = "#7a7a7a";  
client.style.border  = "1px solid #fff";  
client.style.background  = "#fff"; 
box3.style.display = "block";  
box1.style.display = "none";  
box2.style.display = "none";
}
}



window.onload = function() {




 
  
  // 检查浏览器是否支持地理定位
  if (!navigator.geolocation) {
   // resultElement.innerHTML = "您的浏览器不支持地理定位功能";
    return;
  }
 
  // 请求位置信息
  navigator.geolocation.getCurrentPosition(
    // 成功回调
    (position) => {
     console.log("获取地址成功",position)
    },
    
    // 错误回调
    (error) => {
    console.log("获取地址失败",error)
    },
    
   
  );










































console.log("掉了没")

     fetch("https://appyuyue.pcb456.com:8093/api/reservation/addRecord/getUserAssocDetail?pageSize=1000&page=1&current_jindu=106.693&current_weidu=26.5206&searchKey=&distance_meters=all")
      .then(response => response.json())
      .then(data => {
        console.log("请求成功:", data);
     let users =data.data.data.clinic_info
     let html = `<div class="user-list">`;
 users.forEach(user => {
	 //  console.log("user:", user);
    if(user.avatar){
   html += `
          <div class="user-card">
           <img class="Avatar_img" src="${user.avatar}" alt="">
            <h4>${user.clinic_name}</h4>
          <div class="introduce_decs">${user.descprion}</div>
	      <div class="business_box">
	         <div> ${ user.business_time_begin } ~ ${ user.business_time_end }</div>
	          <div class="distance_meters">  ${ user.distance_meters }📍  </div>
           </div>
	      <div class="booking_button">在线预约</div>
	      </div>
        `;
  }else{
  html += `
          <div class="user-card">
          <img class="Avatar_img" src="http://myro.ca/wp-content/themes/frameMyrskyNew/images/role2.png" alt="">
            <h4>${user.clinic_name}</h4>
            <div class="introduce_decs">${user.descprion}</div>
	        <div class="business_box">
	         <div> ${ user.business_time_begin } ~ ${ user.business_time_end }</div>
	          <div class="distance_meters">  ${ user.distance_meters }  📍</div>
           </div>
	          <div class="booking_button">在线预约</div>
          </div>
        `;
   }
     
      });
      html += `<div>`;
      document.getElementById("app").innerHTML = html;
  
      })
      .catch(error => {
        console.log("请求失败:", error);
     
      });
}
   jQuery("#distance_name").val('all'); 

	jQuery("#distance_name").change(function(){
		
            console.log("走吗",jQuery(this).val());
			console.log("走吗1",jQuery("#distance_name").val());
			
fetch("https://appyuyue.pcb456.com:8093/api/reservation/addRecord/getUserAssocDetail?pageSize=1000&page=1&current_jindu=106.693&current_weidu=26.5206&searchKey="+document.getElementsByName("search_key")[0].value+"&distance_meters="+jQuery(this).val())
      .then(response => response.json())
      .then(data => {
        console.log("请求成功:", data);
     let users =data.data.data.clinic_info
     let html = `<div class="user-list">`;
 users.forEach(user => {
	 //  console.log("user:", user);
    if(user.avatar){
   html += `
          <div class="user-card">
           <img class="Avatar_img" src="${user.avatar}" alt="">
            <h4>${user.clinic_name}</h4>
          <div class="introduce_decs">${user.descprion}</div>
	      <div class="business_box">
	         <div> ${ user.business_time_begin } ~ ${ user.business_time_end }</div>
	          <div class="distance_meters">  ${ user.distance_meters }📍  </div>
           </div>
	      <div class="booking_button">在线预约</div>
	      </div>
        `;
  }else{
  html += `
          <div class="user-card">
          <img class="Avatar_img" src="http://myro.ca/wp-content/themes/frameMyrskyNew/images/role2.png" alt="">
            <h4>${user.clinic_name}</h4>
            <div class="introduce_decs">${user.descprion}</div>
	        <div class="business_box">
	         <div> ${ user.business_time_begin } ~ ${ user.business_time_end }</div>
	          <div class="distance_meters">  ${ user.distance_meters }  📍</div>
           </div>
	          <div class="booking_button">在线预约</div>
          </div>
        `;
   }
     
      });
      html += `<div>`;
      document.getElementById("app").innerHTML = html;
  
      })
      .catch(error => {
        console.log("请求失败:", error);
     
      });


	});



function btnSearch(){




	 console.log("搜索框:", document.getElementsByName("search_key")[0].value);
	fetch("https://appyuyue.pcb456.com:8093/api/reservation/addRecord/getUserAssocDetail?pageSize=1000&page=1&current_jindu=106.693&current_weidu=26.5206&searchKey="+document.getElementsByName("search_key")[0].value+"&distance_meters="+jQuery("#distance_name").val())
      .then(response => response.json())
      .then(data => {
        console.log("请求成功:", data);
     let users =data.data.data.clinic_info
     let html = `<div class="user-list">`;
 users.forEach(user => {
	 //  console.log("user:", user);
    if(user.avatar){
   html += `
          <div class="user-card">
           <img class="Avatar_img" src="${user.avatar}" alt="">
            <h4>${user.clinic_name}</h4>
          <div class="introduce_decs">${user.descprion}</div>
	      <div class="business_box">
	         <div> ${ user.business_time_begin } ~ ${ user.business_time_end }</div>
	          <div class="distance_meters">  ${ user.distance_meters }📍  </div>
           </div>
	      <div class="booking_button">在线预约</div>
	      </div>
        `;
  }else{
  html += `
          <div class="user-card">
          <img class="Avatar_img" src="http://myro.ca/wp-content/themes/frameMyrskyNew/images/role2.png" alt="">
            <h4>${user.clinic_name}</h4>
            <div class="introduce_decs">${user.descprion}</div>
	        <div class="business_box">
	         <div> ${ user.business_time_begin } ~ ${ user.business_time_end }</div>
	          <div class="distance_meters">  ${ user.distance_meters }  📍</div>
           </div>
	          <div class="booking_button">在线预约</div>
          </div>
        `;
   }
     
      });
      html += `<div>`;
      document.getElementById("app").innerHTML = html;
  
      })
      .catch(error => {
        console.log("请求失败:", error);
     
      });
}

  function goLoginRegister(val){
	  console.log("val:", val);
        window.open("http://myro.ca/public/#/login?type="+val)
}
  



</script>
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('index_order_search')) : else : ?><?php endif; ?>
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('index_pcb_seckill')) : else : ?><?php endif; ?>
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('index_goods_list')) : else : ?><?php endif; ?>

<!--set by cyk-------------------------------------------------------------------------------------------------------------->
<table style="border:0;margin: 0 25px;display:none"><tr style="border:0"><td style="width:60%;border:0" valign="top">
<div stlye="width:540px"><?php get_sidebar("pro-info");//最新优惠信息显示?></div>
</td>
<td style="width:35%;border:0" valign="top">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('index_news')) : else : ?><?php endif; ?>
</td>
</tr>
<tr style="border:0">
<td colspan="2" style="border:0">
<div class="home_page_capture"></div>
</td>
</tr>
</table>

<?php get_footer() ?>