(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/upload/commodity"],{"0187":function(t,e,n){"use strict";n.r(e);var a=n("0903"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},"0903":function(t,e,n){"use strict";(function(t){var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("2eee")),i=a(n("c973")),r=n("c306"),c=n("8878"),u={components:{empty:function(){n.e("components/empty").then(function(){return resolve(n("c38b"))}.bind(null,n)).catch(n.oe)}},data:function(){return{height:"",tabCurrentIndex:0,navList:[{type:1,state:1,text:"审核中",loadingType:"more",orderList:[],page:1,limit:10},{type:2,state:0,text:"审核成功",loadingType:"more",orderList:[],page:1,limit:10},{type:3,state:0,text:"审核失败",loadingType:"more",orderList:[],page:1,limit:10}]}},onLoad:function(t){t.id&&(this.tabCurrentIndex=1*t.id)},onShow:function(){this.loadData()},onReachBottom:function(){},onReady:function(e){var n=this;t.getSystemInfo({success:function(e){var a=t.createSelectorQuery();a.select(".swiper-box").boundingClientRect(),a.exec((function(t){n.height=e.windowHeight-t[0].top+"px",console.log("打印页面的剩余高度",n.height)}))},fail:function(t){}})},methods:{changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t},navTo:function(e){t.navigateTo({url:e})},loadData:function(t){var e=this;return(0,i.default)(o.default.mark((function n(){var a,i,u,d;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=e,i=e.tabCurrentIndex,u=e.navList[i],console.log(u),d=u.type,"shua"===t&&(u.loadingType="more",u.page=1,u.limit=10,u.orderList=[]),"tabChange"!==t||!0!==u.loaded){n.next=8;break}return n.abrupt("return");case 8:if("loading"!==u.loadingType){n.next=10;break}return n.abrupt("return");case 10:u.loadingType="loading",(0,r.get_list)({page:u.page,limit:u.limit,type:d}).then((function(t){var e=t.data;console.log(e.data,"123456"),e.data.forEach((function(t){t.add_time=(0,c.getTime)(t.add_time)})),u.orderList=u.orderList.concat(e.data),u.page++,u.limit==e.data.length?u.loadingType="more":u.loadingType="noMore",a.$set(u,"loaded",!0)})).catch((function(t){console.log(t)}));case 12:case"end":return n.stop()}}),n)})))()}}};e.default=u}).call(this,n("543d")["default"])},"65fe":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={uniLoadMore:function(){return n.e("components/uni-load-more/uni-load-more").then(n.bind(null,"c87e"))}},o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.navList,(function(e,n){var a=t.__get_orig(e),o=!0===e.loaded&&0===e.orderList.length,i=0==e.orderList.length&&e.loaded;return{$orig:a,g0:o,g1:i}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},i=[]},"6b23":function(t,e,n){},"950d":function(t,e,n){"use strict";n.r(e);var a=n("65fe"),o=n("0187");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("c5a9");var r=n("f0c5"),c=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=c.exports},c5a9:function(t,e,n){"use strict";var a=n("6b23"),o=n.n(a);o.a},f36e:function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("d1cd");a(n("66fd"));var o=a(n("950d"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["f36e","common/runtime","common/vendor"]]]);