js
litian
2024-04-11 c65db083eef77f094f5c3439066c1ec1875d05e0
packagePersonal/pages/userSetting/index.js
@@ -301,14 +301,14 @@
  getSecond(time) {
    let timer = null
    if (!timer) {
      let countDown = time;
      this.setData({
        countDown: time,
      });
      let conut = this.data.countDown;
      timer = setInterval(() => {
        countDown--
        conut--
        this.setData({
          countDown: countDown,
          countDown: conut,
        });
        if (this.data.countDow == 0) {
          clearInterval(timer)