(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/product/reply"],{"06c2":function(e,t,n){"use strict";(function(e){var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n("2eee")),i=a(n("c973")),o=n("9918"),u={components:{uniRate:function(){n.e("components/uni-rate/uni-rate").then(function(){return resolve(n("944f"))}.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)(r.default.mark((function n(){var a,i,u;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=t.tabCurrentIndex,i=t.navList[a],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,a=n;i.orderList=i.orderList.concat(a),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"])},"21ec":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var a={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,"eaf8"))}},r=function(){var e=this.$createElement;this._self._c},i=[]},5307:function(e,t,n){"use strict";n.r(t);var a=n("06c2"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=r.a},7456:function(e,t,n){"use strict";(function(e,t){var a=n("4ea4");n("3e39");a(n("66fd"));var r=a(n("7a0b"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"7a0b":function(e,t,n){"use strict";n.r(t);var a=n("21ec"),r=n("5307");for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("d684");var o=n("f0c5"),u=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);t["default"]=u.exports},d0ac:function(e,t,n){},d684:function(e,t,n){"use strict";var a=n("d0ac"),r=n.n(a);r.a}},[["7456","common/runtime","common/vendor"]]]);