#
whycq
2023-05-15 e6ecd0ea0d971ff2c002a7215defce4afa820d77
Monitor-APP/pages/home/home.vue
@@ -386,7 +386,8 @@
            },
            swiperList: [],
            timeOut: false,
            times: 0
            times: 0,
            currDate: ''
         }
      },
      onShow() {
@@ -715,6 +716,7 @@
               success(result) {
                  var res = result.data.data
                  that.calendar = res.year + "年" + res.month + "月" + res.day + "日 " + res.hour + ":" + res.minute + ":" + res.second + " " + res.week
                  that.currDate = res.year + "/" + res.month + "/" + res.day
               }
            })
         },
@@ -742,7 +744,7 @@
            this.calendar = year + "年" + month + "月" + day + "日 " + hours + ":" + minutes + ":" + seconds + " " + weeks
         },
         getDateFormat(value) {
            var date = new Date();// 获取当前时间
            var date = new Date(this.currDate);// 获取当前时间
            date.setDate(date.getDate() + value);// 设置天数 -1 天
            var m = date.getMonth() + 1
            var d = date.getDate()