(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/product/reply"],{"895c":function(e,t,n){},9328:function(e,t,n){"use strict";n.r(t);var r=n("a810"),a=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=a.a},"93c4":function(e,t,n){"use strict";(function(e,t){var r=n("4ea4");n("12d5");r(n("66fd"));var a=r(n("f4b1"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},a810:function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("2eee")),i=r(n("c973")),o=n("5e62"),u={components:{uniRate:function(){n.e("components/uni-rate/uni-rate").then(function(){return resolve(n("a815"))}.bind(null,n)).catch(n.oe)}},watch:{},data:function(){return{maxheight:"",id:"",list:"",reply:"",tabCurrentIndex:0,navList:[{state:0,text:"全部",loadingType:"more",number:"",orderList:[],page:1,limit:5},{state:1,text:"好评",loadingType:"more",number:"",orderList:[],page:1,limit:5},{state:3,text:"差评",loadingType:"more",number:"",orderList:[],page:1,limit:5},{state:2,text:"中评",loadingType:"more",number:"",orderList:[],page:1,limit:5}]}},computed:{},onReady:function(){var t=this;e.createSelectorQuery().select(".container").fields({size:!0},(function(e){t.maxheight=e.height-Math.floor(e.width/750*145)})).exec()},onLoad:function(e){this.id=e.id},onShow:function(){var e=this;(0,o.reply_config)({},this.id).then((function(t){var n=t.data;e.reply=n,e.navList[0].number=e.reply.sum_count,e.navList[1].number=e.reply.good_count,e.navList[2].number=e.reply.poor_count,e.navList[3].number=e.reply.in_count})),this.loadDate()},methods:{loadDate:function(e){var t=this;return(0,i.default)(a.default.mark((function n(){var r,i,u;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=t.tabCurrentIndex,i=t.navList[r],u=i.state,"tabChange"!==e||!0!==i.loaded){n.next=5;break}return n.abrupt("return");case 5:if("loading"!==i.loadingType){n.next=7;break}return n.abrupt("return");case 7:if("noMore"!==i.loadingType){n.next=9;break}return n.abrupt("return");case 9:i.loadingType="loading",(0,o.reply_list)({type:u,page:i.page,limit:i.limit},t.id).then((function(e){var n=e.data,r=n;i.orderList=i.orderList.concat(r),console.log(i.orderList,111),i.page++,i.limit!=n.length?(i.loadingType="noMore",t.$set(i,"loaded",!0)):i.loadingType="more"})).catch((function(e){console.log(e)}));case 11:case"end":return n.stop()}}),n)})))()},navTo:function(t){e.navigateTo({url:t})},changeTab:function(e){this.tabCurrentIndex=e.target.current,this.loadDate("tabChange")},tabClick:function(e){this.tabCurrentIndex=e}}};t.default=u}).call(this,n("543d")["default"])},d878:function(e,t,n){"use strict";var r=n("895c"),a=n.n(r);a.a},f4b1:function(e,t,n){"use strict";n.r(t);var r=n("fc54"),a=n("9328");for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("d878");var o=n("f0c5"),u=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);t["default"]=u.exports},fc54:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var r={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,"bfdb"))}},a=function(){var e=this.$createElement;this._self._c},i=[]}},[["93c4","common/runtime","common/vendor"]]]);