Changes between Version 11 and Version 12 of note


Ignore:
Timestamp:
03/22/2012 04:52:37 PM (14 years ago)
Author:
chenjinmei
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • note

    v11 v12  
    107107'''7 商城自动识别IP接口''' 
    108108 
     109{{{ 
     110 
     111  1) 通过网友IP获取网友所在城市的城市ID 
     112   <script src="http://4s.pcauto.com.cn/js/jquery-1.4.2.min.js"></script> 
     113   <script src="http://js.3conline.com/pcauto/price2010/js/auto_dealers_area.js"></script>//引入IP识别js 
     114   <script> 
     115    var areaArry=getPCautoArea(); 
     116    var aId=areaArry[0];//通过IP得到网友所在城市的ID 
     117   </script> 
     118 
     119   2)商城索引页跳转接口http://4s.pcauto.com.cn/index_djump.jsp 
     120  
     121    汽车大首页和车市等页面所有商家搜索功能,如果是JS提交请求的,可以将请求提交到IP定位城市的跳转接口来处理,以达到自动定位网友城市的目的,如下: 
     122 
     123    搜品牌下的商家:http://4s.pcauto.com.cn/index_djump.jsp?fip=1&bid=2  
     124    搜厂商下的商家:http://4s.pcauto.com.cn/index_djump.jsp?fip=1&mfid=1   
     125    搜车系下的商家 :http://4s.pcauto.com.cn/index_djump.jsp?fip=1&sid=3544 
     126 
     127}}} 
     128 
    109129'''8 非分站城市变为分站设置完之后要清相关缓存''' 
    110130{{{