1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-881c2bbc"],{"0db3":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"xq-common-page"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"xq-common-main",attrs:{"element-loading-text":"正在加载内容..."}},[n("div",{staticClass:"xq-common-tag-box flex align-center"},[n("div",{staticClass:"xq-common-tag-list"},t._l(t.tab,(function(e,i){return n("span",{key:i,class:{"xq-active":t.activeIndex==e.id},on:{click:function(n){return t.switchTab(e,i)}}},[t._v(t._s(e.title))])})),0)]),t.items.length?t._l(t.items,(function(e,i){return n("div",{key:i,staticClass:"xq-common-tag-box flex align-center mt10",class:{mt10:i>0}},[n("div",{staticClass:"xq-common-tag-name"},[t._v(t._s(e.title)+":")]),n("div",{staticClass:"xq-common-tag-list"},[t._l(e.child,(function(a,s){return n("span",{directives:[{name:"show",rawName:"v-show",value:s<e.showIndex,expression:"i < item.showIndex"}],key:s,class:{"xq-active":t.filterObj.community_id==a.id||t.filterObj.decostyle_id==a.id||t.filterObj.housetype_id==a.id},on:{click:function(n){return t.levelSecondFunc(a,i,e)}}},[t._v(t._s(a.title))])})),e.child.length>=12?n("span",{on:{click:function(i){return t.moreFunc(e)}}},[t._v(t._s(e.showIndex==e.child.length?"收起":"更多")),n("i",{staticClass:"el-icon-caret-bottom"})]):t._e()],2)])})):t._e(),t.itemArr.length?n("div",{staticClass:"xq-common-tag-box flex align-center mt10"},[n("div",{staticClass:"xq-common-tag-list"},t._l(t.itemArr,(function(e,i){return n("span",{key:i,class:{"xq-active":e.id==t.filterObj.cate2},on:{click:function(n){return t.levelThrewFunc(e,i,1)}}},[t._v(t._s(e.title))])})),0)]):t._e(),t.itemChild.length?n("div",{staticClass:"xq-common-tag-box flex align-center mt10"},[n("div",{staticClass:"xq-common-tag-list"},t._l(t.itemChild,(function(e,i){return n("span",{key:i,class:{"xq-active":t.filterObj.cate3==e.id},on:{click:function(n){return t.levelThrewFunc(e,i,2)}}},[t._v(t._s(e.title))])})),0)]):t._e(),n("div",{staticClass:"xq-common-cardBox"},[n("el-row",{attrs:{gutter:10}},t._l(t.dataArr,(function(e){return n("el-col",{key:e.id,attrs:{xs:8,sm:8,md:6,lg:6,xl:4}},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"coverEle wh100 relative flex align-center justify-center",on:{click:function(i){return i.stopPropagation(),t.viewDetail(e)}}},[4==e.difference?[e.covers?[n("el-image",{staticStyle:{height:"100%"},attrs:{fit:"cover",src:e.covers}})]:[n("div",{staticClass:"font34",staticStyle:{cursor:"pointer"}},[t._v(" PDF ")])]]:[n("el-image",{staticStyle:{height:"100%"},attrs:{fit:"cover",src:e.covers}})],n("div",{directives:[{name:"show",rawName:"v-show",value:1==e.type,expression:"item.type == 1"}],staticClass:"xq-common-must"},[t._v(" 必看|"+t._s(t.getItemType(e))+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:0==e.type,expression:"item.type == 0"}],staticClass:"xq-common-recommend"},[t._v(" 推荐|"+t._s(t.getItemType(e))+" ")]),1==e.difference?[n("img",{staticClass:"xq-video-play",attrs:{src:i("df84"),alt:""}})]:t._e(),1==e.is_case?n("div",{staticClass:"xq-common-msg flex align-center justify-center"},[n("span",[t._v(t._s(e.community_name||"未知小区"))]),n("span",{staticClass:"mlr5"},[t._v(" | ")]),n("span",[t._v(t._s(e.decostyle_name||"未知风格"))]),n("span",{staticClass:"mlr5"},[t._v(" | ")]),n("span",[t._v(t._s(e.square)+"㎡")])]):n("div",{staticClass:"xq-common-msg flex align-center justify-center"},[n("span",[t._v(t._s(e.title))])])],2)])],1)})),1),!t.dataArr.length&&t.showEmpty?n("el-empty",{attrs:{"image-size":200,description:"~ 暂无数据展示 ~"}}):t._e()],1),n("el-backtop",{attrs:{target:".xq-common-main",bottom:95,right:35}})],2),n("div",{staticClass:"xq-pagination-block"},[n("el-pagination",{attrs:{"current-page":t.pagination.page,"page-sizes":[20,50,100,150],"page-size":t.pagination.limit,layout:"total, sizes, prev, pager, next, jumper",total:t.pagination.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),n("el-button",{staticClass:"xq-screen-btn",attrs:{round:"",size:"small",plain:""},on:{click:t.jumpHomePage}},[t._v("谈单大屏")])],1)},a=[],s=i("5530"),c=(i("ac1f"),i("5319"),i("4de4"),i("d3b7"),i("d81d"),i("365c")),o=i("2f62"),l={name:"boutiqueDesign",data:function(){return{loading:!1,showEmpty:!1,activeIndex:1,module:"boutique",tab:[],items:[],itemArr:[],itemChild:[],dataArr:[],filterObj:{community_id:"",decostyle_id:"",housetype_id:"",cate2:"",cate3:""},pagination:{page:1,limit:20,total:0}}},computed:Object(s["a"])({},Object(o["d"])({configObj:function(t){return t.configObj},isCollapse:function(t){return t.isCollapse}})),watch:{isCollapse:function(t,e){var i=this;this.dataArr.length&&setTimeout((function(){i.setImageElementFunc()}),80)}},methods:Object(s["a"])(Object(s["a"])({},Object(o["c"])(["setRecordArr"])),{},{switchTab:function(t,e){this.items=[],this.itemArr=[],this.itemChild=[],this.filterObj={community_id:"",decostyle_id:"",housetype_id:"",cate2:"",cate3:""},this.pagination.page=1,this.activeIndex=t.id,this.getCateSeconds(t.id),this.getlistFunc()},viewDetail:function(t){1!=t.is_case?1==t.difference?this.$router.push({path:"/index/videodetail",query:{path:"/index/boutiqueDesign",name:this.configObj.boutique.title,cid:t.id}}):2==t.difference?this.$router.push({path:"/index/articledetail",query:{path:"/index/boutiqueDesign",name:this.configObj.boutique.title,cid:t.id}}):3==t.difference||5==t.difference?this.$router.push({path:"/index/vrdetail",query:{path:"/index/boutiqueDesign",name:this.configObj.boutique.title,cid:t.id}}):this.$router.push({path:"/index/pdfDetail",query:{path:"/index/boutiqueDesign",name:this.configObj.boutique.title,cid:t.id}}):this.$router.push({path:"/index/casedetail",query:{path:"/index/boutiqueDesign",name:this.configObj.boutique.title,cid:t.id}})},getItemType:function(t){return 1==t.is_case?"案例":1==t.difference?"视频":2==t.difference?"图文":3==t.difference||5==t.difference?"VR":"PDF"},jumpHomePage:function(){this.$router.replace("/")},setScrollleft:function(t){var e=document.querySelector(".xq-common-header"),i=e.offsetWidth;e.scrollLeft=150*t>i?150*t-i:0},levelSecondFunc:function(t,e,i){"风格"==i.title?this.filterObj.decostyle_id==t.id?this.filterObj.decostyle_id="":this.filterObj.decostyle_id=t.id:"小区"==i.title?this.filterObj.community_id==t.id?this.filterObj.community_id="":this.filterObj.community_id=t.id:"户型"==i.title&&(this.filterObj.housetype_id==t.id?this.filterObj.housetype_id="":this.filterObj.housetype_id=t.id),this.getlistFunc()},levelThrewFunc:function(t,e,i){1==i?(this.filterObj.cate3="",this.filterObj.cate2==t.id?(this.filterObj.cate2="",this.itemChild=[]):(this.filterObj.cate2=t.id,this.itemChild=t.child)):this.filterObj.cate3==t.id?this.filterObj.cate3="":this.filterObj.cate3=t.id,this.getlistFunc()},moreFunc:function(t){t.showIndex!=t.child.length?t.showIndex=t.child.length:t.showIndex=12},getCateFirst:function(){var t=this;Object(c["p"])({type:this.module}).then((function(e){0==e.data.code&&(t.tab=e.data.data,t.tab.length&&(t.activeIndex=t.tab[0].id,t.getCateSeconds(t.tab[0].id)),t.getlistFunc())}))},getCateSeconds:function(t){var e=this;Object(c["o"])({type:this.module,pid:t}).then((function(t){0==t.data.code&&(e.items=t.data.data.map((function(t){return t.showIndex=12,t})).filter((function(t){return"小区"==t.title||"户型"==t.title||"风格"==t.title})),e.itemArr=t.data.data.map((function(t){return t.showIndex=12,t})).filter((function(t){return"小区"!=t.title&&"户型"!=t.title&&"风格"!=t.title})))}))},getlistFunc:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i={page:this.pagination.page,limit:this.pagination.limit,cate1:this.activeIndex,cate2:this.filterObj.cate2,cate3:this.filterObj.cate3,community_id:this.filterObj.community_id,decostyle_id:this.filterObj.decostyle_id,housetype_id:this.filterObj.housetype_id,type:this.module};e&&(this.loading=!0),Object(c["s"])(Object(s["a"])({},i)).then((function(e){0==e.data.code?(t.dataArr=e.data.data,t.pagination.total=e.data.count,setTimeout((function(){t.dataArr.length&&t.setImageElementFunc(),t.loading=!1,t.showEmpty=!0}),800)):(t.loading=!1,t.showEmpty=!0)})).catch((function(e){t.loading=!1}))},handleSizeChange:function(t){this.pagination.limit=t,this.getlistFunc()},handleCurrentChange:function(t){this.pagination.page=t,this.getlistFunc()},setImageElementFunc:function(){for(var t=document.getElementsByClassName("el-card__body"),e=document.getElementsByClassName("coverEle"),i=1;i<t.length;i++)t[i].style.height="".concat(t[0].clientHeight,"px"),e[i].style.height="".concat(t[0].clientHeight,"px")}}),mounted:function(){this.getCateFirst();var t=this;window.onresize=function(e){var i=setTimeout((function(){clearTimeout(i),t.setImageElementFunc()}),300)}},activated:function(){this.dataArr.length&&this.getlistFunc(!1)}},r=l,d=(i("de47"),i("2877")),u=Object(d["a"])(r,n,a,!1,null,"811ec870",null);e["default"]=u.exports},"4fa2":function(t,e,i){},d81d:function(t,e,i){"use strict";var n=i("23e7"),a=i("b727").map,s=i("1dde"),c=s("map");n({target:"Array",proto:!0,forced:!c},{map:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},de47:function(t,e,i){"use strict";i("4fa2")},df84:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAAAk1BMVEUAAAAAAAD19fUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADy8vJ4eHgwMDCzs7MFBQX8/Pz6+vrv7+/s7Ozl5eXi4uKmpqYWFhb+/v729vbS0tLPz8/Hx8fCwsKgoKCTk5NhYWFGRkbv7+/Z2dnX19eXl5dVVVX///8tHI1HAAAAMHRSTlNNAOpMOwcFPhM1MkgVRCwlIho5SeRyWZZP9/Tc183IjFP87LWxp6OIgGlg3by7g2UtgAU2AAABqElEQVRIx6WX55aCMBBGPyAJSBEQdbF3Xd3G+z/deiybs5gMgdz/9xAmmQZHiYjTkCUFUCR+mMbCUaKSecY8/MNjGTeSg97DrPm9oFEOGLSwgJR5CJKQ6+U8QgNRrpP7MKCvlMUARgzEqyx8GOILKRMubUt5gBYMpEzEioialHO0JJcyj9rKEf+Te2hN7ykH6EDwkFkXmd3lAOj4aaj/uDzN52/jpr+Gw1W5v6quzL7XhOzxq5xBway68Tki7MyBOlzb6o57GBMhg/CgwK2ezFbacwvEoOVqstSdPUaqlaW+v0BFilAvS4bKawvhU7Jk+a4oCkhIWTLdnVEjQdEgS4a1wEnVQK4WIKHlbf2iUZjLH/VygsRYnp5eAuabyouXy/LpR0I/kxCpiTzZ/SifZ9wsbxajEgpiIiXliUtdSjqMlt39WF8MnIySN9pkBjJdARze3flqTRRAXek93l7F8UKVXm3RXx9c9+tcgiCwaTc2jS62abFWzd1mrLAdaOxHKfshzuG+scu7D65MWIzM3Yf1IrdZE2wXFPvVyH4pI9ZBP4k8L6LWwV+ilEjdAlcxIgAAAABJRU5ErkJggg=="}}]);
|