require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_user/user/integral"],{470:function(n,t,e){"use strict";(function(n,t){var i=e(4);e(26);i(e(25));var a=i(e(471));n.__webpack_require_UNI_MP_PLUGIN__=e,t(a.default)}).call(this,e(1)["default"],e(2)["createPage"])},471:function(n,t,e){"use strict";e.r(t);var i=e(472),a=e(474);for(var o in a)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(o);e(477);var r,s=e(34),u=Object(s["default"])(a["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],r);u.options.__file="pages_user/user/integral.vue",t["default"]=u.exports},472:function(n,t,e){"use strict";e.r(t);var i=e(473);e.d(t,"render",(function(){return i["render"]})),e.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),e.d(t,"components",(function(){return i["components"]}))},473:function(n,t,e){"use strict";var i;e.r(t),e.d(t,"render",(function(){return a})),e.d(t,"staticRenderFns",(function(){return r})),e.d(t,"recyclableRender",(function(){return o})),e.d(t,"components",(function(){return i}));var a=function(){var n=this,t=n.$createElement;n._self._c},o=!1,r=[];a._withStripped=!0},474:function(n,t,e){"use strict";e.r(t);var i=e(475),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=a.a},475:function(n,t,e){"use strict";(function(n){var i=e(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,o=i(e(11)),r=e(476),s=function(){e.e("components/Loading").then(function(){return resolve(e(1093))}.bind(null,e)).catch(e.oe)},u=(a={components:{Loading:s},data:function(){return{isDaySign:!1,top:0,signNum:0,integral:0,sign:[],statusBarHeight:n.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(n){this.getUserSign(),this.getIntegral()},onReachBottom:function(){!this.loading&&this.getIntegral()},onPageScroll:function(n){n.scrollTop>30?this.topFixed=!0:this.topFixed=!1}},(0,o.default)(a,"onPageScroll",(function(n){this.top=n.scrollTop})),(0,o.default)(a,"computed",{bg:function(){return"rgba(255,142,60, "+this.top/30+")"}}),(0,o.default)(a,"methods",{doSign:function(){var t=this,e={};n.showLoading({title:"正在加载中..."}),(0,r.doSign)(e).then((function(e){n.hideLoading(),200==e.code?(n.showToast({icon:"success",title:e.msg}),t.list=[],t.page.page=1,t.list=[],t.loaded=!1,t.loading=!1,t.getIntegral(),t.getUserSign()):n.showToast({icon:"none",title:e.msg})}),(function(n){}))},getUserSign:function(){var t=this;(0,r.getUserSign)().then((function(e){200==e.code?(t.data=e.member,t.signNum=e.signNum,t.isDaySign=e.isDaySign,t.integral=e.integral,t.sign=JSON.parse(e.sign)):n.showToast({icon:"none",title:"请求失败"})}),(function(n){}))},getIntegral:function(){var t=this;1!=t.loaded&&1!=t.loading&&(t.loading=!0,n.showLoading({title:"加载中..."}),(0,r.getIntegral)(t.page).then((function(e){t.loading=!1,t.loaded=e.data.list.length<t.page.pageSize,t.page.page=t.page.page+1,t.list.push.apply(t.list,e.data.list),n.hideLoading()}),(function(t){n.hideLoading(),n.showToast({title:t.msg,icon:"none",duration:2e3})})))},back:function(){n.navigateBack()},tabChange:function(n){console.log(n),this.tabIndex=n.value,this.page.billType=this.tabIndex,this.page.page=1,this.list=[],this.loaded=!1,this.loading=!1,this.getIntegral()}}),a);t.default=u}).call(this,e(2)["default"])},477:function(n,t,e){"use strict";e.r(t);var i=e(478),a=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(o);t["default"]=a.a},478:function(n,t,e){}},[[470,"common/runtime","common/vendor","pages_user/common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_user/user/integral.js.map