1
huanghongfeng
2 天以前 a34059e688e947a2ea079a0646872f1a21089940
项目代码/DP/src/views/home.vue
@@ -23,14 +23,14 @@
              <span class="title-text">杞鍘嬭鏅鸿兘閫夐厤绯荤粺</span>
            </div>
          </div>
          <div class="timers">
          <!-- <div class="timers">
            {{ dateYear }} {{ dateWeek }} {{ dateDay }}
            <i
              class="blq-icon-shezhi02"
              style="margin-left: 10px"
              @click="showSetting"
            ></i>
          </div>
          </div> -->
        </div>
        <!-- 澶撮儴 e-->
        <!-- 鍐呭  s-->
@@ -67,7 +67,7 @@
  computed: {},
  created() {},
  mounted() {
    this.timeFn();
    //this.timeFn();
    this.cancelLoading();
    
    // 鐩戝惉鍏ㄥ睆鍙樺寲
@@ -81,13 +81,13 @@
    showSetting() {
      this.$refs.setting.init();
    },
    timeFn() {
      this.timing = setInterval(() => {
        this.dateDay = formatTime(new Date(), "HH: mm: ss");
        this.dateYear = formatTime(new Date(), "yyyy-MM-dd");
        this.dateWeek = this.weekday[new Date().getDay()];
      }, 1000);
    },
    // timeFn() {
    //   this.timing = setInterval(() => {
    //     this.dateDay = formatTime(new Date(), "HH: mm: ss");
    //     this.dateYear = formatTime(new Date(), "yyyy-MM-dd");
    //     this.dateWeek = this.weekday[new Date().getDay()];
    //   }, 1000);
    // },
    cancelLoading() {
      let timer = setTimeout(() => {
        this.loading = false;