/** * Created by xiaofeng on 2017/8/9. */ csrfToken = $('meta[name=csrf-token]').prop('content'); function ReturnInfo(info) { if(info != null){ var strmsg = ''; if(typeof info == 'string'){ return info; } $.each(info,function (kk,vv) { strmsg +=vv[0]+'
'; }) if(typeof strmsg == 'string'){ return strmsg; } } } var feng_cityTel; //电话图标 $('body').on('click','.y_call',function(){ //获取楼盘首页 电话号码 var y_call=$('.y_housetel span').text(); if (typeof y_call === 'string' && y_call != '') { return window.location.href = 'tel:'+y_call; } $.ajax({ url:'/index/telrand', dataType:"json", type:'POST', data:{city:feng_cityTel}, success:function(data){ if(data.code == 200){ return window.location.href = 'tel:'+data.data.tel; } }, error:function(){ } }); }) // $(function(){ // // ������һ�������� // $('.y_lpleft').on('click',function(){ // history.back(-1); // }) // // // 解决百度APP底部拔打电话 // var ido,idi; // // var _html ='
'; // _html +='
'; // _html +=''; // _html +=''; // _html +='
'; // _html +='
'; // // // idi = setInterval(function(){ // ido = $('.y_puicfoot').html(); // // 公共底部,判断页面是否存在,不存在添加 // if(!ido){ // $('body').append(_html); // // clearTimeout(idi); // } // },1000); // // // // // })