(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/component/diy/noticeDiy"],{1792:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"notice",props:{moreText:{type:String,default:""},speed:{type:Number,default:100},moreColor:{type:String,default:"#999999"},single:{type:[Boolean,String],default:!1},scrollable:{type:[Boolean,String],default:!0},showGetMore:{type:[Boolean,String],default:!1},showClose:{type:[Boolean,String],default:!1},showStyle:{},showParams:{},domain:""},computed:{itemBorderRadius:function(){return t.upx2px(2*this.showStyle.itemBorderRadius)+"px"},paddingTop:function(){return t.upx2px(2*this.showStyle.paddingTop)+"px"},paddingLeft:function(){return t.upx2px(2*this.showStyle.paddingLeft)+"px"}},data:function(){var t="Uni_".concat(Math.ceil(1e6*Math.random()).toString(36)),e="Uni_".concat(Math.ceil(1e6*Math.random()).toString(36));return{textWidth:0,boxWidth:0,wrapWidth:"",webviewHide:!1,elId:t,elIdBox:e,show:!0,animationDuration:"none",animationPlayState:"paused",animationDelay:"0s"}},mounted:function(){var t=this;this.$nextTick((function(){t.initSize()}))},methods:{getImagePath:function(t){return t.indexOf("http")>-1?t:this.domain+t},initSize:function(){var e=this;if(this.scrollable){var n=[],i=new Promise((function(n,i){t.createSelectorQuery().in(e).select("#".concat(e.elId)).boundingClientRect().exec((function(t){e.textWidth=t[0].width,n()}))})),o=new Promise((function(n,i){t.createSelectorQuery().in(e).select("#".concat(e.elIdBox)).boundingClientRect().exec((function(t){e.boxWidth=t[0].width,n()}))}));n.push(i),n.push(o),Promise.all(n).then((function(){e.animationDuration="".concat(e.textWidth/e.speed,"s"),e.animationDelay="-".concat(e.boxWidth/e.speed,"s"),setTimeout((function(){e.animationPlayState="running"}),1e3)}))}},loopAnimation:function(){},clickMore:function(){this.$emit("getmore")},close:function(){this.show=!1,this.$emit("close")},onClick:function(){this.$emit("click")}}};e.default=n}).call(this,n("df3c")["default"])},4092:function(t,e,n){"use strict";var i=n("ae3d"),o=n.n(i);o.a},ae3d:function(t,e,n){},d673:function(t,e,n){"use strict";n.r(e);var i=n("ee71"),o=n("ed1b");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("4092");var c=n("828b"),u=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"ed6617d4",null,!1,i["a"],void 0);e["default"]=u.exports},ed1b:function(t,e,n){"use strict";n.r(e);var i=n("1792"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},ee71:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=(this._self._c,this.show&&this.showParams.showImg&&this.showParams.icon?this.getImagePath(this.showParams.icon):null);this.$mp.data=Object.assign({},{$root:{m0:e}})},o=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/component/diy/noticeDiy-create-component',
    {
        'pages/component/diy/noticeDiy-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("d673"))
        })
    },
    [['pages/component/diy/noticeDiy-create-component']]
]);
