(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesMall/refund/index"],{3123: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")),a=n("8f59");function s(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 c={components:{mallRefund:function(){n.e("pagesMall/component/mall/refund").then(function(){return resolve(n("c278"))}.bind(null,n)).catch(n.oe)}},data:function(){return{loadEnd:!1,titleBarHeight:0,screenList:[{text:"全部"},{text:"申请中",state:2},{text:"待退货",state:3},{text:"退款中",state:4},{text:"已退款",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,o.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,a.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.refund_status=this.screenList[this.selectScreen].state),this.$util.request("mall.refundList",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=c}).call(this,n("df3c")["default"])},4937:function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("aa6c");r(n("3240"));var i=r(n("c15e"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},c15e:function(t,e,n){"use strict";n.r(e);var r=n("f685"),i=n("c178");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("d304");var a=n("828b"),s=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=s.exports},c178:function(t,e,n){"use strict";n.r(e);var r=n("3123"),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},d304:function(t,e,n){"use strict";var r=n("e7b0"),i=n.n(r);i.a},e7b0:function(t,e,n){},f685: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=[]}},[["4937","common/runtime","common/vendor"]]]);