dedsudiyu 5 ay önce
ebeveyn
işleme
1ad5dc5fd0
1 değiştirilmiş dosya ile 4 ekleme ve 9 silme
  1. 4 9
      src/views/components/centerNotice.vue

+ 4 - 9
src/views/components/centerNotice.vue

@@ -73,7 +73,7 @@
         noticeTextTime:60000,
         noticeTextTime:60000,
         //图片定时
         //图片定时
         noticeImgInterval:null,
         noticeImgInterval:null,
-        noticeImgTime:3000,
+        noticeImgTime:30000,
         //滚动定时监测
         //滚动定时监测
         noticeIntervalType:false,
         noticeIntervalType:false,
         /****图片数据****/
         /****图片数据****/
@@ -108,7 +108,7 @@
         dashboardsMediaAnnouncements().then(res => {
         dashboardsMediaAnnouncements().then(res => {
           if(res.data){
           if(res.data){
             this.$set(this,'noticeIndex',0);
             this.$set(this,'noticeIndex',0);
-            this.$set(this,'noticeList',res.data);
+            this.$set(this,'noticeList',[res.data[2],res.data[3]]);
           }else{
           }else{
             this.$set(this,'noticeIndex',0);
             this.$set(this,'noticeIndex',0);
             this.$set(this,'noticeList',[]);
             this.$set(this,'noticeList',[]);
@@ -207,7 +207,7 @@
         }else{
         }else{
           setTimeout(function() {
           setTimeout(function() {
             self.dashboardsMediaAnnouncements();
             self.dashboardsMediaAnnouncements();
-          },30000)
+          },300)
         }
         }
       },
       },
       initialize(item){
       initialize(item){
@@ -225,12 +225,7 @@
           }else if(item.content.indexOf('.docx') != -1){
           }else if(item.content.indexOf('.docx') != -1){
             this.$set(this,'lookUrl',item.content);
             this.$set(this,'lookUrl',item.content);
             this.$set(this,'pageType','2');
             this.$set(this,'pageType','2');
-          }else if(item.content.indexOf('.png') != -1){
-            this.$set(this,'pageType','3');
-            setTimeout(function() {
-              self.getImgData(item.content);
-            },500)
-          }else if(item.content.indexOf('.jpg') != -1){
+          }else if(item.content.indexOf('.png') != -1||item.content.indexOf('.jpg') != -1||item.content.indexOf('.jpeg') != -1||item.content.indexOf('.gif') != -1){
             this.$set(this,'pageType','3');
             this.$set(this,'pageType','3');
             setTimeout(function() {
             setTimeout(function() {
               self.getImgData(item.content);
               self.getImgData(item.content);