1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesMain/ratioRank"],{"174c":function(t,e,n){"use strict";(function(t){n("e744");i(n("66fd"));var e=i(n("2291"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},2291:function(t,e,n){"use strict";n.r(e);var i=n("29a7"),r=n("6d54");for(var s in r)"default"!==s&&function(t){n.d(e,t,(function(){return r[t]}))}(s);n("9bad"),n("2d49");var u,a=n("f0c5"),o=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,"7c58eb14",null,!1,i["a"],u);e["default"]=o.exports},"29a7":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uSubsection:function(){return n.e("uview-ui/components/u-subsection/u-subsection").then(n.bind(null,"7ead"))},uIcon:function(){return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null,"c4c2"))},uLineProgress:function(){return n.e("uview-ui/components/u-line-progress/u-line-progress").then(n.bind(null,"6d85"))},uCard:function(){return n.e("uview-ui/components/u-card/u-card").then(n.bind(null,"af68"))},uImage:function(){return n.e("uview-ui/components/u-image/u-image").then(n.bind(null,"dc25"))},uAvatar:function(){return n.e("uview-ui/components/u-avatar/u-avatar").then(n.bind(null,"3479"))},uDivider:function(){return n.e("uview-ui/components/u-divider/u-divider").then(n.bind(null,"fe5c"))},uTopTips:function(){return n.e("uview-ui/components/u-top-tips/u-top-tips").then(n.bind(null,"14ca"))}},r=function(){var t=this,e=t.$createElement;t._self._c},s=[]},"2d49":function(t,e,n){"use strict";var i=n("6a1c"),r=n.n(i);r.a},"4b8c":function(t,e,n){},"6a1c":function(t,e,n){},"6d54":function(t,e,n){"use strict";n.r(e);var i=n("775f"),r=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},"775f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2f62");function r(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 s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n("157c"),o=n("f344"),c={computed:s({},(0,i.mapGetters)(["mainColor","handleCustomStyle","handleDefaultCustomStyle"])),data:function(){return{iconPath1:o.getServerImg+"jinpai.png",iconPath2:o.getServerImg+"yinpai.png",iconPath3:o.getServerImg+"tongpai.png",triggered:!1,tabList:[{name:"续费率",isOver:!1,pageIndex:1,year:"",month:"",percent:0,signCount:"",tableList:[]},{name:"签到率",isOver:!1,pageIndex:1,year:"",month:"",percent:0,signCount:"",tableList:[]}],current:0,swiperCurrent:0}},onLoad:function(){this.tabList.forEach((function(t){t.year=(new Date).getFullYear(),t.month=(new Date).getMonth()+1})),this.getTableList(0),this.getTableList(1),this.getRank(0),this.getRank(1)},onReady:function(){},methods:{tabsChange:function(t){this.swiperCurrent=t},animationfinish:function(t){var e=t.detail.current;this.swiperCurrent=e,this.current=e},previousMonth:function(){1==this.tabList[this.current].month?(this.tabList[this.current].year--,this.tabList[this.current].month=12):this.tabList[this.current].month--,this.onRefresh(1)},nextMonth:function(){12==this.tabList[this.current].month?(this.tabList[this.current].year++,this.tabList[this.current].month=1):this.tabList[this.current].month++,this.onRefresh(1)},onRefresh:function(t){this.triggered||(1!=t&&(this.triggered=!0),this.tabList[this.current].isOver=!1,this.tabList[this.current].pageIndex=1,this.tabList[this.current].tableList=[],this.getTableList(this.current),this.getRank(this.current))},onRestore:function(){this.triggered="restore",this.triggered=!1},handleLoadMore:function(){this.tabList[this.current].isOver||(this.tabList[this.current].pageIndex++,this.getTableList(this.current))},getTableList:function(t){var e=this;a.request(0==t?o.getRenewRankingList:o.getSignRankingList,{date:this.tabList[t].year+"-"+this.tabList[t].month,page:this.tabList[t].pageIndex,size:20},"POST").then((function(n){e.triggered=!1,e.tabList[t].tableList=e.tabList[t].tableList.concat(n.data.row),e.tabList[t].isOver=20!=n.data.row.length})).catch((function(t){e.triggered=!1,e.$refs.uTips.show({title:t.message,type:"warning"})}))},getRank:function(t){var e=this;a.request(0==t?o.getRenewPercent:o.getSignPercent,{date:this.tabList[t].year+"-"+this.tabList[t].month},"POST").then((function(n){e.tabList[t].percent=parseFloat(n.data.percent),e.tabList[t].signCount=JSON.stringify(n.data.signCount)})).catch((function(t){e.$refs.uTips.show({title:t.message,type:"warning"})}))}}};e.default=c},"9bad":function(t,e,n){"use strict";var i=n("4b8c"),r=n.n(i);r.a}},[["174c","common/runtime","common/vendor"]]]);
|