(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesTools/album/details"],{"0f7e":function(t,e,n){"use strict";var a=n("ac2e"),o=n.n(a);o.a},2232:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.loadEnd&&t.albumInfo.files?t.splitImages(t.albumInfo.files):null);t._isMounted||(t.e0=function(e,n){var a=arguments[arguments.length-1].currentTarget.dataset,o=a.eventParams||a["event-params"];n=o.index;return t.previewImage(n)}),t.$mp.data=Object.assign({},{$root:{l0:n}})},o=[]},"2c53":function(t,e,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("7ca3")),i=n("8f59"),r=a(n("f5e9"));function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}var l={data:function(){return{loadEnd:!1,albumId:null,albumInfo:{},showLogin:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,i.mapState)({themeColor:function(t){return t.app.themeColor},organize:function(t){return t.app.organize},iconDownload:function(t){return r.default.svgToUrl("download",t.app.themeColor)},shareImage:function(t){return t.app.shareImage},loginImg:function(t){return t.app.loginImg}})),onLoad:function(e){var n=this;t.showLoading({title:"加载中"}),this.albumId=e.id,this.getAlbumDetails((function(){t.hideLoading(),n.loadEnd=!0}))},onShareAppMessage:function(){var t="";return t=this.albumInfo.files&&1==this.albumInfo.type?this.splitImages(this.albumInfo.files)[0]:this.shareImage,{title:this.albumInfo.name,imageUrl:t||this.shareImage}},onShareTimeline:function(){var t="";return t=this.albumInfo.files&&1==this.albumInfo.type?this.splitImages(this.albumInfo.files)[0]:this.shareImage,{title:this.albumInfo.name,imageUrl:t||this.shareImage}},methods:{handleDownload:function(e){e?(t.showLoading({mask:!0,title:"加载中"}),this.$util.downloadFile(e).then((function(){t.hideLoading()})).catch((function(e){t.hideLoading(),t.showToast({icon:"none",title:(null===e||void 0===e?void 0:e.errMsg)||"视频下载失败"})}))):t.showToast({icon:"none",title:"暂无可下载视频"})},getAlbumDetails:function(e){var n=this;this.$util.request("album.albumDetails",{album_id:this.albumId}).then((function(a){e&&e(),1==a.code?n.albumInfo=a.data:t.showToast({title:a.msg,icon:"none"})})).catch((function(t){401==t?n.showLogin=!0:(e&&e(),console.error("获取相册详情 ",t))}))},previewImage:function(e){var n=this.splitImages(this.albumInfo.files);t.previewImage({urls:n,current:e})},splitImages:function(t){try{return t?t.split(","):[]}catch(e){return[]}},toLogin:function(){t.redirectTo({url:"/pagesTools/album/details?id=".concat(this.albumId)})}}};e.default=l}).call(this,n("df3c")["default"])},"4b05":function(t,e,n){"use strict";n.r(e);var a=n("2232"),o=n("c5d3");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("0f7e");var r=n("828b"),u=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=u.exports},"9f28":function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("aa6c");a(n("3240"));var o=a(n("4b05"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},ac2e:function(t,e,n){},c5d3:function(t,e,n){"use strict";n.r(e);var a=n("2c53"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a}},[["9f28","common/runtime","common/vendor"]]]);