(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/article/details"],{1911:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={mpHtml:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/mp-html/components/mp-html/mp-html")]).then(n.bind(null,"7717"))}},o=function(){var t=this.$createElement;this._self._c},r=[]},"4b60":function(t,e,n){"use strict";n.r(e);var i=n("bd5d"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},9143:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("aa6c");i(n("3240"));var o=i(n("bbde"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},bbde:function(t,e,n){"use strict";n.r(e);var i=n("1911"),o=n("4b60");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("d8eb");var a=n("828b"),c=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},bd5d:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("7ca3")),r=n("8f59");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var c={data:function(){return{loadEnd:!1,pageTitle:"",articleId:null,articleInfo:{},annexList:[]}},computed:function(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){(0,o.default)(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}({},(0,r.mapState)({themeColor:function(t){return t.app.themeColor},shareTitle:function(t){return t.app.shareTitle}})),onLoad:function(e){var n=this;this.articleId=e.id,e.title&&(this.pageTitle=decodeURIComponent(e.title)),t.showLoading({title:"加载中"}),this.getArticle((function(){n.loadEnd=!0,t.hideLoading()}))},onShareAppMessage:function(){return{title:this.articleInfo.title,imageUrl:this.articleInfo.image}},onShareTimeline:function(){return{title:this.articleInfo.title,imageUrl:this.articleInfo.image}},methods:{getArticle:function(e){var n=this;this.$util.request("main.article.details",{id:this.articleId}).then((function(i){var o;(e&&e(),1==i.code)?(n.articleInfo=i.data,n.annexList=(null===(o=i.data)||void 0===o?void 0:o.files)||[]):t.showToast({title:i.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取文章详情 ",t)}))},handleDownload:function(e,n){e?(t.showLoading({mask:!0,title:"加载中"}),this.$util.downloadFile(e,2,n).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:"暂无可下载附件"})}}};e.default=c}).call(this,n("df3c")["default"])},bf4f:function(t,e,n){},d8eb:function(t,e,n){"use strict";var i=n("bf4f"),o=n.n(i);o.a}},[["9143","common/runtime","common/vendor"]]]);