(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/share/cash-detail/cash-detail"],{"1fca":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("2f62");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(){n.e("components/basic-component/app-tab-nav/app-tab-nav").then(function(){return resolve(n("9b24"))}.bind(null,n)).catch(n.oe)},s={data:function(){return{theme:{color:"#ff4544"},tabList:[{id:-1,name:"全部"},{id:0,name:"待审核"},{id:1,name:"待打款"},{id:2,name:"已打款"},{id:3,name:"无效"}],loading:null,list:[],activeTab:-1,noBorder:!1,id:null,page:2}},components:{"app-tab-nav":c},computed:o({},(0,a.mapState)({mall:function(t){return t.mallConfig.mall},custom_setting:function(t){return t.mallConfig.share_setting_custom},share_setting:function(t){return t.mallConfig.share_setting}})),methods:{open:function(t){this.id=t},tabStatus:function(e){this.list=[],this.page=2,this.activeTab=e.currentTarget.dataset.id,t.showLoading({title:"加载中..."}),this.getList()},getList:function(){var e=this;e.$request({url:e.$api.share.cash_list,data:{status:e.activeTab}}).then((function(n){e.$hideLoading(),t.hideLoading(),0===n.code?e.list=n.data.list:t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(){e.$hideLoading(),t.hideLoading(),e.$event.on(e.$const.EVENT_USER_LOGIN).then((function(){e.getList()}))}))},getMore:function(){var e=this;t.showLoading({title:"加载中..."}),e.$request({url:e.$api.share.cash_list,data:{status:e.activeTab,page:e.page}}).then((function(n){if(t.hideLoading(),0==n.code){for(var a in e.loading=null,n.data.list)for(var i in e.list)a==i&&(e.list[i].list=e.list[i].list.concat(n.data.list[i].list));e.page++}else t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(){t.hideLoading()}))},toGoods:function(e){t.navigateTo({url:"/pages/goods/goods?id=".concat(e)})}},onLoad:function(){this.$commonLoad.onload();var e=this;t.setNavigationBarTitle({title:e.custom_setting.menus.cash.name}),e.$showLoading({type:"global",text:"加载中..."}),e.getList()},onReachBottom:function(){this.getMore()}};e.default=s}).call(this,n("543d")["default"])},"2b96":function(t,e,n){"use strict";var a=n("d1d9"),i=n.n(a);i.a},"44c1":function(t,e,n){"use strict";n.r(e);var a=n("ce4e"),i=n("99fb");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("2b96");var r,c=n("f0c5"),s=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"123ac924",null,!1,a["a"],r);e["default"]=s.exports},"60d4":function(t,e,n){"use strict";(function(t){n("2d0a");a(n("66fd"));var e=a(n("44c1"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"99fb":function(t,e,n){"use strict";n.r(e);var a=n("1fca"),i=n.n(a);for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},ce4e:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement;t._self._c},o=[]},d1d9:function(t,e,n){}},[["60d4","common/runtime","common/vendor"]]]);