require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/goods_comment_con/comment_con"],{6296:function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i("0f73"),o=n(i("89cc")),s={components:{tuiDrawer:function(){i.e("components/tui-drawer/tui-drawer").then(function(){return resolve(i("af01"))}.bind(null,i)).catch(i.oe)}},mixins:[o.default],data:function(){return{id:0,page:1,limit:200,replyCon:{},replyList:[],con:"",scrollTop:0,replyNum:0,showInput:!1}},onLoad:function(t){this.id=t.id,this.getInfo(),this.getList()},onShow:function(){t.removeStorageSync("form_type_cart")},methods:{tapPraise:function(){var t=this;this.replyCon.is_praise?(0,r.getUnReplyPraise)(this.id).then((function(e){return t.replyCon.is_praise=!t.replyCon.is_praise,t.replyCon.reply.praise=t.replyCon.reply.praise-1,t.$util.Tips({title:e.msg})})):(0,r.getReplyPraise)(this.id).then((function(e){return t.replyCon.is_praise=!t.replyCon.is_praise,t.replyCon.reply.praise=t.replyCon.reply.praise+1,t.$util.Tips({title:e.msg})}))},setPageScrollTo:function(){var e=this,i=t.createSelectorQuery().in(this).select("#tops");i.boundingClientRect((function(t){e.scrollTop=parseFloat(t.height)})).exec()},sendText:function(){var t=this;if(!this.con.trim())return this.$util.Tips({title:"说点什么呗"});(0,r.replyComment)(this.id,{content:this.con}).then((function(e){var i=t;t.con="",i.showInput=!1,t.replyNum=t.replyNum+1,t.getList(),t.$util.Tips({title:e.msg})}))},details:function(e){e.is_presale_product?t.navigateTo({url:"/pages/activity/goods_details/index?id=".concat(e.id,"&type=6")}):t.navigateTo({url:"/pages/goods_details/index?id=".concat(e.id)})},getInfo:function(){var t=this;(0,r.getReplyInfo)(this.id).then((function(e){t.replyCon=e.data,t.replyNum=t.replyCon.reply.comment_sum}))},getList:function(){var t=this;(0,r.getReplyComment)(this.id,{page:this.page,limit:this.limit}).then((function(e){t.replyList=e.data})).catch((function(e){return t.$util.Tips({title:e.msg})}))},getpreviewImage:function(e){t.previewImage({urls:this.replyCon.reply.pics,current:this.replyCon.reply.pics[e]})},praise:function(t){var e=this;t.is_praise?(0,r.postUnReplyPraise)(t.id).then((function(i){return t.is_praise=!t.is_praise,t.praise=t.praise-1,e.$util.Tips({title:i.msg})})):(0,r.postReplyPraise)(t.id).then((function(i){return t.is_praise=!t.is_praise,t.praise=t.praise+1,e.$util.Tips({title:i.msg})}))},closeDrawer:function(){this.showInput=!1}},onPageScroll:function(e){t.$emit("scroll")}};e.default=s}).call(this,i("df3c")["default"])},"68be":function(t,e,i){"use strict";var n=i("fa63"),r=i.n(n);r.a},"7a71":function(t,e,i){"use strict";i.r(e);var n=i("6296"),r=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"]=r.a},b28f:function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("f076");n(i("3240"));var r=n(i("ced2"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(r.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},ced2:function(t,e,i){"use strict";i.r(e);var n=i("e924"),r=i("7a71");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("68be");var s=i("828b"),a=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=a.exports},e924:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={tuiDrawer:function(){return i.e("components/tui-drawer/tui-drawer").then(i.bind(null,"af01"))}},r=function(){var t=this,e=t.$createElement,i=(t._self._c,t.replyCon.reply?Number(t.replyCon.star):null);t._isMounted||(t.e0=function(e){t.showInput=!0}),t.$mp.data=Object.assign({},{$root:{l0:i}})},o=[]},fa63:function(t,e,i){}},[["b28f","common/runtime","common/vendor"]]]);