(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/merHome/index"],{"08ee":function(t,e,n){"use strict";n.r(e);var o=n("15b5"),r=n("23ac");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("30b5");var i=n("828b"),f=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,"2a4ccd46",null,!1,o["a"],void 0);e["default"]=f.exports},"15b5":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__get_style([t.isHome?t.contentStyle:""])),o=t.__get_style([t.isHome||t.isHomeComb?t.logoStyleRadius:""]),r=t.isShowTypeId&&t.merchantInfo.typeId?t._f("merchantTypeFilter")(t.merchantInfo.typeId):null,a=Number(t.merchantInfo.starLevel),i="home"!==t.type?t.__get_style([(t.isHome||t.isHomeComb)&&t.merchantInfoNew.isCollect?t.followColor:""]):null;t.$mp.data=Object.assign({},{$root:{s0:n,s1:o,f0:r,m0:a,s2:i}})},r=[]},"23ac":function(t,e,n){"use strict";n.r(e);var o=n("e89c"),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},"30b5":function(t,e,n){"use strict";var o=n("a3e0"),r=n.n(o);r.a},a3e0:function(t,e,n){},e89c:function(t,e,n){"use strict";var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("7ca3")),a=(n("28e0"),n("05ac")),i=n("8f59"),f=n("cef1"),c=n("d057");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={computed:u(u({},(0,i.mapGetters)(["merchantClassify","merchantType","isLogin","uid"])),{},{boxStyle:function(){return[]},logoStyleRadius:function(){if(this.dataConfig)return{borderRadius:this.dataConfig.logoStyleRadius.val?this.dataConfig.logoStyleRadius.val+"px":"0"}},contentStyle:function(){if(this.dataConfig)return{"background-color":"#fff","border-radius":this.dataConfig.bgStyle?2*this.dataConfig.bgStyle.val+"rpx":"0",margin:this.dataConfig.mbConfig?2*this.dataConfig.mbConfig.val+"rpx "+2*this.dataConfig.lrConfig.val+"rpx 0":"0",padding:this.dataConfig.upConfig?2*this.dataConfig.upConfig.val+"rpx 20rpx "+2*this.dataConfig.downConfig.val+"rpx":"0"}},followColor:function(){if(this.dataConfig)return{border:"1px solid",color:this.dataConfig.followColor.color[0].item,background:"#fff"}}}),props:{marketingType:{type:Number,default:function(){return 0}},dataConfig:{type:Object,default:function(){}},merchantInfo:{type:Object,default:function(){}},merId:{type:Number,default:function(){return 0}},type:{type:String,default:function(){return"detail"}},isShowTypeId:{type:Boolean,default:function(){return!0}},isHome:{type:Boolean,default:function(){return!1}},isHomeComb:{type:Boolean,default:function(){return!1}}},data:function(){return{ProductMarketingTypeEnum:c.ProductMarketingTypeEnum,skeletonShow:!0,isShow:!0,avatar:"",merchantInfoNew:u({},this.merchantInfo),noStarLevel:0}},watch:{merchantInfo:{handler:function(t,e){this.merchantInfoNew=t,this.getnoStarLevel()},immediate:!0}},methods:{getnoStarLevel:function(t,e){parseInt(this.merchantInfoNew.starLevel)<5&&(this.noStarLevel=5-parseInt(this.merchantInfoNew.starLevel))},followToggle:function(){var t=this;!1===this.isLogin?(0,f.toLogin)():(0,a.followMer)(this.merchantInfoNew.isCollect,this.merId).then((function(){t.$set(t.merchantInfoNew,"isCollect",!t.merchantInfoNew.isCollect),t.$store.commit("MERCHANTJINFO",u({},t.merchantInfoNew))}))}}};e.default=s}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/merHome/index-create-component',
    {
        'components/merHome/index-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("08ee"))
        })
    },
    [['components/merHome/index-create-component']]
]);
