require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/news_details/index"],{"0f14":function(t,e,n){},"655f":function(t,e,n){"use strict";n.r(e);var i=n("d320"),o=n("e37b");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("f18f");var r=n("828b"),c=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"42f85e02",null,!1,i["a"],void 0);e["default"]=c.exports},"9b49":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("3c22"),o=n("de22"),a=getApp(),r={components:{shareInfo:function(){n.e("pages/goods/components/shareInfo/index").then(function(){return resolve(n("c0d7"))}.bind(null,n)).catch(n.oe)},richTextEditor:function(){n.e("components/homeIndex/richTextEditor").then(function(){return resolve(n("296f"))}.bind(null,n)).catch(n.oe)},"jyf-parser":function(){Promise.all([n.e("pages/goods/common/vendor"),n.e("pages/goods/components/jyf-parser/jyf-parser")]).then(function(){return resolve(n("43df"))}.bind(null,n)).catch(n.oe)}},data:function(){return{id:0,articleInfo:[],store_info:{},shareInfoStatus:!1,tagStyle:{img:"width:100%;display:block;",table:"width:100%",video:"width:100%"},productId:0,theme:a.globalData.theme,bgColor:"#ffffff",richText:""}},onLoad:function(e){e.hasOwnProperty("id")?this.id=e.id:t.navigateBack({delta:1})},onShow:function(){this.getArticleOne()},onShareAppMessage:function(){return{title:this.articleInfo.title,imageUrl:this.articleInfo.imageInput.length?this.articleInfo.imageInput:"",desc:this.articleInfo.synopsis,path:"/pages/news_details/index?id="+this.id}},methods:{getArticleOne:function(){var e=this;(0,i.getArticleDetails)(e.id).then((function(n){t.setNavigationBarTitle({title:n.data.title.substring(0,7)+"..."}),e.$set(e,"articleInfo",n.data),e.$set(e,"productId",n.data.productId),n.data.productId&&e.goodInfo(n.data.productId),e.richText=n.data.content}))},goodInfo:function(t){var e=this;(0,o.getProductDetail)(t).then((function(t){e.$set(e,"store_info",t.data.storeInfo?t.data.storeInfo:{})}))},listenerActionSheet:function(){this.shareInfoStatus=!0},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.imageInput.length?this.articleInfo.imageInput[0]:""};this.$wechat.wechatEvevt(["updateAppMessageShareData","updateTimelineShareData"],e)},bgTheme:function(t){this.bgColor=t}}};e.default=r}).call(this,n("df3c")["default"])},d320:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},o=[]},e37b:function(t,e,n){"use strict";n.r(e);var i=n("9b49"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},ef4d:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("1d3c");i(n("3240"));var o=i(n("655f"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},f18f:function(t,e,n){"use strict";var i=n("0f14"),o=n.n(i);o.a}},[["ef4d","common/runtime","common/vendor"]]]);