服务器提交
This commit is contained in:
10
public/weapp/components/diy-components/diy-article.js
Executable file
10
public/weapp/components/diy-components/diy-article.js
Executable file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/diy-components/diy-article"],{"24e1":function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return n})),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,"3268"))}},i=function(){var t=this,e=t.$createElement,o=(t._self._c,t.loading||t.list&&t.list.length),r=o?t.__map(t.list,(function(e,o){var r=t.__get_orig(e),i=t.$util.img(e.cover_img),n=t.$util.timeStampTurnTime(e.create_time,"Y-m-d");return{$orig:r,g1:i,g2:n}})):null;t.$mp.data=Object.assign({},{$root:{g0:o,l0:r}})},n=[]},7447:function(t,e,o){"use strict";o.r(e);var r=o("24e1"),i=o("9d3d");for(var n in i)["default"].indexOf(n)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(n);o("f2c4");var u=o("828b"),a=Object(u["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=a.exports},"9b7b":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,default:function(){return{}}}},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;"),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,e={num:this.value.count};"diy"==this.value.sources&&(e.num=0,e.article_id_arr=this.value.articleIds.toString()),this.$api.sendRequest({url:"/api/article/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_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},"9d3d":function(t,e,o){"use strict";o.r(e);var r=o("9b7b"),i=o.n(r);for(var n in r)["default"].indexOf(n)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(n);e["default"]=i.a},c26e:function(t,e,o){},f2c4:function(t,e,o){"use strict";var r=o("c26e"),i=o.n(r);i.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__("7447"))
|
||||
})
|
||||
},
|
||||
[['components/diy-components/diy-article-create-component']]
|
||||
]);
|
||||
Reference in New Issue
Block a user