(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/share/cash-detail/cash-detail"],{"0245":function(t,e,n){},"3e9b":function(t,e,n){"use strict";(function(t){n("b8bc");i(n("66fd"));var e=i(n("62d7"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"4c39":function(t,e,n){"use strict";n.r(e);var i=n("51cc"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"51cc":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2f62");function a(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}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=function(){n.e("components/basic-component/app-tab-nav/app-tab-nav").then(function(){return resolve(n("cf4b"))}.bind(null,n)).catch(n.oe)},s={data:function(){return{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":r},computed:o({},(0,i.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 i in e.loading=null,n.data.list)for(var a in e.list)i==a&&(e.list[a].list=e.list[a].list.concat(n.data.list[a].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(){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"])},"62d7":function(t,e,n){"use strict";n.r(e);var i=n("9c3b"),a=n("4c39");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("97c9");var c,r=n("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"7241829a",null,!1,i["a"],c);e["default"]=s.exports},"97c9":function(t,e,n){"use strict";var i=n("0245"),a=n.n(i);a.a},"9c3b":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement;t._self._c},o=[]}},[["3e9b","common/runtime","common/vendor"]]]);