require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugin/cumulative_fanhuan/score"],{"1d38":function(t,e,n){"use strict";var o=n("55a5"),r=n.n(o);r.a},"254d":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("af34")),i=o(n("7ca3")),u=n("8f59");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function s(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){(0,i.default)(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}var c={components:{},data:function(){return{currentTab:0,tabList:[],returnInfo:{money_total:"0.00",money_wait:"0.00",money_ok:"0.00"},returnList:[],returnLogList:[],returnScoreLogList:[],isLoading:!1,page:1,scorePage:1,modeList:[{name:"常规模式",value:0},{name:"增益模式",value:1}],showTransferPopup:!1}},computed:s(s({},(0,u.mapGetters)(["base","fenxiao"])),{},{showReturnLog:function(){return this.returnScoreLogList},words:function(){return this.fenxiao.texts.cumulative_fanhuan},navtitle:function(){return this.words+this.base.texts.score}}),onLoad:function(e){this.fetchReturnInfo(),this.fetchReturnLog(),this.navtitle&&t.setNavigationBarTitle({title:this.navtitle})},onReachBottom:function(){1!=this.scorePage&&this.fetchReturnLog()},watch:{base:{handler:function(t,e){t&&t.texts&&t.texts.balance&&(this.tabList=[{name:t.texts.score+"记录"}])},immediate:!0},navtitle:{handler:function(e){e&&t.setNavigationBarTitle({title:e})},immediate:!0}},methods:{onTabChange:function(t){this.currentTab=t.index,(0==this.currentTab&&0==this.returnLogList.length||1==this.currentTab&&0==this.returnScoreLogList.length)&&this.fetchReturnLog()},fetchReturnInfo:function(){var t=this;this.$util.get("cumulative_fanhuan/index/index").then((function(e){1==e.code&&(t.returnInfo=e.data)})).catch((function(t){}))},fetchReturnLog:function(){var t=this;this.$util.get("cumulative_fanhuan/index/getRecordList",{page:this.scorePage,type:2}).then((function(e){1==t.scorePage&&(t.returnScoreLogList=[]),1==e.code&&e.data.length>0&&(t.returnScoreLogList=[].concat((0,r.default)(t.returnScoreLogList),(0,r.default)(e.data)),t.scorePage++)}))},closeTransferPopup:function(){this.showTransferPopup=!1},confirmTransfer:function(){this.showTransferPopup=!1,this.handleMode()},handleTransfer:function(){0==this.returnInfo.mode&&0==this.returnInfo.money_score_wait||1==this.returnInfo.mode?this.showTransferPopup=!0:this.$util.toast("待".concat(this.words||"释放").concat(this.base.texts.score||"积分","为0时才可切换为增益模式"))},handleMode:function(){var t=this;this.$util.get("cumulative_fanhuan/index/setMode").then((function(e){1==e.code?t.$util.toast(e.message,1500,(function(){t.fetchReturnInfo()})):t.$util.toast(e.message)})).catch((function(t){}))}}};e.default=c}).call(this,n("df3c")["default"])},"55a5":function(t,e,n){},"5f49":function(t,e,n){"use strict";n.r(e);var o=n("254d"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},a9b3:function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("4c1a");o(n("3240"));var r=o(n("ad66"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},ad66:function(t,e,n){"use strict";n.r(e);var o=n("f90b"),r=n("5f49");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("1d38");var u=n("828b"),a=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,"6f6f2423",null,!1,o["a"],void 0);e["default"]=a.exports},f90b: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(){return o}));var o={uTabs:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(n.bind(null,"614b"))},uEmpty:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(n.bind(null,"f174"))},uButton:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-button/u-button")]).then(n.bind(null,"043e"))},uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,"7d68"))}},r=function(){var t=this.$createElement,e=(this._self._c,this.$util.lightColor(this.mainColor,.2)),n={color:this.mainColor||"#ff5b34",fontWeight:"bold"},o=this.showReturnLog.length;this.$mp.data=Object.assign({},{$root:{g0:e,a0:n,g1:o}})},i=[]}},[["a9b3","common/runtime","common/vendor"]]]);