(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/task/task"],{"2c95":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 a}));var a={loginModal:function(){return Promise.all([n.e("common/vendor"),n.e("components/login-modal/login-modal")]).then(n.bind(null,"e34a"))}},r=function(){var t=this.$createElement;this._self._c},i=[]},"2d52":function(t,e,n){"use strict";n.r(e);var a=n("c261"),r=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=r.a},"44a3":function(t,e,n){"use strict";n.r(e);var a=n("2c95"),r=n("2d52");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("b755");var o=n("828b"),s=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=s.exports},9913:function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("4c1a");a(n("3240"));var r=a(n("44a3"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},b755:function(t,e,n){"use strict";var a=n("f9e5"),r=n.n(a);r.a},c261:function(t,e,n){"use strict";(function(t){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("7ca3")),i=n("8f59");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=null,u={data:function(){return{task_nok:0}},computed:s({},(0,i.mapGetters)(["base","user","is_login"])),onLoad:function(){this.is_login||this.$util.authLogin()},onShow:function(){this.init()},methods:s(s({},(0,i.mapActions)(["getUser","getConfig"])),{},{toask:function(){var t=this;if(!this.is_login)return this.$util.authLogin();this.$util.get("user/inspect_task").then((function(e){if(1==e.code){var n=parseInt(t.base.score);n>0?c.show().then((function(t){})).catch((function(){c.load().then((function(){c.show()})).catch((function(e){t.$util.toast(e.errMsg+"，errCode："+e.errCode,2e3)}))})):t.$util.toast("未设置"+(t.base.text_replace.t10?t.base.text_replace.t10:"任务")+(t.base.text_replace.t6?t.base.text_replace.t6:"积分"))}else t.$util.toast(e.message)}))},createAdVideos:function(){var e=this,n=this.base;t.createRewardedVideoAd&&n.ad_unitId&&(c=t.createRewardedVideoAd({adUnitId:n.ad_unitId}),c.onLoad((function(){})),c.onError((function(t){})),c.onClose((function(t){t&&t.isEnded&&e.award()})))},init:function(){var t=this;this.getConfig((function(){if(t.getUser((function(){var e=parseInt(t.user.task_ok),n=parseInt(t.base.task_num),a=n-e;a>0&&(t.task_nok=a)})),t.$util.setTitle(t.base.text_replace.t9),1!=t.base.is_task||1!=t.base.is_adunitId)return t.$util.toast("未开启"+(t.base.text_replace.t10?t.base.text_replace.t10:"功能"),(function(){}));t.base.ad_unitId&&t.createAdVideos()}))},award:function(){var t=this;this.$util.get("user/adreward").then((function(e){1==e.code?t.$util.toast(e.message,1500,(function(){t.getuser()})):t.$util.toast(e.message,1500)}))}})};e.default=u}).call(this,n("3223")["default"])},f9e5:function(t,e,n){}},[["9913","common/runtime","common/vendor"]]]);