(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-merch-list"],{1869:function(t,e,o){"use strict";o.r(e);var r=o("6897"),n=o("93a3");for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);o("3374"),o("e420");var u=o("828b"),a=Object(u["a"])(n["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=a.exports},"214d":function(t,e,o){},3374:function(t,e,o){"use strict";var r=o("214d"),n=o.n(r);n.a},6897:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return r}));var r={xSkeleton:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/x-skeleton/components/x-skeleton/x-skeleton")]).then(o.bind(null,"1226"))}},n=function(){var t=this,e=t.$createElement,o=(t._self._c,"default"==t.value.ornament.type?t.__map(t.list,(function(e,o){var r=t.__get_orig(e),n=t.$util.img(e.merch_image);return{$orig:r,g0:n}})):null),r="default"!=t.value.ornament.type?t.__map(t.list,(function(e,o){var r=t.__get_orig(e),n="text"!=t.value.mode?t.$util.img(e.merch_image)||t.$util.img("public/uniapp/default_img/goods.png"):null;return{$orig:r,g1:n}})):null;t.$mp.data=Object.assign({},{$root:{l0:o,l1:r}})},i=[]},"8e2a":function(t,e,o){},"93a3":function(t,e,o){"use strict";o.r(e);var r=o("c155"),n=o.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);e["default"]=n.a},c155:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"diy-article",props:{value:{type:Object}},data:function(){return{list:[],loading:!0,skeletonConfig:{gridRows:1,gridRowsGap:"40rpx",headWidth:"160rpx",headHeight:"160rpx",textRows:2}}},created:function(){this.getList()},watch:{componentRefresh:function(t){this.getList()}},computed:{warpCss:function(){var t="";return t+="background-color:"+this.value.componentBgColor+";","round"==this.value.componentAngle&&(t+="border-top-left-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomAroundRadius+"rpx;"),console.log(t),t},itemCss:function(){var t="";return t+="background-color:"+this.value.elementBgColor+";","round"==this.value.elementAngle&&(t+="border-top-left-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-top-right-radius:"+2*this.value.topElementAroundRadius+"rpx;",t+="border-bottom-left-radius:"+2*this.value.bottomElementAroundRadius+"rpx;",t+="border-bottom-right-radius:"+2*this.value.bottomElementAroundRadius+"rpx;"),"shadow"==this.value.ornament.type&&(t+="box-shadow:0 0 10rpx "+this.value.ornament.color),"stroke"==this.value.ornament.type&&(t+="border:2rpx solid "+this.value.ornament.color),t}},methods:{getList:function(){var t=this;console.log(121);var e={num:this.value.count};console.log(this.value),"diy"==this.value.sources&&(e.num=0,e.merch_id_arr=this.value.merchIds.toString()),this.$api.sendRequest({url:"/merch/api/merch/lists",data:e,success:function(e){if(0==e.code&&e.data){var o=e.data;t.list=o}t.loading=!1}})},toDetail:function(t){this.$util.redirectTo("/pages_promotion/merch/detail",{merch_id:t.merch_id})},imgError:function(t){this.list[t]&&(this.list[t].merch_image=this.$util.getDefaultImage().article)}}};e.default=r},e420:function(t,e,o){"use strict";var r=o("8e2a"),n=o.n(r);n.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/diy-components/diy-merch-list-create-component',
    {
        'components/diy-components/diy-merch-list-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("1869"))
        })
    },
    [['components/diy-components/diy-merch-list-create-component']]
]);
