1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1466078e"],{"0241":function(t,e,n){"use strict";var o=n("0fb6"),a=n.n(o);a.a},"061d":function(t,e,n){},"0fb6":function(t,e,n){},1916:function(t,e,n){"use strict";var o=n("b9c9"),a=n.n(o);a.a},"1d93":function(t,e,n){"use strict";var o=n("99fc"),a=n.n(o);a.a},"1fb7":function(t,e,n){"use strict";var o=n("598d"),a=n.n(o);a.a},"21d8":function(t,e,n){},"22c9":function(t,e,n){"use strict";var o=n("061d"),a=n.n(o);a.a},"272c":function(t,e,n){},"29b2":function(t,e,n){"use strict";var o;n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i}));var a={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,a=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:a||"/",query:e}),o}},"2c44":function(t,e,n){},"3c87":function(t,e,n){"use strict";var o=n("72dc"),a=n.n(o);a.a},"3d34":function(t,e,n){"use strict";var o=n("f0f0"),a=n.n(o);a.a},"3fb0":function(t,e,n){"use strict";var o=n("e6b3"),a=n.n(o);a.a},"3fbf":function(t,e,n){"use strict";var o=n("a027"),a=n.n(o);a.a},"40ae":function(t,e,n){},"40f9":function(t,e,n){"use strict";var o=n("40ae"),a=n.n(o);a.a},"4b37":function(t,e,n){"use strict";var o=n("640e"),a=n.n(o);a.a},"4b41":function(t,e,n){},"50b2":function(t,e,n){"use strict";var o=n("ad57"),a=n.n(o);a.a},5121:function(t,e,n){},"598d":function(t,e,n){},"5c49":function(t,e,n){"use strict";var o=n("21d8"),a=n.n(o);a.a},"5f39":function(t,e,n){"use strict";var o=n("cf68"),a=n.n(o);a.a},"640e":function(t,e,n){},"72dc":function(t,e,n){},"86db":function(t,e,n){},8803:function(t,e,n){"use strict";var o=n("faf0"),a=n.n(o);a.a},"99fc":function(t,e,n){},"9a39":function(t,e,n){"use strict";n.d(e,"e",(function(){return m})),n.d(e,"d",(function(){return C})),n.d(e,"b",(function(){return O})),n.d(e,"a",(function(){return E})),n.d(e,"c",(function(){return x}));var o=n("53ca"),a=(n("7f7f"),n("ac6a"),n("6b54"),n("c75e")),i=n("617a"),s=n("c7b2"),r=n("80c5"),c=n("eb02"),l=n("29b2"),u=null,p=!1,d=null,f=null,h=null,m=i["a"].urlQueryValue("role"),v=i["a"].urlQueryValue("user_id"),g=i["a"].urlQueryValue("room_id");function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";u.emit(e||l["a"].Send,{role:m,roomId:g,userId:v,content:t})}function w(t){if(null==d)return b(t),!1;if(d.mode!=t.mode)return b(t),!1;if(d.mode==r["a"].PANORAMA)return!!d.qua.equals(t.qua)||(b(t),!1);if(d.mode==r["a"].DOLLHOUSE){var e=!0;return t.qua&&d.qua&&(d.qua.equals(t.qua)||(e=!1)),t.pos&&d.pos&&(d.pos.equals(t.pos)||(e=!1)),t.target&&d.target&&(d.target.equals(t.target)||(e=!1)),d.zoom&&(d.zoom.equals(t.zoom)||(e=!1)),e||b(t),e}var n=!0;return d.qua.equals(t.qua)?(d.pos&&(d.pos.equals(t.pos)||(n=!1)),d.zoom&&d.zoom!=t.zoom&&(n=!1)):n=!1,n||b(t),n}function b(t){d={},d.mode=t.mode,t.pos&&(d.pos=new THREE.Vector3,d.pos.set(t.pos.x,t.pos.y,t.pos.z)),t.qua&&(d.qua=new THREE.Quaternion,d.qua.set(t.qua._x,t.qua._y,t.qua._z,t.qua._w)),t.target&&(d.target=new THREE.Vector3,d.target.set(t.target.x,t.target.y,t.target.z)),t.zoom&&(d.zoom=t.zoom)}function _(){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),P(e,n)}function P(t,e){if(s["app"].player.mode!=r["a"].PANORAMA||t!=s["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??????"),s["app"].player.flyToItem(o,null)}}function C(){u?u.emit("startCall"):(u=Object(l["b"])({url:"",path:"/vr-node"},{role:m,roomId:g,userId:v,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(){s["app"].play.control.onUpdate=!0,p=!1,!1,!1,f&&clearInterval(f),h&&clearInterval(h)})),u.on("vr_request",(function(t){f&&clearInterval(f),h&&clearInterval(h),p=!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,a["a"].emit("vrhouse/socket/action","userId",t.userId))})),e&&n){_();var o=0,i=3;f=setInterval((function(){--i>=1?a["a"].emit("player/counting",i):(a["a"].emit("player/counting",0),p=!0,s["app"].play.control.onUpdate=!1,"agent"==m&&!0,"customer"==m&&!0,clearInterval(f),h=setInterval((function(){a["a"].emit("vrhouse/socket/action","time",++o)}),1e3),a["a"].emit("vrhouse/socket/action","time",o))}),1e3),a["a"].emit("player/counting",i),a["a"].emit("vrhouse/socket/action","sync",!0)}else a["a"].emit("vrhouse/socket/action","sync",!1),a["a"].emit("vrhouse/socket/action","time",-1)})),u.on("action",(function(t){t&&("string"===typeof t?a["a"].emit("vrhouse/socket/action",t):a["a"].emit("vrhouse/socket/action",t.name,t.data,t.role))})),u.on("vr_response",(function(t){if(t.content.drawing)a["a"].emit("vrhouse/socket/action","drawing",t);else if(p&&s["app"].player.cameraControls.activeControl){if(t.role==m)return;if("undefined"!=typeof t.content.onUpdate&&(s["app"].play.control.onUpdate=t.content.onUpdate,console.log(s["app"].play.control.onUpdate),"agent"!=m||s["app"].play.control.onUpdate||a["a"].emit("vrhouse/socket/action","operation-tips")),"undefined"!=typeof t.content.scale&&(s["app"].player.cameraControls.activeControl.absoluteScale=t.content.scale,s["app"].player.cameraControls.activeControl.updateZoom()),s["app"].play.control.onUpdate)return;if(t.content.item){if(w(t.content.item))return;(t.content.item.mode!=s["app"].player.mode||t.content.item.mode==s["app"].player.mode&&t.content.item.mode==r["a"].PANORAMA)&&P(t.content.item.pano,t.content.item.qua),s["app"].player.copyCameraProp(s["app"].player.cameraControls.activeControl,t.content.item),s["app"].player.adjustControlAngel()}else if(t.content.toPano)t.content.toPano.pano=s["app"].player.model.panos.get(t.content.toPano.panoId),s["app"].player.adjustControlAngel({target:new THREE.Vector3(s["app"].player.cameraControls.activeControl.target.x,s["app"].player.cameraControls.activeControl.target.y,s["app"].player.cameraControls.activeControl.target.z)}),s["app"].player.currentPano.id!=t.content.toPano&&s["app"].player.flyToPano(t.content.toPano);else if(t.content.newModeInfo){if(t.content.newModeInfo.panoId&&(t.content.newModeInfo.pano=s["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)}s["app"].player.flyToNewMode(t.content.newModeInfo)}else console.warn(t)}})))}function O(){h&&clearInterval(h),a["a"].emit("vrhouse/socket/action","time",-1),u&&(u.emit("stopCall"),u.disconnect(),u=null,"customer"==m&&a["a"].emit("vrhouse/socket/action","sync",!1))}function E(t){u&&("object"===Object(o["a"])(t)&&(t.role=m),y({action:t}))}function x(t){y({drawing:t})}s["app"].player.cameraControls.on("vr_freedom",(function(t){p&&!s["app"].play.control.onUpdate&&(u.emit(l["a"].Send,{role:m,roomId:g,userId:v,content:{onUpdate:!1}}),s["app"].play.control.onUpdate=!0)})),s["app"].player.on("vr_Rotate",(function(t){if(p){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",w(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),s["app"].play.control.onUpdate&&u.emit(l["a"].Send,{role:m,roomId:g,userId:v,content:{item:e}}))}})),s["app"].player.on("vr_Zoom",(function(t){if(p){var e=t.cameraControls.activeControl.absoluteScale;u.emit(l["a"].Send,{role:m,roomId:g,userId:v,content:{scale:e}})}})),s["app"].player.on("vr_FlyToPano",(function(t){p&&(t.socketed=!0,u.emit(l["a"].Send,{role:m,roomId:g,userId:v,content:{toPano:t}}),console.log("flytopano"+t.toString()))})),s["app"].player.on("vr_FlyToNewMode",(function(t){p&&(t.socketed=!0,u.emit(l["a"].Send,{role:m,roomId:g,userId:v,content:{newModeInfo:t}}),s["app"].play.control.onUpdate=!1)})),a["a"].on("vrhouse/painting",(function(t){u.emit(l["a"].Send,{role:m,roomId:g,userId:v,content:{drawing:t}})}))},a027:function(t,e,n){},a0a5:function(t,e,n){"use strict";n.r(e);var o,a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-layout"},[n("div",{staticClass:"app-player",staticStyle:{position:""}},[n("player"),n("Floor",{staticClass:"floor-grave"})],1),t.show?n("app-header",{style:{zIndex:t.showGoods?1:9999}}):t._e(),t.show?n("app-main"):t._e(),t.showPassword?n("Password",{on:{cancel:t.onPasswordCancel}}):t._e()],1)},i=[],s=(n("8e6e"),n("ac6a"),n("456d"),n("ade3")),r=n("2f62"),c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("player",{ref:"player"})},l=[],u=n("b31b"),p=n("c7b2"),d={components:{Player:u["a"]},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(),p["app"].player.on("player/flyToNext",(function(e){t.$bus.emit("shop/player/mode",e)}))},methods:{init:function(){}}},f=d,h=n("2877"),m=Object(h["a"])(f,c,l,!1,null,null,null),v=m.exports,g=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header",class:{disable:t.disable}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"bg",on:{click:t.bgClick}}),n("h2",{staticClass:"title",class:{active:t.show},on:{click:t.changeShow}},[n("p",[t._v("\n "+t._s(t.tempdata.title)+"\n "),n("i",{directives:[{name:"show",rawName:"v-show",value:t.tempdata.description,expression:"tempdata.description"}],staticClass:"iconfont iconscene_tit_arrow"})])]),t.newView?[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.info},on:{quit:t.quitImgs}})],1):t._e(),t.mapShow?n("Dialog",{on:{quit:t.quitMap}},[n("Gaode",{attrs:{lat:t.info.latitude,lng:t.info.longitude}})],1):t._e()]:n("div",{staticClass:"description",class:{show:t.show},on:{click:t.changeShow}},[n("div",[n("div",{staticClass:"stitle"},[t._v(t._s(t.tempdata.title))]),n("div",{staticClass:"content",domProps:{innerHTML:t._s(t.tempdata.description)}})])]),t.isMiniprogram?n("div",{staticClass:"share",on:{click:function(e){return e.stopPropagation(),t.onShare(e)},touchstart:function(t){t.stopPropagation()}}},[n("i",{staticClass:"iconfont iconscene_tit_share"})]):t._e(),n("Map",{directives:[{name:"show",rawName:"v-show",value:!t.show,expression:"!show"}],ref:"map"})],2)},y=[],w=(n("96cf"),n("1da1")),b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"map",class:{hide:t.isSide,hyaline:!t.show}},[n("div",{directives:[{name:"show",rawName:"v-show",value:"pano"!=t.mode,expression:"mode!='pano'"}],staticClass:"tab-layer"},[n("div",{staticClass:"tabs",class:{disable:!t.modeCanSwitch}},[n("span",{class:{active:"2d"===t.mode},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.mode},on:{click:function(e){return t.changeMode("3d")}}},[n("i",{staticClass:"iconfont iconscene_map_3d"}),t._v("\n 三维模型\n ")])])]),n("div",{staticClass:"map-layer",style:{opacity:"pano"==t.mode?"1":"0"},on:{click:function(e){return t.changeMode("2d")}}},[n("div",{ref:"layer",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 ")])]),n("span",{directives:[{name:"show",rawName:"v-show",value:"pano"==t.mode,expression:"mode=='pano'"}],staticClass:"btn-side",on:{click:function(e){e.stopPropagation(),t.isSide=!t.isSide}}},[n("i",{staticClass:"iconfont",class:[t.isSide?"icon_back":"icon_forward"]})])])},_=[],P=(n("c5f6"),n("dcab")),C=n("26d4"),O=n("6860");n("9a39");function E(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?E(Object(n),!0).forEach((function(e){Object(s["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var S=function(t){var e=JSON.parse(JSON.stringify(t.floor));return e.floors?e.floors=e.floors.map((function(e){return Object(P["C"])(e,t.initRotate,{x:0,y:0})})):e=Object(P["C"])(e,t.initRotate,{x:0,y:0}),e},j={props:["area"],data:function(){return{show:!1,isLock:!1,isSide:!1}},computed:x(x({},Object(r["b"])({mode:"mode",page:"page",floor:"scene/houstFloor",status:"guide/status",player:"player",metadata:"scene/metadata",floorId:"scene/floorId",modeCanSwitch:"modeCanSwitch"})),{},{initRotate:function(){return this.metadata.floorPlanAngle?Number(this.metadata.floorPlanAngle):0}}),methods:{setSign:function(t,e){t=Object(P["D"])(t,-this.initRotate,{x:0,y:0}),e-=this.initRotate/Math.PI*180,o.setSign(t,e)},changeMode:function(t){Object(p["flyToNewMode"])(t)},hideMap:function(){this.isSide=!0}},watch:{floor:function(){this.floor.__uninit||(this.visible=!0),o.loadData(S(this)),o.toCanvas((function(){return o.adapt()})),this.show=!0,this.setSign({x:app.firstView.position.x,y:app.firstView.position.z},app.cameraControls.controls.panorama.lon),this.$bus.emit("sign/Set/angle",o.processing.data.dire)}},mounted:function(){var t=this;this.floor.__uninit&&!o||(this.visible=!0,o&&o.destroy()),o=Object(C["a"])({data:Object(P["C"])(this.floor,this.initRotate,{x:0,y:0}),layer:this.$refs.layer,edit:!1,padding:10,isCanvas:!0}),o.setDefaultPointStyle({fillColor:"rgba(0,0,0,0)",storkeColor:"rgba(0,0,0,0)"}),o.toCanvas((function(){o.adapt()})),this.$bus.on("player/position/change",(function(e){var n=e.x,o=e.y,a=e.lon;return t.setSign({x:n,y:o},a)})),this.$bus.on("orientation",(function(){return o.adapt()})),this.$bus.on("shop/player/mode",(function(e){t.isSide=!0})),this.$bus.on("shop/tag/onshow",(function(e){e&&(t.isSide=!0)}))},beforeDestroy:function(){this.cad.destroy(),this.$bus.off("player/position/change",this.listen)}},k=j,I=(n("0241"),Object(h["a"])(k,b,_,!1,null,"37cfa75b",null)),A=I.exports,T=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"img-query"},[n("i",{staticClass:"iconfont iconclose",on:{click:function(e){return t.$emit("quit")}}}),n("div",{staticClass:"content"},[t._t("default")],2)])},R=[],U=(n("3fb0"),{}),q=Object(h["a"])(U,T,R,!1,null,"e62e4ee6",null),M=q.exports,N=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))])])])},V=[];function L(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 D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?L(Object(n),!0).forEach((function(e){Object(s["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var H={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]?D({},this.args[this.type]):{};this.swiper=new Swiper(".head-banner",D(D({},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)}},z=H,F=(n("ef8b"),Object(h["a"])(z,N,V,!1,null,"35aaa5be",null)),G=F.exports,Q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"layer"},[n("h3",[t._v(t._s(t.info.brandName))]),n("div",{staticClass:"types"},[n("span",[t._v(t._s(t.info.typeName))])]),n("div",{staticClass:"content"},[t._v("\n "+t._s(t.info.simpleDesc.length>280?t.info.simpleDesc.substr(0,280)+"...":t.info.simpleDesc)+"\n ")]),t.info.introduceVideo?n("div",{staticClass:"video"},[n("ivideo",{attrs:{info:t.info}})],1):t._e()])},B=[],K=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"video-layer"},[n("div",{on:{click:t.clickHandle}},[n("video",{ref:"video",attrs:{src:t.info.introduceVideo,poster:t.info.introduceVideoCover,"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"})])])])},W=[],J={props:["info"],data:function(){return{paused:!0}},methods:{clickHandle:function(){this.paused?this.$refs.video.play():this.$refs.video.pause()}},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)},beforeDestroy:function(){this.$refs.video.pause(),this.$refs.video.removeEventListener("play",this.onPlay,!1),this.$refs.video.removeEventListener("pause",this.onPause,!1)}},X=J,Z=(n("a901"),Object(h["a"])(X,K,W,!1,null,"41c3f350",null)),Y=Z.exports,tt={0:"服饰",1:"家具",2:"数码",3:"娱乐",4:"其他"},et={props:["info"],computed:{typeName:function(){return tt[this.info.type]}},components:{ivideo:Y}},nt=et,ot=(n("40f9"),Object(h["a"])(nt,Q,B,!1,null,"77bcbfaf",null)),at=ot.exports,it=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")}}}),t.current?n("div",{staticClass:"banner-layer",on:{touchstart:function(t){t.stopPropagation()}}},[t.showBanner?n("Banner",{staticClass:"banner",attrs:{screens:t.current,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[t.index]),expression:"!~origins.indexOf(current[index])"}],staticClass:"query-origin",on:{click:function(e){return t.clickLoadding()}}},[~t.loads.indexOf(t.current[t.index])?[n("i",{staticClass:"iconfont icon_loading_"}),t._v("加载中\n ")]:[t._v("查看原图")]],2)],1):t._e()])},st=[],rt=(n("7514"),n("28a5"),[]),ct={props:["info","estate"],data:function(){return{left:0,index:0,showBanner:!0,current:null,screens:[],origins:rt,loads:[]}},watch:{current:function(){var t=this;this.showBanner=!1,this.index=0,this.$nextTick((function(){return t.showBanner=!0}))},info:function(){this.extract()}},methods:{clickLoadding:function(){this.loading()},loading:function(){var t=this,e=this.current[this.index];if(!~this.loads.indexOf(e)){var n=new Image;n.onload=function(){rt.push(e),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},changeCurrent:function(t,e){this.left=t.target.offsetLeft+"px",this.current=e},extract:function(){var t=this.info.picList.split("#$#"),e=[];e=t.map((function(t){return{abridge:t,origin:t}})),this.origins=e.filter((function(t){return rt.some((function(e){return e.origin===t.origin}))})),console.log(this.origins,rt),this.current=e}},mounted:function(){this.extract()},components:{Banner:G}},lt=ct,ut=(n("22c9"),Object(h["a"])(lt,it,st,!1,null,"573ecf1a",null)),pt=ut.exports,dt=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]+")"}}),t.images.length>=2?n("div",{staticClass:"more"},[t.images[1]?n("div",{style:t.images[1]&&{backgroundImage:"url("+t.images[1]+")"}}):t._e(),n("div",{style:t.images[2]&&{backgroundImage:"url("+t.images[2]+")"}},[t.images[2]?n("div",[n("span",[n("b",[t._v("+"+t._s(t.picList.length))]),t._v("\n 查看更多\n ")])]):t._e()])]):t._e()])},ft=[],ht={props:["info"],data:function(){return{images:[],picList:[]}},methods:{clickHandle:function(){this.$emit("cb")},extract:function(){console.log(this.info.picList),this.picList=this.info.picList.split("#$#"),this.images=this.info.picList.split("#$#").splice(0,3)}},watch:{info:function(){this.extract()}},mounted:function(){this.extract()}},mt=ht,vt=(n("3c87"),Object(h["a"])(mt,dt,ft,!1,null,"3fc87a78",null)),gt=vt.exports,yt=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)},wt=[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"})])}],bt="e661b00bdf2c44cccf71ef6070ef41b8",_t="3bddec1685d461c2271a6099cde02fd2";function Pt(){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(bt,"&plugin=AMap.Geocoder&callback=initAMap"),n.onerror=e,document.head.appendChild(n)}window.initAMap=function(){t(window.AMap)}}))}var Ct="http://webapi.amap.com/theme/v1.3/markers/n/mark_b.png",Ot={props:["abridge","lat","lng"],data:function(){return{width:0,height:0,zoom:13}},methods:{initAMap:function(){var t=Object(w["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,Pt();case 2:e=t.sent,this.map=new e.Map(this.$refs.map,{resizeEnable:!0,zoom:this.zoom,center:[this.lng,this.lat]}),new e.Marker({position:new e.LngLat(this.lng,this.lat),map:this.map,icon:Ct,clickable:!1});case 5: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(_t,"&markers=-1,").concat(Ct,",:").concat(this.lng,",").concat(this.lat)}},mounted:function(){this.abridge?(this.width=this.$refs.layer.offsetWidth,this.height=this.$refs.layer.offsetHeight):this.initAMap()}},Et=Ot,xt=(n("1916"),Object(h["a"])(Et,yt,wt,!1,null,"e2fa1bb0",null)),St=xt.exports,jt=n("617a"),kt=n("c75e"),It=n("80c5"),$t=n("29b2"),At=n("33e9"),Tt=jt["a"].urlQueryValue("role")||"leader",Rt=jt["a"].urlQueryValue("user_id"),Ut=jt["a"].urlQueryValue("room_id");function qt(){return Tt}function Mt(){return Rt}var Nt,Vt=null,Lt=!1,Dt=null,Ht=!1;function zt(){Nt&&clearTimeout(Nt)&&(Nt=null),p["app"].player.model.fadePanoMarkers(null,null,{vrCustomer:!1})}function Ft(){p["app"].player.model?(p["app"].player.model.fadePanoMarkers(0,0,{vrCustomer:!0,hideVideoFlag:!0}),Nt=null):Nt=setTimeout((function(){Ft()}),30)}function Gt(t,e){("leader"==Tt||e)&&Vt&&Vt.emit("webSyncAction",t)}function Qt(t,e){Vt&&Vt.emit("clientSyncAction",{sender:"h5",type:t,data:e})}function Bt(t,e){Vt&&Vt.emit("action",{sender:"h5",type:t,data:e})}function Kt(t){if(null==Dt)return Wt(t),!1;if(Dt.mode!=t.mode)return Wt(t),!1;if(Dt.mode==It["a"].PANORAMA)return!!Dt.qua.equals(t.qua)||(Wt(t),!1);if(Dt.mode==It["a"].DOLLHOUSE){var e=!0;return t.qua&&Dt.qua&&(Dt.qua.equals(t.qua)||(e=!1)),t.pos&&Dt.pos&&(Dt.pos.equals(t.pos)||(e=!1)),t.target&&Dt.target&&(Dt.target.equals(t.target)||(e=!1)),Dt.zoom&&(Dt.zoom.equals(t.zoom)||(e=!1)),e||Wt(t),e}var n=!0;return Dt.qua.equals(t.qua)?(Dt.pos&&(Dt.pos.equals(t.pos)||(n=!1)),Dt.zoom&&Dt.zoom!=t.zoom&&(n=!1)):n=!1,n||Wt(t),n}function Wt(t){Dt={},Dt.mode=t.mode,t.pos&&(Dt.pos=new THREE.Vector3,Dt.pos.set(t.pos.x,t.pos.y,t.pos.z)),t.qua&&(Dt.qua=new THREE.Quaternion,Dt.qua.set(t.qua._x,t.qua._y,t.qua._z,t.qua._w)),t.target&&(Dt.target=new THREE.Vector3,Dt.target.set(t.target.x,t.target.y,t.target.z)),t.zoom&&(Dt.zoom=t.zoom)}function Jt(t,e,n,o,a,i){var s;console.log(arguments),s=e instanceof Array?(new THREE.Quaternion).fromArray(e):(new THREE.Quaternion).set(e._x,e._y,e._z,e._w);var r={mode:n,pano:t,qua:s,pos:o,target:a,zoom:i};isNaN(r.qua.x)&&console.log("NaN??????"),p["app"].player.flyToItem(r,(function(){p["app"].play.control.noFly=!0,Ht=!0}))}function Xt(t){if(!Vt&&Ut&&Rt){var e={url:"",path:"/vr-node"},n={role:Tt,roomId:Ut,userId:Rt,sceneNum:jt["a"].urlQueryValue("m"),userLimitNum:5},o=jt["a"].urlHashValue("socket");if(o)try{o=JSON.parse(decodeURIComponent(o)),e={url:o.socketHost,path:o.path},n.userLimitNum=o.options.userLimitNum}catch(a){console.error("socket参数转换出错")}Vt=Object($t["b"])(e,n),Vt.on("connect",(function(){t&&(Qt("cart",!0),Qt("ready",jt["a"].urlQueryValue("m")))})),Vt.on("disconnect",(function(){})),Vt.on("webSyncAction",(function(t){if(t.type&&kt["a"].emit("shop/sync/action",t),"leader"==Tt&&t.init){var e={follow:1,mode:p["app"].player.mode,qua:p["app"].player.quaternion,panoId:p["app"].player.currentPano.id};"floorplan"==e.mode&&(e.zoom=p["app"].player.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),("floorplan"==e.mode||"dollhouse"==e.mode)&&(e.target=p["app"].player.cameraControls.activeControl.target,e.pos=p["app"].player.cameraControls.activeControl.camera.position),Gt(e)}if(Lt&&p["app"].player.cameraControls.activeControl){if(t.follow){var n=p["app"].model.panos.get(t.panoId);return void(n||p["app"].player.linkViewManager.inited?Jt(t.panoId,t.qua,t.mode,t.pos,t.target,t.zoom):kt["a"].on("link/data/load",(function(){Jt(t.panoId,t.qua,t.mode,t.pos,t.target,t.zoom)})))}if("undefined"!=typeof t.onUpdate&&(p["app"].play.control.onUpdate=t.onUpdate,"leader"!=Tt||p["app"].play.control.onUpdate||kt["a"].emit("vrhouse/socket/action","operation-tips")),"undefined"!=typeof t.scale&&(p["app"].player.cameraControls.activeControl.absoluteScale=t.scale,p["app"].player.cameraControls.activeControl.updateZoom()),p["app"].play.control.onUpdate)return;if(t.item){if(Kt(t.item))return;Ht?t.item.mode==It["a"].PANORAMA&&t.item.pano!=p["app"].player.currentPano.id?a():(p["app"].player.copyCameraProp(p["app"].player.cameraControls.activeControl,t.item,{transitionQua:!0}),p["app"].player.adjustControlAngel()):t.item.pano==p["app"].player.currentPano.id?(Ht=!0,p["app"].player.copyCameraProp(p["app"].player.cameraControls.activeControl,t.item),p["app"].player.adjustControlAngel()):a()}else if(t.toPano){if(t.toPano.pano=p["app"].player.model.panos.get(t.toPano.panoId),p["app"].player.currentPano.id!=t.toPano){if(t.toPano.follow=!0,t.toPano.quaternion){var o=t.toPano.quaternion;t.toPano.quaternion=new THREE.Quaternion(o._x,o._y,o._z,o._w)}p["app"].player.flyToPano(t.toPano,(function(){Ht=!0}))}}else if(t.newModeInfo){if(t.newModeInfo.panoId&&(t.newModeInfo.pano=p["app"].player.model.panos.get(t.newModeInfo.panoId)),t.newModeInfo.follow=!0,t.newModeInfo.callback=function(){Ht=!0},t.newModeInfo.quaternion){o=t.newModeInfo.quaternion;t.newModeInfo.quaternion=new THREE.Quaternion(o._x,o._y,o._z,o._w)}p["app"].player.flyToNewMode(t.newModeInfo)}}function a(){var e;e=t.item.qua instanceof Array?(new THREE.Quaternion).fromArray(t.item.qua):(new THREE.Quaternion).set(t.item.qua._x,t.item.qua._y,t.item.qua._z,t.item.qua._w);var n={mode:It["a"].PANORAMA,pano:t.item.pano,qua:e};isNaN(n.qua.x)&&console.log("NaN??????"),p["app"].play.control.noFly=!1,p["app"].player.flyToItem(n,(function(){Ht=!0})),p["app"].play.control.noFly=!0}})),Vt.on("clientSyncAction",(function(t){"sync"==t.type?Yt():"back"==t.type?te():"newRoom"==t.type&&t.data&&t.data.roomId?("customer"==Tt&&zt(),Tt="leader",Ut=t.data.roomId,Rt=t.data.userId,Zt(),setTimeout((function(){Xt(!0)}),100)):"referServerData"==t.type&&(Object(At["default"])(!0),kt["a"].emit("graveInitial")),kt["a"].emit("shop/app/action",t)})),Vt.on("changeVoiceStatus",(function(t){kt["a"].emit("shop/sync/action",{type:"users",data:t.roomsPerson})})),Vt.on("roomIn",(function(t){Lt=!0,!0,!0,"customer"==Tt&&(p["app"].play.control.onUpdate=!1,setTimeout((function(){p["app"].ready?Gt({init:1},!0):kt["a"].on("loaded",(function(){Gt({init:1},!0)}))}),100)),kt["a"].emit("shop/sync/action",{type:"users",data:t.roomsPerson})})),Vt.on("roomInFail",(function(t){setTimeout((function(){kt["a"].emit("shop/sync/action",{type:t.type})}),1500)})),Vt.on("roomClose",(function(t){Lt=!1,!1,!1,t&&"3002"==t.code?kt["a"].emit("shop/sync/action",{type:"dissolve"}):kt["a"].emit("shop/sync/action",{type:"close"})})),Vt.on("someOneInRoom",(function(t){kt["a"].emit("shop/sync/action",{type:"users",user:t.user,data:t.roomsPerson}),kt["a"].emit("shop/sync/action",{type:"online",user:t.user,isOnline:!0})})),Vt.on("someOneLeaveRoom",(function(t){kt["a"].emit("shop/sync/action",{type:"users",user:t.user,data:t.roomsPerson}),kt["a"].emit("shop/sync/action",{type:"online",user:t.user,isOnline:!1})})),Vt.on("roomPersonChange",(function(t){kt["a"].emit("shop/sync/action",{type:"userChange",data:t.roomsPerson,user:t.user,isOnline:"inRoom"==t.actionName})})),Vt.on("action",(function(t){}))}}function Zt(){Vt&&(te(),Vt.close(),Vt=null)}function Yt(){Vt&&Vt.emit("startCall"),"customer"==Tt&&Ft()}function te(){Vt&&Vt.emit("stopCall"),p["app"].play.control.noFly=!1,Lt=!1,!1,!1,p["app"].play.control.onUpdate=!0}function ee(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 ne(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(n),!0).forEach((function(e){Object(s["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}p["app"].player.cameraControls.on("vr_freedom",(function(t){Lt&&("customer"==Tt?p["app"].play.control.onUpdate=!0:Gt({onUpdate:!1}))})),p["app"].player.on("vr_Rotate",(function(t){if(Lt&&null!=t&&null!=t.currentPano&&"customer"!=Tt){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",Kt(e)||(t.mode==It["a"].PANORAMA?e.pano=t.currentPano.id:t.mode==It["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),p["app"].play.control.onUpdate&&Gt({item:e}))}})),p["app"].player.on("vr_Zoom",(function(t){if(Lt){var e=t.cameraControls.activeControl.absoluteScale;Gt({scale:e})}})),p["app"].player.on("vr_FlyToPano",(function(t){Lt&&(t.socketed=!0,t.quaternion=p["app"].player.quaternion,"customer"==Tt&&(p["app"].play.control.noFly=!0),Gt({toPano:t,onUpdate:!1}))})),p["app"].player.on("vr_FlyToTag",(function(t){"customer"==Tt&&t.follow&&(p["app"].play.control.noFly=!1),"leader"==Tt&&(p["app"].play.control.noFly=!1)})),p["app"].player.on("vr_FlyToNewMode",(function(t){Lt&&(t.socketed=!0,t.quaternion=Gt({newModeInfo:t}))}));var oe=jt["a"].urlQueryValue("brandId"),ae=jt["a"].urlQueryValue("m"),ie={data:function(){return{show:!1,newView:!1,imgsShow:!1,mapShow:!1,index:0,info:null,isMiniprogram:!1,disable:!1}},computed:ne(ne({},Object(r["b"])({tempdata:"scene/tempdata"})),{},{banner:function(){var t=this.info.picList?[{component:"Album",cb:this.showImgQuery.bind(this),data:{info:this.info}}]:[];return[{component:"Info",data:{info:this.info}}].concat(t,[{component:"Gaode",cb:this.showMap.bind(this),data:{abridge:!0,lat:this.info.latitude,lng:this.info.longitude}}])}}),methods:{bgClick:function(){this.show=!1,Qt("cart",!0)},changeShow:function(){this.show=!this.show,this.show&&(this.$refs.map.model=null,this.$bus.emit("shop/tag/show",!1,!0)),Qt("cart",!this.show)},onShare:function(){var t=this;this._share||(Qt("share"),this._share=!0,setTimeout((function(){t._share=!1}),500))},showImgQuery:function(t){this.imgsShow=!0,this.show=!1,Qt("cart",!1)},showMap:function(t){this.mapShow=!0,this.show=!1,Qt("cart",!1)},quitImgs:function(){this.imgsShow=!1,Qt("cart",!0)},quitMap:function(){this.mapShow=!1,Qt("cart",!0)},changeBanner:function(t){this.index=t}},mounted:function(){var t=Object(w["a"])(regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(oe){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.$http.get("".concat("","/4dage/shop/getBrandInfo?brandId=").concat(oe,"&sceneNum=").concat(ae));case 4:if(e=t.sent,n=e.data,n){t.next=8;break}return t.abrupt("return");case 8:this.newView=!0,this.info=n;case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),components:{Map:A,ImgQuery:pt,Dialog:M,Gaode:St,Banner:G,Info:at,Album:gt,Video:Y},created:function(){var t=this;jt["a"].detectWeixin()&&window.parent.wx.miniProgram.getEnv((function(e){e.miniprogram&&(t.isMiniprogram=!0)})),this.$bus.on("shop/header/disable",(function(e){t.disable=e,t.disable&&t.$refs.map.changeMode("pano")})),this.$bus.on("shop/header/hidemap",(function(){t.$refs.map.hideMap()}))}},se=ie,re=(n("c7a7"),n("5f39"),Object(h["a"])(se,g,y,!1,null,"844aa830",null)),ce=re.exports,le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("transition",{attrs:{mode:"out-in"}},[t.show?n(t.page,{ref:"shopping",tag:"component"}):t._e()],1),t.alized.special?[n("SelectGrave"),n("GraveList")]:t._e(),n("Floor")],2)},ue=[],pe=(n("4917"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return"fashilong"!=t.orgin?n("div",{staticClass:"navigation",style:{zIndex:t.showEnvTips?99999:99}},[t._e(),t._e(),n("x-window",{attrs:{show:t.showEnvTips,"show-close":!0},on:{close:function(e){t.showEnvTips=!1}}},[n("img",{attrs:{src:""+t.$config.getStaticResource("img/apps/vrhouse/logo.png"),alt:""}}),n("div",{staticClass:"env-tips"},[n("h4",[t._v("一起逛-同屏购物 实时沟通")]),n("div",{staticClass:"left"},[n("p",[t._v("微信识别下方二维码")]),n("p",[t._v("进入【看店4DKanKan】小程序")]),n("p",[t._v("享更多增值服务")])]),n("img",{staticClass:"qrcode",attrs:{src:t.$config.getStaticResource("img/apps/shop/qrcode.jpg"),alt:""}}),n("div",{staticClass:"txt"},[t._v("四维时代(示例)")])])]),n("Toast",{attrs:{toast:t.toast}})],1):t._e()}),de=[],fe=(n("7f7f"),n("5df3"),n("1c4c"),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)])])}),he=[],me=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()])},ve=[],ge=999;function ye(){return++ge}var we={name:"x-popup-layer",props:{show:Boolean,isClose:Boolean,bgColor:String},data:function(){return{zIndex:ye()}},methods:{onClick:function(){this.isClose&&this.$emit("close")}}},be=we,_e=(n("fe8a"),Object(h["a"])(be,me,ve,!1,null,"3eca7dc7",null)),Pe=_e.exports,Ce={components:{Popup:Pe},props:{show:Boolean,height:String,showClose:{type:Boolean,default:function(){return!0}}}},Oe=Ce,Ee=(n("4b37"),Object(h["a"])(Oe,fe,he,!1,null,"3806814e",null)),xe=Ee.exports,Se=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.toast.show,expression:"toast.show"}],staticClass:"toast"},[n("p",[t._v(t._s(t.toast.msg))])])},je=[],ke={props:["toast"]},Ie=ke,$e=(n("3fbf"),Object(h["a"])(Ie,Se,je,!1,null,"22dd27f6",null)),Ae=$e.exports,Te=n("ff11");function Re(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 Ue(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Re(Object(n),!0).forEach((function(e){Object(s["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var qe={components:{XWindow:xe,Toast:Ae},data:function(){return{orgin:jt["a"].urlQueryValue("origin").toLowerCase(),showMore:!0,showCoupon:!1,showEnvTips:!1,toast:{show:!1,msg:"暂无預訂"},alized:{}}},watch:{plays:{handler:function(t,e){Qt("guide",{length:this.plays.length})},immediate:!0},"status.isPlaying":function(){Qt("guide",{playing:this.status.isPlaying})},showEnvTips:function(){this.showEnvTips&&this.$bus.emit("shop/header/hidemap")}},computed:Ue({},Object(r["b"])({plays:"guide/plays",status:"guide/status",medias:"guide/medias"})),created:function(){var t=Object(w["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return p["play"].on("guide/play/start",(function(t){e.$store.commit("guide/SetStatus",{isPlaying:!0})})),p["play"].on("guide/play/pause",(function(t){e.$store.commit("guide/SetStatus",{isPlaying:!1})})),p["play"].on("guide/play/stop",(function(){e.$store.commit("guide/SetStatus",{isPlaying:!1})})),p["play"].on("guide/play/playing",(function(t){e.$store.commit("guide/SetIndex",t)})),p["play"].on("guide/play/flyToStart",(function(t){e.$store.commit("guide/SetIndex",t)})),this.$bus.on("shop/app/action",(function(t){"showCoupon"==t.type?e.showCoupon=t.data:"guide"==t.type&&(e.status.isPlaying?p["play"].pause():p["play"].start())})),this.$bus.on("graveReadySuccess",(function(t){e.initGravePage()})),t.next=9,Object(At["default"])();case 9:this.alized=t.sent,this.initGravePage();case 11:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),mounted:function(){var t=this;this.$bus.on("ready",(function(){if(t.plays.length){var e="soundsync"===t.status.audio?"sync":t.status.audio;t.medias.links[e]&&Te["c"].setSRC(t.$config.getPublishResource(t.medias.links[e]))}})),this.$nextTick((function(){$("#player").on("touchstart",(function(){t.status.isPlaying&&p["play"].pause()}))})),"discover"!=this.$config.appenv&&Qt("cart",!0),Qt("ready",this.$config.projectNum)},methods:{initGravePage:function(){var t=this,e=this.alized;if(e.special){if(this.__initGravePage)return;this.__initGravePage=!0;var n=function n(){try{var o=parent.document.querySelector(".side ul");if(!o)return setTimeout(n,16);if(o.contains(t.__$special))return setTimeout(n,1e3);var a=document.createElement("li"),i=o.querySelector("li"),s=Array.from(i.attributes).find((function(t){return~t.name.indexOf("data-")}));a.innerHTML='\n <i class="iconfont iconscene_vrlecture" '.concat(s.name,"></i>\n <span>預訂詳情</span>\n "),a.setAttribute(s.name,""),o.appendChild(a),o.querySelector(".side .iconscene_vrlecture + span").innerHTML="true"===e.canShow?"壹起逛":"帶看",a.addEventListener("click",t.onShowOrderList.bind(t)),t.__$special=a,setTimeout(n,1e3)}catch(r){console.error(r)}};n()}},onShowOrderList:function(){var t=this;if(!this.alized.orderList.length)return this.toast.show=!0,void setTimeout((function(){return t.toast.show=!1}),2e3);this.$bus.emit("showGraveList")},onShowMore:function(){this.showMore=!this.showMore},onPlayGuide:function(){this.status.isPlaying?p["play"].pause():p["play"].start()},onService:function(){var t=this;if(!jt["a"].urlHasValue("test"))if(jt["a"].detectWeixin())top.wx.miniProgram.getEnv((function(e){if(!e.miniprogram)return t.showEnvTips=!0}));else if(!jt["a"].detectApp())return this.showEnvTips=!0;Qt("service")},onCoupon:function(){Qt("coupon")},onShopping:function(){var t=this;if(!jt["a"].urlHasValue("test"))if(jt["a"].detectWeixin())top.wx.miniProgram.getEnv((function(e){if(!e.miniprogram)return t.showEnvTips=!0}));else if(!jt["a"].detectApp())return this.showEnvTips=!0;if("NO_LOGIN"==Rt)return Qt("login");this.$parent.setPage("Shopping")}}},Me=qe,Ne=(n("dd91"),Object(h["a"])(Me,pe,de,!1,null,"30b39717",null)),Ve=Ne.exports,Le=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"fashilong"!=t.orgin?n("div",{staticClass:"navigation"},[t._e(),n("Paint",{attrs:{"show-paint":t.showPaint}})],2):t._e()},De=[],He=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.showPaint&&"leader"==t.role,expression:"showPaint && role == 'leader'"}],staticClass:"paint"},[n("div",{staticClass:"toolbar"},[n("ul",[n("li",{directives:[{name:"show",rawName:"v-show",value:0==t.show,expression:"show == false"}],on:{click:t.start}},[n("i",{staticClass:"iconfont iconkd_tagging"}),n("div",[t._v("标记")])]),t.show?n("li",{on:{click:t.end}},[n("i",{staticClass:"iconfont iconclose"}),n("div",[t._v("关闭")])]):t._e()])])])},ze=[],Fe=(n("673e"),n("3846"),n("f121")),Ge=n("9ef6"),Qe=n("bc19"),Be=n("4c16"),Ke=n("1787"),We=n("2d47"),Je=n("b235"),Xe=n("1158"),Ze=null,Ye=[],tn=Ke["default"].load(Fe["a"].getStaticResource("img/scene_tabele.png?v=1"),null,null,{antialias:!1}),en={props:{showPaint:Boolean},data:function(){return{role:qt(),show:!1,flags:[],canUndo:!1,colorA:"#02c8ae",colorB:"#2e98fe"}},created:function(){var t=this,e=this;function n(){setTimeout((function(){e.flags.shift(),e.flags.length&&n(),e.updateCirclesDrawing(e.flags)}),1e3)}function o(t){"flags"==t.type&&(e.flags.push(t.data),e.updateCirclesDrawing(e.flags),n())}null==Ze&&(Ze=new THREE.Object3D,Ze.name="shop-circles",p["app"].ready?p["app"].model.add(Ze):this.$bus.on("ready",(function(){p["app"].model.add(Ze)}))),this.$bus.on("shop/sync/action",o),this.$once("hook:beforeDestroy",(function(){t.$bus.off("shop/sync/action",o),t.show=!1,t.flags=[],t.updateCirclesDrawing(t.flags)}))},watch:{show:function(){var t=this;Qt("cart",!this.show),this.$bus.emit("shop/header/disable",this.show),setTimeout((function(){p["app"].play.control.noFly=t.show}),300)}},mounted:function(){var t=this;function e(e){if(t.show){var n=(e.touches[0]||e).clientX,o=(e.touches[0]||e).clientY,a={sid:Date.now(),pos:t.transformTo3d({x:n,y:o}),color:t.colorA};t.flags.push(a),t.updateCirclesDrawing(t.flags),setTimeout((function(){t.flags.shift(),t.updateCirclesDrawing(t.flags)}),1e3),Gt({type:"flags",data:a})}}var n=document.getElementById("player");n.addEventListener("mousedown",e),n.addEventListener("touchstart",e),this.role=qt()},methods:{start:function(){this.show=!0},undo:function(){this.flags.pop(),this.updateCirclesDrawing(this.flags)},end:function(){this.show=!1,this.flags=[],this.updateCirclesDrawing(this.flags)},updateCirclesDrawing:function(t){var e=this,n=[];Ye.forEach((function(e){var o=t.find((function(t){return e.sid==t.sid}));o||n.push(e)})),n.forEach((function(t){return e.fadeCircle(t)})),t.forEach((function(t){var n=Ze.children.find((function(e){return e.sid==t.sid}));n||e.createCircle(t.sid,t.pos,t.color)}))},transformTo3d:function(t){var e=new THREE.Vector3,n=new THREE.Vector2;Qe["a"].convertScreenPositionToNDC(t.x,t.y,n);var o=Be["a"].getMouseIntersect(O["objects"].player.camera,[O["objects"].model.skybox],n);if(o){e.copy(o.point);var a=e.clone().sub(O["objects"].player.position).normalize();e.copy(O["objects"].player.position.clone().add(a))}else console.error("no intersect ??");return e},createCircle:function(t,e,n){var o=new THREE.Sprite(this.getMat(n));o.sid=t,o.position.copy(e),o.quaternion.copy(O["objects"].player.camera.quaternion),o.scale.set(.05,.05,.05),Ze.add(o),Ye.push(o)},fadeCircle:function(t){var e=this,n=800;Je["a"].start(We["a"].property(t.material,"opacity",0),n,(function(){e.removeCircle(t)}),0,Xe["a"][Ge["a"].transition.blendEasing],"shop-circles-fade",Ge["a"].freeze.shopCircle);var o=Ye.indexOf(t);Ye.splice(o,1)},removeCircle:function(t){t.material.dispose(),t.parent.remove(t)},getMat:function(t){return new THREE.SpriteMaterial({transparent:!0,depthTest:!1,map:tn,side:THREE.DoubleSide,color:t})}}},nn=en,on=(n("50b2"),Object(h["a"])(nn,He,ze,!1,null,"60ebca77",null)),an=on.exports;function sn(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 rn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sn(Object(n),!0).forEach((function(e){Object(s["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}for(var cn={components:{Paint:an,XWindow:xe},data:function(){return{role:null,userId:null,users:[],showExit:!1,showDissolve:!1,showOver:!1,showFull:!1,showCart:!1,showPaint:!1,goods:null,chats:[],orgin:jt["a"].urlQueryValue("origin").toLowerCase()}},watch:{users:function(){this.showCart||(this.showCart=!0,Qt("cart",!0))},message:function(){this.$nextTick((function(){setTimeout((function(){}),3e3)}))}},computed:rn(rn({},Object(r["b"])({player:"player"})),{},{message:function(){return this.chats}}),created:function(){var t=this;"4dplaza"==jt["a"].urlQueryValue("origin").toLowerCase()&&(this.showPaint=!0),this.role=qt(),this.userId=Mt();var e=this;function n(t){if("full"!=t.type)if("users"==t.type){for(var n,o=0;o<t.data.length;o++)if("leader"==t.data[o].role){n=t.data.splice(o,1);break}if(n&&(t.data=n.concat(t.data)),!t.data.some((function(t){return"leader"==t.role})))return void(e.isNoTips()&&(e.showOver=!0));e.users=t.data}else if("userChange"==t.type){for(var a,i=0;i<t.data.length;i++)if("leader"==t.data[i].role){a=t.data.splice(i,1);break}a&&(t.data=a.concat(t.data)),e.users=t.data,"leader"==e.role&&"leader"!=t.user.role?e.showMessage("".concat(t.isOnline?"进入":"离开","房间"),t.user):"leader"!=e.role&&"leader"==t.user.role&&(t.user.nickname="发起人",e.showMessage("".concat(t.isOnline?"进入":"离开","房间"),t.user))}else"online"==t.type?"leader"==e.role&&"leader"!=t.user.role&&e.showMessage("".concat(t.isOnline?"进入":"退出","房间"),t.user):"dissolve"==t.type?e.isNoTips()&&(e.showDissolve=!0):"close"==t.type?e.isNoTips()&&(e.showOver=!0):"tagShow"==t.type?e.$bus.emit("shop/tag/show",t.data):"tagSwitch"==t.type&&e.$bus.emit("shop/tag/switch",t.data);else e.isNoTips()&&(e.showFull=!0)}this.$once("hook:beforeDestroy",(function(){t.$bus.off("shop/sync/action",n),t.role})),this.$bus.on("shop/sync/action",n),"leader"==this.role&&"fashilong"!=this.orgin&&Qt("invite"),jt["a"].urlHasValue("shopping")&&-1!=this.player.progres?this.$bus.on("loaded",(function(){Yt(),Qt("ready",t.$config.projectNum)})):(Yt(),Qt("ready",this.$config.projectNum)),window.CHECKEXIT=function(){e.showExit=!0}},destroyed:function(){window.CHECKEXIT=null},methods:{onInvite:function(){Qt("invite")},onSetMic:function(){Qt("mic")},onExit:function(t,e){var n=this;this.showExit=!1,this.showDissolve=!1,this.showFull=!1,this.showOver=!1,t&&(this.goods?this.goods.realShopUrl?(Qt("cart",!1),window.location.href=this.goods.realShopUrl):window.parent.wx.miniProgram.navigateTo({url:"/pages/goods/goods?id="+this.goods.id}):e?(Qt("newRoom"),setTimeout((function(){n.$parent.setPage("Home")}),300)):(te(),Qt("exit"))),this.goods=null},onBack:function(){this.showExit=!1,this.showDissolve=!1,this.showFull=!1,this.showOver=!1,te(),Qt("back")},isNoTips:function(){return!this.showExit&&!this.showFull&&!this.showDissolve&&!this.showOver},exitToDetail:function(t){this.goods=t,this.showExit=!0},showMessage:function(t,e){var n=this;this.chats.push({id:"".concat(Date.now()).concat(this.chats.length),avatar:e.avatar,nickname:e.nickname,content:t}),setTimeout((function(){n.chats.shift()}),1500)}}},ln=cn,un=(n("e615"),Object(h["a"])(ln,Le,De,!1,null,"a5a928ea",null)),pn=un.exports,dn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("xwindow",{attrs:{title:"選擇龕位",show:t.show,padding:"0",height:"78%",bgColor:"#F7F7F7"},on:{hideRoom:t.hide}},[n("div",{staticClass:"head"},[n("i",{staticClass:"iconfont icon_yes"}),t._l(t.statuss,(function(e){return n("div",{key:e.key},[n("span",{staticClass:"seat",class:e.key}),n("span",{staticClass:"text"},[t._v(t._s(e.text))])])}))],2),n("div",{ref:"selectContainer",staticClass:"select-container"},[n("div",{staticClass:"select",style:{grid:"repeat("+t.row+", 18px) / repeat("+t.column+", 18px)",width:28*t.column-10+"px"}},[t._l(t.graveList,(function(e,o){return n("div",{key:o,staticClass:"seat",class:t.select===e?"selected":t.keyMaps[e.status],style:{"grid-area":e.xposition+" / "+e.yposition+" / "+(e.xposition+1)+" / "+(e.yposition+1)},on:{click:function(n){return t.selectHandle(n,e)}}})})),t.showLabel?n("div",{staticClass:"x-label",style:{left:t.left}},t._l(t.row,(function(e){return n("span",{key:e},[t._v(t._s(e))])})),0):t._e()],2)]),t.select?n("div",{staticClass:"info"},[n("div",[n("span",{staticClass:"money"},[t._v("HK$ "+t._s(t.select.price))]),n("span",{staticClass:"code"},[t._v("NO. "+t._s(t.select.boxSn)+" ("+t._s(t.statuss.find((function(e){var n=e.key;return n===t.keyMaps[t.select.status]})).text)+")")]),n("span",{staticClass:"position"},[t._v("第"+t._s(t.select.xposition)+"行 第"+t._s(t.select.yposition)+"列")]),n("img",{attrs:{src:t.select.boxStylePic,alt:""}})]),n("span",{staticClass:"button",on:{click:t.sumbitHandle}},[t._v("預訂")])]):t._e()])},fn=[],hn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.show?n("div",{staticClass:"bg",on:{click:function(e){return t.$emit("hideRoom")}}}):t._e(),n("div",{staticClass:"room-list-layout",style:"\n bottom: "+(t.show?"0":"-"+t.height)+";\n background: "+(t.bgColor||"#F7F7F7")+";\n height:"+t.height+";\n border-radius: "+(isNaN(Number(t.radius))?14:t.radius)+"px "+(isNaN(Number(t.radius))?14:t.radius)+"px 0px 0px;\n "},[n("i",{staticClass:"iconfont iconclose",on:{click:function(e){return t.$emit("hideRoom")}}}),n("h4",[t._v(t._s(t.title))]),n("div",{staticClass:"room-content",style:t.padding&&"padding: "+t.padding},[t._t("default")],2)])])},mn=[],vn={props:["show","title","height","bgColor","radius","padding"],watch:{show:function(){var t=parent.document.querySelector(".navigation .tools");clearTimeout(this.timeout),this.show?t.style.display="none":this.timeout=setTimeout((function(){t.style.display="block"}),300)}}},gn=vn,yn=(n("3d34"),Object(h["a"])(gn,hn,mn,!1,null,"1e07c574",null)),wn=yn.exports,bn=[],_n=["spot","pre","resell","sold"],Pn=0;Pn<20;Pn++)for(var Cn=0;Cn<20;Cn++)bn.push({row:Pn+1,column:Cn+1,status:_n[Pn*Cn%_n.length],momey:138e3+Pn+Cn,no:5478962146+Pn+Cn});var On={data:function(){return{showLabel:!0,show:!1,statuss:[{key:"spot",text:"現貨"},{key:"pre",text:"預售"},{key:"resell",text:"轉售"},{key:"sold",text:"已售"},{key:"selected",text:"已選擇"}],keyMaps:["spot","sold","sold","spot","pre","resell","sold"],graveList:bn,row:0,column:0,left:0,select:null,list:[]}},methods:{hide:function(){this.show=!1},selectHandle:function(t,e){"sold"!==this.keyMaps[e.status]&&(this.select=this.select===e?null:e,this.select&&this.$nextTick((function(){t.target.scrollIntoViewIfNeeded(!0)})))},sumbitHandle:function(){window.parent.wx.miniProgram.navigateTo({url:"/pages/graveFrom/graveFrom?boxId="+this.select.boxId})}},mounted:function(){var t=Object(w["a"])(regeneratorRuntime.mark((function t(){var e,n=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.$bus.on("selectGrave",(function(t){var e=n.list.find((function(e){var n=e.hotId;return n===t.sid}));if(e){for(var o=[],a=function(t){for(var n=function(n){e.boxList.some((function(e){return e.xposition==t+1&&e.yposition==n+1}))||o.push({status:1,xposition:t+1,yposition:n+1})},a=0;a<e.columnNum;a++)n(a)},i=0;i<e.rowNum;i++)a(i);n.graveList=o.concat(e.boxList),n.show=!0,n.row=e.rowNum,n.column=e.columnNum,n.select=null}})),this.$refs.selectContainer.addEventListener("scroll",(function(t){n.left=t.target.scrollLeft+"px"})),this.$refs.selectContainer.addEventListener("touchstart",(function(t){n.showLabel=!1})),this.$refs.selectContainer.addEventListener("touchend",(function(t){n.showLabel=!0})),t.next=6,Object(At["default"])();case 6:e=t.sent,this.list=e.list,this.$bus.on("graveReadySuccess",(function(t){n.list=t.list})),this.$bus.on("graveInitial",(function(){n.show=!1}));case 10:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),components:{xwindow:wn}},En=On,xn=(n("5c49"),Object(h["a"])(En,dn,fn,!1,null,"143a015c",null)),Sn=xn.exports,jn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("xwindow",{attrs:{title:"預訂詳情",show:t.show,height:"75%"},on:{hideRoom:function(e){t.show=!1}}},[t.list.length?t._l(t.list,(function(e){return n("div",{key:e.orderId,staticClass:"room-item",on:{click:function(n){return t.showInfo(e)}}},[n("div",{staticClass:"img"},[n("img",{attrs:{src:e.boxStylePic,alt:""}})]),n("div",{staticClass:"info"},[n("p",[t._v(t._s(e.wallName)+"-"+t._s(e.boxName))]),n("span",[t._v("NO. "+t._s(e.boxSn))])]),n("i",{staticClass:"iconfont icon_forward"})])})):n("div",{staticClass:"no-data"},[n("img",{attrs:{src:"static/img/apps/reserve/img_nodata@2x.png"}}),n("p",[t._v("暂无相关数据")])])],2)},kn=[],In={data:function(){return{show:!1,statuss:[{key:"spot",text:"現貨"},{key:"pre",text:"預售"},{key:"resell",text:"轉售"},{key:"sold",text:"已预定"},{key:"selected",text:"已選擇"}],keyMaps:["spot","sold","sold","spot","pre","resell","sold"],list:[]}},mounted:function(){var t=Object(w["a"])(regeneratorRuntime.mark((function t(){var e,n=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.$bus.on("showGraveList",(function(){n.show=!0})),this.$bus.on("graveInitial",(function(){n.show=!1})),t.next=4,Object(At["default"])();case 4:e=t.sent,this.list=e.orderList,this.$bus.on("graveReadySuccess",(function(t){n.list=t.orderList})),console.error(this.list);case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{showInfo:function(t){window.parent.wx.miniProgram.navigateTo({url:"/pages/graveDetail/graveDetail?orderId="+t.orderId})}},components:{xwindow:wn}},$n=In,An=(n("a4c7"),Object(h["a"])($n,jn,kn,!1,null,"65abe70a",null)),Tn=An.exports,Rn=n("3b09"),Un={components:{Home:Ve,Shopping:pn,GraveList:Tn,Floor:Rn["a"],SelectGrave:Sn},data:function(){return{page:jt["a"].urlHasValue("shopping")?"Shopping":"Home",show:!0,alized:{},showGrave:!0}},created:function(){var t=Object(w["a"])(regeneratorRuntime.mark((function t(){var e,n=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(At["default"])();case 2:this.alized=t.sent,jt["a"].detectWeixin()&&top.wx.miniProgram.getEnv((function(t){t.miniprogram||(n.show=!1)})),e=!1,this.$bus.on("shop/tag/goods/detail",(function(t){if(!e)if(e=!0,setTimeout((function(){e=!1}),1e3),t.realShopUrl){var n=t.realShopUrl.match(/\/([0-9]+)\.html/);null!=n&&n[1]&&Qt("navigateToMiniProgram",{appId:"wx1edf489cb248852c",path:"pages/product/product?wareId="+n[1]})}else"leader"==qt()?Bt("navigateToGoods",t.id):Qt("navigateToGoods",t.id)})),this.$bus.on("shop/tag/onshow",(function(t){Qt("cart",!t),"leader"==qt()&&Gt({type:"tagShow",data:t})})),this.$bus.on("shop/tag/onswitch",(function(t){"leader"==qt()&&Gt({type:"tagSwitch",data:t})}));case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{setPage:function(t){this.page=t}}},qn=Un,Mn=(n("1fb7"),Object(h["a"])(qn,le,ue,!1,null,null,null)),Nn=Mn.exports,Vn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("popup",{attrs:{show:t.show,"is-close":!1}},[n("div",{staticClass:"password"},[n("h1",[t._v("温馨提示")]),n("h4",[t._v("场景已设置密码,请先输入密码")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",placeholder:"请输入密码"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}}),n("div",[t._v(t._s(t.tips))]),n("button",{attrs:{type:"submit"},on:{click:t.check}},[t._v("进入")]),n("button",{attrs:{type:"button"},on:{click:function(e){return t.$emit("cancel")}}},[t._v("取消")])])])},Ln=[],Dn=n("fafa");function Hn(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 zn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hn(Object(n),!0).forEach((function(e){Object(s["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Fn={components:{Popup:Pe},data:function(){return{tips:"",password:"",isValid:!1}},computed:zn(zn({},Object(r["b"])({metadata:"scene/metadata"})),{},{show:function(){return 1==this.metadata.needKey&&!this.isValid}}),created:function(){Dn["b"].register((function(t){return new Promise((function(e){return t.resolve(e)}))}))},methods:{check:function(){var t=this;this.tips="",this.$nextTick((function(){if(!t.password)return t.tips=t.$t("show.password_require");t.$api.checkPassword(t.password).done((function(e){0==e.code?(t.isValid=!0,Dn["b"].valid()):t.tips=t.$t("tips.password_error")}))}))}}},Gn=Fn,Qn=(n("8803"),Object(h["a"])(Gn,Vn,Ln,!1,null,"d618c790",null)),Bn=Qn.exports;function Kn(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 Wn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kn(Object(n),!0).forEach((function(e){Object(s["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Jn={components:{Player:v,AppHeader:ce,Floor:Rn["a"],AppMain:Nn,Password:Bn},data:function(){return{show:!1,isGuide:!1,showGoods:!1,showPassword:!0}},created:function(){var t=this;localStorage.getItem("user_guide")?this.isGuide=!0:this.$bus.on("player/user/guided",(function(){return t.show=!0})),this.$bus.on("shop/app/action",(function(t){"openTag"==t.type&&__api.tag.openById(t.data)})),this.$bus.on("shop/tag/onshow",(function(e){t.showGoods=e})),window.addEventListener("message",(function(e){e.data.cmd&&("scene"==e.data.cmd?Qt("scene",{cmd:e.data.data,num:t.$config.projectNum}):"showTabs"==e.data.cmd&&Qt(e.data.cmd,e.data.data))}))},watch:{"player.progres":function(){-1==this.player.progres&&(document.title=this.tempdata.title,this.isGuide&&!this.show&&(this.show=!0))}},computed:Wn({},Object(r["b"])({player:"player",tempdata:"scene/tempdata"})),mounted:function(){Xt()},methods:{onPasswordCancel:function(){this.showPassword=!1,Qt("back")}}},Xn=Jn,Zn=(n("cb0c"),n("1d93"),Object(h["a"])(Xn,a,i,!1,null,null,null));e["default"]=Zn.exports},a3e2:function(t,e,n){},a4c7:function(t,e,n){"use strict";var o=n("d71b"),a=n.n(o);a.a},a901:function(t,e,n){"use strict";var o=n("5121"),a=n.n(o);a.a},ad57:function(t,e,n){},b9c9:function(t,e,n){},c7a7:function(t,e,n){"use strict";var o=n("86db"),a=n.n(o);a.a},cf68:function(t,e,n){},d71b:function(t,e,n){},dd91:function(t,e,n){"use strict";var o=n("272c"),a=n.n(o);a.a},e615:function(t,e,n){"use strict";var o=n("2c44"),a=n.n(o);a.a},e6b3:function(t,e,n){},ef8b:function(t,e,n){"use strict";var o=n("a3e2"),a=n.n(o);a.a},f0f0:function(t,e,n){},faf0:function(t,e,n){},fe8a:function(t,e,n){"use strict";var o=n("4b41"),a=n.n(o);a.a}}]);
|