(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/ucenter/ucenter"],{"077e":function(t,e,n){"use strict";(function(t,e){var o=n("4ea4");n("baca"),n("a9ff");o(n("66fd"));var i=o(n("9581"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},2712:function(t,e,n){"use strict";n.r(e);var o=n("69d1"),i=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(u);e["default"]=i.a},3197:function(t,e,n){"use strict";var o=n("ee16"),i=n.n(o);i.a},"69d1":function(t,e,n){"use strict";(function(t){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("9523")),u=n("26cb");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var c={data:function(){return{ucenterList:[[{title:"协议及说明",to:"/pages/ucenter/notice",icon:"icon-zhuyi"},{title:"Github",event:"goToGithub",icon:"icon-github1"},{title:"我的博客",event:"goToBlog",icon:"icon-boke"},{title:"问题反馈",to:"/pages/ucenter/problem",icon:"icon-wentijieda"},{title:"试验功能",to:"/pages/ucenter/advance",icon:"icon-shiyan"},{title:"关于",to:"/pages/ucenter/about",icon:"icon-guanyu_o"}]],isLogin:!1,user:{},show:!0,name:getApp().globalData.name}},onLoad:function(){},onShow:function(){var t=this;this.$store.dispatch("getIsLogin").then((function(e){t.isLogin=e})).catch((function(t){})),this.$store.dispatch("getUser").then((function(e){t.user=e})).catch((function(t){}))},computed:function(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){(0,i.default)(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}({},(0,u.mapState)({userInfo:function(t){return t.userInfo}})),methods:{goToGithub:function(){var e=getApp().globalData.github;t.navigateTo({url:"/pages/ucenter/link?url="+e+"&name=Github 项目地址"})},goToBlog:function(){var e=getApp().globalData.blog;t.navigateTo({url:"/pages/ucenter/link?url="+e+"&name=简窝博客"})},ucenterListClick:function(t){!t.to&&t.event&&this[t.event]()},login:function(){return!1},logout:function(){var e=this;t.showModal({title:"提示",content:"你确认要退出吗? 退出后您的会话数据将会被全部清空!",success:function(t){if(t.confirm)return e.$store.dispatch("logout"),e.isLogin=!1,e.showNotify("退出成功!")}})},showNotify:function(t){this.$refs.uNotify.show({type:"success",message:t,duration:3e3,safeAreaInsetTop:!0})}}};e.default=c}).call(this,n("543d")["default"])},9581:function(t,e,n){"use strict";n.r(e);var o=n("e1c1"),i=n("2712");for(var u in i)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(u);n("3197");var r=n("f0c5"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"04366dfc",null,!1,o["a"],void 0);e["default"]=c.exports},e1c1:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return o}));var o={uniList:function(){return n.e("uni_modules/uni-list/components/uni-list/uni-list").then(n.bind(null,"8719"))},uniListItem:function(){return n.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(n.bind(null,"791a"))},uNotify:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-notify/u-notify")]).then(n.bind(null,"26f7"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.ucenterList,(function(e,n){var o=t.__get_orig(e),i=t.__map(e,(function(e,n){var o=t.__get_orig(e),i={type:e.icon,color:"#999",iconFlag:!0,size:"25rpx"};return{$orig:o,a0:i}}));return{$orig:o,l0:i}})));t.$mp.data=Object.assign({},{$root:{l1:n}})},u=[]},ee16:function(t,e,n){}},[["077e","common/runtime","common/vendor"]]]);