(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-article"],{"0fe2":function(t,e,o){"use strict";var i=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(o("af34")),r={name:"diy-article",props:{value:{type:Object,default:function(){return{count:6,style:"style-1",ornament:{type:""},componentBgColor:"#ffffff",elementBgColor:"#f5f5f5"}}}},data:function(){return{list:[],loading:!0,skeletonConfig:{gridRows:3,gridRowsGap:"20rpx",headWidth:"160rpx",headHeight:"120rpx",textRows:2}}},created:function(){this.getList()},watch:{componentRefresh:function(t){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||0)+"rpx;",t+="border-top-right-radius:"+2*(this.value.topAroundRadius||0)+"rpx;",t+="border-bottom-left-radius:"+2*(this.value.bottomAroundRadius||0)+"rpx;",t+="border-bottom-right-radius:"+2*(this.value.bottomAroundRadius||0)+"rpx;"),t},itemCss:function(){var t,e,o="";return o+="background-color:"+this.value.elementBgColor+";","round"===this.value.elementAngle&&(o+="border-top-left-radius:"+2*(this.value.topElementAroundRadius||0)+"rpx;",o+="border-top-right-radius:"+2*(this.value.topElementAroundRadius||0)+"rpx;",o+="border-bottom-left-radius:"+2*(this.value.bottomElementAroundRadius||0)+"rpx;",o+="border-bottom-right-radius:"+2*(this.value.bottomElementAroundRadius||0)+"rpx;"),"shadow"===(null===(t=this.value.ornament)||void 0===t?void 0:t.type)&&(o+="box-shadow: 0 0 10rpx "+(this.value.ornament.color||"#ccc")),"stroke"===(null===(e=this.value.ornament)||void 0===e?void 0:e.type)&&(o+="border: 2rpx solid "+(this.value.ornament.color||"#eee")),o}},methods:{getList:function(){var t,e=this;this.loading=!0;var o={num:this.value.count||6};"diy"===this.value.sources&&null!==(t=this.value.articleIds)&&void 0!==t&&t.length&&(o.num=0,o.article_id_arr=this.value.articleIds.toString()),this.$api.sendRequest({url:"/api/article/lists",data:o,success:function(t){0===t.code&&t.data&&(e.list=t.data,e.list.length<6&&(e.list=[].concat((0,n.default)(e.list),(0,n.default)(e.list)))),e.loading=!1},fail:function(){e.loading=!1}})},toDetail:function(t){this.$util.redirectTo("/pages_tool/article/detail",{article_id:t.article_id})},imgError:function(t){this.list[t]&&(this.list[t].cover_img=this.$util.getDefaultImage().article)}}};e.default=r},"4f0d":function(t,e,o){"use strict";o.r(e);var i=o("c331"),n=o("acc0");for(var r in n)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(r);o("f135");var a=o("828b"),u=Object(a["a"])(n["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=u.exports},acc0:function(t,e,o){"use strict";o.r(e);var i=o("0fe2"),n=o.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},c0f6:function(t,e,o){},c331:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){return i}));var i={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,t.__map(t.list,(function(e,o){var i=t.__get_orig(e),n=t.$util.img(e.cover_img);return{$orig:i,g0:n}})));t.$mp.data=Object.assign({},{$root:{l0:o}})},r=[]},f135:function(t,e,o){"use strict";var i=o("c0f6"),n=o.n(i);n.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/diy-components/diy-article-create-component',
    {
        'components/diy-components/diy-article-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("4f0d"))
        })
    },
    [['components/diy-components/diy-article-create-component']]
]);
