1 |
- {"version":3,"sources":["webpack:///D:/2022/9/sx/components/uni-notice-bar/uni-notice-bar.vue?cd60","webpack:///D:/2022/9/sx/components/uni-notice-bar/uni-notice-bar.vue?51ad","webpack:///D:/2022/9/sx/components/uni-notice-bar/uni-notice-bar.vue?ab7b","webpack:///D:/2022/9/sx/components/uni-notice-bar/uni-notice-bar.vue?4409","uni-app:///components/uni-notice-bar/uni-notice-bar.vue","webpack:///D:/2022/9/sx/components/uni-notice-bar/uni-notice-bar.vue?9ae2","webpack:///D:/2022/9/sx/components/uni-notice-bar/uni-notice-bar.vue?a7e0"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuI;AACvI;AACkE;AACL;AACsC;;;AAGnG;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,oFAAM;AACR,EAAE,qGAAM;AACR,EAAE,8GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,oPAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAwmB,CAAgB,koBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoC5nB;;;;;;;;;;;;;;;;;;;;AAoBA;AACA,sBADA;AAEA;AACA,sBADA,EAFA;;AAKA;AACA;AACA,kBADA;AAEA,iBAFA,EADA;;AAKA;AACA,kBADA;AAEA,iBAFA,EALA;;AASA;AACA,kBADA;AAEA,wBAFA,EATA;;AAaA;AACA;AACA,kBAFA;AAGA,kBAHA,EAbA;;AAkBA;AACA,kBADA;AAEA,wBAFA,EAlBA;;AAsBA;AACA,kBADA;AAEA,wBAFA,EAtBA;;AA0BA;AACA;AACA,6BAFA;AAGA,oBAHA,EA1BA;;AA+BA;AACA;AACA,6BAFA;AAGA,oBAHA,EA/BA;;AAoCA;AACA;AACA,6BAFA;AAGA,oBAHA,EApCA;;AAyCA;AACA;AACA,6BAFA;AAGA,oBAHA,EAzCA;;AA8CA;AACA;AACA,6BAFA;AAGA,oBAHA,EA9CA,EALA;;;AAyDA,MAzDA,kBAyDA;AACA;AACA;AACA;AACA,kBADA;AAEA,iBAFA;AAGA,mBAHA;AAIA,wBAJA;;;;AAQA,gBARA;AASA,sBATA;AAUA,gBAVA;AAWA,+BAXA;AAYA,kCAZA;AAaA,0BAbA;;AAeA,GA3EA;AA4EA,SA5EA,qBA4EA;;;;;;;;;;;;AAYA;AACA;AACA,KAFA;AAGA,GA3FA;;;;;;AAiGA;AACA,YADA,sBACA;AACA;;AAEA;AACA,oBADA;AAEA,qBAFA;AAGA;AACA;;AAEA,YAFA,CAEA,MAFA;;AAIA,gBAJA,YAIA,WAJA;AAKA,4BALA;AAMA,cANA,CAMA;AACA;AACA;AACA,WATA;AAUA,SAXA;AAYA;AACA;;AAEA,YAFA,CAEA,MAFA;;AAIA,gBAJA,YAIA,cAJA;AAKA,4BALA;AAMA,cANA,CAMA;AACA;AACA;AACA,WATA;AAUA,SAXA;AAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAFA,EAEA,IAFA;AAGA,SANA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA;;;;;;;;AAQA,KA9EA;AA+EA,iBA/EA,2BA+EA;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,KAvGA;AAwGA,aAxGA,uBAwGA;AACA;AACA,KA1GA;AA2GA,SA3GA,mBA2GA;AACA;AACA;AACA,KA9GA;AA+GA,WA/GA,qBA+GA;AACA;AACA,KAjHA,EAjGA,E;;;;;;;;;;;;;ACxDA;AAAA;AAAA;AAAA;AAA2qC,CAAgB,ipCAAG,EAAC,C;;;;;;;;;;;ACA/rC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/uni-notice-bar/uni-notice-bar.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./uni-notice-bar.vue?vue&type=template&id=24a05de4&scoped=true&\"\nvar renderjs\nimport script from \"./uni-notice-bar.vue?vue&type=script&lang=js&\"\nexport * from \"./uni-notice-bar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./uni-notice-bar.vue?vue&type=style&index=0&id=24a05de4&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"24a05de4\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/uni-notice-bar/uni-notice-bar.vue\"\nexport default component.exports","export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-notice-bar.vue?vue&type=template&id=24a05de4&scoped=true&\"","var components\ntry {\n components = {\n uniIcons: function() {\n return import(\n /* webpackChunkName: \"components/uni-icons/uni-icons\" */ \"@/components/uni-icons/uni-icons.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-notice-bar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-notice-bar.vue?vue&type=script&lang=js&\"","<template>\n\t<view v-if=\"show\" class=\"uni-noticebar\" :style=\"{ backgroundColor: backgroundColor }\" @click=\"onClick\">\n\t\t<!-- #ifdef MP-ALIPAY -->\n\t\t<view v-if=\"showClose === true || showClose === 'true'\" class=\"uni-noticebar-close\" @click=\"close\">\n\t\t\t<uni-icons type=\"closefill\" :color=\"color\" size=\"12\" />\n\t\t</view>\n\t\t<view v-if=\"showIcon === true || showIcon === 'true'\" class=\"uni-noticebar-icon\">\n\t\t\t<uni-icons type=\"sound\" :color=\"color\" size=\"14\" />\n\t\t</view>\n\t\t<!-- #endif -->\n\t\t<!-- #ifndef MP-ALIPAY -->\n\t\t<uni-icons v-if=\"showClose === true || showClose === 'true'\" class=\"uni-noticebar-close\" type=\"closefill\" :color=\"color\"\n\t\t size=\"12\" @click=\"close\" />\n\t\t<uni-icons v-if=\"showIcon === true || showIcon === 'true'\" class=\"uni-noticebar-icon\" type=\"sound\" :color=\"color\"\n\t\t size=\"14\" />\n\t\t<!-- #endif -->\n\t\t<view ref=\"textBox\" class=\"uni-noticebar__content-wrapper\" :class=\"{'uni-noticebar__content-wrapper--scrollable':scrollable, 'uni-noticebar__content-wrapper--single':!scrollable && (single || moreText)}\">\n\t\t\t<view :id=\"elIdBox\" class=\"uni-noticebar__content\" :class=\"{'uni-noticebar__content--scrollable':scrollable, 'uni-noticebar__content--single':!scrollable && (single || moreText)}\">\n\t\t\t\t<text :id=\"elId\" ref=\"animationEle\" class=\"uni-noticebar__content-text\" :class=\"{'uni-noticebar__content-text--scrollable':scrollable,'uni-noticebar__content-text--single':!scrollable && (single || moreText)}\"\n\t\t\t\t :style=\"{color:color, width:wrapWidth+'px', 'animationDuration': animationDuration, '-webkit-animationDuration': animationDuration ,animationPlayState: webviewHide?'paused':animationPlayState,'-webkit-animationPlayState':webviewHide?'paused':animationPlayState, animationDelay: animationDelay, '-webkit-animationDelay':animationDelay}\">{{text}}</text>\n\t\t\t</view>\n\t\t</view>\n\t\t<view v-if=\"showGetMore === true || showGetMore === 'true'\" class=\"uni-noticebar__more\" @click=\"clickMore\">\n\t\t\t<text v-if=\"moreText\" :style=\"{ color: moreColor }\" class=\"uni-noticebar__more-text\">{{ moreText }}</text>\n\t\t\t<uni-icons type=\"arrowright\" :color=\"moreColor\" size=\"14\" />\n\t\t</view>\n\t</view>\n</template>\n\n<script>\n\timport uniIcons from '../uni-icons/uni-icons.vue'\n\t// #ifdef APP-NVUE\n\tconst dom = weex.requireModule('dom');\n\tconst animation = weex.requireModule('animation');\n\t// #endif\n\n\t/**\n\t * NoticeBar 自定义导航栏\n\t * @description 通告栏组件\n\t * @tutorial https://ext.dcloud.net.cn/plugin?id=30\n\t * @property {Number} speed 文字滚动的速度,默认100px/秒\n\t * @property {String} text 显示文字\n\t * @property {String} backgroundColor 背景颜色\n\t * @property {String} color 文字颜色\n\t * @property {String} moreColor 查看更多文字的颜色\n\t * @property {String} moreText 设置“查看更多”的文本\n\t * @property {Boolean} single = [true|false] 是否单行\n\t * @property {Boolean} scrollable = [true|false] 是否滚动,为true时,NoticeBar为单行\n\t * @property {Boolean} showIcon = [true|false] 是否显示左侧喇叭图标\n\t * @property {Boolean} showClose = [true|false] 是否显示左侧关闭按钮\n\t * @property {Boolean} showGetMore = [true|false] 是否显示右侧查看更多图标,为true时,NoticeBar为单行\n\t * @event {Function} click 点击 NoticeBar 触发事件\n\t * @event {Function} close 关闭 NoticeBar 触发事件\n\t * @event {Function} getmore 点击”查看更多“时触发事件\n\t */\n\n\texport default {\n\t\tname: 'UniNoticeBar',\n\t\tcomponents: {\n\t\t\tuniIcons\n\t\t},\n\t\tprops: {\n\t\t\ttext: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: ''\n\t\t\t},\n\t\t\tmoreText: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: ''\n\t\t\t},\n\t\t\tbackgroundColor: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: '#fffbe8'\n\t\t\t},\n\t\t\tspeed: {\n\t\t\t\t// 默认1s滚动100px\n\t\t\t\ttype: Number,\n\t\t\t\tdefault: 100\n\t\t\t},\n\t\t\tcolor: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: '#de8c17'\n\t\t\t},\n\t\t\tmoreColor: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: '#999999'\n\t\t\t},\n\t\t\tsingle: {\n\t\t\t\t// 是否单行\n\t\t\t\ttype: [Boolean, String],\n\t\t\t\tdefault: false\n\t\t\t},\n\t\t\tscrollable: {\n\t\t\t\t// 是否滚动,添加后控制单行效果取消\n\t\t\t\ttype: [Boolean, String],\n\t\t\t\tdefault: false\n\t\t\t},\n\t\t\tshowIcon: {\n\t\t\t\t// 是否显示左侧icon\n\t\t\t\ttype: [Boolean, String],\n\t\t\t\tdefault: false\n\t\t\t},\n\t\t\tshowGetMore: {\n\t\t\t\t// 是否显示右侧查看更多\n\t\t\t\ttype: [Boolean, String],\n\t\t\t\tdefault: false\n\t\t\t},\n\t\t\tshowClose: {\n\t\t\t\t// 是否显示左侧关闭按钮\n\t\t\t\ttype: [Boolean, String],\n\t\t\t\tdefault: false\n\t\t\t}\n\t\t},\n\t\tdata() {\n\t\t\tconst elId = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`\n\t\t\tconst elIdBox = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`\n\t\t\treturn {\n\t\t\t\ttextWidth: 0,\n\t\t\t\tboxWidth: 0,\n\t\t\t\twrapWidth: '',\n\t\t\t\twebviewHide: false,\n\t\t\t\t// #ifdef APP-NVUE\n\t\t\t\tstopAnimation: false,\n\t\t\t\t// #endif\n\t\t\t\telId: elId,\n\t\t\t\telIdBox: elIdBox,\n\t\t\t\tshow: true,\n\t\t\t\tanimationDuration: 'none',\n\t\t\t\tanimationPlayState: 'paused',\n\t\t\t\tanimationDelay: '0s'\n\t\t\t}\n\t\t},\n\t\tmounted() {\n\t\t\t// #ifdef APP-PLUS\n\t\t\tvar pages = getCurrentPages();\n\t\t\tvar page = pages[pages.length - 1];\n\t\t\tvar currentWebview = page.$getAppWebview();\n\t\t\tcurrentWebview.addEventListener('hide',()=>{\n\t\t\t\tthis.webviewHide = true\n\t\t\t})\n\t\t\tcurrentWebview.addEventListener('show',()=>{\n\t\t\t\tthis.webviewHide = false\n\t\t\t})\n\t\t\t// #endif\n\t\t\tthis.$nextTick(() => {\n\t\t\t\tthis.initSize()\n\t\t\t})\n\t\t},\n\t\t// #ifdef APP-NVUE\n\t\tbeforeDestroy() {\n\t\t\tthis.stopAnimation = true\n\t\t},\n\t\t// #endif\n\t\tmethods: {\n\t\t\tinitSize() {\n\t\t\t\tif (this.scrollable) {\n\t\t\t\t\t// #ifndef APP-NVUE\n\t\t\t\t\tlet query = [],\n\t\t\t\t\t\tboxWidth = 0,\n\t\t\t\t\t\ttextWidth = 0;\n\t\t\t\t\tlet textQuery = new Promise((resolve, reject) => {\n\t\t\t\t\t\tuni.createSelectorQuery()\n\t\t\t\t\t\t\t// #ifndef MP-ALIPAY\n\t\t\t\t\t\t\t.in(this)\n\t\t\t\t\t\t\t// #endif\n\t\t\t\t\t\t\t.select(`#${this.elId}`)\n\t\t\t\t\t\t\t.boundingClientRect()\n\t\t\t\t\t\t\t.exec(ret => {\n\t\t\t\t\t\t\t\tthis.textWidth = ret[0].width\n\t\t\t\t\t\t\t\tresolve()\n\t\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t\tlet boxQuery = new Promise((resolve, reject) => {\n\t\t\t\t\t\tuni.createSelectorQuery()\n\t\t\t\t\t\t\t// #ifndef MP-ALIPAY\n\t\t\t\t\t\t\t.in(this)\n\t\t\t\t\t\t\t// #endif\n\t\t\t\t\t\t\t.select(`#${this.elIdBox}`)\n\t\t\t\t\t\t\t.boundingClientRect()\n\t\t\t\t\t\t\t.exec(ret => {\n\t\t\t\t\t\t\t\tthis.boxWidth = ret[0].width\n\t\t\t\t\t\t\t\tresolve()\n\t\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t\tquery.push(textQuery)\n\t\t\t\t\tquery.push(boxQuery)\n\t\t\t\t\tPromise.all(query).then(() => {\n\t\t\t\t\t\tthis.animationDuration = `${this.textWidth / this.speed}s`\n\t\t\t\t\t\tthis.animationDelay = `-${this.boxWidth / this.speed}s`\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\tthis.animationPlayState = 'running'\n\t\t\t\t\t\t}, 1000)\n\t\t\t\t\t})\n\t\t\t\t\t// #endif\n\t\t\t\t\t// #ifdef APP-NVUE\n\t\t\t\t\tdom.getComponentRect(this.$refs['animationEle'], (res) => {\n\t\t\t\t\t\tlet winWidth = uni.getSystemInfoSync().windowWidth\n\t\t\t\t\t\tthis.textWidth = res.size.width\n\t\t\t\t\t\tanimation.transition(this.$refs['animationEle'], {\n\t\t\t\t\t\t\tstyles: {\n\t\t\t\t\t\t\t\ttransform: `translateX(-${winWidth}px)`\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tduration: 0,\n\t\t\t\t\t\t\ttimingFunction: 'linear',\n\t\t\t\t\t\t\tdelay: 0\n\t\t\t\t\t\t}, () => {\n\t\t\t\t\t\t\tif (!this.stopAnimation) {\n\t\t\t\t\t\t\t\tanimation.transition(this.$refs['animationEle'], {\n\t\t\t\t\t\t\t\t\tstyles: {\n\t\t\t\t\t\t\t\t\t\ttransform: `translateX(-${this.textWidth}px)`\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ttimingFunction: 'linear',\n\t\t\t\t\t\t\t\t\tduration: (this.textWidth - winWidth) / this.speed * 1000,\n\t\t\t\t\t\t\t\t\tdelay: 1000\n\t\t\t\t\t\t\t\t}, () => {\n\t\t\t\t\t\t\t\t\tif (!this.stopAnimation) {\n\t\t\t\t\t\t\t\t\t\tthis.loopAnimation()\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t})\n\t\t\t\t\t// #endif\n\t\t\t\t}\n\t\t\t\t// #ifdef APP-NVUE\n\t\t\t\tif (!this.scrollable && (this.single || this.moreText)) {\n\t\t\t\t\tdom.getComponentRect(this.$refs['textBox'], (res) => {\n\t\t\t\t\t\tthis.wrapWidth = res.size.width\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\tloopAnimation() {\n\t\t\t\t// #ifdef APP-NVUE\n\t\t\t\tanimation.transition(this.$refs['animationEle'], {\n\t\t\t\t\tstyles: {\n\t\t\t\t\t\ttransform: `translateX(0px)`\n\t\t\t\t\t},\n\t\t\t\t\tduration: 0\n\t\t\t\t}, () => {\n\t\t\t\t\tif (!this.stopAnimation) {\n\t\t\t\t\t\tanimation.transition(this.$refs['animationEle'], {\n\t\t\t\t\t\t\tstyles: {\n\t\t\t\t\t\t\t\ttransform: `translateX(-${this.textWidth}px)`\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tduration: this.textWidth / this.speed * 1000,\n\t\t\t\t\t\t\ttimingFunction: 'linear',\n\t\t\t\t\t\t\tdelay: 0\n\t\t\t\t\t\t}, () => {\n\t\t\t\t\t\t\tif (!this.stopAnimation) {\n\t\t\t\t\t\t\t\tthis.loopAnimation()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t// #endif\n\t\t\t},\n\t\t\tclickMore() {\n\t\t\t\tthis.$emit('getmore')\n\t\t\t},\n\t\t\tclose() {\n\t\t\t\tthis.show = false;\n\t\t\t\tthis.$emit('close')\n\t\t\t},\n\t\t\tonClick() {\n\t\t\t\tthis.$emit('click')\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t@import '@/uni.scss';\n\n\t.uni-noticebar {\n\t\t/* #ifndef APP-NVUE */\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t\t/* #endif */\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tpadding: 6px 12px;\n\t\tmargin-bottom: 10px;\n\t}\n\n\t.uni-noticebar-close {\n\t\tmargin-right: 5px;\n\t}\n\n\t.uni-noticebar-icon {\n\t\tmargin-right: 5px;\n\t}\n\n\t.uni-noticebar__content-wrapper {\n\t\tflex: 1;\n\t\tflex-direction: column;\n\t\toverflow: hidden;\n\t}\n\n\t.uni-noticebar__content-wrapper--single {\n\t\t/* #ifndef APP-NVUE */\n\t\tline-height: 18px;\n\t\t/* #endif */\n\t}\n\n\t.uni-noticebar__content-wrapper--single,\n\t.uni-noticebar__content-wrapper--scrollable {\n\t\tflex-direction: row;\n\t}\n\n\t/* #ifndef APP-NVUE */\n\t.uni-noticebar__content-wrapper--scrollable {\n\t\tposition: relative;\n\t\theight: 18px;\n\t}\n\t/* #endif */\n\n\t.uni-noticebar__content--scrollable {\n\t\t/* #ifdef APP-NVUE */\n\t\tflex: 0;\n\t\t/* #endif */\n\t\t/* #ifndef APP-NVUE */\n\t\tflex: 1;\n\t\tdisplay: block;\n\t\toverflow: hidden;\n\t\t/* #endif */\n\t}\n\n\t.uni-noticebar__content--single {\n\t\t/* #ifndef APP-NVUE */\n\t\tdisplay: flex;\n\t\tflex: none;\n\t\twidth: 100%;\n\t\tjustify-content: center;\n\t\t/* #endif */\n\t}\n\n\t.uni-noticebar__content-text {\n\t\tfont-size: 14px;\n\t\tline-height: 18px;\n\t\t/* #ifndef APP-NVUE */\n\t\tword-break: break-all;\n\t\t/* #endif */\n\t}\n\n\t.uni-noticebar__content-text--single {\n\t\t/* #ifdef APP-NVUE */\n\t\tlines: 1;\n\t\t/* #endif */\n\t\t/* #ifndef APP-NVUE */\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\twhite-space: nowrap;\n\t\t/* #endif */\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t.uni-noticebar__content-text--scrollable {\n\t\t/* #ifdef APP-NVUE */\n\t\tlines: 1;\n\t\tpadding-left: 750rpx;\n\t\t/* #endif */\n\t\t/* #ifndef APP-NVUE */\n\t\tposition: absolute;\n\t\tdisplay: block;\n\t\theight: 18px;\n\t\tline-height: 18px;\n\t\twhite-space: nowrap;\n\t\tpadding-left: 100%;\n\t\tanimation: notice 10s 0s linear infinite both;\n\t\tanimation-play-state: paused;\n\t\t/* #endif */\n\t}\n\n\t.uni-noticebar__more {\n\t\t/* #ifndef APP-NVUE */\n\t\tdisplay: inline-flex;\n\t\t/* #endif */\n\t\tflex-direction: row;\n\t\tflex-wrap: nowrap;\n\t\talign-items: center;\n\t\tpadding-left: 5px;\n\t}\n\n\t.uni-noticebar__more-text {\n\t\tfont-size: 14px;\n\t}\n\n\t@keyframes notice {\n\t\t100% {\n\t\t\ttransform: translate3d(-100%, 0, 0);\n\t\t}\n\t}\n</style>\n","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-notice-bar.vue?vue&type=style&index=0&id=24a05de4&lang=scss&scoped=true&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./uni-notice-bar.vue?vue&type=style&index=0&id=24a05de4&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1663056411806\n var cssReload = require(\"E:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
|