二级页分享每一条数据的详情链接要怎么写?
<ul id="content-share-list" class="bdsharebuttonbox">
<li><a class="content_qq" onclick="window.open('http://connect.qq.com/widget/shareqq/index.html?url='+encodeURIComponent(${base}/res.jspx?id=${a.restaurantId.value}));return false;" title="分享到QQ">QQ好友</a></li>
<li><a class="content_qqzone" onclick="window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(${base}/res.jspx?id=${a.restaurantId.value}));return false;">QQ空间</a></li>
<li><a class="content_weixin" data-cmd="weixin">微信好友</a></li>
<li><a class="content_sina" href="javascript:window.open('http://v.t.sina.com.cn/share/share.php?title='+encodeURIComponent([@text_cut s=a.nameCn.value /])+'&url='+encodeURIComponent(${base}/res.jspx?id=${a.restaurantId.value})+'&rcontent=','_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0">新浪微博</a></li>
</ul>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>这样写完之后就不能点击了 |
|