new files

This commit is contained in:
panchengyong
2026-03-07 22:29:07 +08:00
parent cd7e80b502
commit 7acbf45ff7
12516 changed files with 1808447 additions and 194 deletions

View File

@@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uniNoticeBar/uni-notice-bar"],{"5d49":function(t,e,n){"use strict";var i=n("7e11"),o=n.n(i);o.a},7306:function(t,e,n){"use strict";n.r(e);var i=n("cd92"),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},"7e11":function(t,e,n){},8565:function(t,e,n){"use strict";n.r(e);var i=n("fe3a"),o=n("7306");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("5d49");var c=n("828b"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"6ff38a18",null,!1,i["a"],void 0);e["default"]=r.exports},cd92:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"UniNoticeBar",emits:["click","getmore","close"],props:{prConfig:{type:Number,default:0},text:{type:String,default:""},moreText:{type:String,default:""},backgroundColor:{type:String,default:"#FFF9EA"},speed:{type:Number,default:100},color:{type:String,default:"#FF9A43"},moreColor:{type:String,default:"#FF9A43"},single:{type:[Boolean,String],default:!1},scrollable:{type:[Boolean,String],default:!1},showIcon:{type:[Boolean,String],default:!1},showGetMore:{type:[Boolean,String],default:!1},showClose:{type:[Boolean,String],default:!1}},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:{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"])},fe3a: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||!0!==this.showGetMore&&"true"!==this.showGetMore?null:this.moreText.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/uniNoticeBar/uni-notice-bar-create-component',
{
'components/uniNoticeBar/uni-notice-bar-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("8565"))
})
},
[['components/uniNoticeBar/uni-notice-bar-create-component']]
]);

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<block wx:if="{{show}}"><view data-event-opts="{{[['tap',[['onClick',['$event']]]]]}}" class="uni-noticebar data-v-6ff38a18" style="{{('background-color:'+backgroundColor+';width:'+100%-prConfig*2*2+'rpx;')}}" bindtap="__e"><view data-ref="textBox" class="{{['uni-noticebar__content-wrapper','data-v-6ff38a18','vue-ref',(scrollable)?'uni-noticebar__content-wrapper--scrollable':'',(!scrollable&&(single||moreText))?'uni-noticebar__content-wrapper--single':'']}}"><view class="{{['uni-noticebar__content','data-v-6ff38a18',(scrollable)?'uni-noticebar__content--scrollable':'',(!scrollable&&(single||moreText))?'uni-noticebar__content--single':'']}}" id="{{elIdBox}}"><text class="{{['uni-noticebar__content-text','data-v-6ff38a18','vue-ref',(scrollable)?'uni-noticebar__content-text--scrollable':'',(!scrollable&&(single||showGetMore))?'uni-noticebar__content-text--single':'']}}" style="{{'color:'+(color)+';'+('width:'+(wrapWidth+'px')+';')+('animation-duration:'+(animationDuration)+';')+('-webkit-animation-duration:'+(animationDuration)+';')+('animation-play-state:'+(webviewHide?'paused':animationPlayState)+';')+('-webkit-animation-play-state:'+(webviewHide?'paused':animationPlayState)+';')+('animation-delay:'+(animationDelay)+';')+('-webkit-animation-delay:'+(animationDelay)+';')}}" id="{{elId}}" data-ref="animationEle">{{text}}</text></view></view><block wx:if="{{showGetMore===true||showGetMore==='true'}}"><view data-event-opts="{{[['tap',[['clickMore',['$event']]]]]}}" class="uni-noticebar__more uni-cursor-point data-v-6ff38a18" bindtap="__e"><block wx:if="{{$root.g0>0}}"><text class="uni-noticebar__more-text data-v-6ff38a18" style="{{'color:'+(moreColor)+';'}}">{{moreText}}</text></block></view></block><block wx:if="{{(showClose===true||showClose==='true')&&(showGetMore===false||showGetMore==='false')}}"><view class="uni-noticebar-close uni-cursor-point data-v-6ff38a18"></view></block></view></block>

View File

@@ -0,0 +1,2 @@
.uni-noticebar.data-v-6ff38a18{display:flex;width:100%;box-sizing:border-box;flex-direction:row;align-items:center}.uni-noticebar-close.data-v-6ff38a18{margin-left:8px;margin-right:5px}.uni-noticebar-icon.data-v-6ff38a18{margin-right:5px}.uni-noticebar__content-wrapper.data-v-6ff38a18{flex:1;flex-direction:column;overflow:hidden}.uni-noticebar__content-wrapper--single.data-v-6ff38a18{line-height:18px}.uni-noticebar__content-wrapper--single.data-v-6ff38a18,
.uni-noticebar__content-wrapper--scrollable.data-v-6ff38a18{flex-direction:row}.uni-noticebar__content-wrapper--scrollable.data-v-6ff38a18{position:relative;height:18px}.uni-noticebar__content--scrollable.data-v-6ff38a18{flex:1;display:block;overflow:hidden}.uni-noticebar__content--single.data-v-6ff38a18{display:flex;flex:none;width:100%;justify-content:center}.uni-noticebar__content-text.data-v-6ff38a18{font-size:14px;line-height:18px;word-break:break-all}.uni-noticebar__content-text--single.data-v-6ff38a18{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.uni-noticebar__content-text--scrollable.data-v-6ff38a18{position:absolute;display:block;height:18px;line-height:18px;white-space:nowrap;padding-left:100%;-webkit-animation:notice-data-v-6ff38a18 10s 0s linear infinite both;animation:notice-data-v-6ff38a18 10s 0s linear infinite both;-webkit-animation-play-state:paused;animation-play-state:paused}.uni-noticebar__more.data-v-6ff38a18{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;padding-left:5px}.uni-noticebar__more-text.data-v-6ff38a18{font-size:14px}@-webkit-keyframes notice-data-v-6ff38a18{100%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes notice-data-v-6ff38a18{100%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}