(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy/merchantGroup/merchantGroup"],{"56db":function(t,e,n){"use strict";var o=n("f1c7"),i=n.n(o);i.a},a7e1:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{options:{type:Object,default:function(){return{name:"merchantGroup",data:{type:1,merchants:[{id:"",title:"商户标题",subtitle:"商户副标题",thumb:t.$u.siteroot+"/assets/images/dimg2.png"}]},style:{type:1,btn:"查看",bgColor:"#fff",pdt:0,pdb:0,pdlr:0,mgt:0,mglr:0,radius:5,radiusDirection:"",color:"#212121",gbgColor:"#fff",fColor:"#6A6A6A",titleFontSize:14,titleFontWeight:"normal",subTitleFontSize:16,subTitleFontWeight:"normal"}}}}},name:"merchantGroup",data:function(){return{}},computed:{getRadius:function(){var t=this.options.style.radius,e=this.options.style.radiusDirection;return 1==e?"".concat(t,"px 0 0 0"):2==e?"0 ".concat(t,"px 0 0"):3==e?"0 0 0 ".concat(t,"px"):4==e?"0 0 ".concat(t,"px 0"):5==e?"".concat(t,"px ").concat(t,"px 0 0"):6==e?"0 0 ".concat(t,"px ").concat(t,"px"):7==e?"".concat(t,"px 0 0 ").concat(t,"px"):8==e?"0 ".concat(t,"px ").concat(t,"px 0"):t+"px"}},methods:{getAddressFontSize:function(){return null!=this.options.style.addressFontSize?this.options.style.addressFontSize:this.options.style.subTitleFontSize},getAddressFontWeight:function(){return null!=this.options.style.addressFontWeight&&""!==this.options.style.addressFontWeight?this.options.style.addressFontWeight:this.options.style.subTitleFontWeight},getImg:function(e){return e&&(e.logo||e.thumb)||(t.$u&&t.$u.siteroot?t.$u.siteroot+"/assets/images/dimg2.png":"")},getScore:function(t){var e,n,o=t&&(null!==(e=null!==(n=t.score)&&void 0!==n?n:t.rate)&&void 0!==e?e:t.star);return void 0===o||null===o||""===o?"":o},getDistance:function(t){var e,n,o=t&&(null!==(e=null!==(n=t.distance)&&void 0!==n?n:t.juli)&&void 0!==e?e:t.km);return void 0===o||null===o||""===o?"":"number"===typeof o?"".concat(o,"km"):o},jump:function(t){if(!t)return!1;this.$util.jump("/merchant/front/detail?id="+t)}}};e.default=n}).call(this,n("df3c")["default"])},ae5f:function(t,e,n){"use strict";n.r(e);var o=n("e00e"),i=n("c96ab");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("56db");var s=n("828b"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=u.exports},c96ab:function(t,e,n){"use strict";n.r(e);var o=n("a7e1"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},e00e:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var o={uRate:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-rate/u-rate")]).then(n.bind(null,"e969"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,1==t.options.style.type?t.__map(t.options.data.merchants||[],(function(e,n){var o=t.__get_orig(e),i=t.getImg(e),r=t.getScore(e),s=t.getDistance(e),u=""!==s?t.getDistance(e):null,a=t.getAddressFontSize(),c=a?t.getAddressFontSize():null,l=t.getAddressFontWeight();return{$orig:o,m0:i,m1:r,m2:s,m3:u,m4:a,m5:c,m6:l}})):null),o=2==t.options.style.type?t.__map(t.options.data.merchants||[],(function(e,n){var o=t.__get_orig(e),i=t.getImg(e),r=t.getScore(e),s=""!==r?t.getScore(e):null,u=t.getDistance(e),a=""!==u?t.getDistance(e):null,c=t.getAddressFontSize(),l=c?t.getAddressFontSize():null,d=t.getAddressFontWeight();return{$orig:o,m7:i,m8:r,m9:s,m10:u,m11:a,m12:c,m13:l,m14:d}})):null;t.$mp.data=Object.assign({},{$root:{l0:n,l1:o}})},r=[]},f1c7:function(t,e,n){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/diy/merchantGroup/merchantGroup-create-component',
    {
        'components/diy/merchantGroup/merchantGroup-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("ae5f"))
        })
    },
    [['components/diy/merchantGroup/merchantGroup-create-component']]
]);
