|
|
@@ -405,23 +405,24 @@ 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);
|
|
|
+ let date2 = dayjs(res.MMC_show_time.value).add(1, 'days');
|
|
|
+ if (date1.isSameOrBefore(dayjs(), 'day') && date2.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 => {
|