yiming
2024-04-28 04acf6421dded7b6f6eef9d2cf41d0b4a0e8dd0d
packagePersonal/pages/userSetting/index.js
@@ -24,6 +24,7 @@
    emailError: false,
    imgCode: '',
    countDown: 0,
    mailCountDown: 0,
    userInfoBox: false,
    height: '', //屏幕高度
  },
@@ -126,6 +127,7 @@
    this.setData({
      userInfoBox: e.detail.visible,
      countDown: 0,
      mailCountDown:0
    });
  },
  editIconInfo(e) {
@@ -343,6 +345,8 @@
              icon: 'none',
              duration: 1000
            })
            // 开启短信验证倒计时
            this.getSecondEmail(60)
          } else {
            wx.showToast({
              title: '邮箱验证码发送失败',
@@ -360,6 +364,24 @@
      })
    }
  },
  getSecondEmail(time) {
    if (this.data.mailCountDown <= 0) {
      this.setData({
        mailCountDown: time,
      });
      let timer = setInterval(() => {
        let count = this.data.mailCountDown - 1;
        this.setData({
          mailCountDown: count,
        });
        if (count === 0) {
          clearInterval(timer);
        }
      }, 1000);
    }
  },
  confirmInfo() {
    if (this.data.editType == 'nickName') {