添加图片跳转

This commit is contained in:
bayi
2018-05-07 17:59:52 +08:00
parent 69389a2cd7
commit d8372b1daa
2 changed files with 12 additions and 8 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
//var BASE_PATH = "http://youfang.fangjia.com"; //var BASE_PATH = "http://youfang.fangjia.com";
//var BASE_PATH = "http://192.168.10.128:8084"; //var BASE_PATH = "http://192.168.10.128:8084";
//var BASE_PATH = "http://192.168.10.47:8086"; //var BASE_PATH = "http://192.168.10.47:8086";
var BASE_PATH = "http://192.168.10.53:8084"; //var BASE_PATH = "http://192.168.10.53:8084";
var BASE_PATH = "http://192.168.10.164:8084";
//var BASE_PATH = "http://192.168.10.161:8084"; //var BASE_PATH = "http://192.168.10.161:8084";
//var BASE_PATH = "http://192.168.10.170:8084"; //var BASE_PATH = "http://192.168.10.170:8084";
//var BASE_PATH = "http://192.168.10.171:8084"; //var BASE_PATH = "http://192.168.10.171:8084";
@@ -105,7 +105,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<a class="ad"><img id="img"></a> <a class="ad" id="img_ad"><img id="img"></a>
<div class="topic"> <div class="topic">
<div class="topicTitle" style="position:relative;">均价走势 <div class="topicTitle" style="position:relative;">均价走势
<div class="content-block"> <div class="content-block">
@@ -300,16 +300,19 @@ $.config = {router: false}
if(typeof(h.imgId)!="undefined"&&h.imgId!=null&&$.trim(h.imgId)!=""){ if(typeof(h.imgId)!="undefined"&&h.imgId!=null&&$.trim(h.imgId)!=""){
$("#img").attr("src",BASE_PATH+"/img/"+h.imgId); $("#img").attr("src",BASE_PATH+"/img/"+h.imgId);
//控制贷款按钮是否可以显示,便于ios版本审核 //控制贷款按钮是否可以显示,便于ios版本审核
if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){ // if(localStorage.getItem("showLoanMenu")!=null && localStorage.getItem("showLoanMenu")=="true"){
$("#img").click(function(){ // $("#img").click(function(){
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: hid, city: h.city, mobile: ""},function(){}) // clicked('/views/loan/loanInfo.html',true,false,{},{houseId: hid, city: h.city, mobile: ""},function(){})
}) // })
} // }
} }
if(typeof(h.link)!="undefined"&&h.link!=null&&$.trim(h.link)!=""){ if(typeof(h.link)!="undefined"&&h.link!=null&&$.trim(h.link)!=""){
var device = plus.device.uuid; var device = plus.device.uuid;
var uid = localStorage.getItem("user_id"); var uid = localStorage.getItem("user_id");
$("#img").attr("onclick","window.location.href="+h.link+"?uid="++"&device="+); $("#img_ad").click(function(){
url=h.link+"?uid="+uid+"&device="+device;
clicked('views/webview_embed.html', true,false,{},{url:this.url});
});
} }
loadingChart(h.city,h.region,h.name,2) loadingChart(h.city,h.region,h.name,2)
//按照时间范围加载数据 //按照时间范围加载数据