chunk-147d07a8.f6f90489.js 95 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-147d07a8"],{"0362":function(t,e,n){"use strict";var o=n("6c8a"),s=n.n(o);s.a},"0576":function(t,e,n){"use strict";var o=n("adfa"),s=n.n(o);s.a},"069f":function(t,e,n){},"089b":function(t,e,n){"use strict";var o=n("7ece"),s=n.n(o);s.a},"090c":function(t,e,n){},"0c66":function(t,e,n){"use strict";var o=n("1b02"),s=n.n(o);s.a},1151:function(t,e,n){"use strict";var o=n("8a0a"),s=n.n(o);s.a},"11cc":function(t,e,n){},"168a":function(t,e,n){},"19e2":function(t,e,n){},"1b02":function(t,e,n){},2149:function(t,e,n){},"221c":function(t,e,n){"use strict";var o=n("ca3b"),s=n.n(o);s.a},"28ad":function(t,e,n){"use strict";n.r(e);var o,s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-layout"},[t.showPage?"shared"===t.showPage?n("div",[t._v("分享页")]):t._e():n("div",{staticClass:"app-player"},[n("player"),t.show?n("app-header"):t._e(),t.show?n("app-main"):t._e()],1)])},i=[],a=n("fecd"),r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("player",{ref:"player"},["shop"==t.$config.name||"grave"==t.$config.name?n("billboards",{attrs:{slot:"billboards"},slot:"billboards"}):t._e()],1)},c=[],l=(n("7514"),n("b31b")),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"tag-billboards"}},[n("TagsShop")],1)},d=[],h=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tag-shop"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"com-player-tag tag-container"},[n("div",{staticClass:"tag-body"},[t.tag&&t.tag.goods?n("div",{staticClass:"content",on:{click:t.onDetailClick}},[n("div",{staticClass:"imgs"},[n("div",{class:["l-"+t.maxGoods.length]},t._l(t.maxGoods,(function(t,e){return n("div",{key:e,style:{"background-image":"url("+t.imageList[0]+"?x-oss-process=image/resize,m_fill,h_128,w_128)"}})})),0)]),n("div",{staticClass:"name"},[t._v(t._s(t.tag.goods[0].name))]),n("div",{staticClass:"desc"},[n("span",[t._v("\n "+t._s(t.tag.goods[0].desc)+"\n "),n("i",{staticClass:"iconfont icon_forward"})])])]):t._e(),n("i",{staticClass:"tag-close"}),n("i",{staticClass:"tag-line"})])]),t.showDetail?n("XWindow",{attrs:{"can-close":!0,"set-style":t.tag.goods.length>1?{width:"100%"}:{}},on:{close:t.closeTag}},[t.tag.goods.length>1?n("div",{staticClass:"pages"},[n("span",[t._v(t._s(t.index))]),n("span",[t._v("/"+t._s(t.tag.goods.length))])]):t._e(),n("div",{staticClass:" swiper-goods"},[n("div",{class:"close "+(t.tag.goods.length>1?"":"single"),on:{click:t.closeTag}},[n("Icon",{attrs:{icon:"close"}})],1),n("div",{staticClass:"swiper-wrapper"},t._l(t.tag.goods,(function(e){return n("div",{key:e.id,staticClass:"swiper-slide goods-slide"},[n("div",{staticClass:"img-list"},[n("div",{staticClass:"swiper-container swiper-imgs"},[n("div",{staticClass:"swiper-wrapper"},t._l(e.imageList,(function(t,e){return n("div",{key:e,staticClass:"swiper-slide",style:{"background-image":"url("+t+")"}})})),0),n("div",{staticClass:"swiper-pagination"})])]),n("div",{staticClass:"good-desc-top"},[n("div",{staticClass:"name"},[t._v(t._s(e.name))])]),n("div",{staticClass:"good-desc-bottom"},[n("p",[t._v(t._s(e.desc))])]),n("div",{staticClass:"consult-btn-w"},[n("button",{staticClass:"consult-btn",on:{click:function(n){return t.toShopDetail(e)}}},[t._v("查看详情")])])])})),0)])]):t._e()],1)},p=[],f=(n("8e6e"),n("ac6a"),n("456d"),n("7f7f"),n("ade3")),v=n("2f62"),m=n("67db"),g=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("i",{class:"iconfont icon"+t.icon,style:"font-size: "+("number"===typeof t.size?t.size+"px":t.size)})},w=[],_=(n("c5f6"),{name:"Icon",props:{icon:String,size:Number}}),b=_,y=n("2877"),C=Object(y["a"])(b,g,w,!1,null,null,null),P=C.exports,O=n("9a39"),x=n("617a");function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){Object(f["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var S={components:{XWindow:m["a"],Icon:P},data:function(){return{show:!0,index:1,showDetail:!1,role:x["a"].urlQueryValue("role")}},watch:{tag:function(t,e){this.tag||(this.showDetail=!1)},index:function(){Object(O["a"])({role:this.role,name:"tagSwitch",data:{index:this.index}})},showDetail:function(){var t=this;this.showDetail?this.$nextTick((function(){console.log(t.tag,"tag"),1==t.tag.goods.length?t.tag.goods[0].imageList.length>1&&(o=new Swiper(t.$el.querySelector(".swiper-imgs"),{pagination:{el:".swiper-pagination"}})):t.tag.goods.length>1&&(t.index=1,o=new Swiper(t.$el.querySelector(".swiper-goods"),{effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:1.2,coverflowEffect:{rotate:40,stretch:0,depth:100,modifier:1,slideShadows:!0},on:{transitionEnd:function(){o&&(t.index=o.activeIndex+1)}}}))})):o&&(o.destroy(!0,!0),o=null)}},computed:j(j({},Object(v["b"])({tag:"hotspot/tag",page:"page",player:"player",status:"guide/status"})),{},{goodsInfo:function(){this.tag.goods},component:function(){if(this.tag&&!this.player.showSplit&&(!this.$config.isMobile||"hotspot"!=this.page)){if(!this.tag.mediaType)return"TagNote";var t=this.tag.mediaType,e=t.charAt(0).toUpperCase(),n=t.substr(1);return"Tag".concat(e+n)}},showClose:function(){return!!this.$config.isMobile||!(this.$config.isMobile||!this.status.isRecording)},maxGoods:function(){return this.tag&&this.tag.goods?this.tag.goods.slice(0,9):[]},goods_desc:function(){var t={"四维看看Pro":"高清八镜头 精准复刻空间","三脚架套装":"专业拍摄脚架","万物墙":"震撼高清大屏展示"};return t[this.tag.goods[0].name]}}),created:function(){var t=this;this.$bus.on("player/tag/show",(function(e){t.show=e})),this.$bus.on("kanzhan/main/pageHome/goods",this.onDetailClick),this.$bus.on("vrhouse/socket/action",(function(e,n,s){s&&s!=t.role&&("tagShow"==e?t.showDetail=n.show:"tagSwitch"===e&&o.slideTo(n.index))}))},methods:{onDetailClick:function(){var t=this;setTimeout((function(){Object(O["a"])({role:t.role,name:"tagShow",data:{show:!0,goods:t.goodsInfo}}),t.showDetail=!0}),100)},gobuy:function(t){parent.wx.miniProgram.navigateTo({url:"/pages/goods/goods?id="+t.id})},toShopDetail:function(t){parent.wx.miniProgram.navigateTo({url:"/pages/goods-detail/goods-detail?goods_id=".concat(t.id,"&company_id=").concat(window._openInfo?window._openInfo.companyId:"")})},closeTag:function(){this.showDetail=!1,Object(O["a"])({role:this.role,name:"tagShow",data:{show:!1,goods:this.goodsInfo}})}}},E=S,I=(n("3ac8"),n("bf4a"),Object(y["a"])(E,h,p,!1,null,"e1a9d1aa",null)),T=I.exports,A={components:{TagsShop:T}},D=A,V=(n("c241"),Object(y["a"])(D,u,d,!1,null,"22a67a14",null)),U=V.exports,R=n("c7b2"),N={components:{Player:l["a"],Billboards:U},created:function(){var t=this;this.$store.commit("SetPlayerOptions",{showUI:!1}),this.$bus.on("ready",(function(){t.$bus.emit("rule/Visible",!1,"vrhouse")}))},mounted:function(){var t=this;this.$refs.player.start(),$(this.$el).find("#player").on("touchstart click",(function(){t.$bus.emit("vrhouse/header/hide"),t.$bus.emit("vrhouse/main/hide"),R["play"].control.isPlaying&&t.$bus.emit("vrhouse/guide/pause")}));var e=!1;R["app"].player.on("player/flyToNext",(function(n){"panorama"==n&&t.$bus.emit("changeModel",null),0==e&&(e=!0,t.$bus.emit("flag/hidden"))}))},methods:{init:function(){}}},H=N,L=Object(y["a"])(H,r,c,!1,null,null,null),M=L.exports,q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.player.showAppUI,expression:"player.showAppUI"}],staticClass:"header",style:{zIndex:t.share||t.showCopyTip||t.mapShow||t.imgsShow?9999:"99"}},[t.isVR?n("span",{staticClass:"back",on:{click:t.onBack}},[n("i",{staticClass:"iconfont icon_back"})]):[n("h2",{staticClass:"title",class:{active:t.show},on:{click:t.changeShow}},[n("p",[t._v("\n "+t._s(t.serve.info.companyName&&t.serve.info.companyName.slice(0,12))+"\n "),n("i",{staticClass:"iconfont iconscene_tit_arrow"})])]),n("i",{staticClass:"iconfont iconscene_tit_share share",on:{click:t.showShare}}),n("Map",{directives:[{name:"show",rawName:"v-show",value:t.minmapShow,expression:"minmapShow"}],staticClass:"map",attrs:{area:t.serve.info.houseArea}}),n("div",{staticClass:"banner-layer"},[t.show?n("Banner",{staticClass:"banner",attrs:{screens:t.banner,type:0,index:t.index},on:{changeIndex:t.changeBanner},scopedSlots:t._u([{key:"item",fn:function(e){var o=e.data;return n(o.component,t._b({tag:"component",staticClass:"item",on:{cb:function(t){return o.cb&&o.cb(t)}}},"component",o.data,!1))}}],null,!1,3555985452)}):t._e()],1),t.imgsShow?n("Dialog",{staticClass:"imgs-dialog"},[n("ImgQuery",{attrs:{info:t.serve.info,estate:t.serve.estate},on:{quit:t.quitImgs}})],1):t._e(),t.mapShow?n("Dialog",{on:{quit:t.quitMap}},[n("div",{staticClass:"map-dialog-close",attrs:{slot:"close"},on:{click:t.quitMap},slot:"close"}),n("Gaode",{attrs:{lat:t.serve.info.companyLatitude,lng:t.serve.info.companyLongitude}})],1):t._e(),t.share?n("Dialog",{staticClass:"share-dialog"},[n("div",{staticClass:"share-img",on:{click:t.hideShare}},[n("img",{attrs:{src:"/static/img/apps/kanzhan/share_tip.png",alt:""}})])]):t._e(),t.showCopyTip?n("copyLink",{on:{close:function(e){t.showCopyTip=!1}}}):t._e()]],2)},z=[],Q=(n("34ef"),n("28a5"),n("96cf"),n("1da1")),B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.model,expression:"model"}],staticClass:"tab-layer"},[n("div",{staticClass:"tabs",class:{disable:!t.modeCanSwitch}},[n("span",{class:{active:"2d"===t.model},on:{click:function(e){return t.changeMode("2d")}}},[n("i",{staticClass:"iconfont iconscene_map_2d"}),t._v("\n 平面图\n ")]),n("span",{class:{active:"3d"===t.model},on:{click:function(e){return t.changeMode("3d")}}},[n("i",{staticClass:"iconfont iconscene_map_3d"}),t._v("\n 三维模型\n ")])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.model&&"pano"==t.mode,expression:"!model && mode=='pano'"}],staticClass:"map-layer",on:{click:function(e){return t.changeMode("2d")}}},[n("div",{ref:"cad",staticClass:"cad"}),n("p",{staticClass:"change",on:{click:function(e){return e.stopPropagation(),t.changeMode("3d")}}},[n("i",{staticClass:"iconfont iconscene_map_3d"}),t._v("\n 3D模型\n ")])])])},W=[],F=n("26d4"),G=n("6860");function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function X(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach((function(e){Object(f["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}(function(){var t=0})();var K={props:["area"],data:function(){return{isLock:!1,model:""}},computed:X({},Object(v["b"])({mode:"mode",floor:"scene/houstFloor",modeCanSwitch:"modeCanSwitch"})),methods:{flyToNewMode:function(t){return Object(R["flyToNewMode"])(t),this.model=t,!0},changeMode:function(t){this.flyToNewMode(t)&&Object(O["a"])({name:"changeHeaderMapMode",data:t})}},watch:{floor:function(){console.log(X({},this.floor)),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(),this.$bus.emit("sign/Set/angle",this.cad.processing.data.dire)}},mounted:function(){var t=this;this.cad=Object(F["a"])({data:this.floor,layer:this.$refs.cad,edit:!1,padding:1,isCanvas:!0}),this.listen=function(e){var n=e.x,o=e.y,s=e.lon;return t.cad.setSign({x:n,y:o},s)},this.cad.toCanvas(),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(e,n){"sync"==e&&(t.isLock=n)})),this.$bus.on("vrhouse/socket/action",(function(e,n,o){o&&o!=t.role&&"changeHeaderMapMode"==e&&(t.model=n)})),this.$bus.on("changeModel",(function(e){t.model=null}))},beforeDestroy:function(){this.cad.destroy(),this.$bus.off("player/position/change",this.listen)}},Y=K,Z=(n("7754"),Object(y["a"])(Y,B,W,!1,null,"a04a1946",null)),tt=Z.exports,et=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"layer"},[n("div",{staticClass:"layer head-banner"},[n("div",{staticClass:"swiper-wrapper"},t._l(t.screens,(function(e,o){return n("div",{key:o,staticClass:"swiper-slide"},[t._t("item",null,{data:e,index:o})],2)})),0)]),0===t.type?n("div",{staticClass:"head-pages"},[n("span",{style:{width:t.barWidth+"%",left:t.barWidth*t.current+"%"}})]):n("div",{staticClass:"number-pages"},[n("span",[t._v(t._s(t.current+1)+"/"+t._s(t.total))])])])},nt=[];function ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function st(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(n),!0).forEach((function(e){Object(f["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var it={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 t=this,e=this.args[this.type]?st({},this.args[this.type]):{};this.swiper=new Swiper(".head-banner",st(st({},e),{},{on:{slideChange:function(){t.current=this.activeIndex}}})),this.swiper=Array.isArray(this.swiper)?this.swiper[swiper.length-1]:this.swiper,t.total=this.swiper.slidesGrid.length,this.swiper.slideTo(this.current)}},at=it,rt=(n("da3e"),Object(y["a"])(at,et,nt,!1,null,"26e3419a",null)),ct=rt.exports,lt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"layer"},[n("h3",[t._v("公司概况")]),n("h4",[t._v("公司名称:"+t._s(t.info.companyName))]),n("div",{staticClass:"apartment info-item"},[t._m(0),n("div",[n("div",[n("i",{staticClass:"iconfont iconrinfo_price"}),n("label",[t._v("企业类型")]),n("span",{},[t._v(t._s(t.info.companyType))])]),n("div",[n("i",{staticClass:"iconfont iconrinfo_layout"}),n("label",[t._v("成立时间")]),n("span",[t._v(t._s(t.info.companyRegisterTime))])])]),n("div",[n("div",[n("i",{staticClass:"iconfont iconrinfo_area"}),n("label",[t._v("员工人数")]),n("span",[t._v(t._s(t.info.staffNum))])]),n("div",[n("i",{staticClass:"iconfont iconrinfo_orientation"}),n("label",[t._v("注册资金")]),n("span",[t._v(t._s(t.info.registerFund))])])]),n("div",[n("div",[n("i",{staticClass:"iconfont iconrinfo_orientation"}),n("label",[t._v("主要产品")]),n("span",[t._v(t._s(t.info.mainProductDesc))])])])])])},ut=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h4",[n("span")])}],dt=n("eca3"),ht={props:["info","estate"]},pt=ht,ft=(n("5acc"),Object(y["a"])(pt,lt,ut,!1,null,"d8a0b992",null)),vt=ft.exports,mt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"album",on:{click:t.clickHandle}},[n("div",{staticClass:"single",style:t.images[0]&&{backgroundImage:"url("+t.images[0].img+")"}}),t.imgs.length>=2?n("div",{staticClass:"more"},[n("div",{style:t.images[1]&&{backgroundImage:"url("+t.images[1].img+")"}}),n("div",{style:t.images[2]&&{backgroundImage:"url("+t.images[2].img+")"}},[n("div",[n("span",[n("b",[t._v("+"+t._s(t.images.length))]),t._v("\n 查看更多照片\n ")])])])]):t._e()])},gt=[],wt={props:["estate","info"],data:function(){return{images:[],imgs:[]}},methods:{clickHandle:function(){this.$emit("cb")},extract:function(){this.images=JSON.parse(this.info.introduceImage);var t=this.images;this.imgs=t}},watch:{info:function(){this.extract()}},mounted:function(){this.extract()}},_t=wt,bt=(n("7616"),Object(y["a"])(_t,mt,gt,!1,null,"3bba232f",null)),yt=bt.exports,Ct=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"img-query"},[t.$slots["close"]?t._e():n("i",{staticClass:"iconfont iconclose",on:{click:function(e){return t.$emit("quit")}}}),n("div",{staticClass:"content"},[t._t("close"),t._t("default")],2)])},Pt=[],Ot=(n("85d3"),{}),xt=Object(y["a"])(Ot,Ct,Pt,!1,null,"420d254f",null),kt=xt.exports,jt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"img-layer"},[n("i",{staticClass:"iconfont iconclose",on:{click:function(e){return t.$emit("quit")}}}),n("div",{staticClass:"tabs-layer"},[t.current?n("div",{staticClass:"tabs"},[t._l(t.screens,(function(e,o){return n("a",{key:o,class:{active:e===t.current},on:{click:function(n){return t.changeCurrent(n,e)}}},[t._v(t._s(e.title)+"("+t._s(e.imgs.length)+")")])})),n("span",{style:{left:t.left,width:12*(t.current.title+t.current.imgs.length).length+"px"}})],2):t._e()]),t.current?n("div",{staticClass:"banner-layer",on:{touchstart:function(t){t.stopPropagation()}}},[t.showBanner?n("Banner",{staticClass:"banner",attrs:{screens:t.current.imgs,index:t.index},on:{changeIndex:t.changeIndex},scopedSlots:t._u([{key:"item",fn:function(e){var o=e.data;return n("div",{staticClass:"item"},[n("img",{attrs:{src:~t.origins.indexOf(o)?o.origin:o.abridge,alt:""}})])}}],null,!1,619343202)}):t._e(),n("a",{directives:[{name:"show",rawName:"v-show",value:!~t.origins.indexOf(t.current.imgs[t.index]),expression:"!~origins.indexOf(current.imgs[index])"}],staticClass:"query-origin",on:{click:function(e){return t.clickLoadding()}}},[~t.loads.indexOf(t.current.imgs[t.index])?[n("i",{staticClass:"iconfont icon_loading_"}),t._v("加载中\n ")]:[t._v("查看原图")]],2)],1):t._e()])},St=[],Et=[],$t={props:["info","estate"],data:function(){return{left:0,index:0,showBanner:!0,current:null,screens:[],origins:Et,loads:[],imgs:["https://houseoss.4dkankan.com/4dHouse/admin/upload/202006181748_739.jpg","https://houseoss.4dkankan.com/4dHouse/admin/upload/202006181748_765.jpg","https://houseoss.4dkankan.com/4dHouse/admin/upload/202006181748_787.jpg","https://houseoss.4dkankan.com/4dHouse/admin/upload/202006181748_801.jpg","https://houseoss.4dkankan.com/4dHouse/admin/upload/202006181748_852.jpg","https://houseoss.4dkankan.com/4dHouse/admin/upload/202006181748_840.jpg"]}},watch:{current:function(){var t=this;this.showBanner=!1,this.index=0,this.$nextTick((function(){return t.showBanner=!0}))},estate:function(){this.info.estateImages&&this.extract()}},methods:{clickLoadding:function(){this.loading(),Object(O["a"])({name:"imageQueryLoad"})},loading:function(){var t=this,e=this.current.imgs[this.index];if(!~this.loads.indexOf(e)){var n=new Image;n.onload=function(){t.origins.push(e),t.loads.splice(t.loads.indexOf(e),1)},n.onerror=function(t){console.log("-0-",t)},n.src=e.origin,this.loads.push(e)}},changeIndex:function(t){this.index=t,Object(O["a"])({name:"changeImageQueryIndex",data:t})},changeCurrent:function(t,e){this.left=t.target.offsetLeft+"px",this.current=e,Object(O["a"])({name:"changeImgQueryCurrent",data:e})},extract:function(){this.imgs=JSON.parse(this.info.introduceImage);var t=this.imgs.map((function(t){return t.img})),e=[];e.push({title:"图片介绍",imgs:t.map((function(t){return{abridge:t+"?x-oss-process=image/resize,w_320",origin:t}}))}),this.current=e[0],this.screens=e}},mounted:function(){var t=this,e=this;function n(t,n,o){o&&o!=e.role&&("changeImgQueryCurrent"==t&&(e.current=e.screens.find((function(t){return t.title===n.title}))),"changeImageQueryIndex"==t&&(e.index=n),"imageQueryLoad"==t&&e.loading())}this.$bus.on("vrhouse/socket/action",n),this.$once("hook:beforeDestroy",(function(){t.$bus.off("vrhouse/socket/action",n)})),this.imgs&&this.extract()},components:{Banner:ct}},It=$t,Tt=(n("2bf8"),Object(y["a"])(It,jt,St,!1,null,"68f46a09",null)),At=Tt.exports,Dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"layer",staticClass:"map-layer",class:{abridge:t.abridge},on:{click:t.clickHandle}},[t.abridge?[n("img",{attrs:{src:t.img}}),t._m(0)]:n("div",{ref:"map",staticClass:"container"})],2)},Vt=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[t._v("\n 查看企业及周边\n "),n("i",{staticClass:"iconfont iconmaps_enlarge"})])}],Ut="8829dbc0905cfc32de76989b1a1b5e25",Rt="2d34dd2b647f076d3c8f85a38d16488f";function Nt(){return new Promise((function(t,e){if(window.AMap)t(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(Ut,"&plugin=AMap.Geocoder&callback=initAMap"),n.onerror=e,document.head.appendChild(n)}window.initAMap=function(){t(window.AMap)}}))}var Ht="http://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",Lt={props:["abridge","lat","lng"],data:function(){return{width:0,height:0,zoom:13}},methods:{initAMap:function(){var t=Object(Q["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Nt();case 2:e=t.sent,this.map=new e.Map(this.$refs.map,{resizeEnable:!0,zoom:this.zoom,center:[this.lng,this.lat]}),console.log(this.lng,this.lat),new e.Marker({position:new e.LngLat(this.lng,this.lat),map:this.map,icon:Ht,clickable:!1});case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),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(Rt,"&markers=mid,,A:").concat(this.lng,",").concat(this.lat)}},mounted:function(){this.abridge?(this.width=this.$refs.layer.offsetWidth,this.height=this.$refs.layer.offsetHeight):this.initAMap()}},Mt=Lt,qt=(n("0c66"),Object(y["a"])(Mt,Dt,Vt,!1,null,"73c6f1a2",null)),zt=qt.exports,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"video-layer"},[n("h2",[t._v("宣传视频")]),n("div",{on:{click:t.clickHandle}},[n("video",{ref:"video",attrs:{src:t.info.introduceVideo,poster:t.info.introduceVideo+"?x-oss-process=video/snapshot,t_20000","x5-video-player-type":"h5-page",controlslist:"nodownload",disablepictureinpicture:"","webkit-playsinline":"","x-webkit-airplay":"",playsinline:""}}),t.paused?n("span",{staticClass:"pause"},[n("i",{staticClass:"iconfont iconrinfo_play"})]):n("span",{staticClass:"play"},[n("i",{staticClass:"iconfont iconCombinedShape"})])]),n("p",[t._v(t._s(t.info.estateIntroduceVideoDesc))])])},Bt=[],Wt={props:["info","estate"],data:function(){return{paused:!0}},methods:{clickHandle:function(){this.paused?(this.$refs.video.play(),Object(O["a"])({name:"headerVideoPlay"})):(this.$refs.video.pause(),Object(O["a"])({name:"headerVideoPause"}))}},mounted:function(){var t=this;this.onPlay=function(){return t.paused=!1},this.onPause=function(){return t.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(e,n,o){o&&o!=t.role&&("headerVideoPlay"==e&&t.$refs.video.play(),"headerVideoPause"==e&&t.$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)}},Ft=Wt,Gt=(n("bcb7"),Object(y["a"])(Ft,Qt,Bt,!1,null,"68e35d38",null)),Jt=Gt.exports;function Xt(){return new Promise((function(t){if(!x["a"].urlHasValue("test")){navigator.userAgent.toLowerCase();x["a"].detectWeixin()?wx.miniProgram.getEnv((function(e){t(e.miniprogram?"miniProgram":"weixin")})):t("h5")}t("miniProgram")}))}var Kt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"copy"},[n("div",[n("div",[n("h4",[t._v(t._s(t.$t("modules.base.share_link")))])]),n("div",{staticClass:"link"},[t._v(t._s(t.shareUrl))]),n("div",[n("button",{ref:"btn",staticClass:"ui-button submit block btn-share-copy",attrs:{"data-clipboard-text":t.shareUrl}},[t._v("\n 一键复制\n ")])]),n("div",[n("button",{staticClass:"ui-button cancel block btn-share-cancle",on:{click:t.close}},[t._v("\n 取消\n ")])])])])},Yt=[],Zt={props:{},data:function(){return{}},computed:{shareUrl:function(){var t=x["a"].urlQueryValue("m");return"".concat(location.origin).concat(location.pathname,"?m=").concat(t)}},mounted:function(){var t=this,e=new ClipboardJS(this.$refs.btn);e.on("success",(function(e){t.$tips({content:"链接已成功复制"}),t.close(),e.clearSelection()})),e.on("error",(function(t){return console.log(t)}))},methods:{close:function(){this.$emit("close")}}},te=Zt,ee=(n("2994"),Object(y["a"])(te,Kt,Yt,!1,null,null,null)),ne=ee.exports;function oe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oe(Object(n),!0).forEach((function(e){Object(f["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ie={data:function(){return{role:x["a"].urlQueryValue("role"),userId:x["a"].urlQueryValue("user_id"),index:0,show:!1,imgsShow:!1,mapShow:!1,minmapShow:!0,isVR:!1,share:!1,serve:{info:{},estate:{}},showCopyTip:!1,showHeader:!0}},watch:{show:function(){this.show&&this.$bus.emit("vrhouse/main/hide"),this.$bus.emit("player/tag/show",!this.show)}},computed:se(se({},Object(v["b"])({player:"player"})),{},{banner:function(){return[{component:"Info",data:{info:this.serve.info,estate:this.serve.estate}},{component:"Video",data:{info:this.serve.info,estate:this.serve.estate}},{component:"Album",cb:this.showImgQuery.bind(this),data:{info:this.serve.info}},{component:"Gaode",cb:this.showMap.bind(this),data:{abridge:!0,lat:this.serve.info.companyLatitude,lng:this.serve.info.companyLongitude}}]}}),methods:{showShare:function(){var t=Object(Q["a"])(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Object(O["a"])({name:"headerShowShare"}),t.next=3,Xt();case 3:e=t.sent,console.log(e),n=x["a"].urlQueryValue("env"),"miniProgram"===e&&"shipin"!==n?this.handleMiniShare():"weixin"===e||"shipin"===n?this.share=!0:this.showCopyTip=!0;case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleMiniShare:function(){var t=Object(Q["a"])(regeneratorRuntime.mark((function t(){var e,n,o,s,i,r,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.screenshot("smaller");case 2:e=t.sent,n=atob(e.split(",")[1]),o=n.length,s=new Uint8Array(o);while(o--)s[o]=n.charCodeAt(o);return i=new File([s],"a.jpg",{type:"image/jpg"}),r=new FormData,r.append("file",i),t.next=12,Object(a["f"])(r);case 12:c=t.sent,wx.miniProgram.navigateTo({url:"/pages/shared/shared?img_url=".concat(encodeURIComponent(c.data.url),"&companyId=").concat(this.serve.info.companyId,"&shareImg=").concat(encodeURIComponent(this.serve.info.shareWxQrCode),"&vrLink=").concat(encodeURIComponent("".concat(window.location.origin).concat(location.pathname,"?m=").concat(this.$config.projectNum)))});case 14:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),screenshot:function(t){var e=[{width:2560,height:1280,name:"big"},{width:2*window.screen.availWidth,height:2*window.screen.availHeight,name:"smaller"},{width:128,height:128,name:"weixinShare"}];return new Promise((function(n){R["util"].Screenshot({tasks:{unFish:e.filter((function(e){return e.name===t}))},snapshotTopview:!0,notHideTags:!0,f:function(t){n(t)}})}))},hideShare:function(){this.share=!1,Object(O["a"])({name:"headerHideShare"})},quitImgs:function(){this.imgsShow=!1,Object(O["a"])({name:"headerQuitImgs"})},quitMap:function(){this.mapShow=!1,Object(O["a"])({name:"headerQuitMap"})},changeShow:function(){this.show=!this.show,Object(O["a"])({name:"header",data:{show:this.show,index:this.index}})},onBack:function(){this.isVR=!1,this.$bus.emit("vrhouse/back")},showImgQuery:function(t){this.imgsShow=!0,this.show=!1,Object(O["a"])({name:"showImgQuery"})},showMap:function(t){this.mapShow=!0,this.show=!1,Object(O["a"])({name:"showGaodeMap"})},loadData:function(){var t=Object(Q["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(a["b"])();case 2:e=t.sent,this.serve.info=e.data.company,document.title="VR企业秀",this.$bus.emit("flag/title","VR企业秀");case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),changeBanner:function(t){this.index=t,Object(O["a"])({name:"headerBanner",data:t})}},mounted:function(){var t=this;this.$bus.on("vrhouse/socket/action",(function(e,n,o){o&&o!=t.role&&("header"==e&&(t.show=n.show),"headerBanner"==e&&(t.index=n),"headerQuitImgs"==e&&(t.imgsShow=!1),"headerQuitMap"==e&&(t.mapShow=!1),"showImgQuery"==e&&(t.imgsShow=!0,t.show=!1),"showGaodeMap"==e&&(t.mapShow=!0,t.show=!1),"headerShowShare"==e&&(t.share=!0),"headerHideShare"==e&&(t.share=!1))})),this.$bus.on("hideBanner",(function(){return t.show=!1})),this.$bus.on("hideImages",(function(){return t.imgsShow=!1})),this.$bus.on("vrhouse/enterVR",(function(){return t.isVR=!0})),this.$bus.on("vrhouse/minmap",(function(e){t.minmapShow=e})),this.$bus.on("vrhouse/header/hide",(function(){t.show=!1,t.imgsShow=!1,Object(O["a"])({name:"header",data:{show:!1}})})),this.loadData()},components:{Map:tt,Banner:ct,Info:vt,Album:yt,ImgQuery:At,Dialog:kt,Gaode:zt,Video:Jt,copyLink:ne}},ae=ie,re=(n("0362"),n("8e26"),Object(y["a"])(ae,q,z,!1,null,"21233790",null)),ce=re.exports,le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{mode:"out-in"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.player.showAppUI,expression:"player.showAppUI"}]},[n(t.page,{tag:"component"})],1)])},ue=[],de=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},[n("div",[n("div",{staticStyle:{"text-align":"center"}},[n("img",{attrs:{src:t.$config.getStaticResource("img/apps/vrhouse/vr.svg"),alt:""}})]),t._m(0)])])},he=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"tips"},[n("li",[t._v("进入:将手机横屏放入VR眼镜中")]),n("li",[t._v("前进:视角中心对准蓝点,直至变绿")]),n("li",[t._v("退出:将手机竖屏再触碰屏幕")])])}],pe=(n("6f4c"),{}),fe=Object(y["a"])(pe,de,he,!1,null,"3b7f01e9",null),ve=fe.exports,me=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"container"},[n("div",{staticClass:"panel",style:{top:null==t.panelNewTop?null:t.panelNewTop+"px"},on:{mousemove:function(t){t.preventDefault()},touchmove:function(t){t.preventDefault()}}},[n("div",{staticClass:"area contact"},[n("div",{staticClass:"agent color"},[n("div",{staticClass:"info"},[n("div",{staticClass:"avatar",style:t.agent.guideAvatarUrl&&{"background-image":"url("+t.agent.guideAvatarUrl+")"},on:{click:function(e){t.showAgentInfo=!0}}},[t._m(0)]),n("div",{staticClass:"card"},[n("div",{staticClass:"name"},[t._v(t._s(t.agent.guideName))])])]),n("div",{staticClass:"line"}),n("div",{staticClass:"tools-w"},[n("div",{staticClass:"phone"},[n("a",{attrs:{href:"javascript:;"},on:{click:function(e){return e.stopPropagation(),t.onCallAgent(e)}}},[n("i",{staticClass:"iconfont iconscene_call"}),n("span",[t._v("电话")])])]),n("div",{staticClass:"tools"},[n("a",{attrs:{href:"javascript:;"},on:{click:function(e){e.stopPropagation(),t.showTools=!t.showTools}}},[n("Icon",{attrs:{icon:t.showTools?"scene_tool_active":"scene_tool"}}),n("span",[t._v("工具")])],1),n("transition",{attrs:{appear:"",name:"custom-classes-transition","enter-active-class":"animated fadeIn faster","leave-active-class":"animated fadeOut faster"}},[t.showTools?n("ul",[n("li",[n("i",{staticClass:"iconfont",class:[t.tools.tags?"iconscene_tags_normal":"iconscene_tags_close"],on:{click:function(e){return t.onToolsClick("tags")}}}),n("div",[t._v(t._s(t.tools.tags?"关闭标签":"打开标签"))])]),n("li",[n("i",{staticClass:"iconfont iconscene_vrmode",on:{click:function(e){return t.onToolsClick("vr")}}}),n("div",[t._v("VR模式")])])]):t._e()])],1),n("div",{staticClass:"guide"},[t.fromShiPin?t._e():n("a",{attrs:{href:"javascript:;"},on:{click:function(e){return e.stopPropagation(),t.onAudioPlay(!1)}}},[n("i",{staticClass:"iconfont iconscene_lecture"}),n("span",[t._v(t._s(t.$parent.guideState))])])])])]),t.fromShiPin?t._e():n("div",{staticClass:"vr color",on:{click:function(e){return e.stopPropagation(),t.onVRHouse(e)}}},[n("i",{staticClass:"iconfont iconscene_vrlecture"}),n("span",[t._v("云带看")]),n("div",{staticClass:"animate bg1"}),n("div",{staticClass:"animate bg2"})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.goods.length,expression:"goods.length"}],staticClass:"area color house-list"},[n("div",[t._m(1),n("div",{staticClass:"swiper-container"},[n("div",{staticClass:"swiper-wrapper"},t._l(t.goods,(function(e,o){return n("div",{key:o,staticClass:"swiper-slide",on:{"&click":function(n){return t.toGoodsTag(e)}}},[n("img",{attrs:{src:t.getFillImage(e.image,212,160),alt:""}}),t._m(2,!0),n("div",{staticClass:"house-info"},[n("div",[t._v(t._s(e.name))])])])})),0)])])]),n("div",{staticClass:"area color introduce"},[n("div",[n("header",{style:{"background-image":"url("+t.$config.getStaticResource("img/apps/vrhouse/logo.png")+")"}},[t.fromShiPin?t._e():n("a",{on:{click:t.toWebSite}},[t._v("去官网了解更多>")])]),n("main",[t._v("四维看看是世界上首款消费级3D相机,技术核心三要素:易操作、自动化、高精度。主要应用...")]),t._m(3)])])]),n("x-window",{attrs:{show:t.showEnvTips,"show-close":!0},on:{close:function(e){t.showEnvTips=!1}}},[n("div",{staticClass:"env-tips"},[n("img",{attrs:{src:""+t.$config.getStaticResource("img/apps/vrhouse/logo.png"),alt:""}}),n("h4",[t._v("好玩展")]),n("p",[t._v("微信识别下方二维码")]),n("p",[t._v("进入小程序,享更多服务")]),n("p"),t.wx_aqr_code?n("img",{staticClass:"qrcode",attrs:{src:t.wx_aqr_code,alt:""}}):n("div",{staticClass:"nocode"},[n("div",[n("span",[t._v("二维码生成失败"),n("br"),t._v("请手动搜索小程序"),n("br"),t._v("【看展4DKanKan】"),n("br"),t._v("进入")])])]),n("div",{staticClass:"txt"},[t._v(t._s(t.title))])])]),t.house?n("house-info",{attrs:{house:t.house},on:{close:function(e){return t.toGoodsTag()}}}):t._e(),t.showAgentInfo?n("agent-info",{attrs:{agent:t.agent},on:{close:t.onShowAgetnInfo}}):t._e(),t.tools.feedback?n("feedback",{on:{close:function(e){t.tools.feedback=!1}}}):t._e(),t.showDeclaration?n("declaration",{on:{close:function(e){t.showDeclaration=!1}}}):t._e()],1)},ge=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("i",{staticClass:"iconfont iconavatar_card"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h4",[n("div",{staticClass:"icon"}),n("span",[t._v("全部展品")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"tag"},[n("span",[t._v("在售")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("footer",[n("div",[n("i",{staticClass:"iconfont icon_logo"}),t._v("四维看看提供技术支持\n ")])])}],we=(n("cd18"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("x-window",{attrs:{show:!0},on:{close:function(e){return t.$emit("close")}}},[n("div",{staticClass:"agent-info"},[n("div",{staticClass:"content"},[n("div",{staticClass:"agent-title"},[t._v("交换名片")]),n("div",{staticClass:"card"},[n("div",{staticClass:"info"},[n("img",{staticClass:"avatar",attrs:{src:t.agent.guideAvatarUrl}}),n("div",{staticClass:"info-detail"},[n("div",[n("span",{staticClass:"name"},[t._v(t._s(t.agent.guideVisitName))]),n("span",{staticClass:"position"},[t._v(t._s(t.agent.guideVisitTitle))])]),n("div",{staticClass:"company"},[t._v(t._s(t.agent.guideVisitCompanyName))])])]),n("ul",{staticClass:"info-item"},[n("li",{staticClass:"info-item"},[n("i",{staticClass:"iconfont iconmaps_call"}),n("span",[t._v(t._s(t.agent.guideVisitPhone))])]),n("li",{staticClass:"info-item"},[n("i",{staticClass:"iconfont iconcard_mail"}),n("span",[t._v(t._s(t.agent.guideVisitEmail))])]),n("li",{staticClass:"info-item"},[n("i",{staticClass:"iconfont iconcard_address"}),n("span",[t._v(t._s(t.agent.guideVisitCompanyAddress))])])])]),n("button",{staticClass:"submit-btn",on:{click:t.exChange}},[t._v("确认交换")]),n("p",{staticClass:"desc"},[t._v("交换后对方将会获得您的名片")])])])])}),_e=[],be=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("popup",{attrs:{show:t.show,"is-close":t.showClose},on:{close:function(e){return t.$emit("close")}}},[n("div",{staticClass:"share-x-window",style:{height:t.height},on:{touchstart:function(t){t.stopPropagation()}}},[t.showClose?n("div",{staticClass:"header"},[n("span",{staticClass:"close",on:{click:function(e){return e.stopPropagation(),t.$emit("close")},touchstart:function(e){return e.stopPropagation(),t.$emit("close")}}})]):t._e(),n("div",{staticClass:"main"},[t._t("default")],2),n("div",{staticClass:"footer"},[t._t("footer")],2)])])},ye=[],Ce=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{appear:"",name:"custom-classes-transition","enter-active-class":"animated fadeIn faster","leave-active-class":"animated fadeOut faster"}},[t.show?n("div",{staticClass:"x-popup-layer",style:{"z-index":t.zIndex,"background-color":t.bgColor},on:{touchmove:function(t){t.preventDefault()},touchstart:t.onClick}},[t._t("default")],2):t._e()])},Pe=[],Oe=999;function xe(){return++Oe}var ke={name:"x-popup-layer",props:{show:Boolean,isClose:Boolean,bgColor:String},data:function(){return{zIndex:xe()}},methods:{onClick:function(){this.isClose&&this.$emit("close")}}},je=ke,Se=(n("61b6"),Object(y["a"])(je,Ce,Pe,!1,null,"c2e84114",null)),Ee=Se.exports,$e={components:{Popup:Ee},props:{show:Boolean,height:String,showClose:{type:Boolean,default:function(){return!0}}}},Ie=$e,Te=(n("b677"),Object(y["a"])(Ie,be,ye,!1,null,"5ba15ef0",null)),Ae=Te.exports,De={props:{agent:{type:Object,default:function(){return{}}}},data:function(){return{user_id:x["a"].urlQueryValue("user_id")}},components:{XWindow:Ae},methods:{exChange:function(){var t=this;this.user_id&&(this.user_id!==this.agent.guideId?Object(a["a"])({fromUserId:this.user_id,toUserId:this.agent.guideId,sceneNum:this.$config.projectNum}).then((function(e){t.$tips({content:e.msg})})):this.$tips({content:"不能和自己交换名片"}))}}},Ve=De,Ue=(n("e460"),Object(y["a"])(Ve,we,_e,!1,null,"3e419b4d",null)),Re=Ue.exports,Ne=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("x-window",{attrs:{show:!0},on:{close:function(e){return t.$emit("close")}}},[n("div",{staticClass:"agent-card"},[n("h4",[t._v("从业人员工作牌")]),n("div",{staticClass:"preview"},[n("img",{attrs:{src:t.agent.agencyPassImage?t.agent.agencyPassImage:"static/img/apps/vrhouse/card.png"}})])])])},He=[],Le={components:{XWindow:Ae},props:{agent:{type:Object,default:function(){return{}}}}},Me=Le,qe=(n("c3e7"),Object(y["a"])(Me,Ne,He,!1,null,"6b297891",null)),ze=qe.exports,Qe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("x-window",{attrs:{show:!0},on:{close:function(e){return t.$emit("close")}}},[n("div",{staticClass:"house-info"},[n("div",{staticClass:"preview"},[n("img",{attrs:{src:t.house.houseTypeImages,alt:""}})]),n("div",{staticClass:"info"},[n("div",{staticClass:"description"},[n("div",{staticClass:"price"},[n("div",[n("i",[t._v("约"+t._s(t._f("float")(t.house.houseReferencePrice/1e4))+"万")]),n("label",[t._v(t._s(t.sale))])]),n("div",{staticClass:"area"},[t._v(t._s(t.house.houseType)+"/"+t._s(t.house.houseOrientation)+"/建面"+t._s(t.house.houseArea)+"㎡")])]),n("a",{attrs:{href:"javascript:;"},on:{click:t.goto}},[t._v("云带看")])])])])])},Be=[],We=(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 t="在售";return-1==this.house.houseSaleState?t="初始":2==this.house.houseSaleState&&(t="已出售"),t}},components:{XWindow:Ae},methods:{goto:function(){window.location.replace(this.link)}}}),Fe=We,Ge=(n("97f7"),Object(y["a"])(Fe,Qe,Be,!1,null,"135a5eb6",null)),Je=Ge.exports,Xe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("x-window",{attrs:{show:!0,height:"70%"},on:{close:function(e){return t.$emit("close")}}},[n("div",{staticClass:"declaration"},[n("h1",[t._v("权益声明")]),n("div",{staticClass:"content",on:{touchmove:function(t){t.stopPropagation()}}},[n("ul",[n("li",[n("h4",[t._v("一、权利归属")]),n("div",[n("span",[t._v("1.")]),n("div",[t._v("“四维看看”平台(以下简称“本平台”)由珠海市四维时代科技网络有限公司(以下简称 “我司”)设立和运营,一切权利归我司享有。本平台包含网页端、H5端(手机端)、微信小程序、手机应用程序等多种应用方式。本平台仅提供“云看展”中的影像服务,影像中的语音服务模块由与本平台合作的专业讲解员或顾问团队提供。")])]),n("div",[n("span",[t._v("2.")]),n("div",[t._v("我司持有与“四维看看”平台有关的一切权益(包括但不限于知识产权)。“四维看看”标志的字样及图形归我司合法所有,未经许可任何人不得擅自使用。凡侵犯我司权益的,我司将依法追究其相关法律责任。")])]),n("div",[n("span",[t._v("3.")]),n("div",[t._v("本平台上所生成、制作、推出、刊登的所有产品、技术、软件、程序、数据、汇编及相关内容信息(包括但不限于文字、图片、音视频、网页版面、图表、数据、编码、标识、影像、声音文件片段)的所有权利(包括知识产权、商业秘密及其他相关权利)均归本平台及/或关联公司所有。未经本平台及/或关联公司许可,任何人擅自使用上述内容,均可能会侵犯本平台及/或关联公司的权利,我们将会追究侵权者的法律责任。")])]),n("div",[n("span",[t._v("4.")]),n("div",[t._v("本平台/关联公司对本平台上的商标性文字及/或图形标识、服务运营商字号名称等享有专有使用权,受法律法规的保护。任何人或单位未经本平台或关联公司的书面授权不得擅自使用,否则,我司有权追究侵权方的法律责任,并要求承担我司所遭受的经济损失,按照侵权方的侵权所得的两倍计算。")])]),n("div",[n("span",[t._v("5.")]),n("div",[t._v("任何被授权使用本平台信息内容的行为(包括但不限于浏览、复制、打印和传播),使用方都不能将其用于商业目的,如果有另行转载或其他非商业用途的,使用方应当声明其所使用的信息内容及其任何部分的使用的信息来源及权益声明。")])])]),n("li",[n("h4",[t._v("二、内容限制")]),n("div",[n("span",[t._v("1.")]),n("div",[t._v("除法律另有强制性规定外,未经四维时代明确的特别书面许可,任何单位或个人不得以任何方式非法地全部或部分复制、传播、展示、镜像、上载、下载、转载、引用、链接、抓取或以其他方式使用本平台的信息内容及相关资料,否则,本平台有权追究其法律责任。")])]),n("div",[n("span",[t._v("2.")]),n("div",[t._v("任何人在未经本平台同意的情况下,不得以任何手段获取本平台账号体系或数据库内的任何资料、信息,特别是涉及到商业秘密、个人信息在内的敏感类信息。")])]),n("div",[n("span",[t._v("3.")]),n("div",[t._v("本平台以下内容未经许可不得任意转载:")])]),n("div",[n("span",[t._v("1)")]),n("div",[t._v("本平台内发布的所有信息;")])]),n("div",[n("span",[t._v("2)")]),n("div",[t._v("已作出不得转载或未经许可不得转载的声明内容;")])]),n("div",[n("span",[t._v("3)")]),n("div",[t._v("本平台中特有的图形、标志、页面风格、图像、影音资料、编排方式、程序等;")])]),n("div",[n("span",[t._v("4)")]),n("div",[t._v("本平台中必须具有特别授权或具有注册用户资格方可知晓的内容;")])]),n("div",[n("span",[t._v("5)")]),n("div",[t._v("其他法律不允许或本平台认为不适合转载的内容。")])]),n("div",[n("span",[t._v("4.")]),n("div",[t._v("任何人不得在本平台制作、复制、发布法律、行政法规禁止的违法信息")])])]),n("li",[n("h4",[t._v("三、责任说明")]),n("div",[n("span",[t._v("1.")]),n("div",[t._v("本平台中设计案例的商品价格为品牌商提供的官方指导价格,仅供参考,不具有任何要约性质。商品的具体价格因市场等影响存在波动,实际价格以经销商或门店信息为准;")])]),n("div",[n("span",[t._v("2.")]),n("div",[t._v("鉴于本平台提供的“云看展”服务,使用VR技术拍摄的房源图片及户型图,用户在平台上看到的房屋在尺寸、面积上与实际房源存在一定偏差,仅供参考,不得作为用户买卖房屋的依据,请用户以房屋产权证明标示数据为准;")])]),n("div",[n("span",[t._v("3.")]),n("div",[t._v("“云看展”全景模式下呈现的角度由拍摄设备所处的高度决定(约1.5米~1.7米),用户请以线下实际视线感受为准;")])]),n("div",[n("span",[t._v("4.")]),n("div",[t._v("“云看展”涉及的房源内外部装饰装修、设施设备均为房源业主或开发商提供,仅供参考,房屋的具体情况请以用户现场查看展源的情况为准;为适度美观,我们可能会在房源实景中增添少许的可分辨的视觉效果,但是不会影响您使用我们的服务;请用户根据房屋的实际情况进行考量和决策。")])]),n("div",[n("span",[t._v("5.")]),n("div",[t._v("本平台不为任何合作平台的讲解员提供任何担保,讲解员的言论由其自身负责,其观点和陈述不代表本公司观点,与本公司无关;")])]),n("div",[n("span",[t._v("6.")]),n("div",[t._v("本平台为用户提供信息发布、存储等技术服务,除非本平台单独提示或声明,本平台上的房源图片、内容信息等均由用户、合作方等主体自行提供并上传,由上传方对其信息承担相应法律责任。本平台转载和刊载的内容系出于传递更多信息之目的,并不意味我们赞同其观点或已经证实其内容的真实性。")])]),n("div",[n("span",[t._v("7.")]),n("div",[t._v("本网站地图功能展示的信息和数据均来自百度地图,仅供参考。")])]),n("div",[n("span",[t._v("8.")]),n("div",[t._v("任何通过使用本平台而链接、跳转到的第三方网页、程序均系他人制作或提供,您可能从该第三方网页上获得资讯及享用服务,除法律法规另有规定的,本平台对其合法性、真实性、完整性概不负责,亦不承担法律责任。")])]),n("div",[n("span",[t._v("9.")]),n("div",[t._v("任何不当使用本平台内容而引起纠纷等或因纠纷造成损失的,本平台及我司不承担任何法律责任。任何人不遵守本声明恶意使用或以其他方式使用本平台信息的,本平台及我司保留追究其法律责任的权利。")])])]),n("li",[n("h4",[t._v("四、其他")]),n("div",[n("span",[t._v("1.")]),n("div",[t._v("凡以任何方式登陆本平台或直接、间接使用本平台资料者,视为自愿接受本平台声明的约束。")])]),n("div",[n("span",[t._v("2.")]),n("div",[t._v("为确保服务质量,用户在使用讲解员”VR带看” 过程中可能会被录音,该录音不得用于商业用途;")])]),n("div",[n("span",[t._v("3.")]),n("div",[t._v("其他知识产权权利人若认为本平台上的内容(包括但不限于我们的用户发布的各类信息)侵犯其合法权益的,可以向本平台进行投诉,我们将在收到知识产权权利人合格通知后依据相应的法律法规以及平台规则及时处理。")])]),n("div",[n("span",[t._v("4.")]),n("div",[t._v("\n 本声明未尽之处,请以\n "),n("a",{attrs:{href:"https://www.4dkankan.com/mobile.html#/useimg/2/0/agreement"}},[t._v("《四维看看用户协议》")]),t._v("及\n "),n("a",{attrs:{href:"https://www.4dkankan.com/mobile.html#/useimg/1/0/agreement"}},[t._v("《四维看看销售协议》")]),t._v("的内容为准。\n ")])]),n("div",[n("span",[t._v("5.")]),n("div",[t._v("本平台对本声明享有最终解释权。")])])])])])])])},Ke=[],Ye={components:{XWindow:Ae},mounted:function(){this.boxHeight=this.$el.querySelector(".content").clientHeight},methods:{}},Ze=Ye,tn=(n("2a11"),Object(y["a"])(Ze,Xe,Ke,!1,null,"54e754c2",null)),en=tn.exports,nn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"feedback"},[n("i",{staticClass:"iconfont iconback",on:{click:function(e){return t.$emit("close")}}}),n("div",{staticClass:"content"},[n("div",{staticClass:"types"},[n("h4",[t._v("错误类型")]),n("ul",t._l(t.types,(function(e,o){return n("li",{key:o,on:{click:function(n){return t.onTypeSelected(o,e)}}},[n("div",{class:{active:t.typeIndex==o}},[t._v(t._s(e))])])})),0)]),n("div",{staticClass:"describe"},[n("h4",[t._v("错误描述(选填)")]),n("textarea",{directives:[{name:"model",rawName:"v-model.trim",value:t.form.error_desc,expression:"form.error_desc",modifiers:{trim:!0}}],attrs:{maxlength:"500",placeholder:"请输入问题描述..."},domProps:{value:t.form.error_desc},on:{input:function(e){e.target.composing||t.$set(t.form,"error_desc",e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})]),n("div",{staticClass:"contact"},[n("h4",[t._v("联系方式(选填)")]),n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.form.contract,expression:"form.contract",modifiers:{trim:!0}}],attrs:{maxlength:"11",placeholder:"请输入您的电话号码"},domProps:{value:t.form.contract},on:{input:function(e){e.target.composing||t.$set(t.form,"contract",e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})])]),n("div",{staticClass:"footer"},[n("button",{class:{disable:null==t.typeIndex},on:{click:t.onSubmit}},[t._v("提交")])]),n("x-window",{attrs:{show:null!=t.code},on:{close:function(e){t.code=null}}},[n("div",{staticClass:"code"},[n("div",{staticStyle:{color:"#999"}},[t._v("安全验证")]),n("div",{staticClass:"image"},[n("img",{attrs:{src:"app/random/code?num="+this.code,alt:""}}),n("a",{attrs:{href:"javascript:;"},on:{click:t.onGetCode}},[t._v("看不清楚?点击刷新")])]),n("div",{staticClass:"input"},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.codeValue,expression:"codeValue",modifiers:{trim:!0}}],attrs:{type:"text",placeholder:"请输入验证码",maxlength:"4"},domProps:{value:t.codeValue},on:{input:function(e){e.target.composing||(t.codeValue=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}}),n("button",{on:{click:t.onValid}},[t._v("确定")])])])])],1)},on=[],sn=(n("55dd"),{components:{XWindow:Ae},data:function(){return{types:["3D模型","房屋照片","户型图","文字标签","三维标尺","VR讲房","讲解员","房源信息","其他"],typeIndex:null,code:null,codeValue:"",form:{error_type:"",error_desc:"",contract:"",status:1}}},methods:{onTypeSelected:function(t,e){this.typeIndex=t,this.form.error_type=e},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 t=this;return this.codeValue?this.codeValue!=this.code?this.$tips({content:"验证码不正确"}):void Object(dt["e"])(this.form).done((function(e){0==e.code?(t.$emit("close"),t.$tips({content:"提交成功"})):t.$tips({content:e.msg||"提交失败"})})):this.$tips({content:"请输入验证码"})}}}),an=sn,rn=(n("909a"),Object(y["a"])(an,nn,on,!1,null,"4f5ac826",null)),cn=rn.exports,ln=n("b235");function un(t,e,n){return"".concat(t,"?x-oss-process=image/resize,m_fill,h_").concat(n,",w_").concat(e)}function dn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function hn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dn(Object(n),!0).forEach((function(e){Object(f["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var pn={components:{AgentInfo:Re,AgentCard:ze,HouseInfo:Je,Feedback:cn,Icon:P,Declaration:en,xWindow:Ae},data:function(){return{env:"",getFillImage:un,show:!0,panelOrgTop:0,panelNewTop:null,panelOpacity:.3,showAgentInfo:!1,showAgentCard:!0,showDeclaration:!1,showEnvTips:!1,showTools:!1,tools:{vr:!1,tags:!0,rule:this.rule,feedback:!1},agent:{},house:null,recommendList:[],wx_aqr_code:"",title:"",house_type:""}},computed:hn(hn({},Object(v["b"])({tags:"hotspot/tags",plays:"guide/plays",showNavigations:"showNavigations"})),{},{rule:function(){return this.showNavigations.rule},goods:function(){return this.tags&&this.tags.length?this.tags.map((function(t){if(t.goods&&t.goods instanceof Array&&t.goods.length>0){var e=hn(hn({},t.goods[0]),{},{sid:t.sid,image:t.goods[0].imageList[0]});return e}return{name:t.label,sid:t.sid}})):[]},fromShiPin:function(){return"shipin"===this.env}}),watch:{goods:{handler:function(t){t&&t.length>0&&setTimeout((function(){new Swiper(".swiper-container",{freeMode:!0,slidesPerView:"auto",spaceBetween:8,on:{touchMove:function(t){t.stopPropagation(),t.preventDefault()}}})}),200)}}},created:function(){var t=this;this.$parent.getAgent().then((function(e){t.agent=e}));var e=this;function n(){e.show=!0,e.$store.commit("SetVR",!1),e.$nextTick((function(){o()}))}function o(){e.resetPanel(),e.house=null,e.showTools=!1,e.showAgentInfo=!1,e.showAgentCard=!1,e.showDeclaration=!1}function s(){e.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(){t.$bus.off("vrhouse/back",n),t.$bus.off("vrhouse/main/hide",o),t.$bus.off("flag/closed",s)}))},mounted:function(){var t=this;this.env=x["a"].urlQueryValue("env");var e=this,n=this.$el.querySelector(".panel"),o=n.querySelectorAll(".color");this.$el;n.addEventListener("touchstart",a,!1),n.addEventListener("mousedown",a,!1),this.panelOrgTop=n.offsetTop;var s={top:this.panelOrgTop},i=null;function a(t){t.stopPropagation(),s.new=(t.touches&&t.touches[0]||t).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),e.$bus.emit("vrhouse/header/hide")}function r(t){t.stopPropagation();var n=(t.touches&&t.touches[0]||t).clientY+s.org-s.new,a=(s.wHeight-n)/s.eHeight;a<.3?a=.3:a>.7&&(a=.7),n+s.eHeight<s.wHeight?n=s.wHeight-s.eHeight:n>e.panelOrgTop&&(n=e.panelOrgTop),o.forEach((function(t){t.style.backgroundColor="rgba(0, 0, 0, ".concat(a,")")})),e.panelNewTop=n,e.showTools=!1,null==i&&(i=Date.now())}function c(t){if(n.removeEventListener("touchmove",r,!1),n.removeEventListener("mousemove",r,!1),n.removeEventListener("touchend",c,!1),n.removeEventListener("mouseup",c,!1),s.end=(t.changedTouches&&t.changedTouches[0]||t).clientY,Date.now()-i<200){var a=s.end-s.new,l=0,u=0;if(Math.abs(a)>5){var d=0;a>0?(l=n.offsetTop,u=e.panelOrgTop,d=l-u):(l=n.offsetTop,u=s.wHeight-s.eHeight,d=l-u),ln["a"].start((function(t){e.panelNewTop=l-d*t;var n=(s.wHeight-e.panelNewTop)/s.eHeight;n<.3?n=.3:n>.7&&(n=.7),o.forEach((function(t){t.style.backgroundColor="rgba(0, 0, 0, ".concat(n,")")}))}),200)}}i=null}this.$bus.on("orientation",(function(){t.showTools=!1,t.panelNewTop=null,t.$nextTick((function(){t.panelOrgTop=t.$el.querySelector(".panel").offsetTop,t.resetPanel()}))})),this.$bus.on("apps/kanzhan/showEnvTipsFn",this.showEnvTipsFn)},methods:{onCallAgent:function(t){window.location.href="tel:".concat(this.agent.guidePhoneNum)},onAudioPlay:function(t){this.$parent.setPage("Guide")},onToolsClick:function(t){"vr"==t?(this.resetPanel(),this.show=!1,this.$bus.emit("vrhouse/enterVR"),this.$store.commit("SetVR",!0)):"feedback"==t?(this.tools.feedback=!this.tools.feedback,this.tools.feedback&&this.resetPanel()):"rule"==t?(this.tools.rule=!this.tools.rule,this.$bus.emit("rule/Visible",this.tools.rule,"vrhouse")):"tags"==t&&(this.tools.tags=!this.tools.tags,this.tools.tags?G["objects"].tagManager.showAllTags():G["objects"].tagManager.hideAllTags())},onShowAgetnInfo:function(t,e){this.showAgentInfo=t,"card"==e&&(this.showAgentCard=!0),t&&this.resetPanel()},onShowAgentCard:function(t){this.showAgentCard=t},toGoodsTag:function(t){var e=this;window.__api.tag.openById(t.sid),this.panelNewTop=null,setTimeout((function(){e.$bus.emit("kanzhan/main/pageHome/goods")}),100)},onShowDeclaration:function(){this.showDeclaration=!0,this.resetPanel()},onVRHouse:function(){var t=this;if(!x["a"].urlHasValue("test")){navigator.userAgent.toLowerCase();if(!x["a"].detectWeixin())return this.showEnvTipsFn();parent.wx.miniProgram.getEnv((function(e){if(!e.miniprogram)return t.showEnvTipsFn()}))}var e=x["a"].urlQueryValue("role");e?this.$parent.setPage("VRHouse"):Object(O["d"])()},resetPanel:function(){$(this.$el.querySelector(".panel")).find(".color").css("background-color","rgba(0, 0, 0, 0.3)"),this.panelNewTop=this.panelOrgTop},showEnvTipsFn:function(){var t=Object(Q["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.showEnvTips=!0,e=this.agent.shareWxQrCode,this.wx_aqr_code=e;case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),toWebSite:function(){this.fromShiPin||(location.href="https://www.4dkankan.com")}}},fn=pn,vn=(n("b365"),Object(y["a"])(fn,me,ge,!1,null,"162d23af",null)),mn=vn.exports,gn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},[n("div",{staticClass:"panel color"},[n("div",{staticClass:"swiper-container"},[n("div",{staticClass:"swiper-wrapper"},t._l(t.labels,(function(e,o){return n("div",{key:o,staticClass:"swiper-slide",on:{click:function(e){return t.onPlayFrame(o)}}},[n("span",[t._v(t._s(e.label))]),n("div",{staticClass:"progress"})])})),0)]),n("div",{staticClass:"back",on:{click:function(e){return t.onBack()}}},[n("i",{staticClass:"iconfont iconCombinedShape"})])])])},wn=[],_n=n("ff11");function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function yn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(n),!0).forEach((function(e){Object(f["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Cn,Pn,On,xn=0,kn={components:{AgentInfo:Re,AgentCard:ze},data:function(){return{agent:{},showAgentInfo:!1,showAgentCard:!1}},computed:yn({},Object(v["b"])({medias:"guide/medias",status:"guide/status",labels:"guide/roomLabels"})),created:function(){var t=this;this.$parent.getAgent().then((function(e){t.agent=e})),Pn||(this.$bus.on("vrhouse/guide/pause",(function(){t.onBack()})),Pn=!0)},mounted:function(){var t=this;this.$nextTick((function(){Cn=new Swiper(t.$el.querySelector(".swiper-container"),{slidesPerView:"auto",centeredSlides:!0,spaceBetween:12}),t.init()})),this.$bus.emit("vrhouse/minmap",!1)},destroyed:function(){this.$bus.emit("vrhouse/minmap",!0),this.timer&&ln["a"].cancel(this.timer),R["play"].pause(),Cn.destroy(!0,!1),Cn=null},methods:{init:function(){var t="soundsync"===this.status.audio?"sync":this.status.audio;if(_n["a"].pause(),this.medias.links[t]){var e=this,n=function(){Object(_n["b"])((function(){_n["c"].play(),setTimeout((function(){_n["c"].stop(),e.onPlayFrame(null)}),50)}))},o=function(){e.onPlayFrame(null)};_n["c"].setSRC(this.$config.getPublishResource(this.medias.links[t])),_n["c"].on("loaded",n),_n["c"].on("error",o),this.$once("hook:beforeDestroy",(function(){_n["c"].off("loaded",n),_n["c"].off("error",o)}))}else this.onPlayFrame(null)},onPlayFrame:function(t,e){var n=this;this.timer&&ln["a"].cancel(this.timer),$(this.$el).find(".progress").css("width",0),null===t?t=xn:xn=t;var o=this.labels[t],s=function(){var e=parseInt(1e3*Number(o.cTime).toFixed(3)),s=n.$el.querySelector(".swiper-slide-active .progress");n.timer=ln["a"].start((function(e){1==e?(s.style.width="100%",Cn.isEnd?(xn=0,setTimeout((function(){n.onBack(!0)}),500)):(Cn.slideNext(),n.onPlayFrame(t+1,!0))):s.style.width=100*e+"%"}),e)};e?s():(Cn.slideTo(t,100,!1),R["play"].pause(),R["play"].chooseFragment(o.index,0,(function(){R["play"].start(),s()})))},onShowAgetnInfo:function(t,e){this.showAgentInfo=t,"card"==e&&(this.showAgentCard=!0)},onShowAgentCard:function(t){this.showAgentCard=t},onBack:function(t){this.$parent.guideState=t?"讲解":"继续",this.$parent.setPage("Home")}}},jn=kn,Sn=(n("4302"),Object(y["a"])(jn,gn,wn,!1,null,"294d0911",null)),En=Sn.exports,$n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},[n("div",{staticClass:"panel",style:{top:null==t.panelNewTop?null:t.panelNewTop+"px"},on:{mousemove:function(t){t.preventDefault()},touchmove:function(t){t.preventDefault()}}},[n("div",{staticClass:"area contact color",class:{sync:!t.sync}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!1===t.sync,expression:"sync===false"}],staticClass:"tips"},[t._v(t._s("agent"==t.role?"客户已离开":"讲解员正在赶来的路上"))]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.sync&&"customer"==t.role,expression:"sync && role == 'customer'"}],staticClass:"tips-white"},[n("transition",{attrs:{name:"custom-classes-transition","leave-active-class":"animated fadeOut slow"}},[0==t.tips.t1.show?n("div",{class:{hide:t.tips.t1.show}},[t._v(t._s(t.tips.t1.text))]):t._e()]),n("transition",{attrs:{name:"custom-classes-transition","leave-active-class":"animated fadeOut slow"}},[0==t.tips.t2.show?n("div",{class:{hide:t.tips.t2.show}},[t._v(t._s(t.tips.t2.text))]):t._e()])],1),n("div",{staticClass:"avatars"},[n("div",{staticClass:"avatar",class:{disable:!t.sync&&"customer"!=t.role},style:{"background-image":"url("+(t.agent.userAvatarUrl||t.$config.getPublishResource("v3/img/apps/vrhouse/avatar_default.jpg"))+")"}},[n("span",[t._v(t._s("agent"==t.role?"客户":"我"))])]),n("div",{staticClass:"avatar",class:{disable:!t.sync&&"agent"!=t.role},style:t.agent.guideAvatarUrl&&{"background-image":"url("+t.agent.guideAvatarUrl+")"},on:{click:function(e){return t.onShowAgetnInfo(!0)}}},[n("span",[t._v(t._s("agent"==t.role?"我":t.agent.guideName))])])]),"agent"==t.role?n("div",{staticClass:"features"}):t._e(),n("div",{staticClass:"button",on:{click:function(e){return t.onExit()}}},[n("div",[n("span",{directives:[{name:"show",rawName:"v-show",value:t.time>-1,expression:"time>-1"}]},[t._v(t._s(t._f("timeFormat")(t.time)))]),n("span",[t._v("结束")])])])])]),t.showAgentInfo?n("agent-info",{attrs:{agent:t.agent},on:{close:t.onShowAgetnInfo}}):t._e(),t.showAgentCard?n("agent-card",{attrs:{agent:t.agent},on:{close:function(e){return t.onShowAgentCard(!1)}}}):t._e(),t.showDelegation?n("UserDelegation",{attrs:{"user-id":t.userId,"agent-id":t.agent.guideId},on:{close:function(e){t.showDelegation=!1}}}):t._e(),t.showUserPhone?n("UserPhone",{attrs:{phone:t.userinfo.user_phone},on:{close:function(e){t.showUserPhone=!1}}}):t._e(),t.showHouseList?n("house-list",{attrs:{sync:t.sync,list:t.recommendList,index:t.houseIndex},on:{close:function(e){return t.onShowHouseList(!1)}}}):t._e(),n("draw-panel"),n("x-window",{attrs:{show:t.showExitTips,"show-close":!1}},[n("div",{staticClass:"exit-tips"},[n("h4",[t._v("操作提示")]),n("div",[t._v("是否确认退出云带看?")]),n("button",{attrs:{type:"button"},on:{click:function(e){return t.onExit(!1)}}},[t._v("再看看")]),n("button",{attrs:{type:"submit"},on:{click:function(e){return t.onExit(!0)}}},[t._v("确认")])])])],1)},In=[],Tn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("x-window",{attrs:{show:!0},on:{close:function(e){return t.$emit("close")}}},[n("div",{staticClass:"swiper-container"},[n("div",{staticClass:"swiper-wrapper"},t._l(t.list,(function(e,o){return n("div",{key:o,staticClass:"swiper-slide"},[n("div",{staticClass:"house-info"},[n("div",{staticClass:"preview"},[n("img",{attrs:{src:e.houseTypeImages,alt:""}})]),n("div",{staticClass:"info"},[n("div",{staticClass:"description"},[n("div",{staticClass:"price"},[n("div",{staticClass:"state"},[n("i",[t._v("约"+t._s(t._f("float")(e.houseReferencePrice/1e4))+"万")]),n("label",[t._v(t._s(t.getSale(e)))])]),n("div",{staticClass:"area"},[t._v(t._s(e.houseType)+"/"+t._s(e.houseOrientation)+"/建面"+t._s(e.houseArea)+"㎡")])]),n("a",{directives:[{name:"show",rawName:"v-show",value:"agent"==t.role,expression:"role=='agent'"}],class:{disable:!t.sync},attrs:{href:"javascript:;"},on:{click:function(n){return t.gotoLink(e.sceneNum)}}},[t._v("云带看")])])])])])})),0)])])},An=[],Dn={props:{list:Array,sync:Boolean,index:Number},data:function(){return{role:O["e"]}},watch:{index:function(){-1!=this.index&&On.slideTo(this.index)}},components:{XWindow:Ae},mounted:function(){var t=this;this.$nextTick((function(){var e;On=new Swiper(t.$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(){e?Object(O["a"])({role:O["e"],name:"houseIndex",data:{index:this.activeIndex}}):e=!0}}}),-1!=t.index&&On.slideTo(t.index)}))},methods:{gotoLink:function(t){Object(O["a"])({role:O["e"],name:"houseLink",data:t})},getSale:function(t){var e="在售";return-1==t.sale_state?e="初始":2==t.sale_state&&(e="已出售"),e}}},Vn=Dn,Un=(n("089b"),Object(y["a"])(Vn,Tn,An,!1,null,"0d40d3b9",null)),Rn=Un.exports,Nn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("x-window",{attrs:{show:!0},on:{close:function(e){return t.$emit("close")}}},[n("div",{staticClass:"delegation"},[n("div",{staticClass:"content"},[n("h4",[t._v("委托服务")]),n("div",{staticClass:"tips"},[t._v("为方便提供服务,您是否同意委托当前讲解员为您找房?")]),n("div",{staticClass:"split"},[t._v("- 同意后您将获得 -")]),n("div",{staticClass:"list"},[n("ul",[n("li",[t._v("· 快速政策咨询")]),n("li",[t._v("· 优质房源推荐")]),n("li",[t._v("· 详细政策解读")]),n("li",[t._v("· 预约实地带看")])])]),n("button",{staticClass:"btn-contact",on:{click:t.onAgree}},[t._v("同意委托")]),n("div",{staticClass:"split"},[t._v("同意后将会与您电话联系")])])])])},Hn=[],Ln={props:{userId:String,agentId:String},components:{XWindow:Ae},methods:{onAgree:function(){var t=this;Object(dt["d"])({user_id:this.userId,agency_user_id:this.agentId}).done((function(e){0==e.code?(Object(O["a"])({name:"delegation"}),t.$tips({content:"授权成功"}),t.$emit("close")):t.$alert({content:"授权失败"})})).fail((function(){t.$alert({content:"授权失败"})}))}}},Mn=Ln,qn=(n("1151"),Object(y["a"])(Mn,Nn,Hn,!1,null,"679dc747",null)),zn=qn.exports,Qn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("x-window",{attrs:{show:!0},on:{close:function(e){return t.$emit("close")}}},[n("div",{staticClass:"user-phone"},[n("div",{staticClass:"content"},[n("h4",[t._v(t._s(t.phone))]),n("button",{staticClass:"btn-contact",on:{click:t.onCall}},[n("i",{staticClass:"iconfont iconscene_call"}),t._v("联系客户\n ")])])])])},Bn=[],Wn={props:{phone:String},components:{XWindow:Ae},methods:{onCall:function(){window.location.href="tel:".concat(this.phone)}}},Fn=Wn,Gn=(n("221c"),Object(y["a"])(Fn,Qn,Bn,!1,null,"5b39d15a",null)),Jn=Gn.exports,Xn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"paint"},[n("canvas",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],ref:"canvas"}),n("div",{staticClass:"toolbar"},[n("ul",[n("li",{directives:[{name:"show",rawName:"v-show",value:0==t.show,expression:"show == false"}],on:{click:function(e){return t.onDraw("drawStart")}}},[n("i",{staticClass:"iconfont icontagging"}),n("div",[t._v("画笔")])]),t.show?n("li",{class:{disable:!t.canUndo},on:{click:function(e){return t.onDraw("drawUndo")}}},[n("i",{staticClass:"iconfont icon_cancel"}),n("div",[t._v("撤回")])]):t._e(),t.show?n("li",{on:{click:function(e){return t.onDraw("drawStop")}}},[n("i",{staticClass:"iconfont iconclose"}),n("div",[t._v("关闭")])]):t._e()])])])},Kn=[],Yn=n("bc19"),Zn=n("4c16"),to={data:function(){return{show:!1,canUndo:!1,colorA:"#02c8ae",colorB:"#2e98fe"}},created:function(){var t=this;this.$bus.on("vrhouse/socket/action",(function(e,n,o){if("drawStart"==e)t.show=!0,t.draw=[],t.drawHistory=[],t.$nextTick((function(){t.onDrawStart()}));else if("drawStop"==e)t.show=!1,t.draw=null,t.drawHistory=null;else if("drawing"==e){var s=t.transformTo2d(n.content.drawing);n.role!=O["e"]&&(t.drawHistory.push(JSON.parse(JSON.stringify(s))),t.drawing(s))}else"drawUndo"==e&&t.drawUndo(o)}))},mounted:function(){var t,e=this;this.canvas=this.$refs.canvas,this.context=this.canvas.getContext("2d"),this.canvas.onmousedown=function(t){e.show&&(t.preventDefault(),e.beginStroke({x:t.clientX,y:t.clientY}))},this.canvas.onmouseup=function(t){e.show&&(t.preventDefault(),e.endStroke())},this.canvas.onmouseout=function(t){e.show&&(t.preventDefault(),e.endStroke())},this.canvas.onmousemove=function(t){e.show&&(t.preventDefault(),e._mouseDown&&e.moveStroke({x:t.clientX,y:t.clientY}))},this.canvas.addEventListener("touchstart",(function(n){e.show&&(n.preventDefault(),t=n.touches[0],e.beginStroke({x:t.pageX,y:t.pageY}))})),this.canvas.addEventListener("touchmove",(function(n){e.show&&(n.preventDefault(),e._mouseDown&&(t=n.touches[0],e.moveStroke({x:t.pageX,y:t.pageY})))})),this.canvas.addEventListener("touchend",(function(t){e.show&&(t.preventDefault(),e.endStroke())})),this.mouse=new THREE.Vector2},methods:{transformTo3d:function(t){var e=this,n=[];return 0==t.length?[]:(t.forEach((function(t,o){Yn["a"].convertScreenPositionToNDC(t.x,t.y,e.mouse);var s=Zn["a"].getMouseIntersect(G["objects"].player.camera,[e.intersectPlane],e.mouse);s?(t.pos3d=s.point,n.push(t)):console.error("no intersect ??")})),n)},transformTo2d:function(t){var e=[];return t.forEach((function(t){var n=new THREE.Vector3(t.pos3d.x,t.pos3d.y,t.pos3d.z),o=Zn["a"].getPos2d(n,G["objects"].player.camera);t.x=o.pos.x,t.y=o.pos.y,e.push(t)})),e},onDraw:function(t){Object(O["a"])({name:t,data:O["e"]})},onPainting:function(){var t=this.transformTo3d(this.draw);this.drawHistory.push(JSON.parse(JSON.stringify(t))),Object(O["c"])(t),this.draw=[],this.canUndo=!0,this._endTime=0,this._mouseDown=!1,this._lastTimestamp=0},beginStroke:function(t){this._mouseDown=!0,this._lastTimestamp=Date.now(),this._lastPosition=this.windowToCanvas(t.x,t.y),this.draw.push({role:O["e"],width:0,x:this._lastPosition.x,y:this._lastPosition.y,t:5})},onDrawStart:function(){var t=window.devicePixelRatio||1,e=this.canvas.getBoundingClientRect();this.ratio=1,this.canvas.width=e.width*t,this.canvas.height=e.height*t,this.context.scale(t,t),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},Yn["a"].convertScreenPositionToNDC(0,0,this.mouse);var n=Zn["a"].getMouseIntersect(G["objects"].player.camera,[G["objects"].model.skybox,G["objects"].sceneRenderer.scene.skyboxBG],this.mouse);this.placeIntersectPlane(n&&n.point)},moveStroke:function(t){var e=Date.now(),n=this.windowToCanvas(t.x,t.y),o=this.calcDistance(n,this._lastPosition),s=e-this._lastTimestamp,i=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:O["e"],width:i,x:n.x,y:n.y,t:5}),this.context.strokeStyle=this.colorA,this.context.lineWidth=i,this.context.lineCap="round",this.context.linJoin="round",this.context.stroke(),this._lastPosition=n,this._lastTimestamp=e,this._lastLineWidth=i},endStroke:function(){this.draw.push({role:O["e"],width:0,x:this._lastPosition.x,y:this._lastPosition.y,t:0}),this.onPainting(),this._mouseDown=!1,this._endTime=Date.now()},calcLineWidth:function(t,e){var n,o=e/t;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(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))},windowToCanvas:function(t,e){var n=this.canvas.getBoundingClientRect();return{x:Math.round(t-n.left),y:Math.round(e-n.top)}},drawing:function(t){for(var e=this,n=function(n){t[n].t&&setTimeout((function(){e.context.beginPath(),e.context.strokeStyle=t[n].role==O["e"]?e.colorA:e.colorB,e.context.moveTo(t[n].x*e.ratio,t[n].y*e.ratio),e.context.lineTo(t[n+1].x*e.ratio,t[n+1].y*e.ratio),e.context.lineWidth=t[n].width*e.ratio,e.context.lineCap="round",e.context.linJoin="round",e.context.stroke()}),5)},o=0;o<t.length-1;o++)n(o)},drawUndo:function(t){var e=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==t){this.drawHistory.splice(n,1);break}this.drawHistory.forEach((function(t){for(var n=0;n<t.length-1;n++)t[n].t&&(e.context.beginPath(),e.context.strokeStyle=t[n].role==O["e"]?e.colorA:e.colorB,e.context.moveTo(t[n].x*e.ratio,t[n].y*e.ratio),e.context.lineTo(t[n+1].x*e.ratio,t[n+1].y*e.ratio),e.context.lineWidth=t[n].width*e.ratio,e.context.lineCap="round",e.context.linJoin="round",e.context.stroke())})),this.canUndo=this.drawHistory.some((function(t){return t[0].role==O["e"]}))},placeIntersectPlane:function(t){if(!this.intersectPlane){var e=new THREE.PlaneGeometry(8e3,8e4,1,1);this.intersectPlane=new THREE.Mesh(e,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",G["objects"].model.add(this.intersectPlane)}if(t){this.intersectPlane.position.copy(t);var n=G["objects"].player.getDirection(null,G["objects"].player.camera);this.intersectPlane.lookAt(t.clone().add(n))}}}},eo=to,no=(n("4144"),Object(y["a"])(eo,Xn,Kn,!1,null,"15223a94",null)),oo=no.exports,so={components:{AgentInfo:Re,AgentCard:ze,XWindow:Ae,DrawPanel:oo,HouseList:Rn,UserDelegation:zn,UserPhone:Jn},data:function(){return{sync:null,time:-1,role:x["a"].urlQueryValue("role"),houseId:0,houseIndex:-1,panelOrgTop:0,panelNewTop:null,panelOpacity:.3,showAgentInfo:!1,showAgentCard:!1,showExitTips:!1,showHouseList:!1,agent:{},recommendList:[],userId:null,userinfo:null,showDelegation:!1,showUserPhone:!1,tips:{t1:{show:null,text:"您可以让讲解员为您讲解展品详情和优惠情况~"},t2:{show:null,text:"对展品有任何疑问也可以随时进行咨询~"}}}},watch:{sync:function(){var t=this;this.sync&&null==this.tips.t1.show&&this.$nextTick((function(){t.tips.t1.show=!1,setTimeout((function(){t.tips.t1.show=!0,t.tips.t2.show=!1,setTimeout((function(){t.tips.t2.show=!0}),5e3)}),6e3)}))}},created:function(){var t=this;this.$parent.isReady?this.$bus.emit("flag/hidden"):this.$bus.on("ready",(function(){t.$bus.emit("flag/hidden")})),this.$parent.getAgent().then((function(e){if(t.agent=e,"customer"===t.role){var n="".concat(location.href.split("?")[0],"?m=").concat(t.$config.projectNum,"&role=agent&room_id=").concat(x["a"].urlQueryValue("room_id"),"&user_id=").concat(t.agent.guideId);n=encodeURIComponent(n),Object(a["e"])({link:n,guide_id:t.agent.guideId,user_id:x["a"].urlQueryValue("user_id"),terminal_type:"customer"}).then((function(t){console.log(t)}))}Object(O["d"])()})),this.$parent.getHouseRecommend().then((function(e){t.recommendList=e||[]}));var e=this;function n(t){e.resetPanel()}function o(t,n,o){"sync"==t?e.sync=n:"close"==t?(Object(O["b"])(),e.sync=!1,e.$parent.setPage("home")):"houseList"==t?(e.showHouseList=n.show,n.show?e.houseIndex=n.index:e.houseIndex=-1):"houseIndex"==t?e.role!=n.role&&(e.houseIndex=n.index):"houseLink"==t?window.location.replace(window.location.href.toString().replace(/(m=)([^&]*)/gi,"m="+n).replace("&vr=1","")+"&vr=1"):"time"==t?e.time=n:"operation-tips"==t?e.$tips({duration:3e3,content:"对方操作中,如您需要操作<br>请语音与对方联系"}):"userId"==t?e.userId=n:"delegation"==t&&o!=e.role&&("customer"==e.role?e.showDelegation=!0:e.role)}this.$once("hook:beforeDestroy",(function(){t.$bus.off("vrhouse/main/hide",n),t.$bus.off("vrhouse/socket/action",o)})),this.$bus.on("vrhouse/main/hide",n),this.$bus.on("vrhouse/socket/action",o)},beforeDestroy:function(){Object(O["b"])()},mounted:function(){},methods:{onCallAgent:function(t){window.location.href="tel:400-0000-688"},onShowHouseList:function(t,e){Object(O["a"])({role:this.role,name:"houseList",data:{show:t,index:e}}),this.resetPanel()},onShowAgetnInfo:function(t,e){this.showAgentInfo=t,"card"==e&&(this.showAgentCard=!0),t&&this.resetPanel()},onShowAgentCard:function(t){this.showAgentCard=t},onShowHouseInfo:function(t){t>0&&$(this.$el.querySelector(".panel")).find(".color").css("background-color","rgba(0, 0, 0, 0.3)"),this.houseId=t,this.panelNewTop=this.panelOrgTop},onExit:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===t?this.showExitTips=!0:t?Object(O["a"])("close"):this.showExitTips=!1},resetPanel:function(){}}},io=so,ao=(n("a913"),Object(y["a"])(io,$n,In,!1,null,"d591fffc",null)),ro=ao.exports;function co(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function lo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?co(Object(n),!0).forEach((function(e){Object(f["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var uo={components:{VR:ve,Home:mn,Guide:En,VRHouse:ro},data:function(){return{isReady:!1,role:x["a"].urlQueryValue("role"),userId:x["a"].urlQueryValue("user_id"),page:"agent"==x["a"].urlQueryValue("role")||x["a"].urlQueryValue("vr")?"VRHouse":"Home",guideState:"讲解"}},computed:lo({},Object(v["b"])({player:"player"})),created:function(){var t=this;this.$bus.on("ready",(function(){return t.isReady=!0}))},methods:{setPage:function(t){console.log(this.page),this.page=t},getAgent:function(){var t=Object(Q["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.agent){t.next=2;break}return t.abrupt("return",Promise.resolve(this.agent));case 2:return t.next=4,this.$parent.getDisplayInfo();case 4:return this.agent=t.sent,console.log(this.agent,"this.agent"),t.abrupt("return",Promise.resolve(this.agent));case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getHouseRecommend:function(){var t=Object(Q["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.recommendList){t.next=2;break}return t.abrupt("return",Promise.resolve(this.recommendList));case 2:return t.next=4,this.$parent.getDisplayInfo();case 4:return e=t.sent,e.recommendHouses&&(this.recommendList=JSON.parse(e.recommendHouses)),t.abrupt("return",Promise.resolve(this.recommendList));case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}},ho=uo,po=(n("0576"),Object(y["a"])(ho,le,ue,!1,null,null,null)),fo=po.exports,vo={name:"vr-kanzhan",components:{Player:M,AppHeader:ce,AppMain:fo},data:function(){return{show:!1,role:x["a"].urlQueryValue("role"),userId:x["a"].urlQueryValue("user_id"),showPage:""}},created:function(){var t=this;this.$bus.on("loaded",(function(){t.getDisplayInfo().then((function(){t.show=!0}))})),this.$bus.on("kankan/changepage",(function(e){t.showPage=e}))},methods:{getDisplayInfo:function(){var t=this;return this.companyInfo?Promise.resolve(this.companyInfo):Object(a["d"])({terminal_type:this.role,user_id:this.userId}).fail((function(e){t.$tips({content:"获取看展信息失败"})})).then((function(e){0==e.code?(t.companyInfo=e.data.company,window._openInfo=t.companyInfo,t.companyInfo.guideAvatarUrl||(t.companyInfo.guideAvatarUrl=t.$config.getPublishResource("v3/img/apps/vrhouse/avatar_default.jpg"))):t.$tips({content:"获取看展信息失败<br>".concat(e.msg)})}))}}},mo=vo,go=(n("cb0c"),n("f20f4"),Object(y["a"])(mo,s,i,!1,null,null,null));e["default"]=go.exports},"28fc":function(t,e,n){},2994:function(t,e,n){"use strict";var o=n("b783"),s=n.n(o);s.a},"29b2":function(t,e,n){"use strict";var o;n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return i}));var s={Data:"jsondata",Send:"getJson",Connection:"connection",Disconnect:"disconnect"};function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=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||t.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||t.path;return o=io(n,{path:s||"/",query:e}),o}},"2a11":function(t,e,n){"use strict";var o=n("f2f4"),s=n.n(o);s.a},"2bf8":function(t,e,n){"use strict";var o=n("5556"),s=n.n(o);s.a},"3ac8":function(t,e,n){"use strict";var o=n("2149"),s=n.n(o);s.a},4123:function(t,e,n){},4144:function(t,e,n){"use strict";var o=n("168a"),s=n.n(o);s.a},4302:function(t,e,n){"use strict";var o=n("4123"),s=n.n(o);s.a},"453f":function(t,e,n){},"4a77":function(t,e,n){},5556:function(t,e,n){},"5acc":function(t,e,n){"use strict";var o=n("090c"),s=n.n(o);s.a},"61b6":function(t,e,n){"use strict";var o=n("453f"),s=n.n(o);s.a},"6c8a":function(t,e,n){},"6f4c":function(t,e,n){"use strict";var o=n("ad4e"),s=n.n(o);s.a},7558:function(t,e,n){},7616:function(t,e,n){"use strict";var o=n("c262"),s=n.n(o);s.a},7754:function(t,e,n){"use strict";var o=n("d4b3"),s=n.n(o);s.a},"7ece":function(t,e,n){},"85d3":function(t,e,n){"use strict";var o=n("8a02"),s=n.n(o);s.a},"8a02":function(t,e,n){},"8a0a":function(t,e,n){},"8ce1":function(t,e,n){},"8e26":function(t,e,n){"use strict";var o=n("4a77"),s=n.n(o);s.a},"909a":function(t,e,n){"use strict";var o=n("ac4c"),s=n.n(o);s.a},"97f7":function(t,e,n){"use strict";var o=n("8ce1"),s=n.n(o);s.a},"9a39":function(t,e,n){"use strict";n.d(e,"e",(function(){return v})),n.d(e,"d",(function(){return P})),n.d(e,"b",(function(){return O})),n.d(e,"a",(function(){return x})),n.d(e,"c",(function(){return k}));var o=n("53ca"),s=(n("7f7f"),n("ac6a"),n("6b54"),n("c75e")),i=n("617a"),a=n("c7b2"),r=n("80c5"),c=n("eb02"),l=n("29b2"),u=null,d=!1,h=null,p=null,f=null,v=i["a"].urlQueryValue("role"),m=i["a"].urlQueryValue("user_id"),g=i["a"].urlQueryValue("room_id");function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";u.emit(e||l["a"].Send,{role:v,roomId:g,userId:m,content:t})}function _(t){if(null==h)return b(t),!1;if(h.mode!=t.mode)return b(t),!1;if(h.mode==r["a"].PANORAMA)return!!h.qua.equals(t.qua)||(b(t),!1);if(h.mode==r["a"].DOLLHOUSE){var e=!0;return t.qua&&h.qua&&(h.qua.equals(t.qua)||(e=!1)),t.pos&&h.pos&&(h.pos.equals(t.pos)||(e=!1)),t.target&&h.target&&(h.target.equals(t.target)||(e=!1)),h.zoom&&(h.zoom.equals(t.zoom)||(e=!1)),e||b(t),e}var n=!0;return h.qua.equals(t.qua)?(h.pos&&(h.pos.equals(t.pos)||(n=!1)),h.zoom&&h.zoom!=t.zoom&&(n=!1)):n=!1,n||b(t),n}function b(t){h={},h.mode=t.mode,t.pos&&(h.pos=new THREE.Vector3,h.pos.set(t.pos.x,t.pos.y,t.pos.z)),t.qua&&(h.qua=new THREE.Quaternion,h.qua.set(t.qua._x,t.qua._y,t.qua._z,t.qua._w)),t.target&&(h.target=new THREE.Vector3,h.target.set(t.target.x,t.target.y,t.target.z)),t.zoom&&(h.zoom=t.zoom)}function y(){var t=c["a"].getters["scene/metadata"],e=0;t.entry&&(e=t.entry.pano);var n=new THREE.Quaternion;t.entry&&t.entry.camera&&(n=t.entry.camera.quaternion),C(e,n)}function C(t,e){if(a["app"].player.mode!=r["a"].PANORAMA||t!=a["app"].player.currentPano.id){var n;n=e instanceof Array?(new THREE.Quaternion).fromArray(e):(new THREE.Quaternion).set(e._x,e._y,e._z,e._w);var o={mode:r["a"].PANORAMA,pano:t,qua:n};isNaN(o.qua.x)&&console.log("NaN??????"),a["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:i["a"].urlQueryValue("m"),customContent:window._houseInfo?window._houseInfo.customContent:""}),u.on(l["a"].Connection,(function(t){console.log(t)})),u.on(l["a"].Disconnect,(function(){a["app"].play.control.onUpdate=!0,d=!1,!1,!1,p&&clearInterval(p),f&&clearInterval(f)})),u.on("vr_request",(function(t){p&&clearInterval(p),f&&clearInterval(f),d=!1,!1,!1;var e=!1,n=!1;if(u.emit("startCall"),t.persons&&t.persons.forEach((function(t){"agent"==t.role?e=!0:"customer"==t.role&&(n=!0,s["a"].emit("vrhouse/socket/action","userId",t.userId))})),e&&n){y();var o=0,i=3;p=setInterval((function(){--i>=1?s["a"].emit("player/counting",i):(s["a"].emit("player/counting",0),d=!0,a["app"].play.control.onUpdate=!1,"agent"==v&&!0,"customer"==v&&!0,clearInterval(p),f=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",i),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(t){t&&("string"===typeof t?s["a"].emit("vrhouse/socket/action",t):s["a"].emit("vrhouse/socket/action",t.name,t.data,t.role))})),u.on("vr_response",(function(t){if(t.content.drawing)s["a"].emit("vrhouse/socket/action","drawing",t);else if(d&&a["app"].player.cameraControls.activeControl){if(t.role==v)return;if("undefined"!=typeof t.content.onUpdate&&(a["app"].play.control.onUpdate=t.content.onUpdate,console.log(a["app"].play.control.onUpdate),"agent"!=v||a["app"].play.control.onUpdate||s["a"].emit("vrhouse/socket/action","operation-tips")),"undefined"!=typeof t.content.scale&&(a["app"].player.cameraControls.activeControl.absoluteScale=t.content.scale,a["app"].player.cameraControls.activeControl.updateZoom()),a["app"].play.control.onUpdate)return;if(t.content.item){if(_(t.content.item))return;(t.content.item.mode!=a["app"].player.mode||t.content.item.mode==a["app"].player.mode&&t.content.item.mode==r["a"].PANORAMA)&&C(t.content.item.pano,t.content.item.qua),a["app"].player.copyCameraProp(a["app"].player.cameraControls.activeControl,t.content.item),a["app"].player.adjustControlAngel()}else if(t.content.toPano)t.content.toPano.pano=a["app"].player.model.panos.get(t.content.toPano.panoId),a["app"].player.adjustControlAngel({target:new THREE.Vector3(a["app"].player.cameraControls.activeControl.target.x,a["app"].player.cameraControls.activeControl.target.y,a["app"].player.cameraControls.activeControl.target.z)}),a["app"].player.currentPano.id!=t.content.toPano&&a["app"].player.flyToPano(t.content.toPano);else if(t.content.newModeInfo){if(t.content.newModeInfo.panoId&&(t.content.newModeInfo.pano=a["app"].player.model.panos.get(t.content.newModeInfo.panoId)),t.content.newModeInfo.quaternion){var e=t.content.newModeInfo.quaternion;t.content.newModeInfo.quaternion=new THREE.Quaternion,t.content.newModeInfo.quaternion.set(e._x,e._y,e._z,e._w)}a["app"].player.flyToNewMode(t.content.newModeInfo)}else console.warn(t)}})))}function O(){f&&clearInterval(f),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 x(t){u&&("object"===Object(o["a"])(t)&&(t.role=v),w({action:t}))}function k(t){w({drawing:t})}a["app"].player.cameraControls.on("vr_freedom",(function(t){d&&!a["app"].play.control.onUpdate&&(u.emit(l["a"].Send,{role:v,roomId:g,userId:m,content:{onUpdate:!1}}),a["app"].play.control.onUpdate=!0)})),a["app"].player.on("vr_Rotate",(function(t){if(d){var e={};e.qua=t.quaternion,e.mode=t.mode,e.pos=t.position,t.cameraControls.activeControl.currentScale&&(e.zoom=t.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),e.type="Rotate",_(e)||(t.mode==r["a"].PANORAMA?e.pano=t.currentPano.id:t.mode==r["a"].FLOORPLAN&&(e.pos=(new THREE.Vector3).set(t.position.x,t.position.y,t.position.z),e.zoom=t.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),t.cameraControls.activeControl.target&&(e.pos=t.position,e.target=t.cameraControls.activeControl.target),a["app"].play.control.onUpdate&&u.emit(l["a"].Send,{role:v,roomId:g,userId:m,content:{item:e}}))}})),a["app"].player.on("vr_Zoom",(function(t){if(d){var e=t.cameraControls.activeControl.absoluteScale;u.emit(l["a"].Send,{role:v,roomId:g,userId:m,content:{scale:e}})}})),a["app"].player.on("vr_FlyToPano",(function(t){d&&(t.socketed=!0,u.emit(l["a"].Send,{role:v,roomId:g,userId:m,content:{toPano:t}}),console.log("flytopano"+t.toString()))})),a["app"].player.on("vr_FlyToNewMode",(function(t){d&&(t.socketed=!0,u.emit(l["a"].Send,{role:v,roomId:g,userId:m,content:{newModeInfo:t}}),a["app"].play.control.onUpdate=!1)})),s["a"].on("vrhouse/painting",(function(t){u.emit(l["a"].Send,{role:v,roomId:g,userId:m,content:{drawing:t}})}))},a913:function(t,e,n){"use strict";var o=n("19e2"),s=n.n(o);s.a},ab9e:function(t,e,n){},ac4c:function(t,e,n){},ad4e:function(t,e,n){},adfa:function(t,e,n){},b140:function(t,e,n){},b365:function(t,e,n){"use strict";var o=n("7558"),s=n.n(o);s.a},b677:function(t,e,n){"use strict";var o=n("069f"),s=n.n(o);s.a},b783:function(t,e,n){},b80a:function(t,e,n){},bcb7:function(t,e,n){"use strict";var o=n("d5f4"),s=n.n(o);s.a},bf4a:function(t,e,n){"use strict";var o=n("11cc"),s=n.n(o);s.a},c241:function(t,e,n){"use strict";var o=n("b80a"),s=n.n(o);s.a},c262:function(t,e,n){},c3e7:function(t,e,n){"use strict";var o=n("cd1b"),s=n.n(o);s.a},ca3b:function(t,e,n){},cd1b:function(t,e,n){},d4b3:function(t,e,n){},d5f4:function(t,e,n){},da3e:function(t,e,n){"use strict";var o=n("28fc"),s=n.n(o);s.a},e460:function(t,e,n){"use strict";var o=n("b140"),s=n.n(o);s.a},eca3:function(t,e,n){"use strict";n.d(e,"e",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return h})),n.d(e,"c",(function(){return p}));n("8e6e"),n("ac6a"),n("456d");var o=n("ade3"),s=n("b775"),i=n("f121");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c="";function l(t){return s["a"].postJson(c+"app/feedback/add",t)}function u(t){return s["a"].get(c+"app/agency/customer/detail",t)}function d(t){return s["a"].get(c+"app/user/delegation",t)}function h(t){return s["a"].get("4dage/getHouseInfo",r({scene_code:i["a"].projectNum},t))}function p(t,e,n){var o=r({scene_code:i["a"].projectNum},t);return s["a"].get("4dage/wxSubscribe",o,e,n)}},f20f4:function(t,e,n){"use strict";var o=n("ab9e"),s=n.n(o);s.a},f2f4:function(t,e,n){},fecd:function(t,e,n){"use strict";n.d(e,"d",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"f",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"c",(function(){return p}));n("8e6e"),n("ac6a"),n("456d");var o=n("ade3"),s=n("b775"),i=n("f121");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return s["a"].get("4dage/kanzhan/getCompanyBySceneNum",r({sceneNum:i["a"].projectNum},t),e,n)}function l(t,e,n){return s["a"].get("4dage/kanzhan/getCompanyBySceneNum",r({sceneNum:i["a"].projectNum},t),e,n)}function u(t,e,n){return s["a"].get("/4dage/kanzhan/exchangeVisitCard",t,e,n)}function d(t,e,n){return s["a"].postForm("https://vrhouse2.4dkankan.com/node-upload/uploadfile",t,e,n)}function h(t,e,n){var o=r({scene_code:i["a"].projectNum},t);return s["a"].get("/4dage/kanzhan/wxSubscribe",o,e,n)}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return t.pageNum=t.pageNum||1,t.pageSize=t.pageSize||10,s["a"].get("4dage/kanzhan/getCompanyList",t,e,n)}}}]);