1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- /**
- * 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]+'<br>';
- })
- 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 ='<div class="y_puicfoot">';
- // _html +='<div class="y_puicfoot_main c">';
- // _html +='<div class="y_centxq y_centxq2"><a href="javascript:;" rel="nofollow" onclick="'+"$53click();"+'">在线咨询</a></div>';
- // _html +='<div class="y_centxq"><a href="/public/findroom">帮您找房</a></div>';
- // _html +='<div class="y_call"><a href="javascript:;"><img src="/image/ico_callfoot.gif" alt=""></a></div></div>';
- // _html +='</div>';
- //
- //
- // idi = setInterval(function(){
- // ido = $('.y_puicfoot').html();
- // // 公共底部,判断页面是否存在,不存在添加
- // if(!ido){
- // $('body').append(_html);
- // // clearTimeout(idi);
- // }
- // },1000);
- //
- //
- //
- //
- // })
|