(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/user"],{"2e4e":function(e,t,n){},"500a":function(e,t,n){"use strict";n.r(t);var o=n("ed1e"),r=n("8b29");for(var i in r)"default"!==i&&function(e){n.d(t,e,(function(){return r[e]}))}(i);n("99bb");var u=n("5511"),a=Object(u["a"])(r["default"],o["a"],o["b"],!1,null,"ae5e4ff4",null);t["default"]=a.exports},"8b29":function(e,t,n){"use strict";n.r(t);var o=n("a021"),r=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);t["default"]=r.a},"99bb":function(e,t,n){"use strict";var o=n("2e4e"),r=n.n(o);r.a},a021:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n("08c1"),r=n("5f87"),i=n("6436");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(){return n.e("components/plugin/list-view").then(n.bind(null,"0fa3"))},l=function(){return n.e("components/plugin/list-cell").then(n.bind(null,"1861"))},p=function(){return n.e("pages/home/components/login-popup").then(n.bind(null,"e5d9"))},f=function(){return n.e("components/module/app-trademark").then(n.bind(null,"ea75"))},d=function(){return n.e("pages/home/components/go-login").then(n.bind(null,"4c29"))},g={name:"user",components:{TuiListView:s,TuiListCell:l,LoginPopup:p,AppTrademark:f,GoLogin:d},data:function(){return{constant:this.$constant,popupShow:!1,stepIndex:0,wxInfo:{},loginShow:!1}},computed:a({},(0,o.mapGetters)({shopUser:"getShopUser"}),{},(0,o.mapGetters)({loginInfo:"getLoginInfo"}),{smallAvatarUrl:function(){return this.shopUser.smallAvatarUrl||""}}),onLoad:function(e){},methods:{init:function(){(0,r.getShopUser)()},pageToFn:function(e){this.$util.isLogin()?this.$util.pageTo(e):this.loginShow=!0},showPopup:function(){this.$util.getCheckLogin()},hidePopup:function(){this.popupShow=!1},logoutFn:function(){e.clearStorageSync(),this.$util.pageTo({url:"/pages/home/index",type:4})},getWxAvatar:function(){var t=this;e.getUserInfo({provider:"weixin",success:function(e){console.log("res",e),t.popupShow=!0,(0,i.getWxInfo)({iv:e.iv,encryptedData:e.encryptedData}).then((function(e){console.log("用户信息",e),t.wxInfo=e.data,t.popupShow=!0}))},fail:function(){}})}}};t.default=g}).call(this,n("d1ae")["default"])},ed1e:function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.$util.isEmpty(e.shopUser)),o=e._f("default_avatar")(e.smallAvatarUrl),r=e.$util.isEmpty(e.shopUser);e.$mp.data=Object.assign({},{$root:{g0:n,f0:o,g1:r}})},r=[];n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}))}},[["c21b","common/runtime","common/vendor"]]]);