webpackJsonp([55],{GlIC:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("lC5x"),n=a.n(r),m=a("J0Oq"),o=a.n(m),i=a("WSiR"),s=a("Rrai"),u=a("l/JR"),d={name:"img-list",components:{vNav:i.a,photoAlbum:s.default},data:function(){return{api:{getOneMemberAlbum:"/api-member/getOneMemberAlbum"},navpath:[{name:"首页",path:""},{name:"客户详情",path:"/customerDetail?memberId="+this.$route.query.memberId||""},{name:"相册",path:""}],from:"",memberId:"",folderId:""}},created:function(){var e=this;return o()(n.a.mark(function t(){var a,r,m,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.$route.query.from,r=e.$route.query.memberId,m=e.$route.query.folderId,e.memberId=r,e.folderId=m,t.next=7,e.getImgList();case 7:o=e.folderData.filter(function(e){return e.id===m}),e.navpath[2]={name:"相册",path:"/photo-album?memberId="+r+"&from="+a},o.length>0&&e.navpath.push({name:o[0].name,path:""});case 10:case"end":return t.stop()}},t,e)}))()},methods:{getImgList:function(){var e=this;return u.a.get(this.api.getOneMemberAlbum+"/"+this.memberId).then(function(t){var a=t.data,r=a.code,n=a.message,m=a.data;m=m||[],200===r?e.folderData=m.slice():e.$message.error(n)})}}},c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"page-content"},[t("v-nav",{attrs:{navpath:this.navpath}}),this._v(" "),t("photo-album",{attrs:{"member-id":this.memberId,"folder-id":this.folderId}}),this._v(" "),t("vue-gic-footer",{staticStyle:{"padding-bottom":"80px"}})],1)},staticRenderFns:[]};var l=a("C7Lr")(d,c,!1,function(e){a("pCGU")},"data-v-00269a12",null);t.default=l.exports},pCGU:function(e,t){}});