yangan
2024-09-05 48a4ff3409804fc62139a9fa9fc05498cbc0a0ce
pages/login/resetPassword/resetPassword.vue
@@ -54,7 +54,7 @@
        </div>
      </view>
         <u-form-item prop="secondPassword"
            label="二次确认"
            label="确认密码"
            required
            borderBottom>
            <u-input v-if='inputType==="password"'
@@ -129,7 +129,7 @@
        const regex2 = /^[A-Za-z]+$/
        // 校验符号
        const regex3 =
            /^[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]+$/
            /^[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]+$/;
        if(regex1.test(value)) {
          this.level.push('low')
          return callback('密码强度过低')
@@ -223,7 +223,6 @@
         //    this.getUserInfo(params.phone, params.idCard)
         // }
      if(params.userInfo) {
        console.log(JSON.parse(params.userInfo),'userInfo====')
        this.modelForm.username = JSON.parse(params.userInfo).username
        this.modelForm.userId = JSON.parse(params.userInfo).userId.toString()   //userId
        if(JSON.parse(params.userInfo).isShowPassword) {
@@ -232,6 +231,8 @@
          this.isShowPassword = true
        }
      }else {
        this.modelForm.username = uni.getStorageSync('userInfo').username
        this.modelForm.userId = uni.getStorageSync('userInfo').userId.toString()
        this.isShowPassword = true
      }
      },