(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/news/detail"],{"1fcc":function(e,t,n){"use strict";(function(e){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n("7ca3")),c=n("8f59");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var a={data:function(){return{type:1,content:null,statusBarHeight:0,webviewStyles:{height:"100"}}},components:{uParse:function(){Promise.all([n.e("common/vendor"),n.e("uni_modules/u-parse/u-parse")]).then(function(){return resolve(n("029c"))}.bind(null,n)).catch(n.oe)},NavigationBar:function(){n.e("components/navigation-bar").then(function(){return resolve(n("b1ef"))}.bind(null,n)).catch(n.oe)}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},(0,c.mapState)(["user"])),onLoad:function(t){console.log("资讯",t),this.type=t.type,this.handleActive(t.id),e.showShareMenu({withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})},onShareAppMessage:function(){return{title:this.content.title,path:"/pageTwo/news/detail?id="+this.content.id+"&type="+this.type,imageUrl:this.content.headimg,success:function(e){console.log("分享到朋友成功")},fail:function(e){console.log("分享到朋友失败")}}},onShareTimeline:function(){return{title:this.content.title,query:"id="+this.content.id+"&type="+this.type,imageUrl:this.content.headimg,success:function(e){console.log("分享到朋友圈成功")},fail:function(e){console.log("分享到朋友圈失败")}}},methods:{handleActive:function(e){var t=this,n={id:e,IsBrowseCnt:1,type:this.type},o="";return 1==this.type||5==this.type||6==this.type||7==this.type?o=this.$model.getInfoDetail(n):4==this.type&&(o=this.$model.getCampaignDetail(n)),o.then((function(e){0==e.code&&(console.log("xianghqing",e.data),t.content=e.data)}))},handleNewsList:function(){var e=getCurrentPages(),t=e[e.length-2];t&&"pages/index/index"==t.route&&this.$store.dispatch("getInfoList",{searchValue:"",pageNo:1,pageSize:3})},previewImage:function(){var t=[];t.push(this.content.headimg),e.previewImage({urls:t,current:0}).catch((function(e){console.log(e)}))},handleZan:function(){console.log("点赞");var e=this;e.$model.getLike({id:e.content.id,type:e.type}).then((function(t){e.content.islike=!0,e.content.likecnt++}))}}};t.default=a}).call(this,n("df3c")["default"])},"3af1":function(e,t,n){"use strict";n.r(t);var o=n("f89e"),i=n("7b54");for(var c in i)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(c);n("7524");var r=n("828b"),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"f5f9c36e",null,!1,o["a"],void 0);t["default"]=a.exports},7524:function(e,t,n){"use strict";var o=n("b09d"),i=n.n(o);i.a},"7b54":function(e,t,n){"use strict";n.r(t);var o=n("1fcc"),i=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=i.a},b09d:function(e,t,n){},e26b:function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("e92e");o(n("3240"));var i=o(n("3af1"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},f89e:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return o}));var o={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"b80a"))}},i=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){return e.$tools.getCall(e.user.authlist,e.content.phone)})},c=[]}},[["e26b","common/runtime","common/vendor"]]]);