(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesActivity/order/index"],{"1a82":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("af34")),r=i(n("7ca3")),o=n("8f59");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var c={components:{list:function(){Promise.all([n.e("common/vendor"),n.e("pagesActivity/order/components/list/index")]).then(function(){return resolve(n("7aa8"))}.bind(null,n)).catch(n.oe)}},data:function(){return{loadEnd:!1,titleBarHeight:0,screenList:[{id:0,name:"全部"},{id:1,name:"待付款",pay_state:1},{id:2,name:"报名中",pay_state:2,activity_state:1},{id:3,name:"进行中",pay_state:2,activity_state:2},{id:4,name:"已结束",pay_state:2,activity_state:3},{id:5,name:"已退款",pay_state:4},{id:6,name:"已驳回",pay_state:5}],selectScreen:0,orderList:[],page:1,limit:20,hasMore:!1}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,o.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(){var e=this;t.getStorageSync("token")?(t.showLoading({title:"加载中"}),this.getOrderList((function(){t.hideLoading(),e.loadEnd=!0}))):this.$util.verifyLogin(2)},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:{getOrderList:function(e){var n=this,i={page:this.page,limit:this.limit};this.screenList[this.selectScreen].activity_state&&(i.activity_state=this.screenList[this.selectScreen].activity_state),this.screenList[this.selectScreen].pay_state&&(i.pay_state=this.screenList[this.selectScreen].pay_state),this.$util.request("activity.orderList",i).then((function(i){if(e&&e(),1==i.code){var r=i.data.data;n.hasMore=n.page<i.data.total/n.limit,n.orderList=1==n.page?r:[].concat((0,a.default)(n.orderList),(0,a.default)(r))}else t.showToast({title:i.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取订单列表 ",t)}))},changeScreen:function(t){this.selectScreen=t,this.page=1,this.getOrderList()},resetOrderList:function(){this.page=1,this.getOrderList()}}};e.default=c}).call(this,n("df3c")["default"])},"26c6":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=(this._self._c,this.loadEnd?this.orderList.length:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},a=[]},"2f19":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("aa6c");i(n("3240"));var a=i(n("4194"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},4077:function(t,e,n){"use strict";n.r(e);var i=n("1a82"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},4194:function(t,e,n){"use strict";n.r(e);var i=n("26c6"),a=n("4077");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("da74");var o=n("828b"),s=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=s.exports},c594:function(t,e,n){},da74:function(t,e,n){"use strict";var i=n("c594"),a=n.n(i);a.a}},[["2f19","common/runtime","common/vendor"]]]);