(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/product/reply"],{"467c":function(t,e,n){},"4d1d":function(t,e,n){"use strict";var r=n("467c"),a=n.n(r);a.a},"549c":function(t,e,n){"use strict";(function(t){n("e27b");r(n("66fd"));var e=r(n("922e"));function r(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])},"605c":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("a34a")),a=n("3998");function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n,r,a,o,i){try{var u=t[o](i),c=u.value}catch(l){return void n(l)}u.done?e(c):Promise.resolve(c).then(r,a)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function u(t){i(o,r,a,u,c,"next",t)}function c(t){i(o,r,a,u,c,"throw",t)}u(void 0)}))}}var c=function(){n.e("components/uni-rate/uni-rate").then(function(){return resolve(n("abb3"))}.bind(null,n)).catch(n.oe)},l={components:{uniRate:c},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 e=this;t.createSelectorQuery().select(".container").fields({size:!0},(function(t){e.maxheight=t.height-Math.floor(t.width/750*145)})).exec()},onLoad:function(t){this.id=t.id},onShow:function(){var t=this;(0,a.reply_config)({},this.id).then((function(e){var n=e.data;t.reply=n,t.navList[0].number=t.reply.sum_count,t.navList[1].number=t.reply.good_count,t.navList[2].number=t.reply.poor_count,t.navList[3].number=t.reply.in_count})),this.loadDate()},methods:{loadDate:function(t){var e=this;return u(r.default.mark((function n(){var o,i,u;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.tabCurrentIndex,i=e.navList[o],u=i.state,"tabChange"!==t||!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,a.reply_list)({type:u,page:i.page,limit:i.limit},e.id).then((function(t){var n=t.data,r=n;i.orderList=i.orderList.concat(r),console.log(i.orderList,111),i.page++,i.limit!=n.length?(i.loadingType="noMore",e.$set(i,"loaded",!0)):i.loadingType="more"})).catch((function(t){console.log(t)}));case 11:case"end":return n.stop()}}),n)})))()},navTo:function(e){t.navigateTo({url:e})},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadDate("tabChange")},tabClick:function(t){this.tabCurrentIndex=t}}};e.default=l}).call(this,n("543d")["default"])},"922e":function(t,e,n){"use strict";n.r(e);var r=n("fe67"),a=n("d787");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("4d1d");var i,u=n("f0c5"),c=Object(u["a"])(a["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],i);e["default"]=c.exports},d787:function(t,e,n){"use strict";n.r(e);var r=n("605c"),a=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=a.a},fe67:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,"feaa"))}},a=function(){var t=this,e=t.$createElement;t._self._c},o=[]}},[["549c","common/runtime","common/vendor"]]]);