1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ed3be54e"],{"056f":function(e,t,n){},"0731":function(e,t,n){"use strict";var o=n("056f"),s=n.n(o);s.a},"0ca1":function(e,t,n){"use strict";var o=n("6f15"),s=n.n(o);s.a},"0df4":function(e,t,n){},1407:function(e,t,n){"use strict";var o=n("e4ce"),s=n.n(o);s.a},"1cc9":function(e,t,n){"use strict";var o=n("716e"),s=n.n(o);s.a},"1ffd":function(e,t,n){},"21c9":function(e,t,n){"use strict";var o=n("3609"),s=n.n(o);s.a},"223d":function(e,t,n){},"29b2":function(e,t,n){"use strict";var o;n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var s={Data:"jsondata",Send:"getJson",Connection:"connection",Disconnect:"disconnect"};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object({NODE_ENV:"production",VUE_APP_CDN_URL:"",VUE_APP_HIDE_MENU:"scene,decor,virtual,vrhouse,business",VUE_APP_INCLUDEAPPS:"embed,shop,decor,discover,reserve,grave,fire-control,rtc-live",VUE_APP_LANGS:"zh#中文,en#英文,de#德文,fr#法文,jp#日文,kr#韩文,es#西班牙文",VUE_APP_LOCAL_PAGE:"embed",VUE_APP_OEM:"localshow",VUE_APP_OEM_NAEM:"本地版展示页面",VUE_APP_OPENAPI:"",VUE_APP_RTC_SOCKETURL:"",VUE_APP_SERVER_URL:"",VUE_APP_SHOP_ADMIN_URL:"",VUE_APP_SHOP_SOCKETURL:"",VUE_APP_SHOP_URL:"",VUE_APP_STATIC_DIR:"static",VUE_APP_STATIC_URL:"static/",VUE_APP_TESTKEY:"test",VUE_APP_TESTPWD:"11111111Aa",VUE_APP_TESTUSR:"13112311178",VUE_APP_VRHOUSE_OPENAPI:"",VUE_APP_VRHOUSE_URL:"",BASE_URL:""}).VUE_APP_SOCKETURL||e.url,s=Object({NODE_ENV:"production",VUE_APP_CDN_URL:"",VUE_APP_HIDE_MENU:"scene,decor,virtual,vrhouse,business",VUE_APP_INCLUDEAPPS:"embed,shop,decor,discover,reserve,grave,fire-control,rtc-live",VUE_APP_LANGS:"zh#中文,en#英文,de#德文,fr#法文,jp#日文,kr#韩文,es#西班牙文",VUE_APP_LOCAL_PAGE:"embed",VUE_APP_OEM:"localshow",VUE_APP_OEM_NAEM:"本地版展示页面",VUE_APP_OPENAPI:"",VUE_APP_RTC_SOCKETURL:"",VUE_APP_SERVER_URL:"",VUE_APP_SHOP_ADMIN_URL:"",VUE_APP_SHOP_SOCKETURL:"",VUE_APP_SHOP_URL:"",VUE_APP_STATIC_DIR:"static",VUE_APP_STATIC_URL:"static/",VUE_APP_TESTKEY:"test",VUE_APP_TESTPWD:"11111111Aa",VUE_APP_TESTUSR:"13112311178",VUE_APP_VRHOUSE_OPENAPI:"",VUE_APP_VRHOUSE_URL:"",BASE_URL:""}).VUE_APP_SOCKETPATH||e.path;return o=io(n,{path:s||"/",query:t}),o}},"2b60":function(e,t,n){},"2f5d":function(e,t,n){"use strict";var o=n("6e13"),s=n.n(o);s.a},3233:function(e,t,n){},3609:function(e,t,n){},"3aa7":function(e,t,n){},"3acd":function(e,t,n){},"3f7e":function(e,t,n){},"465f":function(e,t,n){},4852:function(e,t,n){"use strict";var o=n("8f3e"),s=n.n(o);s.a},4928:function(e,t,n){"use strict";var o=n("5490"),s=n.n(o);s.a},5174:function(e,t,n){},5441:function(e,t,n){},5490:function(e,t,n){},"5a5e":function(e,t,n){"use strict";var o=n("cf48"),s=n.n(o);s.a},"5cac":function(e,t,n){"use strict";var o=n("9770"),s=n.n(o);s.a},"61a1":function(e,t,n){"use strict";var o=n("2b60"),s=n.n(o);s.a},"65fe":function(e,t,n){},"6e05":function(e,t,n){"use strict";var o=n("ea79"),s=n.n(o);s.a},"6e13":function(e,t,n){},"6f15":function(e,t,n){},"716e":function(e,t,n){},"71ae":function(e,t,n){},"8f3e":function(e,t,n){},"936f":function(e,t,n){"use strict";var o=n("97f1"),s=n.n(o);s.a},9770:function(e,t,n){},"97f1":function(e,t,n){},"9a39":function(e,t,n){"use strict";n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return P})),n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return O})),n.d(t,"c",(function(){return k}));var o=n("53ca"),s=(n("7f7f"),n("ac6a"),n("6b54"),n("c75e")),a=n("617a"),i=n("c7b2"),r=n("80c5"),c=n("eb02"),l=n("29b2"),u=null,d=!1,h=null,f=null,p=null,v=a["a"].urlQueryValue("role"),m=a["a"].urlQueryValue("user_id"),g=a["a"].urlQueryValue("room_id");function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";u.emit(t||l["a"].Send,{role:v,roomId:g,userId:m,content:e})}function w(e){if(null==h)return y(e),!1;if(h.mode!=e.mode)return y(e),!1;if(h.mode==r["a"].PANORAMA)return!!h.qua.equals(e.qua)||(y(e),!1);if(h.mode==r["a"].DOLLHOUSE){var t=!0;return e.qua&&h.qua&&(h.qua.equals(e.qua)||(t=!1)),e.pos&&h.pos&&(h.pos.equals(e.pos)||(t=!1)),e.target&&h.target&&(h.target.equals(e.target)||(t=!1)),h.zoom&&(h.zoom.equals(e.zoom)||(t=!1)),t||y(e),t}var n=!0;return h.qua.equals(e.qua)?(h.pos&&(h.pos.equals(e.pos)||(n=!1)),h.zoom&&h.zoom!=e.zoom&&(n=!1)):n=!1,n||y(e),n}function y(e){h={},h.mode=e.mode,e.pos&&(h.pos=new THREE.Vector3,h.pos.set(e.pos.x,e.pos.y,e.pos.z)),e.qua&&(h.qua=new THREE.Quaternion,h.qua.set(e.qua._x,e.qua._y,e.qua._z,e.qua._w)),e.target&&(h.target=new THREE.Vector3,h.target.set(e.target.x,e.target.y,e.target.z)),e.zoom&&(h.zoom=e.zoom)}function b(){var e=c["a"].getters["scene/metadata"],t=0;e.entry&&(t=e.entry.pano);var n=new THREE.Quaternion;e.entry&&e.entry.camera&&(n=e.entry.camera.quaternion),C(t,n)}function C(e,t){if(i["app"].player.mode!=r["a"].PANORAMA||e!=i["app"].player.currentPano.id){var n;n=t instanceof Array?(new THREE.Quaternion).fromArray(t):(new THREE.Quaternion).set(t._x,t._y,t._z,t._w);var o={mode:r["a"].PANORAMA,pano:e,qua:n};isNaN(o.qua.x)&&console.log("NaN??????"),i["app"].player.flyToItem(o,null)}}function P(){u?u.emit("startCall"):(u=Object(l["b"])({url:"",path:"/vr-node"},{role:v,roomId:g,userId:m,scene_num:a["a"].urlQueryValue("m"),customContent:window._houseInfo?window._houseInfo.customContent:""}),u.on(l["a"].Connection,(function(e){console.log(e)})),u.on(l["a"].Disconnect,(function(){i["app"].play.control.onUpdate=!0,d=!1,!1,!1,f&&clearInterval(f),p&&clearInterval(p)})),u.on("vr_request",(function(e){f&&clearInterval(f),p&&clearInterval(p),d=!1,!1,!1;var t=!1,n=!1;if(u.emit("startCall"),e.persons&&e.persons.forEach((function(e){"agent"==e.role?t=!0:"customer"==e.role&&(n=!0,s["a"].emit("vrhouse/socket/action","userId",e.userId))})),t&&n){b();var o=0,a=3;f=setInterval((function(){--a>=1?s["a"].emit("player/counting",a):(s["a"].emit("player/counting",0),d=!0,i["app"].play.control.onUpdate=!1,"agent"==v&&!0,"customer"==v&&!0,clearInterval(f),p=setInterval((function(){s["a"].emit("vrhouse/socket/action","time",++o)}),1e3),s["a"].emit("vrhouse/socket/action","time",o))}),1e3),s["a"].emit("player/counting",a),s["a"].emit("vrhouse/socket/action","sync",!0)}else s["a"].emit("vrhouse/socket/action","sync",!1),s["a"].emit("vrhouse/socket/action","time",-1)})),u.on("action",(function(e){e&&("string"===typeof e?s["a"].emit("vrhouse/socket/action",e):s["a"].emit("vrhouse/socket/action",e.name,e.data,e.role))})),u.on("vr_response",(function(e){if(e.content.drawing)s["a"].emit("vrhouse/socket/action","drawing",e);else if(d&&i["app"].player.cameraControls.activeControl){if(e.role==v)return;if("undefined"!=typeof e.content.onUpdate&&(i["app"].play.control.onUpdate=e.content.onUpdate,console.log(i["app"].play.control.onUpdate),"agent"!=v||i["app"].play.control.onUpdate||s["a"].emit("vrhouse/socket/action","operation-tips")),"undefined"!=typeof e.content.scale&&(i["app"].player.cameraControls.activeControl.absoluteScale=e.content.scale,i["app"].player.cameraControls.activeControl.updateZoom()),i["app"].play.control.onUpdate)return;if(e.content.item){if(w(e.content.item))return;(e.content.item.mode!=i["app"].player.mode||e.content.item.mode==i["app"].player.mode&&e.content.item.mode==r["a"].PANORAMA)&&C(e.content.item.pano,e.content.item.qua),i["app"].player.copyCameraProp(i["app"].player.cameraControls.activeControl,e.content.item),i["app"].player.adjustControlAngel()}else if(e.content.toPano)e.content.toPano.pano=i["app"].player.model.panos.get(e.content.toPano.panoId),i["app"].player.adjustControlAngel({target:new THREE.Vector3(i["app"].player.cameraControls.activeControl.target.x,i["app"].player.cameraControls.activeControl.target.y,i["app"].player.cameraControls.activeControl.target.z)}),i["app"].player.currentPano.id!=e.content.toPano&&i["app"].player.flyToPano(e.content.toPano);else if(e.content.newModeInfo){if(e.content.newModeInfo.panoId&&(e.content.newModeInfo.pano=i["app"].player.model.panos.get(e.content.newModeInfo.panoId)),e.content.newModeInfo.quaternion){var t=e.content.newModeInfo.quaternion;e.content.newModeInfo.quaternion=new THREE.Quaternion,e.content.newModeInfo.quaternion.set(t._x,t._y,t._z,t._w)}i["app"].player.flyToNewMode(e.content.newModeInfo)}else console.warn(e)}})))}function x(){p&&clearInterval(p),s["a"].emit("vrhouse/socket/action","time",-1),u&&(u.emit("stopCall"),u.disconnect(),u=null,"customer"==v&&s["a"].emit("vrhouse/socket/action","sync",!1))}function O(e){u&&("object"===Object(o["a"])(e)&&(e.role=v),_({action:e}))}function k(e){_({drawing:e})}i["app"].player.cameraControls.on("vr_freedom",(function(e){d&&!i["app"].play.control.onUpdate&&(u.emit(l["a"].Send,{role:v,roomId:g,userId:m,content:{onUpdate:!1}}),i["app"].play.control.onUpdate=!0)})),i["app"].player.on("vr_Rotate",(function(e){if(d){var t={};t.qua=e.quaternion,t.mode=e.mode,t.pos=e.position,e.cameraControls.activeControl.currentScale&&(t.zoom=e.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),t.type="Rotate",w(t)||(e.mode==r["a"].PANORAMA?t.pano=e.currentPano.id:e.mode==r["a"].FLOORPLAN&&(t.pos=(new THREE.Vector3).set(e.position.x,e.position.y,e.position.z),t.zoom=e.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),e.cameraControls.activeControl.target&&(t.pos=e.position,t.target=e.cameraControls.activeControl.target),i["app"].play.control.onUpdate&&u.emit(l["a"].Send,{role:v,roomId:g,userId:m,content:{item:t}}))}})),i["app"].player.on("vr_Zoom",(function(e){if(d){var t=e.cameraControls.activeControl.absoluteScale;u.emit(l["a"].Send,{role:v,roomId:g,userId:m,content:{scale:t}})}})),i["app"].player.on("vr_FlyToPano",(function(e){d&&(e.socketed=!0,u.emit(l["a"].Send,{role:v,roomId:g,userId:m,content:{toPano:e}}),console.log("flytopano"+e.toString()))})),i["app"].player.on("vr_FlyToNewMode",(function(e){d&&(e.socketed=!0,u.emit(l["a"].Send,{role:v,roomId:g,userId:m,content:{newModeInfo:e}}),i["app"].play.control.onUpdate=!1)})),s["a"].on("vrhouse/painting",(function(e){u.emit(l["a"].Send,{role:v,roomId:g,userId:m,content:{drawing:e}})}))},a4ec:function(e,t,n){"use strict";var o=n("223d"),s=n.n(o);s.a},aabd:function(e,t,n){"use strict";var o=n("bd8f"),s=n.n(o);s.a},ab6a:function(e,t,n){},b14d:function(e,t,n){"use strict";var o=n("3aa7"),s=n.n(o);s.a},b7fa:function(e,t,n){"use strict";var o=n("1ffd"),s=n.n(o);s.a},b909:function(e,t,n){"use strict";var o=n("3233"),s=n.n(o);s.a},ba57:function(e,t,n){"use strict";var o=n("71ae"),s=n.n(o);s.a},bcc8:function(e,t,n){"use strict";var o=n("ab6a"),s=n.n(o);s.a},bd8f:function(e,t,n){},bfd8:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-layout"},[n("div",{staticClass:"app-player"},[n("player"),n("Floor")],1),e.show?n("app-header"):e._e(),e.show?n("app-main"):e._e(),e.houseInfo&&e.houseInfo.homePageLogo?n("div",{staticClass:"def-logo",style:{"background-image":"url("+e.houseInfo.homePageLogo+")"}}):e._e()],1)},s=[],a=n("eca3"),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("player",{ref:"player"})},r=[],c=(n("7514"),n("b31b")),l=n("c7b2"),u={components:{Player:c["a"]},created:function(){var e=this;this.$store.commit("SetPlayerOptions",{showUI:!1}),this.$bus.on("ready",(function(){e.$bus.emit("rule/Visible",!1,"vrhouse")}))},mounted:function(){var e=this;this.$refs.player.start(),$(this.$el).find("#player").on("touchstart click",(function(){e.$bus.emit("vrhouse/header/hide"),e.$bus.emit("vrhouse/main/hide"),l["play"].control.isPlaying&&e.$bus.emit("vrhouse/guide/pause")}));var t=!1;l["app"].player.on("player/flyToNext",(function(n){"panorama"==n&&e.$bus.emit("changeModel",null),0==t&&(t=!0,e.$bus.emit("flag/hidden"))}))},methods:{init:function(){}}},d=u,h=n("2877"),f=Object(h["a"])(d,i,r,!1,null,null,null),p=f.exports,v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header",style:{zIndex:e.share?9999:"99"}},[e.isVR?n("span",{staticClass:"back",on:{click:e.onBack}},[n("i",{staticClass:"iconfont icon_back"})]):[n("h2",{staticClass:"title",class:{active:e.show},on:{click:e.changeShow}},[n("p",{class:1==e.serve.info.$authority.showYun?"contentTitle":""},[e._v("\n "+e._s(e.serve.info.houseTitle)+"\n "),n("i",{staticClass:"iconfont iconscene_tit_arrow"})])]),1!=e.serve.info.$authority.showYun?n("i",{staticClass:"iconfont icon_share share",on:{click:e.showShare}}):e._e(),n("Map",{directives:[{name:"show",rawName:"v-show",value:e.minmapShow,expression:"minmapShow"}],staticClass:"map",attrs:{area:e.serve.info.houseArea}}),n("div",{staticClass:"banner-layer"},[e.show?n("Banner",{staticClass:"banner",attrs:{screens:e.banner,type:0,index:e.index},on:{changeIndex:e.changeBanner},scopedSlots:e._u([{key:"item",fn:function(t){var o=t.data;return n(o.component,e._b({tag:"component",staticClass:"item",on:{cb:function(e){return o.cb&&o.cb(e)}}},"component",o.data,!1))}}],null,!1,3555985452)}):e._e()],1),e.imgsShow?n("Dialog",{staticClass:"imgs-dialog"},[n("ImgQuery",{attrs:{info:e.serve.info,estate:e.serve.estate},on:{quit:e.quitImgs}})],1):e._e(),e.mapShow?n("Dialog",{on:{quit:e.quitMap}},[n("Gaode",{attrs:{lat:e.serve.info.estateLongitude,lng:e.serve.info.estateLatitude}})],1):e._e(),e.share?n("Dialog",{staticClass:"share-dialog"},[n("div",{staticClass:"share-img",on:{click:e.hideShare}},[n("img",{attrs:{src:"/static/img/img_scene_share.png",alt:""}})])]):e._e()]],2)},m=[],g=(n("96cf"),n("1da1")),_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.model,expression:"model"}],staticClass:"tab-layer"},[n("div",{staticClass:"tabs",class:{disable:!e.modeCanSwitch}},[n("span",{class:{active:"2d"===e.model},on:{click:function(t){return e.changeMode("2d")}}},[n("i",{staticClass:"iconfont iconscene_map_2d"}),e._v("\n 户型图\n ")]),n("span",{class:{active:"3d"===e.model},on:{click:function(t){return e.changeMode("3d")}}},[n("i",{staticClass:"iconfont iconscene_map_3d"}),e._v("\n 三维模型\n ")])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.model&&"pano"==e.mode,expression:"!model && mode=='pano'"}],staticClass:"map-layer",on:{click:function(t){return e.changeMode("2d")}}},[n("p",{staticClass:"remarks"},[e._v("面积 约"+e._s(e.area)+"m²")]),n("div",{ref:"cad",staticClass:"cad",staticStyle:{width:"90px",height:"90px"}}),n("p",{staticClass:"change",on:{click:function(t){return t.stopPropagation(),e.changeMode("3d")}}},[n("i",{staticClass:"iconfont iconscene_map_3d"}),e._v("\n 3D模型\n ")])])])},w=[],y=(n("8e6e"),n("ac6a"),n("456d"),n("ade3")),b=n("26d4"),C=n("2f62"),P=n("6860"),x=n("9a39");function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){Object(y["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}(function(){var e=0})();var S={props:["area"],data:function(){return{isLock:!1,model:""}},computed:k({},Object(C["b"])({mode:"mode",floorId:"scene/floorId",floor:"scene/houstFloor",modeCanSwitch:"modeCanSwitch"})),methods:{flyToNewMode:function(e){return Object(l["flyToNewMode"])(e),this.model=e,!0},changeMode:function(e){this.flyToNewMode(e)&&Object(x["a"])({name:"changeHeaderMapMode",data:e})}},watch:{floor:function(){var e=this;this.cad.loadData(this.floor),this.cad.setSign({x:app.firstView.position.x,y:app.firstView.position.z},app.cameraControls.controls.panorama.lon),this.cad.toCanvas((function(){return e.cad.adapt()})),this.$bus.emit("sign/Set/angle",this.cad.processing.data.dire)}},mounted:function(){var e=this;this.cad=Object(b["a"])({data:this.floor,layer:this.$refs.cad,edit:!1,padding:1,isCanvas:!0}),this.cad.setDefaultPointStyle({fillColor:"rgba(0,0,0,0)",storkeColor:"rgba(0,0,0,0)"}),this.listen=function(t){var n=t.x,o=t.y,s=t.lon;return e.cad.setSign({x:n,y:o},s)},this.cad.toCanvas((function(){return e.cad.adapt()})),this.$bus.emit("sign/Set/angle",this.cad.processing.data.dire),this.$bus.on("player/position/change",this.listen),this.$bus.on("vrhouse/socket/action",(function(t,n){"sync"==t&&(e.isLock=n)})),this.$bus.on("vrhouse/socket/action",(function(t,n,o){o&&o!=e.role&&"changeHeaderMapMode"==t&&(e.model=n)})),this.$bus.on("changeModel",(function(t){e.model=null}))},beforeDestroy:function(){this.cad.destroy(),this.$bus.off("player/position/change",this.listen)}},E=S,I=(n("a4ec"),Object(h["a"])(E,_,w,!1,null,"4743a1ef",null)),A=I.exports,T=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layer"},[n("div",{staticClass:"layer head-banner"},[n("div",{staticClass:"swiper-wrapper"},e._l(e.screens,(function(t,o){return n("div",{key:o,staticClass:"swiper-slide"},[e._t("item",null,{data:t,index:o})],2)})),0)]),0===e.type?n("div",{staticClass:"head-pages"},[n("span",{style:{width:e.barWidth+"%",left:e.barWidth*e.current+"%"}})]):n("div",{staticClass:"number-pages"},[n("span",[e._v(e._s(e.current+1)+"/"+e._s(e.total))])])])},j=[];function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){Object(y["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R={props:["screens","type","index"],data:function(){return{total:0,current:this.index||0,args:[{effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:"auto",coverflowEffect:{rotate:40,stretch:0,depth:100,modifier:1,slideShadows:!0}}]}},computed:{barWidth:function(){return 1/this.total*100}},watch:{current:function(){this.swiper.slideTo(this.current),this.current!==this.index&&this.$emit("changeIndex",this.current)},index:function(){this.current=this.index}},mounted:function(){var e=this,t=this.args[this.type]?D({},this.args[this.type]):{};this.swiper=new Swiper(".head-banner",D(D({},t),{},{on:{slideChange:function(){e.current=this.activeIndex}}})),this.swiper=Array.isArray(this.swiper)?this.swiper[swiper.length-1]:this.swiper,e.total=this.swiper.slidesGrid.length,this.swiper.slideTo(this.current)}},U=R,H=(n("f358"),Object(h["a"])(U,T,j,!1,null,"3861c7a2",null)),L=H.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layer"},[n("h3",[e._v("房源信息")]),n("div",{staticClass:"apartment info-item"},[e._m(0),n("div",[n("div",[n("i",{staticClass:"iconfont iconrinfo_price"}),n("label",[e._v("参考总价")]),n("span",{staticClass:"big"},[e._v(e._s(e.info.houseReferencePrice/1e4)+"万")])]),n("div",[n("i",{staticClass:"iconfont iconrinfo_layout"}),n("label",[e._v("户型")]),n("span",[e._v(e._s(e.info.houseType))])])]),n("div",[n("div",[n("i",{staticClass:"iconfont iconrinfo_area"}),n("label",[e._v("面积")]),n("span",[e._v(e._s(e.info.houseArea)+"平米")])]),n("div",[n("i",{staticClass:"iconfont iconrinfo_orientation"}),n("label",[e._v("朝向")]),n("span",[e._v(e._s(e.info.houseOrientation))])])])]),n("div",{staticClass:"properties info-item"},[e._m(1),n("div",[n("div",[n("i",{staticClass:"iconfont iconrinfo_avprice"}),n("label",[e._v("参考均价")]),n("span",{staticClass:"big"},[e._v(e._s(e.info.estateReferenceAveragePrice/1e4)+"万 "),1==e.info.$authority.showYun?n("span",[e._v("/㎡")]):e._e()])]),n("div",[n("i",{staticClass:"iconfont iconrinfo_earliest"}),n("label",[e._v("最早交房")]),n("span",[e._v(e._s(e.info.earlistHandOver&&e.info.earlistHandOver.substr(0,11)))])])]),n("div",[n("div",[n("i",{staticClass:"iconfont iconrinfo_newest"}),n("label",[e._v("最早开盘")]),n("span",[e._v(e._s(e.info.onSaleTime&&e.info.onSaleTime.substr(0,11)))])]),n("div",[n("i",{staticClass:"iconfont iconrinfo_agelimit"}),n("label",[e._v("产权年限")]),n("span",[e._v(e._s(e.info.estatePeriodInt))])])]),n("div",[n("div",[n("i",{staticClass:"iconfont iconrinfo_developers"}),n("label",[e._v("开发商")]),n("span",[e._v(e._s(e.info.estateDeveloper))])])]),n("div",[n("div",[n("i",{staticClass:"iconfont iconrinfo_address"}),n("label",[e._v("楼盘地址")]),n("span",[e._v(e._s(e.info.estateAddress))])])])])])},M=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h4",[n("span",[e._v("户型信息")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h4",[n("span",[e._v("楼盘信息")])])}],q={props:["info","estate"]},Q=q,B=(n("0ca1"),Object(h["a"])(Q,N,M,!1,null,"7a0acbe0",null)),z=B.exports,W=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"album",on:{click:e.clickHandle}},[n("div",{staticClass:"single",style:e.images[0]&&{backgroundImage:"url("+e.images[0]+")"}}),n("div",{staticClass:"more"},[n("div",{style:e.images[1]&&{backgroundImage:"url("+e.images[1]+")"}}),n("div",{style:e.images[2]&&{backgroundImage:"url("+e.images[2]+")"}},[n("div",[n("span",[n("b",[e._v("+"+e._s(e.length))]),e._v("\n 查看更多照片\n ")])])])])])},F=[],G=n("2909"),K={props:["estate","info"],data:function(){return{images:[],length:0}},methods:{clickHandle:function(){this.$emit("cb")},extract:function(){this.images=[this.info.estateCoverImage];var e=[],t=JSON.parse(this.info.estateImages);Object.keys(t).forEach((function(n){return e.push.apply(e,Object(G["a"])(t[n]))})),this.images.push(e[0],e[1]),this.length=e.length}},watch:{info:function(){this.info.estateImages&&this.extract()}},mounted:function(){this.info.estateImages&&this.extract()}},J=K,X=(n("aabd"),Object(h["a"])(J,W,F,!1,null,"04ed1a0e",null)),Y=X.exports,Z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"img-query"},[n("i",{staticClass:"iconfont iconclose",on:{click:function(t){return e.$emit("quit")}}}),n("div",{staticClass:"content"},[e._t("default")],2)])},ee=[],te=(n("b909"),{}),ne=Object(h["a"])(te,Z,ee,!1,null,"12bf6474",null),oe=ne.exports,se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"img-layer"},[n("i",{staticClass:"iconfont iconclose",on:{click:function(t){return e.$emit("quit")}}}),n("div",{staticClass:"tabs-layer"},[e.current?n("div",{staticClass:"tabs"},[e._l(e.screens,(function(t,o){return n("a",{key:o,class:{active:t===e.current},on:{click:function(n){return e.changeCurrent(n,t)}}},[e._v(e._s(t.title)+"("+e._s(t.imgs.length)+")")])})),n("span",{style:{left:e.left,width:12*(e.current.title+e.current.imgs.length).length+"px"}})],2):e._e()]),e.current?n("div",{staticClass:"banner-layer",on:{touchstart:function(e){e.stopPropagation()}}},[e.showBanner?n("Banner",{staticClass:"banner",attrs:{screens:e.current.imgs,index:e.index},on:{changeIndex:e.changeIndex},scopedSlots:e._u([{key:"item",fn:function(t){var o=t.data;return n("div",{staticClass:"item"},[n("img",{attrs:{src:~e.origins.indexOf(o)?o.origin:o.abridge,alt:""}})])}}],null,!1,619343202)}):e._e(),n("a",{directives:[{name:"show",rawName:"v-show",value:!~e.origins.indexOf(e.current.imgs[e.index]),expression:"!~origins.indexOf(current.imgs[index])"}],staticClass:"query-origin",on:{click:function(t){return e.clickLoadding()}}},[~e.loads.indexOf(e.current.imgs[e.index])?[n("i",{staticClass:"iconfont icon_loading_"}),e._v("加载中\n ")]:[e._v("查看原图")]],2)],1):e._e()])},ae=[],ie=[],re={location:"区位",presale:"预售许可证",land:"国土证",land_use:"用地规划",engineering:"工程规划",start:"建设工程开工证",sand_table:"沙盘",reality:"实景图",matching:"小区配套",project:"项目现场"},ce={props:["info","estate"],data:function(){return{left:0,index:0,showBanner:!0,current:null,screens:[],origins:ie,loads:[]}},watch:{current:function(){var e=this;this.showBanner=!1,this.index=0,this.$nextTick((function(){return e.showBanner=!0}))},estate:function(){this.info.estateImages&&this.extract()}},methods:{clickLoadding:function(){this.loading(),Object(x["a"])({name:"imageQueryLoad"})},loading:function(){var e=this,t=this.current.imgs[this.index];if(!~this.loads.indexOf(t)){var n=new Image;n.onload=function(){e.origins.push(t),e.loads.splice(e.loads.indexOf(t),1)},n.onerror=function(e){console.log("-0-",e)},n.src=t.origin,this.loads.push(t)}},changeIndex:function(e){this.index=e,Object(x["a"])({name:"changeImageQueryIndex",data:e})},changeCurrent:function(e,t){this.left=e.target.offsetLeft+"px",this.current=t,Object(x["a"])({name:"changeImgQueryCurrent",data:t})},extract:function(){var e=JSON.parse(this.info.estateImages),t=[];Object.keys(e).forEach((function(n){e[n].length>0&&t.push({title:re[n],imgs:e[n].map((function(e){return{abridge:e+"?x-oss-process=image/resize,w_320",origin:e}}))})})),this.current=t[0],this.screens=t}},mounted:function(){var e=this,t=this;function n(e,n,o){o&&o!=t.role&&("changeImgQueryCurrent"==e&&(t.current=t.screens.find((function(e){return e.title===n.title}))),"changeImageQueryIndex"==e&&(t.index=n),"imageQueryLoad"==e&&t.loading())}this.$bus.on("vrhouse/socket/action",n),this.$once("hook:beforeDestroy",(function(){e.$bus.off("vrhouse/socket/action",n)})),this.info.estateImages&&this.extract()},components:{Banner:L}},le=ce,ue=(n("5cac"),Object(h["a"])(le,se,ae,!1,null,"489e4f40",null)),de=ue.exports,he=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"layer",staticClass:"map-layer",class:{abridge:e.abridge},on:{click:e.clickHandle}},[e.abridge?[n("img",{attrs:{src:e.img}}),e._m(0)]:n("div",{ref:"map",staticClass:"container"})],2)},fe=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[e._v("\n 查看小区及周边\n "),n("i",{staticClass:"iconfont iconmaps_enlarge"})])}],pe="e661b00bdf2c44cccf71ef6070ef41b8",ve="3bddec1685d461c2271a6099cde02fd2";function me(){return new Promise((function(e,t){if(window.AMap)e(window.AMap);else{var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src="https://webapi.amap.com/maps?v=1.4.15&key=".concat(pe,"&plugin=AMap.Geocoder&callback=initAMap"),n.onerror=t,document.head.appendChild(n)}window.initAMap=function(){e(window.AMap)}}))}var ge="http://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",_e={props:["abridge","lat","lng"],data:function(){return{width:0,height:0,zoom:13}},methods:{initAMap:function(){var e=Object(g["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,me();case 2:t=e.sent,this.map=new t.Map(this.$refs.map,{resizeEnable:!0,zoom:this.zoom,center:[this.lng,this.lat]}),new t.Marker({position:new t.LngLat(this.lng,this.lat),map:this.map,icon:ge,clickable:!1});case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),clickHandle:function(){this.$emit("cb")}},computed:{img:function(){return 0===this.width||0===this.height?"":"https://restapi.amap.com/v3/staticmap?location=".concat(this.lng,",").concat(this.lat,"&zoom=").concat(this.zoom,"&size=").concat(this.width,"*").concat(this.height,"&key=").concat(ve,"&markers=-1,").concat(ge,",:").concat(this.lng,",").concat(this.lat)}},mounted:function(){this.abridge?(this.width=this.$refs.layer.offsetWidth,this.height=this.$refs.layer.offsetHeight):this.initAMap()}},we=_e,ye=(n("936f"),Object(h["a"])(we,he,fe,!1,null,"6083c610",null)),be=ye.exports,Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"video-layer"},[n("h2",[e._v("视频讲盘")]),n("div",{on:{click:e.clickHandle}},[n("video",{ref:"video",attrs:{src:e.info.estateIntroduceVideo,poster:e.info.estateVideoCoverImage,"x5-video-player-type":"h5-page",controlslist:"nodownload",disablepictureinpicture:"","webkit-playsinline":"","x-webkit-airplay":"",playsinline:""}}),e.paused?n("span",{staticClass:"pause"},[n("i",{staticClass:"iconfont iconrinfo_play"})]):n("span",{staticClass:"play"},[n("i",{staticClass:"iconfont iconCombinedShape"})])]),n("p",[e._v(e._s(e.info.estateIntroduceVideoDesc))])])},Pe=[],xe={props:["info","estate"],data:function(){return{paused:!0}},methods:{clickHandle:function(){this.paused?(this.$refs.video.play(),Object(x["a"])({name:"headerVideoPlay"})):(this.$refs.video.pause(),Object(x["a"])({name:"headerVideoPause"}))}},mounted:function(){var e=this;this.onPlay=function(){return e.paused=!1},this.onPause=function(){return e.paused=!0},this.$refs.video.addEventListener("play",this.onPlay,!1),this.$refs.video.addEventListener("pause",this.onPause,!1),this.$bus.on("vrhouse/socket/action",(function(t,n,o){o&&o!=e.role&&("headerVideoPlay"==t&&e.$refs.video.play(),"headerVideoPause"==t&&e.$refs.video.pause())}))},beforeDestroy:function(){this.$refs.video.pause(),this.$refs.video.removeEventListener("play",this.onPlay,!1),this.$refs.video.removeEventListener("pause",this.onPause,!1)}},Oe=xe,ke=(n("6e05"),Object(h["a"])(Oe,Ce,Pe,!1,null,"2f6f6de4",null)),$e=ke.exports,Se=n("617a"),Ee={data:function(){return{role:Se["a"].urlQueryValue("role"),userId:Se["a"].urlQueryValue("user_id"),index:0,show:!1,imgsShow:!1,mapShow:!1,minmapShow:!0,isVR:!1,share:!1,serve:{info:{$authority:{}},estate:{}}}},watch:{show:function(){this.show&&this.$bus.emit("vrhouse/main/hide")}},computed:{banner:function(){var e=[{component:"Album",cb:this.showImgQuery.bind(this),data:{info:this.serve.info,estate:this.serve.estate}},{component:"Gaode",cb:this.showMap.bind(this),data:{abridge:!0,lat:this.serve.info.estateLongitude,lng:this.serve.info.estateLatitude}}];return this.serve.info.$authority.showHouseInfo&&e.unshift({component:"Info",data:{info:this.serve.info,estate:this.serve.estate}}),this.serve.info.estateIntroduceVideo&&e.unshift({component:"Video",data:{info:this.serve.info,estate:this.serve.estate}}),e}},methods:{showShare:function(){this.share=!0,Object(x["a"])({name:"headerShowShare"})},hideShare:function(){this.share=!1,Object(x["a"])({name:"headerHideShare"})},quitImgs:function(){this.imgsShow=!1,Object(x["a"])({name:"headerQuitImgs"})},quitMap:function(){this.mapShow=!1,Object(x["a"])({name:"headerQuitMap"})},changeShow:function(){this.show=!this.show,Object(x["a"])({name:"header",data:{show:this.show,index:this.index}})},onBack:function(){this.isVR=!1,this.$bus.emit("vrhouse/back")},showImgQuery:function(e){this.imgsShow=!0,this.show=!1,Object(x["a"])({name:"showImgQuery"})},showMap:function(e){this.mapShow=!0,this.show=!1,Object(x["a"])({name:"showGaodeMap"})},loadData:function(){var e=Object(g["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$parent.getHouseInfo();case 2:this.serve.info=e.sent,this.serve.info&&this.serve.info.houseTitle&&(document.title="看房·".concat(this.serve.info.houseTitle),this.$bus.emit("flag/title",this.serve.info.houseTitle));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),changeBanner:function(e){this.index=e,Object(x["a"])({name:"headerBanner",data:e})}},mounted:function(){var e=this;this.$bus.on("vrhouse/socket/action",(function(t,n,o){o&&o!=e.role&&("header"==t&&(e.show=n.show),"headerBanner"==t&&(e.index=n),"headerQuitImgs"==t&&(e.imgsShow=!1),"headerQuitMap"==t&&(e.mapShow=!1),"showImgQuery"==t&&(e.imgsShow=!0,e.show=!1),"showGaodeMap"==t&&(e.mapShow=!0,e.show=!1),"headerShowShare"==t&&(e.share=!0),"headerHideShare"==t&&(e.share=!1))})),this.$bus.on("hideBanner",(function(){return e.show=!1})),this.$bus.on("hideImages",(function(){return e.imgsShow=!1})),this.$bus.on("vrhouse/enterVR",(function(){return e.isVR=!0})),this.$bus.on("vrhouse/minmap",(function(t){e.minmapShow=t})),this.$bus.on("vrhouse/header/hide",(function(){e.show=!1,e.imgsShow=!1,Object(x["a"])({name:"header",data:{show:!1}})})),this.loadData()},components:{Map:A,Banner:L,Info:z,Album:Y,ImgQuery:de,Dialog:oe,Gaode:be,Video:$e}},Ie=Ee,Ae=(n("1407"),n("0731"),Object(h["a"])(Ie,v,m,!1,null,"5df10c56",null)),Te=Ae.exports,je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{mode:"out-in"}},[n(e.page,{tag:"component"})],1)},Ve=[],De=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[n("div",[n("div",{staticStyle:{"text-align":"center"}},[n("img",{attrs:{src:e.$config.getStaticResource("img/apps/vrhouse/vr.svg"),alt:""}})]),e._m(0)])])},Re=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"tips"},[n("li",[e._v("进入:将手机横屏放入VR眼镜中")]),n("li",[e._v("前进:视角中心对准蓝点,直至变绿")]),n("li",[e._v("退出:将手机竖屏再触碰屏幕")])])}],Ue=(n("61a1"),{}),He=Object(h["a"])(Ue,De,Re,!1,null,"2d35aab9",null),Le=He.exports,Ne=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"container"},[e.metadata&&e.metadata.vrNum?n("a",{staticClass:"nav-decor",attrs:{href:"/decor.html?m="+e.$config.projectNum+"&m2="+e.metadata.vrNum}},[n("img",{attrs:{src:e.$config.getStaticResource("img/apps/vrhouse/decor.png"),alt:""}})]):e._e(),n("div",{staticClass:"panel",style:{top:null==e.panelNewTop?null:e.panelNewTop+"px"},on:{mousemove:function(e){e.preventDefault()},touchmove:function(e){e.preventDefault()}}},[n("div",{staticClass:"area contact"},[n("div",{staticClass:"agent color"},[n("div",{staticClass:"info"},[n("div",{staticClass:"avatar",style:e.agent.agencyAvatar&&{"background-image":"url("+e.agent.agencyAvatar+")"},on:{click:function(t){return e.onShowAgetnInfo(!0)}}},[n("div",{style:e.agent.agencyTagImage&&{"background-image":"url("+e.agent.agencyTagImage+")"}})]),n("div",{staticClass:"name"},[e._v(e._s(e.agent.agencyName))])]),n("div",{staticClass:"btns"},[n("div",{staticClass:"phone"},[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return t.stopPropagation(),e.onCallAgent(t)}}},[n("i",{staticClass:"iconfont iconscene_call"}),n("span",[e._v("电话")])])]),n("div",{staticClass:"tools"},[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){t.stopPropagation(),e.showTools=!e.showTools}}},[n("i",{staticClass:"iconfont",class:[e.showTools?"iconscene_tool_active":"iconscene_tool"]}),n("span",[e._v("工具")])]),n("transition",{attrs:{appear:"",name:"custom-classes-transition","enter-active-class":"animated fadeIn faster","leave-active-class":"animated fadeOut faster"}},[e.showTools?n("ul",[n("li",[n("i",{staticClass:"iconfont",class:[e.tools.rule?"iconscene_rule_normal":"iconscene_rule_close"],on:{click:function(t){return e.onToolsClick("rule")}}}),n("div",[e._v(e._s(e.tools.rule?"关闭标尺":"开启标尺"))])]),n("li",[n("i",{staticClass:"iconfont",class:[e.tools.tags?"iconscene_tags_normal":"iconscene_tags_close"],on:{click:function(t){return e.onToolsClick("tags")}}}),n("div",[e._v(e._s(e.tools.tags?"关闭热点":"开启热点"))])]),n("li",[n("i",{staticClass:"iconfont iconscene_vrmode",on:{click:function(t){return e.onToolsClick("vr")}}}),n("div",[e._v("VR模式")])])]):e._e()])],1),e.plays.length?n("div",{staticClass:"guide"},[n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return t.stopPropagation(),e.onAudioPlay(!1)}}},[n("i",{staticClass:"iconfont iconscene_lecture"}),n("span",[e._v(e._s(e.$parent.guideState))])])]):e._e()])]),n("div",{staticClass:"vr color",on:{click:function(t){return t.stopPropagation(),e.onVRHouse(t)}}},[n("i",{staticClass:"iconfont iconscene_vrlecture"}),n("span",[e._v("云带看")]),n("div",{staticClass:"animate bg1"}),n("div",{staticClass:"animate bg2"})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.recommendList.length,expression:"recommendList.length"}],staticClass:"area color house-list"},[n("div",[n("h4",[e._v("全部户型")]),n("div",{staticClass:"swiper-container"},[n("div",{staticClass:"swiper-wrapper"},e._l(e.recommendList,(function(t,o){return n("div",{key:o,staticClass:"swiper-slide",on:{"&click":function(n){return e.onShowHouseInfo(t)}}},[n("img",{attrs:{src:t.houseTypeImages,alt:""}}),n("div",{staticClass:"house-info"},[n("span",[e._v("约"+e._s(e._f("float")(t.houseReferencePrice/1e4))+"万")]),n("div",[e._v(e._s(t.houseType)+"/"+e._s(t.houseOrientation))])])])})),0)])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.agent.$authority.showKankanFoot,expression:"agent.$authority.showKankanFoot"}],staticClass:"area color introduce"},[n("div",[n("header",{style:{"background-image":"url("+e.$config.getStaticResource("img/apps/vrhouse/logo.png")+")"}},[n("a",{attrs:{href:"https://www.4dkankan.com"}},[e._v("去官网了解更多>")])]),n("main",[e._v("四维看看是世界上首款消费级3D相机,技术核心三要素:易操作、自动化、高精度。主要应用...")]),e._m(0)])])]),n("x-window",{attrs:{show:e.showEnvTips,"show-close":!0},on:{close:function(t){e.showEnvTips=!1}}},[n("div",{staticClass:"env-tips"},[n("img",{attrs:{src:""+(e.agent.developerLogo||e.$config.getStaticResource("img/apps/vrhouse/logo.png")),alt:""}}),n("h4",[e._v(e._s(e.agent.developerTitle||"云带看-同屏讲房 实时沟通"))]),e.agent.developerDesc?n("div",{staticClass:"left",domProps:{innerHTML:e._s(e.agent.developerDesc)}}):n("div",{staticClass:"left"},[n("p",[e._v("微信识别下方二维码")]),n("p",[e._v("进入【看房4DKanKan】小程序")]),n("p",[e._v("享更多增值服务")])]),e.agent.developerQrCode||e.agent.wxAqrCode?n("img",{staticClass:"qrcode",attrs:{src:e.agent.developerQrCode||e.agent.wxAqrCode,alt:""}}):n("div",{staticClass:"nocode"},[e.agent.developerQrCodeDesc?n("div",[n("span",{domProps:{innerHTML:e._s(e.agent.developerQrCodeDesc)}})]):n("div",[n("span",[e._v("\n 二维码生成失败\n "),n("br"),e._v("请手动搜索小程序\n "),n("br"),e._v("【看房4DKanKan】\n "),n("br"),e._v("进入\n ")])])]),n("div",{staticClass:"txt"},[e._v(e._s(e.agent.houseTitle)+" "+e._s(e.agent.houseType))])])]),e.house?n("house-info",{attrs:{house:e.house},on:{close:function(t){return e.onShowHouseInfo()}}}):e._e(),e.showAgentInfo?n("agent-info",{attrs:{agent:e.agent},on:{close:e.onShowAgetnInfo}}):e._e(),e.showAgentCard?n("agent-card",{attrs:{agent:e.agent},on:{close:function(t){return e.onShowAgentCard(!1)}}}):e._e(),e.tools.feedback?n("feedback",{on:{close:function(t){e.tools.feedback=!1}}}):e._e(),e.showDeclaration?n("declaration",{on:{close:function(t){e.showDeclaration=!1}}}):e._e()],1)},Me=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",[n("div",[n("i",{staticClass:"iconfont icon_logo"}),e._v("四维看看提供技术支持\n ")])])}],qe=(n("cd18"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("x-window",{attrs:{show:!0},on:{close:function(t){return e.$emit("close")}}},[n("div",{staticClass:"agent-info"},[n("div",{staticClass:"avatar"},[n("div",{staticClass:"mask"}),n("div",{staticClass:"head"},[n("img",{attrs:{src:e.agent.agencyAvatar,alt:""}}),n("div",{staticClass:"frame",style:e.agent.agencyTagImage&&{"background-image":"url("+e.agent.agencyTagImage+")"}})])]),n("div",{staticClass:"content"},[n("div",{staticClass:"card"},[n("div",{staticClass:"info"},[n("span",[e._v(e._s(e.agent.agencyName))]),n("label",[e._v(e._s(e.agent.agencyTag||"经纪人"))]),e.agent.$authority.showWorkPic?n("i",{staticClass:"iconfont iconinfo_agent",on:{click:function(t){return e.$emit("close",!1,"card")}}}):e._e()]),e.agent.$authority.showAgencyBrand&&e.agent.agencyCompanyName?n("div",{staticClass:"brand"},[e._v("品牌:"+e._s(e.agent.agencyCompanyName||"无"))]):e._e(),e.agent.$authority.showAgencyStore&&e.agent.agencyStore?n("div",{staticClass:"site"},[e._v("门店:"+e._s(e.agent.agencyStore||"无"))]):e._e()]),1!=e.agent.$authority.showYun?n("div",{staticClass:"record"},[n("div",[n("span",[e._v(e._s(e.agent.agencyHalfYearVolume||0))]),n("label",[e._v("近半年成交(套)")])]),n("div",[n("span",[e._v(e._s(e.agent.agencyDealAverage||0))]),n("label",[e._v("平均成交周期(天)")])]),n("div",[n("span",[e._v(e._s(e.agent.agencyRecentRecommend))]),n("label",[e._v("近30天带看(套)")])])]):e._e(),n("button",{staticClass:"btn-contact",on:{click:e.onCallAgent}},[n("i",{staticClass:"iconfont iconscene_call"}),e._v("电话咨询\n ")])])])])}),Qe=[],Be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("popup",{attrs:{show:e.show,"is-close":e.showClose},on:{close:function(t){return e.$emit("close")}}},[n("div",{staticClass:"share-x-window",style:{height:e.height},on:{touchstart:function(e){e.stopPropagation()}}},[e.showClose?n("div",{staticClass:"header"},[n("span",{staticClass:"close",on:{click:function(t){return t.stopPropagation(),e.$emit("close")},touchstart:function(t){return t.stopPropagation(),e.$emit("close")}}})]):e._e(),n("div",{staticClass:"main"},[e._t("default")],2),n("div",{staticClass:"footer"},[e._t("footer")],2)])])},ze=[],We=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{appear:"",name:"custom-classes-transition","enter-active-class":"animated fadeIn faster","leave-active-class":"animated fadeOut faster"}},[e.show?n("div",{staticClass:"x-popup-layer",style:{"z-index":e.zIndex,"background-color":e.bgColor},on:{touchmove:function(e){e.preventDefault()},touchstart:e.onClick}},[e._t("default")],2):e._e()])},Fe=[],Ge=999;function Ke(){return++Ge}var Je={name:"x-popup-layer",props:{show:Boolean,isClose:Boolean,bgColor:String},data:function(){return{zIndex:Ke()}},methods:{onClick:function(){this.isClose&&this.$emit("close")}}},Xe=Je,Ye=(n("5a5e"),Object(h["a"])(Xe,We,Fe,!1,null,"5e419f34",null)),Ze=Ye.exports,et={components:{Popup:Ze},props:{show:Boolean,height:String,showClose:{type:Boolean,default:function(){return!0}}}},tt=et,nt=(n("bcc8"),Object(h["a"])(tt,Be,ze,!1,null,"7004094f",null)),ot=nt.exports,st={props:{agent:{type:Object,default:function(){return{}}}},components:{XWindow:ot},methods:{onCallAgent:function(e){window.location.href="tel:".concat(this.agent.agnencyPhone)}}},at=st,it=(n("d307"),Object(h["a"])(at,qe,Qe,!1,null,"e04791d4",null)),rt=it.exports,ct=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("x-window",{attrs:{show:!0},on:{close:function(t){return e.$emit("close")}}},[n("div",{staticClass:"agent-card"},[n("h4",[e._v("从业人员工作牌")]),n("div",{staticClass:"preview"},[n("img",{attrs:{src:e.agent.agencyPassImage?e.agent.agencyPassImage:"static/img/apps/vrhouse/card.png"}})])])])},lt=[],ut={components:{XWindow:ot},props:{agent:{type:Object,default:function(){return{}}}}},dt=ut,ht=(n("e795"),Object(h["a"])(dt,ct,lt,!1,null,"76df1d00",null)),ft=ht.exports,pt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("x-window",{attrs:{show:!0},on:{close:function(t){return e.$emit("close")}}},[n("div",{staticClass:"house-info"},[n("div",{staticClass:"preview"},[n("img",{attrs:{src:e.house.houseTypeImages,alt:""}})]),n("div",{staticClass:"info"},[n("div",{staticClass:"description"},[n("div",{staticClass:"price"},[n("div",[n("i",[e._v("约"+e._s(e._f("float")(e.house.houseReferencePrice/1e4))+"万")]),n("label",[e._v(e._s(e.sale))])]),n("div",{staticClass:"area"},[e._v(e._s(e.house.houseType)+"/"+e._s(e.house.houseOrientation)+"/建面"+e._s(e.house.houseArea)+"㎡")])]),n("a",{attrs:{href:"javascript:;"},on:{click:e.goto}},[e._v("云带看")])])])])])},vt=[],mt=(n("b54a"),n("6b54"),n("a481"),{props:{house:Object},data:function(){return{link:window.location.href.toString().replace(/(m=)([^&]*)/gi,"m="+this.house.sceneNum)}},computed:{sale:function(){var e="在售";return-1==this.house.houseSaleState?e="初始":2==this.house.houseSaleState&&(e="已出售"),e}},components:{XWindow:ot},methods:{goto:function(){window.location.replace(this.link)}}}),gt=mt,_t=(n("d28c"),Object(h["a"])(gt,pt,vt,!1,null,"6b9a6467",null)),wt=_t.exports,yt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("x-window",{attrs:{show:!0,height:"70%"},on:{close:function(t){return e.$emit("close")}}},[n("div",{staticClass:"declaration"},[n("h1",[e._v("权益声明")]),n("div",{staticClass:"content",on:{touchmove:function(e){e.stopPropagation()}}},[n("ul",[n("li",[n("h4",[e._v("一、权利归属")]),n("div",[n("span",[e._v("1.")]),n("div",[e._v("“四维看看”平台(以下简称“本平台”)由珠海市四维时代科技网络有限公司(以下简称 “我司”)设立和运营,一切权利归我司享有。本平台包含网页端、H5端(手机端)、微信小程序、手机应用程序等多种应用方式。本平台仅提供“云看房”中的影像服务,影像中的语音服务模块由与本平台合作的专业经纪人或顾问团队提供。")])]),n("div",[n("span",[e._v("2.")]),n("div",[e._v("我司持有与“四维看看”平台有关的一切权益(包括但不限于知识产权)。“四维看看”标志的字样及图形归我司合法所有,未经许可任何人不得擅自使用。凡侵犯我司权益的,我司将依法追究其相关法律责任。")])]),n("div",[n("span",[e._v("3.")]),n("div",[e._v("本平台上所生成、制作、推出、刊登的所有产品、技术、软件、程序、数据、汇编及相关内容信息(包括但不限于文字、图片、音视频、网页版面、图表、数据、编码、标识、影像、声音文件片段)的所有权利(包括知识产权、商业秘密及其他相关权利)均归本平台及/或关联公司所有。未经本平台及/或关联公司许可,任何人擅自使用上述内容,均可能会侵犯本平台及/或关联公司的权利,我们将会追究侵权者的法律责任。")])]),n("div",[n("span",[e._v("4.")]),n("div",[e._v("本平台/关联公司对本平台上的商标性文字及/或图形标识、服务运营商字号名称等享有专有使用权,受法律法规的保护。任何人或单位未经本平台或关联公司的书面授权不得擅自使用,否则,我司有权追究侵权方的法律责任,并要求承担我司所遭受的经济损失,按照侵权方的侵权所得的两倍计算。")])]),n("div",[n("span",[e._v("5.")]),n("div",[e._v("任何被授权使用本平台信息内容的行为(包括但不限于浏览、复制、打印和传播),使用方都不能将其用于商业目的,如果有另行转载或其他非商业用途的,使用方应当声明其所使用的信息内容及其任何部分的使用的信息来源及权益声明。")])])]),n("li",[n("h4",[e._v("二、内容限制")]),n("div",[n("span",[e._v("1.")]),n("div",[e._v("除法律另有强制性规定外,未经四维时代明确的特别书面许可,任何单位或个人不得以任何方式非法地全部或部分复制、传播、展示、镜像、上载、下载、转载、引用、链接、抓取或以其他方式使用本平台的信息内容及相关资料,否则,本平台有权追究其法律责任。")])]),n("div",[n("span",[e._v("2.")]),n("div",[e._v("任何人在未经本平台同意的情况下,不得以任何手段获取本平台账号体系或数据库内的任何资料、信息,特别是涉及到商业秘密、个人信息在内的敏感类信息。")])]),n("div",[n("span",[e._v("3.")]),n("div",[e._v("本平台以下内容未经许可不得任意转载:")])]),n("div",[n("span",[e._v("1)")]),n("div",[e._v("本平台内发布的所有信息;")])]),n("div",[n("span",[e._v("2)")]),n("div",[e._v("已作出不得转载或未经许可不得转载的声明内容;")])]),n("div",[n("span",[e._v("3)")]),n("div",[e._v("本平台中特有的图形、标志、页面风格、图像、影音资料、编排方式、程序等;")])]),n("div",[n("span",[e._v("4)")]),n("div",[e._v("本平台中必须具有特别授权或具有注册用户资格方可知晓的内容;")])]),n("div",[n("span",[e._v("5)")]),n("div",[e._v("其他法律不允许或本平台认为不适合转载的内容。")])]),n("div",[n("span",[e._v("4.")]),n("div",[e._v("任何人不得在本平台制作、复制、发布法律、行政法规禁止的违法信息")])])]),n("li",[n("h4",[e._v("三、责任说明")]),n("div",[n("span",[e._v("1.")]),n("div",[e._v("本平台中设计案例的商品价格为品牌商提供的官方指导价格,仅供参考,不具有任何要约性质。商品的具体价格因市场等影响存在波动,实际价格以经销商或门店信息为准;")])]),n("div",[n("span",[e._v("2.")]),n("div",[e._v("鉴于本平台提供的“云看房”服务,使用VR技术拍摄的房源图片及户型图,用户在平台上看到的房屋在尺寸、面积上与实际房源存在一定偏差,仅供参考,不得作为用户买卖房屋的依据,请用户以房屋产权证明标示数据为准;")])]),n("div",[n("span",[e._v("3.")]),n("div",[e._v("“云看房”全景模式下呈现的角度由拍摄设备所处的高度决定(约1.5米~1.7米),用户请以线下实际视线感受为准;")])]),n("div",[n("span",[e._v("4.")]),n("div",[e._v("“云看房”涉及的房源内外部装饰装修、设施设备均为房源业主或开发商提供,仅供参考,房屋的具体情况请以用户现场查看房源的情况为准;为适度美观,我们可能会在房源实景中增添少许的可分辨的视觉效果,但是不会影响您使用我们的服务;请用户根据房屋的实际情况进行考量和决策。")])]),n("div",[n("span",[e._v("5.")]),n("div",[e._v("本平台不为任何合作平台的经纪人提供任何担保,经纪人的言论由其自身负责,其观点和陈述不代表本公司观点,与本公司无关;")])]),n("div",[n("span",[e._v("6.")]),n("div",[e._v("本平台为用户提供信息发布、存储等技术服务,除非本平台单独提示或声明,本平台上的房源图片、内容信息等均由用户、合作方等主体自行提供并上传,由上传方对其信息承担相应法律责任。本平台转载和刊载的内容系出于传递更多信息之目的,并不意味我们赞同其观点或已经证实其内容的真实性。")])]),n("div",[n("span",[e._v("7.")]),n("div",[e._v("本网站地图功能展示的信息和数据均来自百度地图,仅供参考。")])]),n("div",[n("span",[e._v("8.")]),n("div",[e._v("任何通过使用本平台而链接、跳转到的第三方网页、程序均系他人制作或提供,您可能从该第三方网页上获得资讯及享用服务,除法律法规另有规定的,本平台对其合法性、真实性、完整性概不负责,亦不承担法律责任。")])]),n("div",[n("span",[e._v("9.")]),n("div",[e._v("任何不当使用本平台内容而引起纠纷等或因纠纷造成损失的,本平台及我司不承担任何法律责任。任何人不遵守本声明恶意使用或以其他方式使用本平台信息的,本平台及我司保留追究其法律责任的权利。")])])]),n("li",[n("h4",[e._v("四、其他")]),n("div",[n("span",[e._v("1.")]),n("div",[e._v("凡以任何方式登陆本平台或直接、间接使用本平台资料者,视为自愿接受本平台声明的约束。")])]),n("div",[n("span",[e._v("2.")]),n("div",[e._v("为确保服务质量,用户在使用经纪人”VR带看” 过程中可能会被录音,该录音不得用于商业用途;")])]),n("div",[n("span",[e._v("3.")]),n("div",[e._v("其他知识产权权利人若认为本平台上的内容(包括但不限于我们的用户发布的各类信息)侵犯其合法权益的,可以向本平台进行投诉,我们将在收到知识产权权利人合格通知后依据相应的法律法规以及平台规则及时处理。")])]),n("div",[n("span",[e._v("4.")]),n("div",[e._v("\n 本声明未尽之处,请以\n "),n("a",{attrs:{href:"https://www.4dkankan.com/mobile.html#/useimg/2/0/agreement"}},[e._v("《四维看看用户协议》")]),e._v("及\n "),n("a",{attrs:{href:"https://www.4dkankan.com/mobile.html#/useimg/1/0/agreement"}},[e._v("《四维看看销售协议》")]),e._v("的内容为准。\n ")])]),n("div",[n("span",[e._v("5.")]),n("div",[e._v("本平台对本声明享有最终解释权。")])])])])])])])},bt=[],Ct={components:{XWindow:ot},mounted:function(){this.boxHeight=this.$el.querySelector(".content").clientHeight},methods:{}},Pt=Ct,xt=(n("4852"),Object(h["a"])(Pt,yt,bt,!1,null,"055fbb3a",null)),Ot=xt.exports,kt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"feedback"},[n("i",{staticClass:"iconfont iconback",on:{click:function(t){return e.$emit("close")}}}),n("div",{staticClass:"content"},[n("div",{staticClass:"types"},[n("h4",[e._v("错误类型")]),n("ul",e._l(e.types,(function(t,o){return n("li",{key:o,on:{click:function(n){return e.onTypeSelected(o,t)}}},[n("div",{class:{active:e.typeIndex==o}},[e._v(e._s(t))])])})),0)]),n("div",{staticClass:"describe"},[n("h4",[e._v("错误描述(选填)")]),n("textarea",{directives:[{name:"model",rawName:"v-model.trim",value:e.form.error_desc,expression:"form.error_desc",modifiers:{trim:!0}}],attrs:{maxlength:"500",placeholder:"请输入问题描述..."},domProps:{value:e.form.error_desc},on:{input:function(t){t.target.composing||e.$set(e.form,"error_desc",t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}})]),n("div",{staticClass:"contact"},[n("h4",[e._v("联系方式(选填)")]),n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.form.contract,expression:"form.contract",modifiers:{trim:!0}}],attrs:{maxlength:"11",placeholder:"请输入您的电话号码"},domProps:{value:e.form.contract},on:{input:function(t){t.target.composing||e.$set(e.form,"contract",t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}})])]),n("div",{staticClass:"footer"},[n("button",{class:{disable:null==e.typeIndex},on:{click:e.onSubmit}},[e._v("提交")])]),n("x-window",{attrs:{show:null!=e.code},on:{close:function(t){e.code=null}}},[n("div",{staticClass:"code"},[n("div",{staticStyle:{color:"#999"}},[e._v("安全验证")]),n("div",{staticClass:"image"},[n("img",{attrs:{src:"app/random/code?num="+this.code,alt:""}}),n("a",{attrs:{href:"javascript:;"},on:{click:e.onGetCode}},[e._v("看不清楚?点击刷新")])]),n("div",{staticClass:"input"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.codeValue,expression:"codeValue",modifiers:{trim:!0}}],attrs:{type:"text",placeholder:"请输入验证码",maxlength:"4"},domProps:{value:e.codeValue},on:{input:function(t){t.target.composing||(e.codeValue=t.target.value.trim())},blur:function(t){return e.$forceUpdate()}}}),n("button",{on:{click:e.onValid}},[e._v("确定")])])])])],1)},$t=[],St=(n("28a5"),n("55dd"),{components:{XWindow:ot},data:function(){return{types:["3D模型","房屋照片","户型图","文字标签","三维标尺","VR讲房","经纪人","房源信息","其他"],typeIndex:null,code:null,codeValue:"",form:{error_type:"",error_desc:"",contract:"",status:1}}},methods:{onTypeSelected:function(e,t){this.typeIndex=e,this.form.error_type=t},onSubmit:function(){this.onGetCode()},onGetCode:function(){this.code="0123456789".split("").sort((function(){return Math.random()>.5?-1:1})).slice(0,4).join("")},onValid:function(){var e=this;return this.codeValue?this.codeValue!=this.code?this.$tips({content:"验证码不正确"}):void Object(a["e"])(this.form).done((function(t){0==t.code?(e.$emit("close"),e.$tips({content:"提交成功"})):e.$tips({content:t.msg||"提交失败"})})):this.$tips({content:"请输入验证码"})}}}),Et=St,It=(n("b7fa"),Object(h["a"])(Et,kt,$t,!1,null,"6f7597b6",null)),At=It.exports,Tt=n("b235");function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){Object(y["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Dt={components:{AgentInfo:rt,AgentCard:ft,HouseInfo:wt,Feedback:At,XWindow:ot,Declaration:Ot},data:function(){return{show:!0,panelOrgTop:0,panelNewTop:null,panelOpacity:.3,showAgentInfo:!1,showAgentCard:!1,showDeclaration:!1,showEnvTips:!1,showTools:!1,tools:{vr:!1,tags:!0,rule:this.rule,feedback:!1},agent:{$authority:{}},house:null,recommendList:[]}},computed:Vt(Vt({},Object(C["b"])({plays:"guide/plays",metadata:"scene/metadata",showNavigations:"showNavigations"})),{},{rule:function(){return this.showNavigations.rule}}),created:function(){var e=this;this.$parent.getAgent().then((function(t){e.agent=t})),this.$parent.getHouseRecommend().then((function(t){e.recommendList=t||[],e.$nextTick((function(){new Swiper(".swiper-container",{freeMode:!0,slidesPerView:3,spaceBetween:10,on:{touchMove:function(e){e.stopPropagation(),e.preventDefault()}}})}))}));var t=this;function n(){t.show=!0,t.$store.commit("SetVR",!1),t.$nextTick((function(){t.showTools=!1,t.panelNewTop=null,t.resetPanel(),t.$nextTick((function(){t.panelOrgTop=t.$el.querySelector(".panel").offsetTop})),t.tools.tags?P["objects"].tagManager.showAllTags():P["objects"].tagManager.hideAllTags()}))}function o(){t.resetPanel(),t.house=null,t.showTools=!1,t.showAgentInfo=!1,t.showAgentCard=!1,t.showDeclaration=!1}function s(){t.onAudioPlay(!0)}this.$bus.on("vrhouse/back",n),this.$bus.on("vrhouse/main/hide",o),this.$bus.on("flag/closed",s),this.$once("hook:beforeDestroy",(function(){e.$bus.off("vrhouse/back",n),e.$bus.off("vrhouse/main/hide",o),e.$bus.off("flag/closed",s)})),"sync"==this.$parent.fromPage&&(this.tools.tags=!1,P["objects"].tagManager.hideAllTags())},mounted:function(){var e=this,t=this,n=this.$el.querySelector(".panel"),o=n.querySelectorAll(".color");this.$el;n.addEventListener("touchstart",i,!1),n.addEventListener("mousedown",i,!1),this.panelOrgTop=n.offsetTop;var s={top:this.panelOrgTop},a=null;function i(e){e.stopPropagation(),(t.recommendList.length||t.agent.$authority.showKankanFoot)&&(s.new=(e.touches&&e.touches[0]||e).clientY,s.org=n.offsetTop,s.eHeight=n.clientHeight,s.wHeight=window.innerHeight,n.addEventListener("touchmove",r,!1),n.addEventListener("mousemove",r,!1),n.addEventListener("touchend",c,!1),n.addEventListener("mouseup",c,!1),t.$bus.emit("vrhouse/header/hide"))}function r(e){e.stopPropagation();var n=(e.touches&&e.touches[0]||e).clientY+s.org-s.new,i=(s.wHeight-n)/s.eHeight;i<.3?i=.3:i>.7&&(i=.7),n+s.eHeight<s.wHeight?n=s.wHeight-s.eHeight:n>t.panelOrgTop&&(n=t.panelOrgTop),o.forEach((function(e){e.style.backgroundColor="rgba(0, 0, 0, ".concat(i,")")})),t.panelNewTop=n,t.showTools=!1,null==a&&(a=Date.now())}function c(e){if(n.removeEventListener("touchmove",r,!1),n.removeEventListener("mousemove",r,!1),n.removeEventListener("touchend",c,!1),n.removeEventListener("mouseup",c,!1),s.end=(e.changedTouches&&e.changedTouches[0]||e).clientY,Date.now()-a<200){var i=s.end-s.new,l=0,u=0;if(Math.abs(i)>5){var d=0;i>0?(l=n.offsetTop,u=t.panelOrgTop,d=l-u):(l=n.offsetTop,u=s.wHeight-s.eHeight,d=l-u),Tt["a"].start((function(e){t.panelNewTop=l-d*e;var n=(s.wHeight-t.panelNewTop)/s.eHeight;n<.3?n=.3:n>.7&&(n=.7),o.forEach((function(e){e.style.backgroundColor="rgba(0, 0, 0, ".concat(n,")")}))}),200)}}a=null}this.$bus.on("orientation",(function(){e.showTools=!1,e.panelNewTop=null,e.$nextTick((function(){e.panelOrgTop=e.$el.querySelector(".panel").offsetTop,e.resetPanel()}))}))},methods:{onCallAgent:function(e){window.location.href="tel:".concat(this.agent.agnencyPhone)},onAudioPlay:function(e){e?this.$parent.setPage("Guide"):this.$bus.emit("flag/close")},onToolsClick:function(e){"vr"==e?(this.resetPanel(),this.show=!1,this.$bus.emit("vrhouse/enterVR"),this.$store.commit("SetVR",!0)):"feedback"==e?(this.tools.feedback=!this.tools.feedback,this.tools.feedback&&this.resetPanel()):"rule"==e?(this.tools.rule=!this.tools.rule,this.$bus.emit("rule/Visible",this.tools.rule,"vrhouse")):"tags"==e&&(this.tools.tags=!this.tools.tags,this.tools.tags?P["objects"].tagManager.showAllTags():P["objects"].tagManager.hideAllTags())},onShowAgetnInfo:function(e,t){this.showAgentInfo=e,"card"==t&&(this.showAgentCard=!0),e&&this.resetPanel()},onShowAgentCard:function(e){this.showAgentCard=e},onShowHouseInfo:function(e){e?(this.house=e,this.resetPanel()):this.house=null},onShowDeclaration:function(){this.showDeclaration=!0,this.resetPanel()},onVRHouse:function(){var e=this;if(this.$parent.isReady=this.$parent.$parent.isReady,!Se["a"].urlHasValue("test"))if(Se["a"].detectWeixin())wx.miniProgram.getEnv((function(t){if(!t.miniprogram)return e.showEnvTipsFn()}));else if(!Se["a"].detectApp())return this.showEnvTipsFn();var t=Se["a"].urlQueryValue("role");t?this.$parent.setPage("VRHouse"):Object(x["d"])()},resetPanel:function(){$(this.$el.querySelector(".panel")).find(".color").css("background-color","rgba(0, 0, 0, 0.3)"),this.panelOrgTop>0&&(this.panelNewTop=this.panelOrgTop)},showEnvTipsFn:function(){this.showEnvTips=!0}}},Rt=Dt,Ut=(n("2f5d"),Object(h["a"])(Rt,Ne,Me,!1,null,"1e52d026",null)),Ht=Ut.exports,Lt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[n("div",{staticClass:"panel color"},[n("div",{staticClass:"agent"},[n("div",{staticClass:"avatar",style:e.agent.agencyAvatar&&{"background-image":"url("+e.agent.agencyAvatar+")"},on:{click:function(t){return e.onShowAgetnInfo(!0)}}},[n("div",{style:e.agent.agencyTagImage&&{"background-image":"url("+e.agent.agencyTagImage+")"}})])]),n("div",{staticClass:"swiper-container"},[n("div",{staticClass:"swiper-wrapper"},e._l(e.labels,(function(t,o){return n("div",{key:o,staticClass:"swiper-slide",on:{click:function(t){return e.onPlayFrame(o)}}},[n("span",[e._v(e._s(t.label))]),n("div",{staticClass:"progress"})])})),0)]),n("div",{staticClass:"back",on:{click:function(t){return e.onBack()}}},[n("i",{staticClass:"iconfont iconCombinedShape"})])]),e.showAgentInfo?n("agent-info",{attrs:{agent:e.agent},on:{close:e.onShowAgetnInfo}}):e._e(),e.showAgentCard?n("agent-card",{on:{close:function(t){return e.onShowAgentCard(!1)}}}):e._e()],1)},Nt=[],Mt=(n("c5f6"),n("ff11"));function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){Object(y["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bt,zt,Wt,Ft,Gt=0,Kt={components:{AgentInfo:rt,AgentCard:ft},data:function(){return{agent:{$authority:{}},showAgentInfo:!1,showAgentCard:!1}},computed:Qt({},Object(C["b"])({medias:"guide/medias",status:"guide/status",labels:"guide/roomLabels"})),created:function(){var e=this;this.$parent.getAgent().then((function(t){e.agent=t})),zt||(this.$bus.on("vrhouse/guide/pause",(function(){e.onBack()})),zt=!0)},mounted:function(){var e=this;this.$nextTick((function(){Bt=new Swiper(e.$el.querySelector(".swiper-container"),{slidesPerView:2.5,effect:"coverflow",grabCursor:!0,centeredSlides:!0,coverflowEffect:{rotate:70,stretch:0,depth:100,modifier:1,slideShadows:!0},on:{}}),e.init()})),this.$bus.emit("vrhouse/minmap",!1)},destroyed:function(){this.$bus.emit("vrhouse/minmap",!0),this.timer&&Tt["a"].cancel(this.timer),l["play"].pause(),Bt.destroy(!0,!1),Bt=null},methods:{init:function(){var e="soundsync"===this.status.audio?"sync":this.status.audio;if(Mt["a"].pause(),this.medias.links[e]){var t=this,n=function(){Object(Mt["b"])((function(){Mt["c"].play(),setTimeout((function(){Mt["c"].stop(),t.onPlayFrame(null)}),50)}))},o=function(){t.onPlayFrame(null)};Mt["c"].setSRC(this.$config.getPublishResource(this.medias.links[e])),Mt["c"].on("loaded",n),Mt["c"].on("error",o),this.$once("hook:beforeDestroy",(function(){Mt["c"].off("loaded",n),Mt["c"].off("error",o)}))}else this.onPlayFrame(null)},onPlayFrame:function(e,t){var n=this;this.timer&&Tt["a"].cancel(this.timer),$(this.$el).find(".progress").css("width",0),null===e?e=Gt:Gt=e;var o=this.labels[e],s=function(){var t=parseInt(1e3*Number(o.cTime).toFixed(3)),s=n.$el.querySelector(".swiper-slide-active .progress");n.timer=Tt["a"].start((function(t){console.log(t),1==t?(s.style.width="100%",Bt.isEnd?(Gt=0,setTimeout((function(){n.onBack(!0)}),500)):(Bt.slideNext(),n.onPlayFrame(e+1,!0))):s.style.width=100*t+"%"}),t)};t?s():(Bt.slideTo(e,100,!1),l["play"].pause(),l["play"].chooseFragment(o.index,0,(function(){l["play"].start(),s()})))},onShowAgetnInfo:function(e,t){this.showAgentInfo=e,"card"==t&&(this.showAgentCard=!0)},onShowAgentCard:function(e){this.showAgentCard=e},onBack:function(e){this.$parent.guideState=e?"讲房":"继续",this.$parent.setPage("Home")}}},Jt=Kt,Xt=(n("ec59"),Object(h["a"])(Jt,Lt,Nt,!1,null,"47f26c03",null)),Yt=Xt.exports,Zt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container"},[n("div",{staticClass:"panel",style:{top:null==e.panelNewTop?null:e.panelNewTop+"px"},on:{mousemove:function(e){e.preventDefault()},touchmove:function(e){e.preventDefault()}}},[n("div",{staticClass:"area contact color",class:{sync:!e.sync}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!1===e.sync,expression:"sync===false"}],staticClass:"tips"},[e._v(e._s("agent"==e.role?"客户已离开":e.tips.longTime||"专属客服正在赶来的路上~"))]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.sync&&"customer"==e.role,expression:"sync && role == 'customer'"}],staticClass:"tips-white"},[n("transition",{attrs:{name:"custom-classes-transition","leave-active-class":"animated fadeOut slow"}},[0==e.tips.t1.show?n("div",{class:{hide:e.tips.t1.show}},[e._v(e._s(e.tips.t1.text))]):e._e()]),n("transition",{attrs:{name:"custom-classes-transition","leave-active-class":"animated fadeOut slow"}},[0==e.tips.t2.show?n("div",{class:{hide:e.tips.t2.show}},[e._v(e._s(e.tips.t2.text))]):e._e()])],1),n("div",{staticClass:"avatars"},[n("div",{staticClass:"avatar",class:{disable:!e.sync&&"customer"!=e.role},style:{"background-image":"url("+(e.agent.$authority.useCostomerUserAvatar&&e.agent.userAvatar||e.$config.getPublishResource("v3/img/apps/vrhouse/avatar_default.jpg"))+")"}},[n("span",[e._v(e._s("agent"==e.role?"客户":"我"))])]),n("div",{staticClass:"avatar",class:{disable:!e.sync&&"agent"!=e.role},style:e.agent.agencyAvatar&&{"background-image":"url("+e.agent.agencyAvatar+")"},on:{click:function(t){return e.onShowAgetnInfo(!0)}}},[n("span",[e._v(e._s("agent"==e.role?"我":e.agent.agencyName))]),n("div",{style:e.agent.agencyTagImage&&{"background-image":"url("+e.agent.agencyTagImage+")"}})])]),"agent"==e.role?n("div",{staticClass:"features"},[n("div",{class:{disable:!e.sync||!e.recommendList.length},on:{click:e.onShowHouseList}},[e._v("推荐房源")]),e.agent.$authority.showDelegateAuth?n("div",{class:{disable:!e.sync||!e.userId},on:{click:e.onGetUserPhone}},[e._v("获取电话")]):e._e()]):e._e(),n("div",{staticClass:"button",on:{click:function(t){return e.onExit()}}},[n("div",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.time>-1,expression:"time>-1"}]},[e._v(e._s(e._f("timeFormat")(e.time)))]),n("span",[e._v("结束")])])])])]),e.showAgentInfo?n("agent-info",{attrs:{agent:e.agent},on:{close:e.onShowAgetnInfo}}):e._e(),e.showAgentCard?n("agent-card",{attrs:{agent:e.agent},on:{close:function(t){return e.onShowAgentCard(!1)}}}):e._e(),e.showDelegation?n("UserDelegation",{attrs:{"user-id":e.userId,"agent-id":e.agent.agencyId},on:{close:function(t){e.showDelegation=!1}}}):e._e(),e.showUserPhone?n("UserPhone",{attrs:{phone:e.userinfo.user_phone},on:{close:function(t){e.showUserPhone=!1}}}):e._e(),e.showHouseList?n("house-list",{attrs:{sync:e.sync,list:e.recommendList,index:e.houseIndex},on:{close:function(t){return e.onShowHouseList(!1)}}}):e._e(),n("draw-panel"),n("x-window",{attrs:{show:e.showExitTips,"show-close":!1}},[n("div",{staticClass:"exit-tips"},[n("h4",[e._v("操作提示")]),n("div",[e._v("是否确认退出云带看?")]),n("button",{attrs:{type:"button"},on:{click:function(t){return e.onExit(!1)}}},[e._v("再看看")]),n("button",{attrs:{type:"submit"},on:{click:function(t){return e.onExit(!0)}}},[e._v("确认")])])])],1)},en=[],tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("x-window",{attrs:{show:!0},on:{close:function(t){return e.$emit("close")}}},[n("div",{staticClass:"swiper-container"},[n("div",{staticClass:"swiper-wrapper"},e._l(e.list,(function(t,o){return n("div",{key:o,staticClass:"swiper-slide"},[n("div",{staticClass:"house-info"},[n("div",{staticClass:"preview"},[n("img",{attrs:{src:t.houseTypeImages,alt:""}})]),n("div",{staticClass:"info"},[n("div",{staticClass:"description"},[n("div",{staticClass:"price"},[n("div",{staticClass:"state"},[n("i",[e._v("约"+e._s(e._f("float")(t.houseReferencePrice/1e4))+"万")]),n("label",[e._v(e._s(e.getSale(t)))])]),n("div",{staticClass:"area"},[e._v(e._s(t.houseType)+"/"+e._s(t.houseOrientation)+"/建面"+e._s(t.houseArea)+"㎡")])]),n("a",{directives:[{name:"show",rawName:"v-show",value:"agent"==e.role,expression:"role=='agent'"}],class:{disable:!e.sync},attrs:{href:"javascript:;"},on:{click:function(n){return e.gotoLink(t.sceneNum)}}},[e._v("云带看")])])])])])})),0)])])},nn=[],on={props:{list:Array,sync:Boolean,index:Number},data:function(){return{role:x["e"]}},watch:{index:function(){-1!=this.index&&Wt.slideTo(this.index)}},components:{XWindow:ot},mounted:function(){var e=this;this.$nextTick((function(){var t;Wt=new Swiper(e.$el.querySelector(".swiper-container"),{effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:1.2,coverflowEffect:{rotate:40,stretch:0,depth:100,modifier:1,slideShadows:!0},on:{transitionEnd:function(){t?Object(x["a"])({role:x["e"],name:"houseIndex",data:{index:this.activeIndex}}):t=!0}}}),-1!=e.index&&Wt.slideTo(e.index)}))},methods:{gotoLink:function(e){Object(x["a"])({role:x["e"],name:"houseLink",data:e})},getSale:function(e){var t="在售";return-1==e.sale_state?t="初始":2==e.sale_state&&(t="已出售"),t}}},sn=on,an=(n("ba57"),Object(h["a"])(sn,tn,nn,!1,null,"24049bb0",null)),rn=an.exports,cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("x-window",{attrs:{show:!0},on:{close:function(t){return e.$emit("close")}}},[n("div",{staticClass:"delegation"},[n("div",{staticClass:"content"},[n("h4",[e._v("委托服务")]),n("div",{staticClass:"tips"},[e._v("为方便提供服务,您是否同意委托当前经纪人为您找房?")]),n("div",{staticClass:"split"},[e._v("- 同意后您将获得 -")]),n("div",{staticClass:"list"},[n("ul",[n("li",[e._v("· 快速政策咨询")]),n("li",[e._v("· 优质房源推荐")]),n("li",[e._v("· 详细政策解读")]),n("li",[e._v("· 预约实地带看")])])]),n("button",{staticClass:"btn-contact",on:{click:e.onAgree}},[e._v("同意委托")]),n("div",{staticClass:"split"},[e._v("同意后将会与您电话联系")])])])])},ln=[],un={props:{userId:String,agentId:String},components:{XWindow:ot},methods:{onAgree:function(){var e=this;Object(a["d"])({user_id:this.userId,agency_user_id:this.agentId}).done((function(t){0==t.code?(Object(x["a"])({name:"delegation"}),e.$tips({content:"授权成功"}),e.$emit("close")):e.$alert({content:"授权失败"})})).fail((function(){e.$alert({content:"授权失败"})}))}}},dn=un,hn=(n("d7f7"),Object(h["a"])(dn,cn,ln,!1,null,"d81fa964",null)),fn=hn.exports,pn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("x-window",{attrs:{show:!0},on:{close:function(t){return e.$emit("close")}}},[n("div",{staticClass:"user-phone"},[n("div",{staticClass:"content"},[n("h4",[e._v(e._s(e.phone))]),n("button",{staticClass:"btn-contact",on:{click:e.onCall}},[n("i",{staticClass:"iconfont iconscene_call"}),e._v("联系客户\n ")])])])])},vn=[],mn={props:{phone:String},components:{XWindow:ot},methods:{onCall:function(){window.location.href="tel:".concat(this.phone)}}},gn=mn,_n=(n("d89e"),Object(h["a"])(gn,pn,vn,!1,null,"6def9082",null)),wn=_n.exports,yn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"paint"},[n("canvas",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],ref:"canvas"}),n("div",{staticClass:"toolbar"},[n("ul",[n("li",{directives:[{name:"show",rawName:"v-show",value:0==e.show,expression:"show == false"}],on:{click:function(t){return e.onDraw("drawStart")}}},[n("i",{staticClass:"iconfont icontagging"}),n("div",[e._v("画笔")])]),e.show?n("li",{class:{disable:!e.canUndo},on:{click:function(t){return e.onDraw("drawUndo")}}},[n("i",{staticClass:"iconfont icon_cancel"}),n("div",[e._v("撤回")])]):e._e(),e.show?n("li",{on:{click:function(t){return e.onDraw("drawStop")}}},[n("i",{staticClass:"iconfont iconclose"}),n("div",[e._v("关闭")])]):e._e()])])])},bn=[],Cn=n("bc19"),Pn=n("4c16"),xn={data:function(){return{show:!1,canUndo:!1,colorA:"#02c8ae",colorB:"#2e98fe"}},created:function(){var e=this;this.$bus.on("vrhouse/socket/action",(function(t,n,o){if("drawStart"==t)e.show=!0,e.draw=[],e.drawHistory=[],e.$nextTick((function(){e.onDrawStart()}));else if("drawStop"==t)e.show=!1,e.draw=null,e.drawHistory=null;else if("drawing"==t){var s=e.transformTo2d(n.content.drawing);n.role!=x["e"]&&(e.drawHistory.push(JSON.parse(JSON.stringify(s))),e.drawing(s))}else"drawUndo"==t&&e.drawUndo(o)}))},mounted:function(){var e,t=this;this.canvas=this.$refs.canvas,this.context=this.canvas.getContext("2d"),this.canvas.onmousedown=function(e){t.show&&(e.preventDefault(),t.beginStroke({x:e.clientX,y:e.clientY}))},this.canvas.onmouseup=function(e){t.show&&(e.preventDefault(),t.endStroke())},this.canvas.onmouseout=function(e){t.show&&(e.preventDefault(),t.endStroke())},this.canvas.onmousemove=function(e){t.show&&(e.preventDefault(),t._mouseDown&&t.moveStroke({x:e.clientX,y:e.clientY}))},this.canvas.addEventListener("touchstart",(function(n){t.show&&(n.preventDefault(),e=n.touches[0],t.beginStroke({x:e.pageX,y:e.pageY}))})),this.canvas.addEventListener("touchmove",(function(n){t.show&&(n.preventDefault(),t._mouseDown&&(e=n.touches[0],t.moveStroke({x:e.pageX,y:e.pageY})))})),this.canvas.addEventListener("touchend",(function(e){t.show&&(e.preventDefault(),t.endStroke())})),this.mouse=new THREE.Vector2},methods:{transformTo3d:function(e){var t=this,n=[];return 0==e.length?[]:(e.forEach((function(e,o){Cn["a"].convertScreenPositionToNDC(e.x,e.y,t.mouse);var s=Pn["a"].getMouseIntersect(P["objects"].player.camera,[t.intersectPlane],t.mouse);s?(e.pos3d=s.point,n.push(e)):console.error("no intersect ??")})),n)},transformTo2d:function(e){var t=[];return e.forEach((function(e){var n=new THREE.Vector3(e.pos3d.x,e.pos3d.y,e.pos3d.z),o=Pn["a"].getPos2d(n,P["objects"].player.camera);e.x=o.pos.x,e.y=o.pos.y,t.push(e)})),t},onDraw:function(e){Object(x["a"])({name:e,data:x["e"]})},onPainting:function(){var e=this.transformTo3d(this.draw);this.drawHistory.push(JSON.parse(JSON.stringify(e))),Object(x["c"])(e),this.draw=[],this.canUndo=!0,this._endTime=0,this._mouseDown=!1,this._lastTimestamp=0},beginStroke:function(e){this._mouseDown=!0,this._lastTimestamp=Date.now(),this._lastPosition=this.windowToCanvas(e.x,e.y),this.draw.push({role:x["e"],width:0,x:this._lastPosition.x,y:this._lastPosition.y,t:5})},onDrawStart:function(){var e=window.devicePixelRatio||1,t=this.canvas.getBoundingClientRect();this.ratio=1,this.canvas.width=t.width*e,this.canvas.height=t.height*e,this.context.scale(e,e),this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this._endTime=0,this._mouseDown=!1,this._lastTimestamp=0,this._lastLineWidth=-1,this._lastPosition={x:0,y:0},Cn["a"].convertScreenPositionToNDC(0,0,this.mouse);var n=Pn["a"].getMouseIntersect(P["objects"].player.camera,[P["objects"].model.skybox,P["objects"].sceneRenderer.scene.skyboxBG],this.mouse);this.placeIntersectPlane(n&&n.point)},moveStroke:function(e){var t=Date.now(),n=this.windowToCanvas(e.x,e.y),o=this.calcDistance(n,this._lastPosition),s=t-this._lastTimestamp,a=this.calcLineWidth(s,o);this.context.beginPath(),this.context.moveTo(this._lastPosition.x,this._lastPosition.y),this.context.lineTo(n.x,n.y),this.draw.push({role:x["e"],width:a,x:n.x,y:n.y,t:5}),this.context.strokeStyle=this.colorA,this.context.lineWidth=a,this.context.lineCap="round",this.context.linJoin="round",this.context.stroke(),this._lastPosition=n,this._lastTimestamp=t,this._lastLineWidth=a},endStroke:function(){this.draw.push({role:x["e"],width:0,x:this._lastPosition.x,y:this._lastPosition.y,t:0}),this.onPainting(),this._mouseDown=!1,this._endTime=Date.now()},calcLineWidth:function(e,t){var n,o=t/e;return n=o<=.1?6:o>=3?2:6-(o-.1)/2.9*2,-1==this._lastLineWidth?n:2*this._lastLineWidth/3+1*n/3},calcDistance:function(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))},windowToCanvas:function(e,t){var n=this.canvas.getBoundingClientRect();return{x:Math.round(e-n.left),y:Math.round(t-n.top)}},drawing:function(e){for(var t=this,n=function(n){e[n].t&&setTimeout((function(){t.context.beginPath(),t.context.strokeStyle=e[n].role==x["e"]?t.colorA:t.colorB,t.context.moveTo(e[n].x*t.ratio,e[n].y*t.ratio),t.context.lineTo(e[n+1].x*t.ratio,e[n+1].y*t.ratio),t.context.lineWidth=e[n].width*t.ratio,t.context.lineCap="round",t.context.linJoin="round",t.context.stroke()}),5)},o=0;o<e.length-1;o++)n(o)},drawUndo:function(e){var t=this;this.context.clearRect(0,0,this.canvas.width,this.canvas.height);for(var n=this.drawHistory.length-1;n>=0;n--)if(this.drawHistory[n][0].role==e){this.drawHistory.splice(n,1);break}this.drawHistory.forEach((function(e){for(var n=0;n<e.length-1;n++)e[n].t&&(t.context.beginPath(),t.context.strokeStyle=e[n].role==x["e"]?t.colorA:t.colorB,t.context.moveTo(e[n].x*t.ratio,e[n].y*t.ratio),t.context.lineTo(e[n+1].x*t.ratio,e[n+1].y*t.ratio),t.context.lineWidth=e[n].width*t.ratio,t.context.lineCap="round",t.context.linJoin="round",t.context.stroke())})),this.canUndo=this.drawHistory.some((function(e){return e[0].role==x["e"]}))},placeIntersectPlane:function(e){if(!this.intersectPlane){var t=new THREE.PlaneGeometry(8e3,8e4,1,1);this.intersectPlane=new THREE.Mesh(t,new THREE.MeshBasicMaterial({transparent:!0,wireframe:!1,opacity:0,side:THREE.DoubleSide,depthTest:!1})),this.intersectPlane.lookAt(new THREE.Vector3(0,1,0)),this.intersectPlane.name="intersectPlane",P["objects"].model.add(this.intersectPlane)}if(e){this.intersectPlane.position.copy(e);var n=P["objects"].player.getDirection(null,P["objects"].player.camera);this.intersectPlane.lookAt(e.clone().add(n))}}}},On=xn,kn=(n("4928"),Object(h["a"])(On,yn,bn,!1,null,"4625ffb6",null)),$n=kn.exports,Sn={components:{AgentInfo:rt,AgentCard:ft,XWindow:ot,DrawPanel:$n,HouseList:rn,UserDelegation:fn,UserPhone:wn},data:function(){return{sync:null,time:-1,role:Se["a"].urlQueryValue("role"),houseId:0,houseIndex:-1,panelOrgTop:0,panelNewTop:null,panelOpacity:.3,showAgentInfo:!1,showAgentCard:!1,showExitTips:!1,showHouseList:!1,agent:{$authority:{}},recommendList:[],userId:null,userinfo:null,showDelegation:!1,showUserPhone:!1,tips:{t1:{show:null,text:"您可以让经纪人为您讲解房屋位置和周边情况"},t2:{show:null,text:"户型图有任何疑问也可以随时进行咨询"},longTime:null}}},watch:{sync:function(){var e=this;this.sync&&null==this.tips.t1.show&&this.$nextTick((function(){e.tips.t1.show=!1,setTimeout((function(){e.tips.t1.show=!0,e.tips.t2.show=!1,setTimeout((function(){e.tips.t2.show=!0}),5e3)}),6e3)}))}},created:function(){var e=this;this.$parent.isReady?(this.$bus.emit("flag/hidden"),P["objects"].tagManager.hideAllTags()):this.$bus.on("ready",(function(){e.$bus.emit("flag/hidden"),P["objects"].tagManager.hideAllTags()})),this.$parent.getAgent().then((function(t){if(e.agent=t,"customer"===e.role){var n="".concat(location.href.split("?")[0],"?appname=vrhouse&m=").concat(e.$config.projectNum,"&role=agent&room_id=").concat(Se["a"].urlQueryValue("room_id"),"&user_id=").concat(e.agent.agencyId);console.log(n),n=encodeURIComponent(n),Object(a["c"])({link:n,agency_user_id:e.agent.agencyId,user_id:Se["a"].urlQueryValue("user_id"),terminal_type:"customer"}).then((function(e){console.log(e)}))}Object(x["d"])()})),this.$parent.getHouseRecommend().then((function(t){e.recommendList=t||[]}));var t=this;function n(e){t.resetPanel()}function o(e,n,o){"sync"==e?(t.sync=n,t.sync&&(Ft&&clearInterval(Ft),t.tips.longTime=null)):"close"==e?(Object(x["b"])(),t.sync=!1,t.$parent.setPage("home","sync")):"houseList"==e?(t.showHouseList=n.show,n.show?t.houseIndex=n.index:t.houseIndex=-1):"houseIndex"==e?t.role!=n.role&&(t.houseIndex=n.index):"houseLink"==e?window.location.replace(window.location.href.toString().replace(/(m=)([^&]*)/gi,"m="+n).replace("&vr=1","")+"&vr=1"):"time"==e?t.time=n:"operation-tips"==e?t.$tips({duration:3e3,content:"对方操作中,如您需要操作<br>请语音与对方联系"}):"userId"==e?t.userId=n:"delegation"==e&&o!=t.role&&("customer"==t.role||"agent"==t.role&&t.onGetUserPhone())}this.$once("hook:beforeDestroy",(function(){e.$bus.off("vrhouse/main/hide",n),e.$bus.off("vrhouse/socket/action",o)})),this.$bus.on("vrhouse/main/hide",n),this.$bus.on("vrhouse/socket/action",o);var s=0;Ft=setInterval((function(){++s>60&&(Ft&&clearInterval(Ft),e.tips.longTime="专属客服暂时不在线,请稍后联系~")}),1e3)},beforeDestroy:function(){Object(x["b"])()},mounted:function(){},methods:{onCallAgent:function(e){window.location.href="tel:400-0000-688"},onShowHouseList:function(e,t){Object(x["a"])({role:this.role,name:"houseList",data:{show:e,index:t}}),this.resetPanel()},onGetUserPhone:function(){var e=this;Object(a["b"])({user_id:this.userId,agency_user_id:this.agent.agencyId}).done((function(t){0==t.code?t.data?(e.userinfo=t.data,e.showUserPhone=!0):(Object(x["a"])({name:"delegation"}),e.$tips({duration:3e3,content:"正在等待用户授权"})):e.$alert({content:"获取用户电话失败,请稍后再试"})})).fail((function(){e.$alert({content:"获取用户电话失败,请稍后再试"})}))},onShowAgetnInfo:function(e,t){this.showAgentInfo=e,"card"==t&&(this.showAgentCard=!0),e&&this.resetPanel()},onShowAgentCard:function(e){this.showAgentCard=e},onShowHouseInfo:function(e){e>0&&$(this.$el.querySelector(".panel")).find(".color").css("background-color","rgba(0, 0, 0, 0.3)"),this.houseId=e,this.panelNewTop=this.panelOrgTop},onExit:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===e?this.showExitTips=!0:e?Object(x["a"])("close"):this.showExitTips=!1},resetPanel:function(){}}},En=Sn,In=(n("c2ea"),Object(h["a"])(En,Zt,en,!1,null,"a632211c",null)),An=In.exports,Tn={components:{VR:Le,Home:Ht,Guide:Yt,VRHouse:An},data:function(){return{isReady:!1,role:Se["a"].urlQueryValue("role"),userId:Se["a"].urlQueryValue("user_id"),page:"agent"==Se["a"].urlQueryValue("role")||Se["a"].urlQueryValue("vr")?"VRHouse":"Home",fromPage:null,guideState:"讲房"}},methods:{setPage:function(e,t){this.fromPage=t,this.page=e},getAgent:function(){var e=Object(g["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.agent){e.next=2;break}return e.abrupt("return",Promise.resolve(this.agent));case 2:return e.next=4,this.$parent.getHouseInfo();case 4:return this.agent=e.sent,e.abrupt("return",Promise.resolve(this.agent));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getHouseRecommend:function(){var e=Object(g["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.recommendList){e.next=2;break}return e.abrupt("return",Promise.resolve(this.recommendList));case 2:return e.next=4,this.$parent.getHouseInfo();case 4:return t=e.sent,t.recommendHouses&&(this.recommendList=JSON.parse(t.recommendHouses)),e.abrupt("return",Promise.resolve(this.recommendList));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},jn=Tn,Vn=(n("1cc9"),Object(h["a"])(jn,je,Ve,!1,null,null,null)),Dn=Vn.exports,Rn=n("3b09"),Un={name:"vr-house",components:{Player:p,AppHeader:Te,AppMain:Dn,Floor:Rn["a"]},data:function(){return{show:!1,role:Se["a"].urlQueryValue("role"),userId:Se["a"].urlQueryValue("user_id"),roomId:Se["a"].urlQueryValue("room_id"),isReady:!1,houseInfo:null}},created:function(){var e=this;this.$bus.on("loaded",(function(){e.getHouseInfo().then((function(){e.show=!0}))})),this.$bus.on("ready",(function(){e.isReady=!0}))},methods:{getHouseInfo:function(){var e=this;return this.houseInfo?Promise.resolve(this.houseInfo):Object(a["a"])({terminal_type:this.role,user_id:this.userId,room_id:this.roomId}).fail((function(t){e.$tips({content:"获取房源信息失败"})})).then((function(t){0==t.code?(e.houseInfo=t.data.houseInfo,window._houseInfo=e.houseInfo,e.houseInfo.$authority=t.data.authority||{},e.houseInfo.agencyAvatar||(e.houseInfo.agencyAvatar=e.$config.getPublishResource("v3/img/apps/vrhouse/avatar_default.jpg"))):e.$tips({content:"获取房源信息失败<br>".concat(t.msg)})}))}}},Hn=Un,Ln=(n("cb0c"),n("21c9"),n("b14d"),Object(h["a"])(Hn,o,s,!1,null,"35e38932",null));t["default"]=Ln.exports},c2ea:function(e,t,n){"use strict";var o=n("5174"),s=n.n(o);s.a},cf48:function(e,t,n){},d28c:function(e,t,n){"use strict";var o=n("5441"),s=n.n(o);s.a},d307:function(e,t,n){"use strict";var o=n("3acd"),s=n.n(o);s.a},d7f7:function(e,t,n){"use strict";var o=n("f418"),s=n.n(o);s.a},d89e:function(e,t,n){"use strict";var o=n("3f7e"),s=n.n(o);s.a},e4ce:function(e,t,n){},e795:function(e,t,n){"use strict";var o=n("65fe"),s=n.n(o);s.a},ea79:function(e,t,n){},ec59:function(e,t,n){"use strict";var o=n("0df4"),s=n.n(o);s.a},eca3:function(e,t,n){"use strict";n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return f}));n("8e6e"),n("ac6a"),n("456d");var o=n("ade3"),s=n("b775"),a=n("f121");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c="";function l(e){return s["a"].postJson(c+"app/feedback/add",e)}function u(e){return s["a"].get(c+"app/agency/customer/detail",e)}function d(e){return s["a"].get(c+"app/user/delegation",e)}function h(e){return s["a"].get("4dage/getHouseInfo",r({scene_code:a["a"].projectNum},e))}function f(e,t,n){var o=r({scene_code:a["a"].projectNum},e);return s["a"].get("4dage/wxSubscribe",o,t,n)}},f358:function(e,t,n){"use strict";var o=n("465f"),s=n.n(o);s.a},f418:function(e,t,n){}}]);
|