user.js 3.3 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/user"],{"29c0":function(t,n,e){},"500a":function(t,n,e){"use strict";e.r(n);var o=e("7e5c"),r=e("8b29");for(var i in r)"default"!==i&&function(t){e.d(n,t,(function(){return r[t]}))}(i);e("b40e");var u,c=e("f0c5"),a=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,"0cd8a57a",null,!1,o["a"],u);n["default"]=a.exports},"7e5c":function(t,n,e){"use strict";var o,r=function(){var t=this,n=t.$createElement,e=(t._self._c,t.$util.isEmpty(t.shopUser)),o=t._f("default_avatar")(t.smallAvatarUrl),r=t.$util.isEmpty(t.shopUser);t.$mp.data=Object.assign({},{$root:{g0:e,f0:o,g1:r}})},i=[];e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}))},"8b29":function(t,n,e){"use strict";e.r(n);var o=e("de69"),r=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=r.a},b40e:function(t,n,e){"use strict";var o=e("29c0"),r=e.n(o);r.a},c21b:function(t,n,e){"use strict";(function(t){e("6cdc"),e("921b");o(e("66fd"));var n=o(e("500a"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},de69:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("2f62"),r=e("5f87");function i(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}function u(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?i(Object(e),!0).forEach((function(n){c(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function c(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var a=function(){return e.e("components/plugin/list-view").then(e.bind(null,"0fa3"))},s=function(){return e.e("components/plugin/list-cell").then(e.bind(null,"1861"))},l=function(){return e.e("pages/home/components/login-popup").then(e.bind(null,"e5d9"))},p=function(){return e.e("components/module/app-trademark").then(e.bind(null,"ea75"))},f=function(){return e.e("pages/home/components/go-login").then(e.bind(null,"4c29"))},d={name:"user",components:{TuiListView:a,TuiListCell:s,LoginPopup:l,AppTrademark:p,GoLogin:f},data:function(){return{constant:this.$constant,popupShow:!1,isPublic:!1,stepIndex:0,wxInfo:{},loginShow:!1}},computed:u({},(0,o.mapGetters)({shopUser:"getShopUser"}),{},(0,o.mapGetters)({loginInfo:"getLoginInfo"}),{smallAvatarUrl:function(){return this.shopUser.smallAvatarUrl||""}}),onLoad:function(t){},methods:{init:function(){var t=this;(0,r.getShopUser)().then((function(n){1==t.option.scan&&1!=n.isFull&&(t.isPublic=!0,t.popupShow=!0)}))},pageToFn:function(t){this.$util.isLogin()?this.$util.pageTo(t):this.loginShow=!0},showPopup:function(){this.popupShow=!0},hidePopup:function(){this.popupShow=!1},logoutFn:function(){t.clearStorageSync(),this.$util.pageTo({url:"/pages/home/index",type:4})}}};n.default=d}).call(this,e("543d")["default"])}},[["c21b","common/runtime","common/vendor"]]]);