123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252 |
- var mySwiper1 = new Swiper(".yw_swiper", {
- autoplay: 5000,
- loop: true,
- centeredSlides: true,
- slidesPerView:1.1,
- paginationClickable: true,
- spaceBetween: 10
- });
- if ($('#v3adv_box ul li').length >2) {
- var mySwiper1 = new Swiper('#v3adv_box',{
- autoplay:5000,
- loop : false,
- })
- }else{
- var mySwiper1 = new Swiper('#v3adv_box',{
- autoplay:false,
- loop : false,
- })
- }
- $('#demo06').navbarscroll({
- defaultSelect: 0,
- scrollerWidth: 4,
- fingerClick: 1,
- endClickScroll: function (obj) {
-
- }
- });
- $('.m_click li').on('click', function () {
- var _country = $(this).attr('country');
- var html = '';
- $.ajax({
- url: "/index/gethouse",
- data: {id: _country},
- type: "GET",
- dataType: "json",
- success: function (data) {
- $.each(data.data, function (i, data) {
- html += '<li class="c">';
- html += '<a href="/house/' + data.id + '" class="c">';
- html += '<div class="xm_sellimgbox c">';
- html += '<div class="xm_sellimg">';
- html += '<img src="' + data.thumb + '" alt="">';
- html += '<p>';
- if (data.price != null && data.price != '' && data.price != 0) {
- html += '<span><i>' + data.price + '</i> ' + data.price_nuit + '</span>';
- } else {
- html += '<span><i>待定</i></span>';
- }
- html += '</p>';
- html += '<i class="yxq">有效期:' + data.time + '</i>';
- html += '</div>';
- html += '</div>';
- html += '<div class="xm_sellconter_right">';
- html += '<p class="title">' + data.name + '</p>';
- html += '<p class="style">';
- if (data.label) {
- $.each(data.label, function (k, v) {
- html += '<i>' + v + '</i>';
- })
- }
- html += '</p>';
- html += '<div class="xm_shuju c">';
- html += '<p><span>' + data.recent_price + '</span><i>房价涨幅</i></p>';
- html += '<p><span>' + data.down_payment_ratio + '</span><i>首付比例</i></p>';
- html += '<p><span>' + data.rent + '</span><i>租金回报率</i></p>';
- html += '</div>';
- html += '</div>';
- html += '</a>';
- html += '</li>';
- });
- $('.xm_sell_conter ul').html(html);
- }
- });
- })
- $('.m_click li').eq(0).click();
- var mySwiper1 = new Swiper(".xm_swiper", {
- loop: true,
- centeredSlides: true,
- slidesPerView:1.2,
- paginationClickable: true,
- spaceBetween: 10
- })
- $('.xm_zixundaohang span').on('click', function () {
- var qhid = $(this).attr('qhid');
- $('.xm_zixun .xm_zixunnr').hide();
- $('.xm_zixun .xm_zixunnr[qhid="' + qhid + '"]').show();
- $(this).attr('class', 'on').siblings().attr('class', '');
- })
- $('.xm_zixundaohang span').eq(0).click();
- var _top = '';
- var ster = 0;
- $(window).scroll(function () {
- ster = $(this).scrollTop();
- });
- $('.xm_zixunnr .xm_wenda').on('click', function () {
- $('.xm_wenda_tcbox').show();
- _top = $(window).scrollTop();
- $('body').css("top", -ster + "px");
- $('body').addClass('add');
- var _title = $(this).find('.xm_wenda_r em').html();
- var _text = $(this).find('.xm_wenda_r span').html();
- $('.xm_wenda_tcr em').html(_title);
- $('.xm_wenda_tcr .text').html(_text);
- })
- $('.xm_wenda_tcbox .title i').on('click', function () {
- $('.xm_wenda_tcbox').hide();
- $('body').removeClass('add');
- $(window).scrollTop(_top);
- })
- $('.xm_wenda_tcbj').on('click', function () {
- $('.xm_wenda_tcbox').hide();
- $('body').removeClass('add');
- $(window).scrollTop(_top);
- })
-
- PublicAction.AjaxSend({CORID:'ybm_buttom'});
- $('.liveBm_bg,.liveBm_gb a').click(function(){
- $('.liveBm_bg,.liveBm').hide();
- })
-
- var lpvideo = document.getElementById("myVideo");
- var btn_vid = document.getElementById("lpvideo");
- var musitime= 0;
- var cubicle = "true";
- if (btn_vid) {
- btn_vid.onclick = function () {
-
-
- if (lpvideo.paused) {
- $('#myVideo').attr('controls','controls');
- $('.xm_video_img').hide();
- if(musitime >= 1000 && cubicle == "true"){
- AudioWind_video();
- return false;
- }
- lpvideo.play();
- watchMusicTime_vid()
- }else{
- lpvideo.pause();
- }
- var getCookie=cookie.get("authorization");
-
- if(getCookie){
- $('body #lpvideo').attr('data-boole','false');
- }
- }
- };
- function AudioWind_video(){
-
-
-
-
-
-
-
- if($('body .liveBm').is(':hidden')){
- $('body .liveBm').show(10);
- $('body .liveBm_bg').show();
- parent.w_id = $("#lpvideo").attr('value');
- $('body .liveBm').find('.liveBm_box input[name="hid"]').val($("#lpvideo").attr('value'))
- }
- }
- function watchMusicTime_vid(){
- let _this = this;
-
-
- let musicDom =lpvideo;
-
- musicDom.addEventListener("timeupdate",function(){
- cubicle = $('#lpvideo').attr('data-boole');
-
-
- let timeDisplay;
-
- timeDisplay = Math.floor(musicDom.currentTime);
- musitime = timeDisplay;
-
-
-
- if(timeDisplay >= 1000 && cubicle == "true"){
- lpvideo.pause();
- AudioWind_video();
- }
-
-
- let minute = timeDisplay / 60;
- let minutes = parseInt(minute);
- if (minutes < 10) {
- minutes = "0" + minutes;
- }
-
- let second = timeDisplay % 60;
- let seconds = Math.round(second);
- if (seconds < 10) {
- seconds = "0" + seconds;
- }
- let shun= minutes+":"+seconds;
-
-
- },false);
- }
|