(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["my/task/index"],{246:function(t,e,n){"use strict";(function(t){n(5);r(n(4));var e=r(n(247));function r(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n(1)["createPage"])},247:function(t,e,n){"use strict";n.r(e);var r=n(248),a=n(250);for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n(252);var o,s=n(11),u=Object(s["default"])(a["default"],r["render"],r["staticRenderFns"],!1,null,"33208026",null,!1,r["components"],o);u.options.__file="my/task/index.vue",e["default"]=u.exports},248:function(t,e,n){"use strict";n.r(e);var r=n(249);n.d(e,"render",(function(){return r["render"]})),n.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(e,"components",(function(){return r["components"]}))},249:function(t,e,n){"use strict";var r;n.r(e),n.d(e,"render",(function(){return a})),n.d(e,"staticRenderFns",(function(){return o})),n.d(e,"recyclableRender",(function(){return i})),n.d(e,"components",(function(){return r}));var a=function(){var t=this,e=t.$createElement;t._self._c},i=!1,o=[];a._withStripped=!0},250:function(t,e,n){"use strict";n.r(e);var r=n(251),a=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=a.a},251:function(t,e,n){"use strict";(function(t){function r(t){return s(t)||o(t)||i(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,e){if(t){if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function o(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function s(t){if(Array.isArray(t))return u(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=function(){n.e("components/empty").then(function(){return resolve(n(536))}.bind(null,n)).catch(n.oe)},l={components:{empty:c},data:function(){return{userName:"匿名",avatar:"",isSignIn:!1,integral:0,todayIntegral:0,list:[],page:1,limit:10,today:{},totalCount:""}},onLoad:function(){this.getUserInfo(),this.getIsSignIn(),this.getIntegral(),this.getTodayIntegral(),this.getToday(),this.getList()},methods:{getUserInfo:function(){var t=this;this.$Request.get("/app/user/selectUserMessage").then((function(e){0==e.code&&(t.userName=e.data.userName?e.data.userName:e.data.nickName,t.avatar=e.data.avatar)}))},getIntegral:function(){var t=this;this.$Request.get("/app/userintegral/findUserMessage").then((function(e){0==e.code&&(t.integral=e.data.userIntegral)}))},getIsSignIn:function(){var t=this;this.$Request.get("/app/userintegral/isSignIn").then((function(e){0==e.code&&(t.isSignIn="今日未签到"!=e.data)}))},getTodayIntegral:function(){var t=this;this.$Request.get("/app/userintegral/todayIntegral").then((function(e){0==e.code&&(t.todayIntegral=e.data)}))},getToday:function(){var t=this;this.$Request.get("/app/userintegral/continuousDay").then((function(e){0==e.code&&(t.today=e.data)}))},check:function(){var e=this;this.$Request.get("/app/userintegral/signIn").then((function(n){0==n.code&&(e.isSignIn=!0,t.showToast({title:"签到成功",icon:"none"}),e.getIntegral(),e.getList(),e.getToday())}))},getList:function(){var e=this,n={page:this.page,limit:this.limit,classify:1};this.$Request.getT("/app/userintegraldetails/selectIntegraldetailsList",n).then((function(n){0===n.code&&(e.totalCount=n.data.totalCount,1===e.page?e.list=n.data.list:e.list=[].concat(r(e.list),r(n.data.list))),t.stopPullDownRefresh(),t.hideLoading()}))}},onReachBottom:function(){this.list.length<this.totalCount?(this.page=this.page+1,this.getList()):t.showToast({title:"已经到底了",icon:"none"})}};e.default=l}).call(this,n(1)["default"])},252:function(t,e,n){"use strict";n.r(e);var r=n(253),a=n.n(r);for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=a.a},253:function(t,e,n){}},[[246,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/my/task/index.js.map