Ticket #7 (new 需求) — at Version 2
车市、文章页商城入口优化,自动根据IP定位网友城市
| Reported by: | chenjinmei | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 商城v5.6 |
| Component: | 商家露出接口 | Version: | 5.6 |
| Keywords: | 二期优化,ip定位城市 | Cc: | |
| Due Date: | 30/12/2011 |
Description (last modified by chenjinmei) (diff)
车市、文章页商城入口优化,自动根据IP定位网友城市。
具体需求:
1、全国首页、车市页顶部导航经销商、搜索商家,无ip识别,需要2次点击城市。不利于网友查询,建议添加ip识别功能:
2、车市首页: http://gz.pcauto.com.cn/
3、文章页: http://gz.pcauto.com.cn/yhxx/zjjc/1112/1766263.html (报价库接口)
处理:
1)首页和车市等页面所有下拉框,如过是JS提交请求的,将请求提交到IP定位城市的跳转接口来处理,跳转接口如下:
http://4s.pcauto.com.cn/index_djump.jsp?fip=1&bid=2 搜品牌下的商家
http://4s.pcauto.com.cn/index_djump.jsp?fip=1&mfid=104 搜厂商下的商家
http://4s.pcauto.com.cn/index_djump.jsp?fip=1&sid=3544 搜车系下的商家
2)其他超链接方式直接在页面用js代码获取网友城市ID,替换原链接即可,如下:
<body>
<script>if(!window._addIvyID) document.write("<scr"+"ipt src='http://www.pconline.com.cn/js/ivy.js'><\/scr"+"ipt>");</script>
<div class="dialog">
<div class="tb">
<table border="0" cellspacing="0" cellpadding="0" class="tableA">
<tr>
<th scope="row"><span>*</span> <a href="http://chen.pcauto.com.cn/shangjia/nb601/" id="dllink">经销商</a></th>
</tr>
</table>
</div>
</div>
<script src="http://js.3conline.com/pcauto/price2010/js/auto_dealers_area.js"></script>
<script>
var areaArry=getPCautoArea();
var aId=areaArry[0];
var lk=document.getElementById("dllink");
lk.href="http://4s.pcauto.com.cn/shangjia/c"+aId+"/nb2/";
</script>
</body>
3)文章页比较特殊暂不处理
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)



