|
@@ -448,11 +448,11 @@ export default {
|
|
|
methods: {
|
|
|
setTitleScroll () {
|
|
|
this.$nextTick(() => {
|
|
|
- let boxWidth = this.$refs.boxnoticetitle.offsetWidth;
|
|
|
- let contentWidth = this.$refs.noticetitle.offsetWidth;
|
|
|
- if(contentWidth > boxWidth){
|
|
|
- //设置水平滚动效果
|
|
|
- this.isTran = true;
|
|
|
+ let boxWidth = this.$refs.boxnoticetitle.offsetWidth
|
|
|
+ let contentWidth = this.$refs.noticetitle.offsetWidth
|
|
|
+ if (contentWidth > boxWidth) {
|
|
|
+ // 设置水平滚动效果
|
|
|
+ this.isTran = true
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -827,7 +827,7 @@ body,
|
|
|
}
|
|
|
|
|
|
.notice-title-animation {
|
|
|
- animation: wordsLoop 25s linear infinite normal;
|
|
|
+ animation: wordsLoop 25s linear infinite normal;
|
|
|
}
|
|
|
|
|
|
@keyframes wordsLoop{
|