瀏覽代碼

修复语法规范错误

chris 2 年之前
父節點
當前提交
0faa5aca28
共有 2 個文件被更改,包括 12 次插入12 次删除
  1. 6 6
      src/views/modules/home/admin.vue
  2. 6 6
      src/views/modules/home/customer.vue

+ 6 - 6
src/views/modules/home/admin.vue

@@ -448,11 +448,11 @@ export default {
   methods: {
   methods: {
     setTitleScroll () {
     setTitleScroll () {
       this.$nextTick(() => {
       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 {
 .notice-title-animation {
-  animation: wordsLoop 25s linear infinite normal; 
+  animation: wordsLoop 25s linear infinite normal;
 }
 }
 
 
 @keyframes wordsLoop{
 @keyframes wordsLoop{

+ 6 - 6
src/views/modules/home/customer.vue

@@ -370,11 +370,11 @@ export default {
   methods: {
   methods: {
     setTitleScroll () {
     setTitleScroll () {
       this.$nextTick(() => {
       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
         }
         }
       })
       })
     },
     },
@@ -753,7 +753,7 @@ body,
 }
 }
 
 
 .notice-title-animation {
 .notice-title-animation {
-  animation: wordsLoop 25s linear infinite normal; 
+  animation: wordsLoop 25s linear infinite normal;
 }
 }
 
 
 @keyframes wordsLoop{
 @keyframes wordsLoop{