yangan
2024-11-18 de5533672ba14608a223ba91e7e5ac48f51f57db
pages/login/resetPassword/resetPassword.vue
@@ -73,7 +73,7 @@
               <u-button type="primary"
                  text="确定"
                  :loading="processLoading"
                  @click.stop="process"></u-button>
                  @click="process"></u-button>
            </view>
         </u-form-item>
         <u-form-item prop="checkboxValue">
@@ -129,7 +129,7 @@
        const regex2 = /^[A-Za-z]+$/
        // 校验符号
        const regex3 =
            /^[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]+$/
            /^[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]+$/;
        if(regex1.test(value)) {
          this.level.push('low')
          return callback('密码强度过低')
@@ -237,6 +237,11 @@
      }else {
        this.isShowPassword = true
      }
      //是不是bug
      if(uni.getStorageSync('userInfo')){
        this.modelForm.username = uni.getStorageSync('userInfo').username
        this.modelForm.userId = uni.getStorageSync('userInfo').userId.toString()
      }
      },
      onReady() {
         this.$refs.uForm.setRules(this.rules)