require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/article/detail"],{5376:function(t,e,i){"use strict";i.r(e);var a=i("597f"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"597f":function(t,e,i){"use strict";var a=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("e5ac")),r={data:function(){return{articleId:0,detail:{},content:""}},onLoad:function(t){if(this.articleId=t.article_id||0,t.scene){var e=decodeURIComponent(t.scene);this.articleId=e.split("-")[1]}0==this.articleId&&this.$util.redirectTo("/pages_tool/article/list",{},"redirectTo")},onShow:function(){this.getData()},methods:{getData:function(){var t=this;this.$api.sendRequest({url:"/api/article/info",data:{article_id:this.articleId},success:function(e){0==e.code&&e.data?(t.detail=e.data,t.$langConfig.title(t.detail.article_title),t.content=(0,n.default)(t.detail.article_content),t.setPublicShare()):(t.$util.showToast({title:e.message}),setTimeout((function(){t.$util.redirectTo("/pages_tool/article/list",{},"redirectTo")}),2e3)),t.$refs.loadingCover&&t.$refs.loadingCover.hide()},fail:function(e){t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},setPublicShare:function(){var t=this.$config.h5Domain+"/pages_tool/article/detail?article_id="+this.articleId;this.$util.setPublicShare({title:this.detail.article_title,desc:"",link:t,imgUrl:this.siteInfo?this.$util.img(this.siteInfo.logo_square):""})}},onShareAppMessage:function(t){var e=this.detail.article_title,i="/pages_tool/article/detail?article_id="+this.articleId;return{title:e,path:i,success:function(t){},fail:function(t){}}},onShareTimeline:function(){var t=this.detail.article_title,e="article_id="+this.articleId;return{title:t,query:e,imageUrl:""}}};e.default=r},6572:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a}));var a={loadingCover:function(){return i.e("components/loading-cover/loading-cover").then(i.bind(null,"0773"))}},n=function(){var t=this.$createElement,e=(this._self._c,1==this.detail.is_show_release_time?this.$util.timeStampTurnTime(this.detail.create_time):null);this.$mp.data=Object.assign({},{$root:{g0:e}})},r=[]},"84d2":function(t,e,i){"use strict";var a=i("b597"),n=i.n(a);n.a},ae9b:function(t,e,i){"use strict";i.r(e);var a=i("6572"),n=i("5376");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("84d2");var l=i("828b"),o=Object(l["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=o.exports},b597:function(t,e,i){},cadb:function(t,e,i){"use strict";(function(t,e){var a=i("47a9");i("1dee");a(i("3240"));var n=a(i("ae9b"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(n.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])}},[["cadb","common/runtime","common/vendor"]]]);