templates/0/mall/default/phone/shop_map_baidumap.php

(开头部分) 21KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<div id=<?php echo $module['module_name'];?>  class="portlet light" monxin-module="<?php echo $module['module_name'];?>" align=left >
    <script>
    $(document).ready(function(){
		if(get_param('geo')==''){
			if (navigator.geolocation){navigator.geolocation.getCurrentPosition(showPosition);}
			function showPosition(position){
				latitude=position.coords.latitude;
				longitude=position.coords.longitude;
				v0=latitude+','+longitude;
				userAgent=window.navigator.userAgent;
				if(userAgent.indexOf('baidu')==-1){
					latitude=position.coords.latitude+<?php echo $module['gps_y']?>;
					longitude=position.coords.longitude+<?php echo $module['gps_x']?>;
				}
				
				v=latitude+','+longitude;
				window.location.href='./index.php?monxin=mall.shop_map&geo='+v;
			  
			}
		}

		$("#<?php echo $module['module_name'];?> .phone_filter div").click(function(){
			$("#<?php echo $module['module_name'];?> .phone_filter div").removeClass('c');
			if($("#<?php echo $module['module_name'];?> [filter='"+$(this).attr('class')+"']").css('display')=='none'){
				$("#<?php echo $module['module_name'];?> [filter]").css('display','none');
				$("#<?php echo $module['module_name'];?> [filter='"+$(this).attr('class')+"']").css('display','block');
				$(this).addClass('c');
			}else{
				
				$("#<?php echo $module['module_name'];?> [filter='"+$(this).attr('class')+"']").css('display','none');
			}
			
			return false;	
		});
		
		$("#<?php echo $module['module_name'];?>_html .tag_list a").click(function(){
			url=window.location.href;
			url=replace_get(url,'tag',$(this).attr('tag'));
			window.location.href=url;
			return false;
		});
		
		$("#<?php echo $module['module_name'];?>_html .near_div a").click(function(){
			if($(this).attr('near')=='100'){window.location.href='./index.php?monxin=mall.shop_map';return false;}
			url=window.location.href;
			url=replace_get(url,'near',$(this).attr('near'));
			window.location.href=url;
			return false;
		});
		
		tag=get_param('tag');
		if(tag==''){tag=0;}
		$("#<?php echo $module['module_name'];?> .tag_list a[tag='"+tag+"']").addClass('c');
		$("#<?php echo $module['module_name'];?> .phone_filter .tag span").html($("#<?php echo $module['module_name'];?> .tag_list a[tag='"+tag+"']").html());

		near=get_param('near');
		if(near==''){near=<?php echo $module['near_default'];?>;}
		$("#<?php echo $module['module_name'];?> .near_div a[near='"+near+"']").addClass('c');
		$("#<?php echo $module['module_name'];?> .phone_filter .near span").html($("#<?php echo $module['module_name'];?> .near_div a[near='"+near+"']").html());

后面还有 346 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。