(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy/userHead/userHead"],{"06ea":function(t,n,e){},"2b25":function(t,n,e){"use strict";var o=e("06ea"),i=e.n(o);i.a},"6a07":function(t,n,e){},"73fe":function(t,n,e){"use strict";var o=e("6a07"),i=e.n(o);i.a},9222:function(t,n,e){"use strict";e.r(n);var o=e("b349"),i=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n["default"]=i.a},9872:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return o}));var o={uAvatar:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-avatar/u-avatar")]).then(e.bind(null,"1350"))},uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"b248"))},Supuid:function(){return e.e("components/Supuid/Supuid").then(e.bind(null,"a3dc"))},AgentArea:function(){return e.e("components/AgentArea/AgentArea").then(e.bind(null,"de15"))}},i=function(){var t=this.$createElement;this._self._c},r=[]},a55d:function(t,n,e){"use strict";e.r(n);var o=e("9872"),i=e("9222");for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(r);e("2b25"),e("73fe");var s=e("828b"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"2c7d0b80",null,!1,o["a"],void 0);n["default"]=u.exports},b349:function(t,n,e){"use strict";(function(t){var o=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("7ca3")),r=e("8f59");function s(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?s(Object(e),!0).forEach((function(n){(0,i.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var a={name:"userHead",props:{options:{type:Object,default:function(){return{name:"userHead",data:{id:1,nickname:"呵呵",avatar:"",balance:0,score:0,levelname:"LV3",level_icon:""},style:{score:"积分",balance:"余额",bgColor:"#ff5555",type:1,bgImg2:"",bgImg3:"",bgImg4:"",bgImg5:"",bgImg6:"",balance_icon:"",score_icon:"",nickicon:"",fontSize:16,subFontSize:14,nameColor:"#fff",subColor:"#cccccc"}}}},navbar:{type:Object,default:function(){return{show:0}}}},data:function(){return{statusBarHeight:this.statusBarHeight}},computed:u(u({},(0,r.mapGetters)(["userBase","is_login"])),{},{showSwitchBtn:function(){return this.options.style.showSwitchBtn},currentType:function(){return this.options.style.type},navbarHeight:function(){return this.navbar&&1==this.navbar.show&&7==this.currentType?8:this.statusBarHeight+44},mainFontStyle:function(){return"\n\t\t\t\t\tcolor: ".concat(this.options.style.nameColor,";\n\t\t\t\t\tfont-size: ").concat(this.options.style.fontSize?2*this.options.style.fontSize+"rpx":"36rpx",";\n\t\t\t\t").replace(/\s+/g," ").trim()},subFontStyle:function(){return"\n\t\t\t\t\tcolor: ".concat(this.options.style.subColor,";\n\t\t\t\t\tfont-size: ").concat(this.options.style.subFontSize?2*this.options.style.subFontSize+"rpx":"36rpx",";\n\t\t\t\t").replace(/\s+/g," ").trim()},balanceStyle:function(){return this.userBase.balance&&this.userBase.balance.length>7?"font-size:24rpx;":"font-size:43rpx;"},scoreStyle:function(){return this.userBase.score&&this.userBase.score.length>7?"font-size:24rpx;":"font-size:43rpx;"},subFontSizeRpx:function(){return 2*this.options.style.subFontSize+"rpx"}}),methods:u(u({},(0,r.mapMutations)(["setShowLoginModal"])),{},{showLoginModal:function(t){this.setShowLoginModal({visible:!0})},getBackColor:function(t){return t?"":options.style.bgColor?options.style.bgColor:"#ff5555"},jump:function(t){this.$util.jump(t)},handleJump:function(){this.is_login?1==this.options.style.isJump&&this.jump("/pages/user/set"):this.authLogin()},onCopyId:function(){var n=this;this.userBase.id&&t.setClipboardData({data:this.userBase.id.toString(),success:function(){n.$util.toast("复制ID成功")},fail:function(t){n.$util.toast("复制ID失败")}})},handleToSwitch:function(){this.$util.jump("/pages/user/switchAccount")}})};n.default=a}).call(this,e("df3c")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/diy/userHead/userHead-create-component',
    {
        'components/diy/userHead/userHead-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("a55d"))
        })
    },
    [['components/diy/userHead/userHead-create-component']]
]);
