yunxing 4 years ago
parent
commit
854e65f526
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/views/overview/index.vue

+ 4 - 3
src/views/overview/index.vue

@@ -165,7 +165,7 @@
                 </van-tabs>
             </van-tab>
         </van-tabs>
-        <div class='bottom'>
+        <div class='bottom' @click='goToUpdateRecord'>
             <!-- <span v-if='false'>近一个月,重要维保8条,重要维修3条,其他事项5条,综合事项10条</span> -->
             <van-notice-bar
                 v-if='showNoticeBar && noticeBarText.length>=25'
@@ -175,7 +175,6 @@
                 speed='50'
                 scrollable
                 :text='noticeBarText'
-                @click='goToUpdateRecord'
             />
             <span v-else-if='noticeBarText && noticeBarText.length<25'>{{noticeBarText}}</span>
             <span class='text' v-else>近一个月,说明书无更新</span>
@@ -357,7 +356,9 @@ export default {
          * 跳转说明书更新记录
          */
         goToUpdateRecord() {
-            this.$router.push({ name: 'UpdateRecord' })
+            if (this.showNoticeBar) {
+                this.$router.push({ name: 'UpdateRecord' })
+            }
         },
     },
 }