cash-detail.js 3.8 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/bonus/cash-detail/cash-detail"],{"18c2":function(t,n,e){"use strict";(function(t){e("2d0a");i(e("66fd"));var n=i(e("b8e9"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"3ec6":function(t,n,e){"use strict";var i=e("94a7"),a=e.n(i);a.a},5316:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("2f62");function a(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function o(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?a(Object(e),!0).forEach((function(n){c(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function c(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var r=function(){e.e("components/basic-component/app-tab-nav/app-tab-nav").then(function(){return resolve(e("9b24"))}.bind(null,e)).catch(e.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":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(n){t.showLoading({mask:!0,title:"加载中..."}),this.list=[],this.page=2,this.activeTab=n.currentTarget.dataset.id,this.getList()},getList:function(){var n=this;n.$request({url:n.$api.bonus.detail,data:{status:n.activeTab}}).then((function(e){n.$hideLoading(),t.hideLoading(),0==e.code?n.list=e.data.list:t.showToast({title:e.msg,icon:"none",duration:1e3})})).catch((function(e){n.$hideLoading(),t.hideLoading(),n.$event.on(n.$const.EVENT_USER_LOGIN).then((function(){n.getSetting()}))}))},getMore:function(){var n=this;t.showLoading({mask:!0,title:"加载中..."}),n.$request({url:n.$api.bonus.detail,data:{status:n.activeTab,page:n.page}}).then((function(e){if(t.hideLoading(),0==e.code){n.loading=null;var i=e.data.list;i.length>0&&(n.list[n.list.length-1].date==i[0].date?(n.list[n.list.length-1].list=n.list[n.list.length-1].list.concat(i[0].list),i.shift(),n.list=n.list.concat(i)):n.list=n.list.concat(i),n.page++)}else t.showToast({title:e.msg,icon:"none",duration:1e3})})).catch((function(n){t.hideLoading()}))},toGoods:function(n){t.navigateTo({url:"/pages/goods/goods?id="+n})}},onLoad:function(t){this.$commonLoad.onload(t);var n=this;n.$showLoading({type:"global",text:"加载中..."}),n.getList()},onReachBottom:function(){this.getMore()}};n.default=s}).call(this,e("543d")["default"])},5401:function(t,n,e){"use strict";e.r(n);var i=e("5316"),a=e.n(i);for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},"94a7":function(t,n,e){},"96c7":function(t,n,e){"use strict";var i;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return i}));var a=function(){var t=this,n=t.$createElement;t._self._c},o=[]},b8e9:function(t,n,e){"use strict";e.r(n);var i=e("96c7"),a=e("5401");for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("3ec6");var c,r=e("f0c5"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"3da176fe",null,!1,i["a"],c);n["default"]=s.exports}},[["18c2","common/runtime","common/vendor"]]]);