(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-user-center-top/app-user-center-top"],{3933:function(e,t,n){"use strict";n.r(t);var r=n("5254"),o=n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},5254:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("2f62");o(n("e143"));function o(e){return e&&e.__esModule?e:{default:e}}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 u(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,userNameColor:String,is_icon_super_vip:{type:String,default:function(){return"0"}}},computed:u(u(u({isLogin:function(){return this.$user.isLogin()}},(0,r.mapState)({mall:function(e){return e.mallConfig.mall},is_vip_card_user:function(e){return e.user.info&&e.user.info.is_vip_card_user?1:0}})),(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(){var t=this;e.login({scopes:"auth_user",success:function(e){t.getuserinfodata(e)}})},getuserinfodata:function(t){var n=this;this.$request({url:this.$api.passport.login,method:"post",data:{code:t.code}}).then((function(t){e.hideLoading(),0===t.code&&(e.showToast({title:"资料已更新",icon:"none"}),n.$storage.setStorageSync("_USER_ACCESS_TOKEN",t.data.access_token))}))}}};t.default=c}).call(this,n("543d")["default"])},6579:function(e,t,n){},b3c8:function(e,t,n){"use strict";n.r(t);var r=n("f6a0"),o=n("3933");for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("ed1e");var u,a=n("f0c5"),c=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"7fda2616",null,!1,r["a"],u);t["default"]=c.exports},ed1e:function(e,t,n){"use strict";var r=n("6579"),o=n.n(r);o.a},f6a0:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement;e._self._c},i=[]}}]);
;(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__("b3c8"))
        })
    },
    [['components/page-component/app-user-center-top/app-user-center-top-create-component']]
]);
