var e=!1,n=0,t=0,a=0,s=0,d=0,o=0,c=0,l=0;const u={idx:0,nextId:null,title:"南京世茂项目",backurl:"",descript:"",is_yuyue:!1,yy_step:0,src:[{id:0,name:"Kanfang",title:"",thumb:"nanimages/yykf_sel.png"},{id:1,name:"01frontGate",title:"样板房A",thumb:"nanimages/sc_1.jpg"},{id:2,name:"02masterBedroom",title:"样板房B",thumb:"nanimages/sc_2.jpg"},{id:3,name:"03masterBedroom",title:"样板房C",thumb:"nanimages/sc_3.jpg"},{id:4,name:"04masterBedroom",title:"样板房D",thumb:"nanimages/sc_4.jpg"}]};function i(){const e=window.location.search,n=new URLSearchParams(e);let t=n.get("backurl")?n.get("backurl"):"../";u.backurl=t;for(var a=document.getElementById("listContent_ybf");a.firstChild;)a.removeChild(a.firstChild);let s=0;for(let e of u.src){const n=document.createElement("div");n.className="pano",s=e.id,1==s&&(n.style.marginLeft=0),n.setAttribute("data-id",s);const t=document.createElement("div");t.className="title",t.innerHTML=e.title;const d=document.createElement("div");d.className=0===e.id?"kanfang":"thumb";const o=document.createElement("img");0==e.id&&(o.id="kanfang_image"),o.src=e.thumb,d.appendChild(o),n.appendChild(t),n.appendChild(d),a.appendChild(n)}}function y(e){1==u.yy_step&&(e?(document.getElementById("yuyue_ok").src="./nanimages/qd_sel.png",document.getElementById("yuyue_ok").setAttribute("data-sel",!0),document.getElementById("yd_phone").blur()):(document.getElementById("yuyue_ok").src="./nanimages/qd_non.png",document.getElementById("yuyue_ok").setAttribute("data-sel",!1),document.getElementById("yd_phone").focus()))}function m(e){var n=e;return n.length>180&&(n=n.substr(0,180)+"..."),n}function g(e){const n=document.getElementById("listContent_ybf").childNodes;for(let e=0;eonBack",console.log(u.is_yuyue),u.is_yuyue){if(1==u.yy_step){const e=document.getElementById("yd_phone").value,n=e.length>1?e.substring(0,e.length-1):"";document.getElementById("yd_phone").value=n}}else{const e=u.backurl;console.log("backurl"),window.location.href=e}}});window.onBackEvent=function(){if(!u.is_yuyue){const e=u.backurl;console.log("backurl"),window.location.href=e}};