123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500 |
- var height= '';
- $('.m_album_title span').on('click',function(){
- $('.qhshow').hide();
- var _qhid = $(this).attr('qhid');
- $('.qhshow[qhid="'+_qhid+'"]').show();
- $(this).attr('class','on').siblings().attr('class','');
- height = $('.m_album_r_lsit').height() +20;
- $('.m_hxswitch').height(height);
-
- })
- $('.m_album_title span').eq(0).click();
- $('.m_album_l_title span').on('click',function(){
- var _hid = $(this).attr('hid');
- var _value = $(this).attr('value');
- $(this).attr('class','on').siblings().attr('class','');
-
-
- var html = '';
- $.ajax({
- url: "requesthousetype",
- type: "GET",
- data:{id:_hid,value:_value},
- dataType: "json",
- success: function(data) {
- if(data.code == 200){
- $.each(data.data, function (i, data) {
- html+='<div class="m_lsitImg c" data-index="'+i+'" data-src="'+data.img+'">';
- html+='<img src="'+data.img+'" data-lazy-src="" alt="">';
- html+='<div class="m_lsittext">';
- html+='<em>'+data.title+'</em>';
- html+='<span>'+data.indoor_info+'</span>';
- if(data.area == '' || data.area == null){
- html+='<i>建筑面积:暂无资料</i>';
- }else{
- html+='<i>建筑面积:'+data.area+'</i>';
- }
- html+='</div>';
- html+='</div>';
- });
- $(".m_album_r_lsit").html(html);
- height = $('.m_album_r_lsit').height() + 20;
- $('.m_hxswitch').height(height);
-
- var _imgid;
-
- $('.m_album_r_lsit .m_lsitImg').on('click',function(){
- _imgid = $(this).attr('data-index');
-
- $('.m_swiper_xc').show();
- StitchingData(_imgid);
- })
- }
- }
- });
- })
- $('.m_album_l_title span').eq(0).click();
- $(function(){
-
- $('.m_xqswitchtext').find('img').each(function(){
- var $that = $(this);
- var _alt = $that.attr('alt');
- if(_alt != 'code'){
- if(_alt != 'zixun'){
- $that.removeAttr('width');
- $that.removeAttr('height');
- $that.css({'display':'block','width':'100%','height':'auto'});
- }
- }
-
- if (_alt == 'call') {
- $that.css({'display':'inline-block','width':'80px','height':'auto'});
- };
- })
- })
- $('.sweepcode_title .zk').on('click',function(){
- $('.sweepcode_switch .gzh').show();
- $('.sweepcode_switch .zb').hide();
- $(this).hide();
- $('.sweepcode_title .sq').show();
- })
- $('.sweepcode_title .sq').on('click',function(){
- $('.sweepcode_switch .gzh').hide();
- $('.sweepcode_switch .zb').show();
- $(this).hide();
- $('.sweepcode_title .zk').show();
- })
- function StitchingData(imgid){
- lpxc=new Array();
- $('.m_album_r_lsit .m_lsitImg ').each(function(){
- var _src = $(this).attr('data-src');
- lpxc.push(_src);
- })
- lpindex_xc(lpxc , imgid);
-
- }
- function lpindex_xc(data , imgid){
- var html = '';
-
- html+= '<div class="m_tcswiper_box">';
- html+='<div class="m_swiper_head">';
- html+='<div class="m_swiper_fh"><img src="./image/lpindex3.png" alt=""></div>';
- html+='<div class="swiper-pagination" id="swiperzs"></div>';
- html+='</div>';
- html+= '<div class="m_swiper">';
- html+= '<div class="m_swiper_ul swiper-wrapper">';
- $.each(data, function (i, data) {
- html+= '<div class="m_swiper_li swiper-slide">';
- html+= '<div class="swiper-zoom-container">';
- html+= '<img src="'+data+'">';
- html+= '</div>';
- html+= '</div>';
- });
- html+= '</div>';
- html+= '<div class="swiper-button-prev"></div>';
- html+= '<div class="swiper-button-next"></div>';
- html+= '</div>';
- html+= '</div>';
- $('.m_swiper_ajax').html(html);
-
- var swipercx = new Swiper('.m_swiper', {
-
- zoom: true,
-
- initialSlide :imgid,
- nextButton: '.swiper-button-next',
- prevButton: '.swiper-button-prev',
- pagination : '.swiper-pagination',
- paginationType : 'custom',
- lazyLoading : true,
- lazyLoadingInPrevNext : true,
- paginationCustomRender: function (swiper, current, total) {
- return current + ' / ' + total;
- },
-
-
-
- observer:true,
-
-
-
- });
-
-
- $('.m_swiper_fh').on('click',function(){
- $('.m_swiper_xc').hide();
- })
- }
- jQuery(".push_pm").slide({mainCell:".bd ul",autoPlay:true,effect:"leftMarquee",interTime:40,trigger:"click"});
- function Bottomsetting(){
- $('#j-comments').scrollTop($('#j-comments')[0].scrollHeight);
- }
- $('.send-button').on('click',function(){
- var _textarea = $('.bottom-bar textarea').val();
-
- })
- var cubicle = "";
- $(function(){
-
-
- var audio = document.getElementById("myVideo");
- var btn = document.getElementById("live_id");
- var musitime= 0;
-
- if (btn) {
- btn.onclick = function () {
- $('.m_video_img').hide();
- cubicle = $('#live_id').attr('data-boole');
-
- if (audio.paused) {
- if(musitime >= 300 && cubicle == "true"){
- AudioWind();
- return false;
- }
- audio.play();
- watchMusicTime()
- }else{
- audio.pause();
- }
- }
- };
-
- $('.y_reduced2_bg , .y_reduced2_gb a').on('click',function(){
- $('.y_reduced2').hide();
- $('.m_form_button2').removeClass('wcontrol')
- $('.y_reduced2_bg').hide();
- $('.m_videobj').hide();
- $('.m_video_sp').show();
- })
-
- function AudioWind(){
- $('.y_reduced2').show();
- $('.y_reduced2_bg').show();
- $('.m_videobj').show();
- $('.m_video_sp').hide();
- }
-
-
-
- function watchMusicTime(){
- let _this = this;
-
-
- let musicDom =audio;
-
- musicDom.addEventListener("timeupdate",function(){
-
- let timeDisplay;
-
- timeDisplay = Math.floor(musicDom.currentTime);
- musitime = timeDisplay;
-
-
-
- if(timeDisplay >= 300 && cubicle == "true"){
- audio.pause();
- AudioWind();
- }
-
-
- 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);
- }
-
-
-
- var domeid=$('#sxbmdata').attr('data-id');
- if (domeid!='' && domeid!=null ) {
- $('#sxbmdata').attr('data-type','false')
- $('#live_id').attr('data-boole','false')
- }else{
- $('#sxbmdata').attr('data-type','true')
- $('#live_id').attr('data-boole','true')
- }
- var urlstr = window.location.href;
-
- var phoneReg = /(^1[3|4|5|7|8]\d{9}$)|(^09\d{8}$)/;
- var count = 60;
- var InterValObj1;
- var curCount1;
- $('#btnSendCode1').on('click',function(){
- sendMessage1();
- })
-
- $('#buttom_m').on('click',function(){
- var phoneReg = /(^1[3|4|5|7|8]\d{9}$)|(^09\d{8}$)/;
- var phone = $.trim($('#phone1').val());
- var code = $.trim($('#code').val());
- if (!phoneReg.test(phone)) {
-
- $('.zhanghao b.hint-text').show();
- $('#phone1').addClass('on');
- return false;
- }else{
- $('.zhanghao b.hint-text').hide();
- $('#phone1').removeClass('on');
- }
- if (code!='') {
- $('.mima b.hint-text').hide();
- $('#code').removeClass('on');
- }else{
-
- $('.mima b.hint-text').show();
- $('#code').addClass('on');
- return false;
- }
-
- $.ajax({
- type: "POST",
- url: "/home/checkcode",
- data: {mobile:phone,code:code},
- dataType: "json",
- success:function(data){
- if(data.code == 200) {
-
- $('.y_reduced2').hide();
- $('.y_reduced2_bg').hide();
- $('#sxbmdata').attr('data-type','false');
- $('#live_id').attr('data-boole','false');
- $('.m_videobj').hide();
- $('.m_video_sp').show();
- cubicle='false';
- $('.buttom_m2').click();
- }else{
- loginAlert(data.msg,2000)
- return false;
- }
- }
- });
- PublicAction.AjaxSend(
- {
- CORID:'buttom_m2',
- }
- );
-
- })
-
- function sendMessage1() {
- curCount1 = count;
- var phone = $.trim($('#phone1').val());
- if (!phoneReg.test(phone)) {
- $('.zhanghao b.hint-text').show();
- $('#phone1').addClass('on');
- return false;
- }else{
- $('.zhanghao b.hint-text').hide();
- $('#phone1').removeClass('on');
- }
-
- $("#btnSendCode1").attr("disabled", "true");
- $("#btnSendCode1").val( '('+ curCount1 + ")秒再获取");
- InterValObj1 = window.setInterval(SetRemainTime1, 1000);
-
- $.ajax({
- type: "POST",
- url: "/home/sendcode",
- data: {mobilephone:phone},
- dataType: "json",
- success:function(data){
-
- if(data.code == 200){
-
- loginAlert(data.msg,2000)
- $('.mima b.hint-text').hide();
- $('#code').removeClass('on');
- }else{
- loginAlert(data.msg+',请重新发送!',2000)
- curCount1 = 0;
- window.clearInterval(InterValObj1);
- $("#btnSendCode1").removeAttr("disabled");
- $("#btnSendCode1").val("重新发送");
- $('.mima b.hint-text').show();
- $('#code').addClass('on');
- return false;
- }
- }
- });
- }
- function SetRemainTime1() {
- if (curCount1 == 0) {
- window.clearInterval(InterValObj1);
- $("#btnSendCode1").removeAttr("disabled");
- $("#btnSendCode1").val("重新发送");
- $("#btnSendCode1").css('color','#2DB1FB')
- }else {
- curCount1--;
- $("#btnSendCode1").val( '('+ curCount1 + ")秒再获取");
- $("#btnSendCode1").css('color','#999')
- }
- }
- function loginAlert(txt,time){
-
- var M = {};
- if(M.dialog1){
- return M.dialog1.show();
- }
- M.dialog1 = jqueryAlert({
- 'content' : txt,
- 'closeTime' : time,
- })
- }
- })
|