require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/extension/news_details/index"],{"03c6":function(t,e,i){"use strict";i.r(e);var n=i("2cf7"),a=i("ebe5");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("16a5"),i("7c77");var s=i("828b"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=r.exports},"16a5":function(t,e,i){"use strict";var n=i("b5a1"),a=i.n(n);a.a},"2cf7":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={jyfParser:function(){return Promise.all([i.e("common/vendor"),i.e("components/jyf-parser/jyf-parser")]).then(i.bind(null,"d294"))}},a=function(){var t=this.$createElement;this._self._c},o=[]},"7c77":function(t,e,i){"use strict";var n=i("cd1e"),a=i.n(n);a.a},b5a1:function(t,e,i){},b84e:function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i("360a"),o=i("92f9"),s=n(i("89cc")),r=i("8f59"),c=i("5088"),l=i("4d38"),f={components:{shareInfo:function(){i.e("pages/extension/components/shareInfo/index").then(function(){return resolve(i("657f"))}.bind(null,i)).catch(i.oe)},"jyf-parser":function(){Promise.all([i.e("common/vendor"),i.e("components/jyf-parser/jyf-parser")]).then(function(){return resolve(i("d294"))}.bind(null,i)).catch(i.oe)}},mixins:[s.default],data:function(){return{id:0,articleInfo:{},store_info:{},content:"",shareInfoStatus:!1,tagStyle:{img:"width:100%;display:block;border-radius:8px;",table:"width:100%",video:"width:100%;"}}},computed:(0,r.mapGetters)(["isLogin","uid"]),onPageScroll:function(e){t.$emit("scroll")},onShareAppMessage:function(){return{title:this.articleInfo.title,imageUrl:this.articleInfo.image_input[0]||"",path:"/pages/extension/news_details/index?id="+this.id+"&spid="+this.uid}},onShareTimeline:function(){return{title:this.articleInfo.title,imageUrl:this.articleInfo.image_input[0]||"",path:"/pages/extension/news_details/index?id="+this.id+"&spid="+this.uid}},onLoad:function(e){e.hasOwnProperty("id")?this.id=e.id:t.navigateBack({delta:1})},onShow:function(){t.removeStorageSync("form_type_cart"),this.getArticleOne()},methods:{getArticleOne:function(){var e=this;(0,a.getArticleDetails)(e.id).then((function(i){t.setNavigationBarTitle({title:i.data.title}),e.$set(e,"articleInfo",i.data),e.$set(e,"store_info",i.data.store_info?i.data.store_info:{}),e.content=i.data.content}))},giveLike:function(){var e=this;this.isLogin?(0,o.articleStarApi)(this.id,{status:this.articleInfo.is_like?0:1}).then((function(i){var n=e;t.showToast({title:e.articleInfo.is_like?"取消点赞":"点赞成功",icon:"none",success:function(){e.articleInfo.is_like?(n.articleInfo.likes=n.articleInfo.likes-1,n.articleInfo.is_like=0):(n.articleInfo.likes=n.articleInfo.likes+1,n.articleInfo.is_like=1)}})})):(0,c.toLogin)()},goDetail:function(){t.navigateTo({url:"/pages/goods_details/index?id="+this.store_info.id})},listenerActionSheet:function(){if(this.$wechat.isWeixin())this.shareInfoStatus=!0;else{t.setClipboardData({data:l.HTTP_REQUEST_URL+"/pages/extension/news_details/index?id="+this.id,success:function(){t.showToast({title:"已复制页面链接"})}})}},setShareInfoStatus:function(){this.shareInfoStatus=!1},setShareInfo:function(){var t=location.href,e={desc:this.articleInfo.synopsis,title:this.articleInfo.title,link:t,imgUrl:this.articleInfo.image_input.length?this.articleInfo.image_input[0]:""};this.$wechat.wechatEvevt(["updateAppMessageShareData","updateTimelineShareData"],e)}}};e.default=f}).call(this,i("df3c")["default"])},cd1e:function(t,e,i){},d9e4:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("f076");n(i("3240"));var a=n(i("03c6"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},ebe5:function(t,e,i){"use strict";i.r(e);var n=i("b84e"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a}},[["d9e4","common/runtime","common/vendor"]]]);