require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/discover/discover_details/index"],{"162d":function(t,e,n){},3362:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("1d3c");i(n("3240"));var o=i(n("37dd"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"37dd":function(t,e,n){"use strict";n.r(e);var i=n("5978"),o=n("d313");for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);n("f88e");var a=n("828b"),c=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"b4aae802",null,!1,i["a"],void 0);e["default"]=c.exports},5978: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=[]},d313:function(t,e,n){"use strict";n.r(e);var i=n("e713"),o=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},e713:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("785a"),o=n("9592"),s=n("8f59"),a={components:{discoverDetails:function(){Promise.all([n.e("common/vendor"),n.e("pages/discover/components/discoverDetails")]).then(function(){return resolve(n("3fbc"))}.bind(null,n)).catch(n.oe)},discoverComment:function(){Promise.all([n.e("common/vendor"),n.e("pages/discover/components/discoverComment")]).then(function(){return resolve(n("a1ce"))}.bind(null,n)).catch(n.oe)},navBar:function(){n.e("components/navBar").then(function(){return resolve(n("820c"))}.bind(null,n)).catch(n.oe)}},computed:(0,s.mapGetters)(["isLogin","uid","globalData"]),data:function(){return{noteDetail:{},content:"",bottomVal:0,placeholder:"快来说点儿什么吧...",loading:!1,isShowComment:!1,noteId:0,showComment:!1,imageH:0,appear:!1,elementId:"myElement",observer:null,isShowCommentView:!1,isClickBtn:!1,title:"内容详情"}},onShareTimeline:function(){return{title:this.noteDetail.title||"",imageUrl:this.noteDetail.cover||"",query:"noteId=".concat(this.noteDetail.id,"&sd=").concat(this.uid)}},onShareAppMessage:function(t){return{title:this.noteDetail.title||"",imageUrl:this.noteDetail.cover||"",path:"pages/discover/discover_details/index?noteId=".concat(this.noteDetail.id,"&sd=").concat(this.uid)}},onLoad:function(t){getCurrentPages();this.noteId=Number(t.noteId),this.getNoteDetail(t.noteId),(0,o.getUserSpread)(t)},onReady:function(){var e=this;setTimeout((function(){e.observer=t.createIntersectionObserver(e),e.observer.relativeToViewport("#myElement").observe("#commen_count",(function(t){t.intersectionRatio>0?e.isShowCommentView=!0:(e.isShowCommentView=!1,e.isClickBtn=!1)}))}),500)},onUnload:function(){this.observer&&this.observer.disconnect()},onShow:function(){(0,o.silenceBindingSpread)(this.isLogin,this.globalData.spread)},methods:{computedHeight:function(){var e=this;if(this.noteDetail.image){var n=t.getSystemInfoSync().windowWidth;t.getImageInfo({src:this.$util.setDomain(this.noteDetail.image.split(",")[0]),success:function(t){var i=parseInt(t.height*n/t.width);i>500?(e.isAuto=!1,e.imageH=500):e.imageH=i}})}},getReplyNum:function(t){this.noteRecommendListNew[this.noteIndex].replyNum=t},getComment:function(t){this.showComment=!0,this.isClickBtn=!0,this.noteDetails=t},closeModelComment:function(){this.isClickBtn=!1},onChangeReplyStatus:function(t){1===t?(this.$set(this.noteDetail,"replyStatus",2),this.$util.Tips({title:"禁止成功"})):(this.$set(this.noteDetail,"replyStatus",1),this.$util.Tips({title:"开启成功"}))},getNoteDetail:function(e){var n=this;(0,i.noteDetailApi)(e).then((function(t){n.loading=!0,n.noteDetail=t.data,n.noteRecommendList=t.data,n.computedHeight(),n.loading=!1})).catch((function(e){n.loading=!1,t.showToast({title:e,icon:"none"})}))}}};e.default=a}).call(this,n("df3c")["default"])},f88e:function(t,e,n){"use strict";var i=n("162d"),o=n.n(i);o.a}},[["3362","common/runtime","common/vendor"]]]);