user.js 3.6 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/user"],{"277c":function(t,n,e){"use strict";var o=e("55f3"),r=e.n(o);r.a},"500a":function(t,n,e){"use strict";e.r(n);var o=e("5a35"),r=e("8b29");for(var i in r)"default"!==i&&function(t){e.d(n,t,(function(){return r[t]}))}(i);e("277c");var u,c=e("f0c5"),s=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,"3a1f4078",null,!1,o["a"],u);n["default"]=s.exports},"55f3":function(t,n,e){},"5a35":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.$util.isEmpty(t.shopUser),r=t._f("default_avatar")(t.smallAvatarUrl),i=t.$util.isEmpty(t.shopUser);t.$mp.data=Object.assign({},{$root:{g0:e,g1:o,f0:r,g2:i}})},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},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("cf45"),e("b26e")),i=e("5f87");function u(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 c(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?u(Object(e),!0).forEach((function(n){s(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):u(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function s(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"))},l=function(){return e.e("components/plugin/list-cell").then(e.bind(null,"1861"))},p=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"))},h=function(){return e.e("pages/home/components/go-login").then(e.bind(null,"4c29"))},d=function(){return e.e("components/module/app-vip").then(e.bind(null,"d9e5"))},b={name:"user",components:{TuiListView:a,TuiListCell:l,LoginPopup:p,AppTrademark:f,GoLogin:h,AppVipModule:d},data:function(){return{constant:this.$constant,popupShow:!1,isPublic:!1,stepIndex:0,wxInfo:{},loginShow:!1,merchantInfo:{}}},computed:c({},(0,o.mapGetters)({shopUser:"getShopUser"}),{},(0,o.mapGetters)({loginInfo:"getLoginInfo"}),{smallAvatarUrl:function(){return this.shopUser.smallAvatarUrl||""},percentNum:function(){return this.$util.isEmpty(this.shopUser)?0:Math.round(this.shopUser.userAsset.growth/this.shopUser.userAsset.nextLevelGrowth*100)}}),onLoad:function(t){},methods:{init:function(){var t=this;(0,i.getShopUser)().then((function(n){1==t.option.scan&&1!=n.isFull&&(t.isPublic=!0,t.popupShow=!0)})),(0,r.getMerchantInfo)().then((function(n){t.merchantInfo=n.data}))},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=b}).call(this,e("543d")["default"])}},[["c21b","common/runtime","common/vendor"]]]);