<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Vue 用戶30分鐘未操作,頁面跳轉到登錄頁

      <template>
        <div id="app">
          <router-view ></router-view>
          <TipDialog v-if="tiptype"></TipDialog>
        </div>
      </template>
      
      <script>
        import TipDialog from "@/components/tipDialog.vue";
        export default {
          components: { TipDialog },
          name: "App",
          data() {
            return {
              timeOut: 2 * 60 * 1000,//120秒未操作提示彈框
              // timeOut: 10 * 1000,
              lastTimeStoreId: 'lastTime_jc',
              tiptype: false,
              timer: null,
            };
          },
          watch: {
            //監聽再那個頁面去執行定時器
            $route(to, from) {
              let that = this;
              if (to.path == '/shoopcar' || to.path == '/orderAdd' || to.path == '/detailBox') {
                clearInterval(that.timer)
                that.timer = setInterval(this.checkTimeout, 1000);
              } else {
                clearInterval(that.timer)
              }
            }
          },
          mounted() {
            let that = this;
            // 監聽事件
            that.$nextTick(function () {
              window.addEventListener('click', that.setLastTime)
              window.addEventListener('keydown', that.setLastTime)
              window.addEventListener('scroll', that.setLastTime)
              window.addEventListener('touchstart', that.setLastTime)
              window.addEventListener('touchend', that.setLastTime)
            })
          },
          methods: {
            tipTypeson() {
              this.tiptype = false;
            },
            setLastTime() {
              localStorage.setItem(this.lastTimeStoreId, new Date().getTime());
            },
            // 獲取時間
            getLastTime() {
              return localStorage.getItem(this.lastTimeStoreId);
            },
            // 刪除
            removeLastTime() {
              localStorage.removeItem(this.lastTimeStoreId)
            },
            checkTimeout() {
              let that = this;
              console.log(111);
              let currentTime = new Date().getTime();
              let lastTime = this.getLastTime();
              if (currentTime - lastTime > that.timeOut) {
                that.tiptype = true;
                clearInterval(that.timer)
              }
            },
          },
        };
      </script>
      <style>
        html,
        body {
          width: 100%;
          height: 100%;
          background: #F8F8F8;
        }
      
        input::-webkit-input-placeholder {
          color: #999;
        }
      
        .tisps {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0, 0, 0, .5);
          z-index: 100;
        }
      </style>

       

      <template>
      <div id="app">
      <router-view ></router-view>
      <!-- <keep-alive>
      <router-view v-if="$route.meta.keepAlive" />
      </keep-alive>
      <router-view v-if="!$route.meta.keepAlive" /> -->
      <TipDialog v-if="tiptype"></TipDialog>
      </div>
      </template>

      <script>
      import { canclesoldout, infosoldout } from "@/api/personal";
      import { checkToken } from "@/utils/storage";
      import { getToken } from "@/utils/auth";
      import TipDialog from "@/components/tipDialog.vue";
      export default {
      components: { TipDialog },
      name: "App",
      data() {
      return {
      timeOut: 2 * 60 * 1000,//120秒未操作提示彈框
      // timeOut: 10 * 1000,
      lastTimeStoreId: 'lastTime_jc',
      tiptype: false,
      timer: null,
      };
      },
      watch: {
      //監聽再那個頁面去執行定時器
      $route(to, from) {
      let that = this;
      if (to.path == '/shoopcar' || to.path == '/orderAdd' || to.path == '/detailBox') {
      clearInterval(that.timer)
      that.timer = setInterval(this.checkTimeout, 1000);
      } else {
      clearInterval(that.timer)
      }
      }
      },
      mounted() {
      let that = this;
      // 監聽事件
      that.$nextTick(function () {
      window.addEventListener('click', that.setLastTime)
      window.addEventListener('keydown', that.setLastTime)
      window.addEventListener('scroll', that.setLastTime)
      window.addEventListener('touchstart', that.setLastTime)
      window.addEventListener('touchend', that.setLastTime)
      })
      },
      methods: {
      tipTypeson() {
      this.tiptype = false;
      },
      setLastTime() {
      localStorage.setItem(this.lastTimeStoreId, new Date().getTime());
      },
      // 獲取時間
      getLastTime() {
      return localStorage.getItem(this.lastTimeStoreId);
      },
      // 刪除
      removeLastTime() {
      localStorage.removeItem(this.lastTimeStoreId)
      },
      checkTimeout() {
      let that = this;
      console.log(111);
      let currentTime = new Date().getTime();
      let lastTime = this.getLastTime();
      if (currentTime - lastTime > that.timeOut) {
      that.tiptype = true;
      clearInterval(that.timer)
      }
      },
      },
      };
      </script>
      <style>
      html,
      body {
      width: 100%;
      height: 100%;
      background: #F8F8F8;
      }

      input::-webkit-input-placeholder {
      color: #999;
      }

      .tisps {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, .5);
      z-index: 100;
      }

      /*訂單*/
      /*.order-list .van-tabs__line {
      background-color: #FFC536;
      }*/
      .order-list .van-tabs__content {
      background-color: #f8f8f8;
      }

      .order-box .van-grid-item__text {
      color: #666;
      font-size: 0.26rem;
      }

      .order-box .van-cell {
      align-items: center;
      }

      .order-box .cell-value-class {
      color: #666!important;
      }

      .ellipsis-one {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      -o-text-overflow: ellipsis;
      }

      /*個人中心模塊*/
      .personal-page .tab-box .van-grid-item__text {
      margin-top: 0.2rem;
      }


      /*服務預約 搜索*/
      .van-search__content {
      background-color: #fff;
      }

      /*預約信息*/
      .seat-creat-order-page .van-radio--horizontal,
      .add-con .van-radio--horizontal {
      margin-right: 0 !important;
      }

      .seat-creat-order-page .van-radio__label,
      .add-con .van-radio__label {
      margin-left: 0.08rem;
      }

      /**/
      .van-step__circle-container,
      .van-step__line {
      margin-top: 0.5rem;
      }
      </style>
      posted @ 2023-06-05 10:21  前端—小白  閱讀(279)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 亚洲av一本二本三本| 日韩一区二区三区水蜜桃| 内射干少妇亚洲69xxx| 在线永久看片免费的视频| 亚洲中文字幕成人无码| 国产精品视频一区二区噜| 清水县| 亚洲无线码中文字幕在线| 国产精品中文字幕观看| 国内少妇偷人精品免费| 国内精品久久久久电影院 | 日韩乱码人妻无码中文字幕视频| 亚洲国产中文字幕精品| 一本色道久久加勒比综合 | 色先锋av影音先锋在线| 久久精品波多野结衣| 人妻加勒比系列无码专区| 建昌县| 亚洲av无码精品色午夜蛋壳| 国产成人精品永久免费视频| 最好看的中文字幕国语| 少妇高潮潮喷到猛进猛出小说 | 亚洲人成网站免费播放| 综合成人亚洲网友偷自拍| 久久综合色之久久综合| 少妇被日自拍黄色三级网络| 国产午夜视频在线观看| 亚洲成av人在线播放无码 | 久久亚洲精品人成综合网| 国产成人片无码视频在线观看| 国产AV永久无码青青草原| 男女裸体影院高潮| 久青草视频在线观看免费| 免费AV片在线观看网址| 狠狠亚洲色一日本高清色| 亚洲精品中文字幕码专区| 99在线精品国自产拍中文字幕| 亚洲精品国产第一区二区| 无码人妻黑人中文字幕| 亚洲乱妇老熟女爽到高潮的片| 欧美日韩精品一区二区视频|