user.js 3.1 KB

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