lpindex.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731
  1. $(function (){
  2. var mySwiper1= new Swiper(".swiper-container1",{
  3. // loop : true,
  4. loopedSlides:4,
  5. autoplay:5500,
  6. autoplayDisableOnInteraction : false,
  7. lazyLoading : true,
  8. lazyLoadingInPrevNext : true,
  9. // 如果需要分页器
  10. pagination : '.swiper-pagination',
  11. paginationType : 'custom',
  12. paginationCustomRender: function (swiper, current, total) {
  13. return current + ' / ' + total;
  14. },
  15. });
  16. var mySwiper1= new Swiper("#swiper1",{
  17. loop : true,
  18. loopedSlides:4,
  19. autoplay:5500,
  20. autoplayDisableOnInteraction : false,
  21. // 如果需要分页器
  22. // pagination: '.swiper-pagination',
  23. slidesPerView :"auto"
  24. });
  25. var mySwiper = new Swiper ('.y_lphomepc_cent_list .swiper-container2', {
  26. loop : true,
  27. loopedSlides:4,
  28. autoplay:5500,
  29. // 如果需要分页器
  30. pagination: '.swiper-pagination',
  31. // 如果需要前进后退按钮
  32. prevButton:'.swiper-button-prev',
  33. nextButton:'.swiper-button-next',
  34. slidesPerView :"auto"
  35. })
  36. })
  37. // 报名切换
  38. var mySwiper = new Swiper('#wcon',{
  39. // loop : true,
  40. // spaceBetween: 20,
  41. // centeredSlides: true,
  42. slidesPerView: 'auto',
  43. touchRatio: 0.5,
  44. slideToClickedSlide: true
  45. })
  46. // var m_Huxing_lunbo = new Swiper('.m_zx_lunbo', {
  47. // loop : true,
  48. // spaceBetween: 10,
  49. // centeredSlides: true,
  50. // slidesPerView: 'auto',
  51. // touchRatio: 0.5,
  52. // slideToClickedSlide: true
  53. // });
  54. // $('.m_lunbo_box ul li').on('click',function(){
  55. // var _value = $(this).attr('value');
  56. // var _hid = $(this).attr('hid');
  57. // var _mindex = $(this).attr('mindex');
  58. // window.location='/house/pvimage/'+_hid+'?album_id='+_value+'&mindex='+_mindex+'&hid='+_hid+'';
  59. // })
  60. // 楼盘首页地图
  61. $(function(){
  62. //获取周边配套
  63. $('.y_lpdt_list ul li a').on('click',function(){
  64. $('.y_lpdt_list ul li a').removeClass('on');
  65. $(this).addClass('on');
  66. var _data = $(this).find('p.y_text').text(); //选择中的内容
  67. var _longitude =$('#y_lpmap').attr('data-jwd'); //获取经纬度
  68. var pintx = _longitude.split(',')[0];
  69. var pinty = _longitude.split(',')[1];
  70. _longitude = new BMap.Point(pintx,pinty);
  71. doSearch(_data,_longitude);//调用地图弹窗
  72. })
  73. });
  74. // 百度地图API功能
  75. var map = new BMap.Map("y_lpmap");
  76. var _lTude =$('#y_lpmap').attr('data-jwd'); //获取经纬度
  77. var _lJg =$('#y_lpmap').attr('data-jg'); //获取楼盘价格
  78. var _lTitle =$('#y_lpmap').attr('data-title'); //获取楼盘标题
  79. var pintx = _lTude.split(',')[0];
  80. var pinty = _lTude.split(',')[1];
  81. _lTude = new BMap.Point(pintx,pinty);
  82. map.centerAndZoom(_lTude, 15);
  83. map.enableScrollWheelZoom(); //启用滚轮放大缩小,默认禁用
  84. // 复杂的自定义覆盖物
  85. function ComplexCustomOverlay(_lTude, text, mouseoverText){
  86. this._point = _lTude;
  87. this._text = text;
  88. this._overText = mouseoverText;
  89. }
  90. ComplexCustomOverlay.prototype = new BMap.Overlay();
  91. ComplexCustomOverlay.prototype.initialize = function(map){
  92. this._map = map;
  93. var div = this._div = document.createElement("div");
  94. div.style.position = "absolute";
  95. div.style.zIndex = BMap.Overlay.getZIndex(this._point.lat);
  96. div.style.backgroundColor = "#fff";
  97. div.style.border = "1px solid #e1e1e1";
  98. div.style.color = "666";
  99. // div.style.height = "18px";
  100. div.style.padding = "5px 10px";
  101. // div.style.lineHeight = "10px";
  102. div.style.whiteSpace = "nowrap";
  103. // div.style.MozUserSelect = "none";
  104. div.style.fontSize = "14px"
  105. var span = this._span = document.createElement("span");
  106. div.appendChild(span);
  107. span.appendChild(document.createTextNode(this._text));
  108. var that = this;
  109. var arrow = this._arrow = document.createElement("div");
  110. arrow.style.background = "url(../../image/ico_map1.png) no-repeat center";
  111. arrow.style.backgroundSize = "100%";
  112. arrow.style.position = "absolute";
  113. arrow.style.width = "20px";
  114. arrow.style.height = "28px";
  115. arrow.style.top = "30px";
  116. arrow.style.left = "25px";
  117. arrow.style.overflow = "hidden";
  118. div.appendChild(arrow);
  119. div.onmouseover = function(){
  120. this.style.backgroundColor = "#6BADCA";
  121. this.style.borderColor = "#3487ab";
  122. this.getElementsByTagName("span")[0].innerHTML = that._overText;
  123. arrow.style.backgroundPosition = "0px -20px";
  124. }
  125. div.onmouseout = function(){
  126. this.style.backgroundColor = "#EE5D5B";
  127. this.style.borderColor = "#BC3B3A";
  128. this.getElementsByTagName("span")[0].innerHTML = that._text;
  129. arrow.style.backgroundPosition = "0px 0px";
  130. }
  131. map.getPanes().labelPane.appendChild(div);
  132. return div;
  133. }
  134. ComplexCustomOverlay.prototype.draw = function(){
  135. var map = this._map;
  136. var pixel = map.pointToOverlayPixel(this._point);
  137. this._div.style.left = pixel.x - parseInt(this._arrow.style.left) -13 + "px";
  138. this._div.style.top = pixel.y - 45 + "px";
  139. }
  140. var txt = _lTitle, mouseoverTxt = txt + " " + _lJg ;
  141. var myCompOverlay = new ComplexCustomOverlay(_lTude, _lTitle ,mouseoverTxt);
  142. map.addOverlay(myCompOverlay);
  143. //map展现结果的地图实例
  144. //autoViewport检索结束后是否自动调整地图视野,false 不调整地图视野
  145. var local = new BMap.LocalSearch(map,{renderOptions:{map:map,autoViewport:true}});
  146. //地址检索
  147. function doSearch(Odata,Opoint){
  148. var address = Odata;
  149. local.searchNearby(address,Opoint);
  150. }
  151. $(function(){
  152. $('.y_centerpc').find('img').each(function(){
  153. var $that = $(this);
  154. var _alt = $that.attr('alt');
  155. if(_alt != 'code'){
  156. $that.removeAttr('width');
  157. $that.removeAttr('height');
  158. $that.css({'display':'block','width':'100%','height':'auto'});
  159. }
  160. })
  161. $('.y_lphomejg p.y_yxq span').text(yxqtime);
  162. })
  163. /*
  164. * 楼盘预售许可证弹窗
  165. *
  166. */
  167. $(function(){
  168. var lic_id; //为了这些变量在其它地方用;
  169. $('.y_ckysz').on('click',function(){
  170. var $that = $(this);
  171. var height = $('.y_licence').outerHeight();
  172. var width = $('.y_licence').outerWidth();
  173. CreatePopLayerDiv2(width,width,'/public/licence');
  174. $('#offDiv1').css({'top':height+'px'}).animate({top:'20%'})
  175. // 向弹窗传数据
  176. parent.lic_id = $that.attr('data-id'); //把楼盘名称传向父级
  177. })
  178. // 看房定制数量修改
  179. var random = Math.floor(Math.random()*150+101);
  180. // console.log(random)
  181. $('.y_lpkfdz_dzrs span em').html(random)
  182. // 房贷计算户型面积处理
  183. $('.info_xllist li').each(function(){
  184. var acreage = $(this).attr("size");
  185. if(acreage.indexOf('m') != -1){
  186. var akx = acreage.split("m");
  187. $(this).attr("size",parseInt(akx[0]));
  188. if(akx[0].indexOf('-') != -1){
  189. var ak = acreage.split("-");
  190. $(this).attr("size",parseInt(ak[0]));
  191. }
  192. }
  193. if(acreage.indexOf('-') != -1){
  194. var ak = acreage.split("-");
  195. $(this).attr("size",parseInt(ak[0]));
  196. }
  197. })
  198. //房贷参考
  199. var _listhtml = $('.info_xllist li').eq(0).html();
  200. $('.info_xl span').html(_listhtml); //默认第一个
  201. var doughnutData;
  202. var _jiage = $('.jiage').html(); //楼盘价格
  203. var unit = $('.unit').html() //价格单位
  204. var _Size = $('.info_xllist li').eq(0).attr('Size'); //默认面积
  205. if(unit){
  206. // 当面积内容出来 “约” 时的处理
  207. _Size = (_Size.indexOf('约') != -1) ? _Size.slice(_Size.indexOf('约')+1) : _Size;
  208. }
  209. if(unit){
  210. var price = (unit.indexOf('万') != -1) ? _jiage : Math.ceil((_jiage * _Size) /10000); //计算总价
  211. if(!(unit.indexOf('万') != -1)){
  212. $('body').on('click','.info_xl',function(){
  213. $('.info_xllist').toggle();
  214. })
  215. }else{
  216. $('.info_xl').css({"background":"#fff"});
  217. $('.info_xl').html('主力户型');
  218. }
  219. Calculation();
  220. $('.info_xllist li').on('click',function(){
  221. _Size = $(this).attr('Size'); //面积
  222. _Size = (_Size.indexOf('约') != -1) ? _Size.slice(_Size.indexOf('约')+1) : _Size; // 当面积内容出来 “约” 时的处理
  223. _listhtml = $(this).html();
  224. $('.info_xl span').html(_listhtml);
  225. price = Math.ceil((_jiage * _Size) /10000)
  226. // console.log(price);
  227. $('.info_xllist').hide();
  228. Calculation();
  229. })
  230. function Calculation(){
  231. var cal = new Calculator();
  232. var firstPay=Math.round(price * 0.3 * 100) / 100;
  233. var biz=Math.round((price - firstPay) * 100) / 100;
  234. var data1 = cal.loanResult({
  235. type: 2, //商贷
  236. total:price,firstPay: firstPay,acc:0,biz:biz,rate:0,year: 20,calType:2
  237. }, 2); //本金
  238. $(".perMonth").text(Math.round(data1.perMonthPay*10000*100)/100);
  239. $("#totalPay").text(price);
  240. $("#firstPay").text(firstPay);
  241. $("#loanPrice").text(biz);
  242. $("#interset").text(data1.interestPay);
  243. doughnutData = [{
  244. value: firstPay,
  245. color: "#007AF5"
  246. },{
  247. value: biz,
  248. color: "#FFA245"
  249. },{
  250. value: Math.round(data1.interestPay * 100) / 100,
  251. color: "#62BE4B"
  252. }];
  253. }
  254. var myDoughnut = new Chart(document.getElementById("canvas_fdck").getContext("2d")).Doughnut(doughnutData, {
  255. animation: true,
  256. animationEasing : "easeOutQuart",
  257. height:145,
  258. width:145,
  259. });
  260. }
  261. })
  262. //创建一个弹出层,width 宽度,height 高度,url
  263. function CreatePopLayerDiv2(width,height,url){
  264. var Iheight=$(window).outerHeight();
  265. var Iwidth =$(window).outerWidth();
  266. var heights = height || 300;
  267. var widths = width || 500;
  268. var Oheight= (Iheight -heights) / 2;
  269. var Owidth = (Iwidth - widths) /2;
  270. var div ='<div id="InDiv1" style="width:'+Iwidth+'px;height:'+Iheight+'px;background:rgba(0,0,0,0.6);position:fixed;z-index:10000;top:0;left:0;">';
  271. div+='<div id="offDiv1" style=" width:100%; height:100%; left:0px; top:30%; position:fixed;z-index:100003;">';
  272. div+='<div id="Content1"></div>';
  273. div+='</div>';
  274. div+='</div>';
  275. $(document.body).append(div);
  276. if(url != ""){
  277. $("#Content1").load(url);
  278. }
  279. }
  280. //移除弹出层
  281. function RemoveDiv1(){
  282. $("#InDiv1").remove();
  283. $("#offDiv1").remove();
  284. }
  285. function btnCloses1(){
  286. RemoveDiv1();
  287. }
  288. // 限制时间
  289. function getNextMonth(date) {
  290. var arr = date.split('/');
  291. var year = arr[0];
  292. var month = arr[1];
  293. var day = arr[2];
  294. var days = new Date(year, month, 0);
  295. days = days.getDate();
  296. var year2 = year;
  297. var month2 = parseInt(month) + 2;
  298. if (month2 > 13) {
  299. year2 = parseInt(year2) + 1;
  300. if (parseInt(month)==11) {
  301. month2 = 1;
  302. }else if (parseInt(month)==12) {
  303. month2 = 2;
  304. };
  305. }
  306. var day2 = day;
  307. var days2 = new Date(year2, month2, 0);
  308. days2 = days2.getDate();
  309. if (day2 > days2) {
  310. day2 = days2;
  311. }
  312. if (month2 < 10) {
  313. month2 = '0' + month2;
  314. }
  315. var t2 = year2 + '/' + month2 + '/' + day2;
  316. return t2;
  317. }
  318. var myDate = new Date;
  319. var year = myDate.getFullYear();
  320. var yue = myDate.getMonth()+1;
  321. var dayObj = new Date(year, yue, 0);
  322. var dayNum = dayObj.getDate(); //获取当前日期中的月的天数
  323. if (yue<10) {
  324. yue= '0' + yue;
  325. };
  326. var time = year+'/'+yue+'/01';
  327. var time_yxq= year+'/'+yue+'/01-'+year+'/'+yue+'/'+dayNum;
  328. var yxqtime=time+'-'+getNextMonth(time);
  329. $('.sell_conter_right .date').html('有效期 '+'&nbsp'+ time_yxq);
  330. // 2018-12-8 --------------
  331. $(function(){
  332. // 用户点评
  333. var obj = new Object();
  334. // 马上提交
  335. $('.remark-btn').on('click',function(){
  336. var _this = $(this);
  337. var txt = _this.siblings('textarea[name="content"]').val();
  338. if(txt != ''){
  339. obj.content = txt;
  340. $('.w_up_ap').fadeIn();
  341. $('.w_up_ap').animate({top:"50%"});
  342. $('.cover').fadeIn();
  343. }else{
  344. var M = {};
  345. if(M.dialog1){
  346. return M.dialog1.show();
  347. }
  348. M.dialog1 = jqueryAlert({
  349. 'content' : '点评内容不能为空!',
  350. 'closeTime' : 2000,
  351. })
  352. }
  353. })
  354. // 确定按钮
  355. $('.w_sbtn').on('click',function(){
  356. var hid = $('.w_up_info').find('input[name="hid"]').val();
  357. var tel = $('.w_up_info').find('input[name="mobile"]').val();
  358. tel = FilterHTMLTag(tel);
  359. if(PhoneVerification(tel)){
  360. obj.mobile = tel;
  361. obj.hid = hid;
  362. DataAjax(obj); //提交数据
  363. }else{
  364. var M = {};
  365. if(M.dialog1){
  366. return M.dialog1.show();
  367. }
  368. M.dialog1 = jqueryAlert({
  369. 'content' : '请输入正确的电话码!',
  370. 'closeTime' : 2000,
  371. })
  372. }
  373. })
  374. /* 过滤代码标签 */
  375. function FilterHTMLTag(htmlStr){
  376. var msg = htmlStr.replace(/<\/?[^>]*>/g, ''); //去除HTML Tag
  377. return msg;
  378. }
  379. /* 电话验证 */
  380. function PhoneVerification(tel) {
  381. var pattern = /(13\d|14[57]|15[^4,\D]|17[678]|18\d)\d{8}$|170[059]\d{7}$/;
  382. return pattern.test(tel);
  383. }
  384. // 用户点击关闭按钮
  385. $('.cover').on('click',function(){
  386. $('.w_up_ap').fadeOut();
  387. $('.w_up_ap').animate({top:"-100%"});
  388. $(this).fadeOut();
  389. })
  390. $('.ws_up_cls').on('click',function(){
  391. $('.w_up_ap').fadeOut();
  392. $('.w_up_ap').animate({top:"-100%"});
  393. $('.cover').fadeOut();
  394. })
  395. // 数据提交
  396. function DataAjax(data){
  397. $.ajax({
  398. url:'/house/remarkfrom',
  399. type:'post',
  400. data:data,
  401. dataType:"json",
  402. success:function(data){
  403. if(data.code == 200){
  404. var M = {};
  405. if(M.dialog1){
  406. return M.dialog1.show();
  407. }
  408. M.dialog1 = jqueryAlert({
  409. 'content' : '提交成功!',
  410. 'closeTime' : 2000,
  411. })
  412. $('.w_up_ap').fadeOut();
  413. $('.w_up_ap').animate({top:"-100%"});
  414. $('.cover').fadeOut();
  415. }
  416. }
  417. });
  418. }
  419. })
  420. $(window).scroll(function (){
  421. var st = $(this).scrollTop();
  422. // console.log(st)
  423. if(st >110){
  424. $('.y_lpindexnav').show();
  425. // $('.y_header').hide();
  426. }else{
  427. $('.y_lpindexnav').hide();
  428. // $('.y_header').show();
  429. }
  430. });
  431. var Homeurl=window.location.href
  432. $(function(){
  433. var telurl=$('.y_modtel .y_modtel_text p.y_call span').html();
  434. if(Homeurl.indexOf("?source=pc")!=-1){
  435. return window.location.href = 'tel:'+telurl;
  436. };
  437. })
  438. // 开发商弹窗
  439. var ster = 0;
  440. $(window).scroll(function (){
  441. ster = $(this).scrollTop();
  442. // console.log(ster);
  443. });
  444. var _top = '';
  445. $('.m_Article_click a').on('click',function(){
  446. $('.Developers_tc').fadeIn(80);
  447. $('.Developers_tx').animate({bottom:'0%'},400);
  448. _top = $(window).scrollTop(); // 弹窗开启 遮罩层以外的东西不移动
  449. $('body').css("top",-ster+"px");
  450. $('body').addClass('add');
  451. // console.log(_top);
  452. $('.m_lpdescribe_text').scrollTop(0);
  453. })
  454. $('.Developers_zhez').on('click',function(){
  455. $('.Developers_tx').animate({bottom:'-88%'},400);
  456. setTimeout(function(){
  457. $('.Developers_tc').fadeOut(80);
  458. },400)
  459. $('body').removeClass('add');//去掉给body的类
  460. $('body').attr('style','');
  461. $(window).scrollTop(_top);//设置页面滚动的高度,如果不设置,关闭弹出层时页面会回到顶部。
  462. })
  463. $('.Developers_gb').on('click',function(){
  464. $('.Developers_tx').animate({bottom:'-88%'},400);
  465. setTimeout(function(){
  466. $('.Developers_tc').fadeOut(80);
  467. },400)
  468. $('body').removeClass('add');//去掉给body的类
  469. $('body').attr('style','');
  470. $(window).scrollTop(_top);//设置页面滚动的高度,如果不设置,关闭弹出层时页面会回到顶部。
  471. })
  472. var _imgid ="";
  473. // 相册
  474. $('.m_lunbo_box ul li').on('click',function(){
  475. console.log($(this).attr('data-name'))
  476. if (!$(this).attr('data-name')) {
  477. $('#LXB_CONTAINER_SHOW').hide();
  478. $('#LRdiv3').attr('class','none');
  479. _imgid = $(this).attr('data-hid')-1;// 索引第几张图片
  480. // console.log(_imgid);
  481. $('.m_swiper_xc').show();
  482. StitchingData(_imgid);
  483. };
  484. })
  485. // 相册
  486. function StitchingData(imgid){
  487. lpxc=new Array(); //定义数组存放图片
  488. $('.m_lunbo_box ul li').each(function(){
  489. var _src = $(this).attr('data-src');
  490. lpxc.push(_src);
  491. })
  492. lpindex_xc(lpxc , imgid);
  493. }
  494. // 相册
  495. function lpindex_xc(data , imgid){
  496. var html = '';
  497. // console.log(data);
  498. html+= '<div class="m_tcswiper_box">';
  499. html+='<div class="m_swiper_head">';
  500. html+='<div class="m_swiper_fh"><img src="/image/v2/lpindex3.png" alt=""></div>';
  501. html+='<div class="swiper-pagination" id="swiperzs"></div>';
  502. html+='<div class="m_swiper_qb"><a href="/house/album/1662">全部图片</a></div>';
  503. html+='</div>';
  504. // html+= '<div class="m_swiper_gb"><img src="/image/guanbi.png" alt=""></div>';
  505. html+= '<div class="m_swiper">';
  506. html+= '<div class="m_swiper_ul swiper-wrapper">';
  507. $.each(data, function (i, data) {
  508. html+= '<div class="m_swiper_li swiper-slide">';
  509. html+= '<div class="swiper-zoom-container">';
  510. html+= '<img class="swiper-lazy" data-src="'+data+'">';
  511. html+= '<div class="swiper-lazy-preloader"></div>';
  512. html+= '</div>';
  513. html+= '</div>';
  514. });
  515. html+= '</div>';
  516. html+= '<div class="swiper-button-prev"></div>';
  517. html+= '<div class="swiper-button-next"></div>';
  518. html+= '</div>';
  519. html+= '</div>';
  520. $('.m_swiper_ajax').html(html);
  521. // 相册插件
  522. var swipercx = new Swiper('.m_swiper', {
  523. // loop : true,
  524. zoom: true,
  525. // autoHeight: true,
  526. initialSlide :imgid,
  527. nextButton: '.swiper-button-next',
  528. prevButton: '.swiper-button-prev',
  529. pagination : '.swiper-pagination',
  530. paginationType : 'custom',
  531. lazyLoading : true,
  532. lazyLoadingInPrevNext : true,
  533. paginationCustomRender: function (swiper, current, total) {
  534. return current + ' / ' + total;
  535. },
  536. // onInit: function(swiper){
  537. // $('#swiperzs').hide();
  538. // },
  539. observer:true,//修改swiper自己或子元素时,自动初始化swiper
  540. // onSlideChangeEnd: function(){
  541. // $('#swiperzs').show();
  542. // },
  543. });
  544. // 关闭相册
  545. $('.m_swiper_fh').on('click',function(){
  546. $('#LXB_CONTAINER_SHOW').show();
  547. $('.m_swiper_xc').hide();
  548. })
  549. }
  550. // 点评电话加密
  551. $('.remark-list ul li').each(function(){
  552. var _tel = $(this).find('p em span').attr('tel-data').replace(/(\d{3})(\d{4})(\d{4})/,"$1****$3");
  553. $(this).find('p em span').html(_tel);
  554. })
  555. // var _dataid = $('.m_hq li.cur').attr('dataid');
  556. //demo示例六 通过id调取 底部菜单插件
  557. $('#demo05').navbarscroll({
  558. defaultSelect:0,
  559. scrollerWidth:6,
  560. fingerClick:1,
  561. endClickScroll:function(obj){
  562. // console.log(obj.text())
  563. }
  564. });