(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/region/update/update"],{"10af":function(t,e,n){"use strict";(function(t){n("2d0a");i(n("66fd"));var e=i(n("352e"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"352e":function(t,e,n){"use strict";n.r(e);var i=n("35b4"),r=n("b7be");for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n("7f6b");var a,u=n("f0c5"),c=Object(u["a"])(r["default"],i["b"],i["c"],!1,null,"8c17d4fc",null,!1,i["a"],a);e["default"]=c.exports},"35b4":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement;t._self._c},o=[]},"61f5":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2f62");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={data:function(){return{detail:{},setting:{},first:!0}},computed:o({},(0,i.mapState)({region:function(t){return t.mallConfig.__wxapp_img.region},bonus:function(t){return t.mallConfig.__wxapp_img.bonus}})),methods:{toUpdate:function(){t.navigateTo({url:"/plugins/region/index/index?up=1"})},getList:function(){var e=this;e.$request({url:e.$api.region.status}).then((function(n){0==n.code?(e.first=!1,e.$hideLoading(),e.detail=n.data.region,1!=e.detail.status&&t.redirectTo({url:"/plugins/region/index/index"}),1==e.detail.level_up_log.status&&e.clearLevel()):(e.$hideLoading(),t.showToast({title:n.msg,icon:"none",duration:1e3}))})).catch((function(t){e.$hideLoading()}))},clearLevel:function(){var t=this;t.$request({url:t.$api.region.clear_up,method:"post"}).then((function(t){}))},getSetting:function(){var e=this;e.$request({url:e.$api.region.setting}).then((function(n){0==n.code?(e.getList(),e.setting=n.data):t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(n){e.$hideLoading(),t.hideLoading()}))}},onLoad:function(t){this.$commonLoad.onload(t);var e=this;e.$showLoading({type:"global",text:"加载中..."}),e.getSetting()},onShow:function(){this.first||this.getList()}};e.default=u}).call(this,n("543d")["default"])},"7f6b":function(t,e,n){"use strict";var i=n("caf1"),r=n.n(i);r.a},b7be:function(t,e,n){"use strict";n.r(e);var i=n("61f5"),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},caf1:function(t,e,n){}},[["10af","common/runtime","common/vendor"]]]);