require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_user/user/integral"],{"06b9":function(t,n,e){"use strict";(function(t){var a=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i,o=a(e("7ca3")),s=e("62b0"),l=(i={components:{Loading:function(){e.e("components/Loading").then(function(){return resolve(e("86fa"))}.bind(null,e)).catch(e.oe)}},data:function(){return{isDaySign:!1,top:0,signNum:0,integral:0,sign:[],statusBarHeight:t.getStorageSync("menuInfo").statusBarHeight,tags:[{lable:"全部",value:-1},{lable:"获得",value:1},{lable:"消耗",value:0}],tabIndex:-1,current:0,page:{billType:-1,page:1,pageSize:10},list:[],loaded:!1,loading:!1}},onLoad:function(t){this.getUserSign(),this.getIntegral()},onReachBottom:function(){!this.loading&&this.getIntegral()},onPageScroll:function(t){t.scrollTop>30?this.topFixed=!0:this.topFixed=!1}},(0,o.default)(i,"onPageScroll",(function(t){this.top=t.scrollTop})),(0,o.default)(i,"computed",{bg:function(){return"rgba(255,142,60, "+this.top/30+")"}}),(0,o.default)(i,"methods",{doSign:function(){var n=this;t.showLoading({title:"正在加载中..."}),(0,s.doSign)({}).then((function(e){t.hideLoading(),200==e.code?(t.showToast({icon:"success",title:e.msg}),n.list=[],n.page.page=1,n.list=[],n.loaded=!1,n.loading=!1,n.getIntegral(),n.getUserSign()):t.showToast({icon:"none",title:e.msg})}),(function(t){}))},getUserSign:function(){var n=this;(0,s.getUserSign)().then((function(e){200==e.code?(n.data=e.member,n.signNum=e.signNum,n.isDaySign=e.isDaySign,n.integral=e.integral,n.sign=JSON.parse(e.sign)):t.showToast({icon:"none",title:"请求失败"})}),(function(t){}))},getIntegral:function(){var n=this;1!=n.loaded&&1!=n.loading&&(n.loading=!0,t.showLoading({title:"加载中..."}),(0,s.getIntegral)(n.page).then((function(e){n.loading=!1,n.loaded=e.data.list.length<n.page.pageSize,n.page.page=n.page.page+1,n.list.push.apply(n.list,e.data.list),t.hideLoading()}),(function(n){t.hideLoading(),t.showToast({title:n.msg,icon:"none",duration:2e3})})))},back:function(){t.navigateBack()},tabChange:function(t){console.log(t),this.tabIndex=t.value,this.page.billType=this.tabIndex,this.page.page=1,this.list=[],this.loaded=!1,this.loading=!1,this.getIntegral()}}),i);n.default=l}).call(this,e("df3c")["default"])},"0d8a":function(t,n,e){"use strict";e.r(n);var a=e("06b9"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},"2fb9":function(t,n,e){"use strict";var a=e("df37"),i=e.n(a);i.a},"7aa6":function(t,n,e){"use strict";e.r(n);var a=e("e421"),i=e("0d8a");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("2fb9");var s=e("828b"),l=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=l.exports},9349:function(t,n,e){"use strict";(function(t,n){var a=e("47a9");e("584a");a(e("3240"));var i=a(e("7aa6"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},df37:function(t,n,e){},e421:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},i=[]}},[["9349","common/runtime","common/vendor","pages_user/common/vendor"]]]);