(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-user-center-top/app-user-center-top"],{"0b12":function(e,t,n){},"5b5c":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("2f62");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c={name:"app-user-center-top",props:{topStyle:String,topPicUrl:String,memberPicUrl:String,is_icon_super_vip:{type:String,default:function(){return"0"}}},computed:o(o(o({isLogin:function(){return this.$user.isLogin()}},(0,r.mapState)({mall:function(e){return e.mallConfig.mall}})),(0,r.mapGetters)({userCenter:"mallConfig/getUserCenter",userInfo:"user/info"})),{},{avatar:function(){return this.isLogin&&this.userInfo?this.userInfo.avatar:"/static/image/user-default-avatar.png"},getMemberPicUrl:function(){return this.memberPicUrl}}),created:function(){this.isLogin&&this.$store.dispatch("user/info",{refresh:!0})},methods:{callLogin:function(){this.$store.dispatch("user/accessToken")},goMember:function(){e.navigateTo({url:"/pages/member/index/index"})},getUserInfo:function(t){var n=this;e.login({scopes:"auth_user",success:function(r){var i={encryptedData:t.detail.encryptedData,iv:t.detail.iv,rawData:t.detail.rawData,signature:t.detail.signature,code:r.code};n.$request({url:n.$api.passport.login,method:"post",data:i}).then((function(t){if(e.hideLoading(),0!==t.code)return reject(t.msg);e.showToast({title:"资料已更新",icon:"none"}),e.setStorageSync("_USER_ACCESS_TOKEN",t.data.access_token)}))}})}}};t.default=c}).call(this,n("543d")["default"])},"60c4":function(e,t,n){"use strict";n.r(t);var r=n("8fa2"),i=n("b774d");for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);n("f10b");var a,c=n("f0c5"),u=Object(c["a"])(i["default"],r["b"],r["c"],!1,null,"9c2dff3e",null,!1,r["a"],a);t["default"]=u.exports},"8fa2":function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r}));var i=function(){var e=this,t=e.$createElement;e._self._c},o=[]},b774d:function(e,t,n){"use strict";n.r(t);var r=n("5b5c"),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=i.a},f10b:function(e,t,n){"use strict";var r=n("0b12"),i=n.n(r);i.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/page-component/app-user-center-top/app-user-center-top-create-component',
    {
        'components/page-component/app-user-center-top/app-user-center-top-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("60c4"))
        })
    },
    [['components/page-component/app-user-center-top/app-user-center-top-create-component']]
]);
