panhui 2 years ago
parent
commit
3316644d3b
1 changed files with 17 additions and 17 deletions
  1. 17 17
      src/views/Home.vue

+ 17 - 17
src/views/Home.vue

@@ -405,23 +405,23 @@ export default {
         this.getInit();
         setTimeout(() => {
             this.showTips().then(() => {
-                let showMMC = window.sessionStorage.getItem('showMMC');
-                if (!showMMC) {
-                    this.$http.get('sysConfig/get/MMC_video_url,MMC_show,MMC_show_time').then(res => {
-                        if (res.MMC_show_time) {
-                            let date1 = dayjs(res.MMC_show_time.value).add(1, 'days');
-                            if (date1.isAfter(dayjs(), 'day')) {
-                                this.showMMC = true;
-                            }
-                        } else if (res.MMC_show) {
-                            this.showMMC = res.MMC_show.value === '1';
-                        }
-                        if (res.MMC_video_url) {
-                            this.MMCUrl = res.MMC_video_url.value;
-                        }
-                        window.sessionStorage.setItem('showMMC', true);
-                    });
-                }
+                // let showMMC = window.sessionStorage.getItem('showMMC');
+                // if (!showMMC) {
+                //     this.$http.get('sysConfig/get/MMC_video_url,MMC_show,MMC_show_time').then(res => {
+                //         if (res.MMC_show_time) {
+                //             let date1 = dayjs(res.MMC_show_time.value).add(1, 'days');
+                //             if (date1.isAfter(dayjs(), 'day')) {
+                //                 this.showMMC = true;
+                //             }
+                //         } else if (res.MMC_show) {
+                //             this.showMMC = res.MMC_show.value === '1';
+                //         }
+                //         if (res.MMC_video_url) {
+                //             this.MMCUrl = res.MMC_video_url.value;
+                //         }
+                //         window.sessionStorage.setItem('showMMC', true);
+                //     });
+                // }
             });
         }, 500);
         this.$http.get('sysConfig/get/fu_startTime').then(res => {