require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/goods_comment_list/index"],{"1d06":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("de22"),o=getApp(),a={components:{userEvaluation:function(){n.e("pages/goods/components/userEvaluation/index").then(function(){return resolve(n("5905"))}.bind(null,n)).catch(n.oe)}},data:function(){return{urlDomain:this.$Cache.get("imgHost"),replyData:{},product_id:0,reply:[],type:0,loading:!1,loadend:!1,loadTitle:"加载更多",page:1,limit:20,theme:o.globalData.theme}},onLoad:function(t){if(!t.productId)return this.$util.Tips({title:"缺少参数"},{tab:3,url:1});this.productId=t.productId},onShow:function(){this.getProductReplyCount(),this.getProductReplyList()},methods:{getProductReplyCount:function(){var t=this;(0,i.getReplyConfig)(t.productId).then((function(e){t.$set(t,"replyData",e.data)}))},getProductReplyList:function(){var t=this;t.loadend||t.loading||(t.loading=!0,t.loadTitle="",(0,i.getReplyList)(t.productId,{page:t.page,limit:t.limit,type:t.type}).then((function(e){var n=e.data.list,i=n.length<t.limit;t.reply=t.$util.SplitArray(n,t.reply),t.$set(t,"reply",t.reply),t.loading=!1,t.loadend=i,t.reply.length&&(t.loadTitle=i?"到底了~~":"加载更多"),t.page=t.page+1})).catch((function(e){t.loading=!1,t.loadTitle="加载更多"})))},changeType:function(t){var e=parseInt(t);e!=this.type&&(this.type=e,this.page=1,this.loadend=!1,this.$set(this,"reply",[]),this.getProductReplyList())}},onReachBottom:function(){this.getProductReplyList()}};e.default=a},"44f5":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("1d3c");i(n("3240"));var o=i(n("75d5"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"75d5":function(t,e,n){"use strict";n.r(e);var i=n("e012"),o=n("9bf7");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("f57f");var u=n("828b"),l=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=l.exports},"9bf7":function(t,e,n){"use strict";n.r(e);var i=n("1d06"),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},d5a8:function(t,e,n){},e012: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=[]},f57f:function(t,e,n){"use strict";var i=n("d5a8"),o=n.n(i);o.a}},[["44f5","common/runtime","common/vendor"]]]);