(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesPoints/order/index"],{"0114":function(t,e,n){"use strict";var r=n("977c"),i=n.n(r);i.a},"36c0":function(t,e,n){"use strict";n.r(e);var r=n("8b015"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"8b015":function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("af34")),o=r(n("7ca3")),s=n("8f59");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var a={components:{mallOrder:function(){n.e("pagesPoints/component/mall/order").then(function(){return resolve(n("9224"))}.bind(null,n)).catch(n.oe)}},data:function(){return{loadEnd:!1,titleBarHeight:0,screenList:[{text:"全部"},{text:"待发货",state:2},{text:"待收货",state:3},{text:"已完成",state:4}],selectScreen:0,page:1,limit:20,hasMore:!1,orderList:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,s.mapState)({themeColor:function(t){return t.app.themeColor}})),mounted:function(){var e=t.getSystemInfoSync().statusBarHeight,n=t.getMenuButtonBoundingClientRect();this.titleBarHeight=e+2*(n.top-e)+n.height},onLoad:function(e){var n=this;e.id&&(this.selectScreen=this.screenList.findIndex((function(t){if(t.state==e.id)return!0}))),t.showLoading({title:"加载中"}),this.getOrderList((function(){t.hideLoading(),n.loadEnd=!0}))},onShow:function(){this.loadEnd&&(t.pageScrollTo({scrollTop:0,duration:0}),this.page=1,this.getOrderList())},onPullDownRefresh:function(){this.page=1,this.getOrderList((function(){t.stopPullDownRefresh()}))},onReachBottom:function(){this.hasMore&&(this.page++,this.getOrderList())},methods:{changeScreen:function(t){this.selectScreen=t,this.page=1,this.getOrderList()},getOrderList:function(e){var n=this,r={page:this.page,limit:this.limit};this.screenList[this.selectScreen].state&&(r.state=this.screenList[this.selectScreen].state),this.$util.request("points.orderList",r).then((function(r){if(e&&e(),1==r.code){var o=r.data.data;n.hasMore=n.page<r.data.total/n.limit,n.orderList=1==n.page?o:[].concat((0,i.default)(n.orderList),(0,i.default)(o))}else t.showToast({title:r.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取订单列表",t)}))},resetOrderList:function(){this.page=1,this.getOrderList()}}};e.default=a}).call(this,n("df3c")["default"])},"977c":function(t,e,n){},af46:function(t,e,n){"use strict";n.r(e);var r=n("dcf5"),i=n("36c0");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("0114");var s=n("828b"),c=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=c.exports},c355:function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("aa6c");r(n("3240"));var i=r(n("af46"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},dcf5:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement,e=(this._self._c,this.loadEnd?this.orderList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},i=[]}},[["c355","common/runtime","common/vendor"]]]);