YM
2024-05-27 0edf94722a0dcc338567fec7df76b2e0acd39b92
src/pages/forgetPass/forgetPass.vue
@@ -5,8 +5,8 @@
        class="Ttop flex flex-center flex-wrap"
        style="flex-direction: column"
      >
        <view class=""></view>
        <view class="" ref="Rtop">
        <view ></view>
        <view  ref="Rtop">
          <text class="login"></text>
          <text
            style="
@@ -32,10 +32,10 @@
            align-items: center;
          "
        >
          <!-- <view class="" style="color: #244A7B;padding-bottom: .47rem;font-size: .3rem;font-weight: bold;">用户注册</view> -->
          <!-- <view  style="color: #244A7B;padding-bottom: .47rem;font-size: .3rem;font-weight: bold;">用户注册</view> -->
          <view class="LoginBg"></view>
          <view
            class=""
            @click="BacktoLogin"
            style="
              cursor: pointer;
@@ -273,7 +273,6 @@
    },
    // 列表项跳转
    listDataClick(item) {
      console.log(item);
      // 在当前页面设置全局变量
      // uni.setStorageSync('globalData', { id: 123, name: 'example' });
      if (item.id == 1) {
@@ -281,7 +280,6 @@
          url: "/pages/character/detail?id=" + item.id,
        });
      } else if (item.id == 2) {
        console.log(item.name);
        // uni.navigateTo({
        //    url:'/pages/character/detail?id='+item.id
        // })
@@ -304,7 +302,6 @@
    validateContact(rule, value, callback) {
      const regPhone = /^1[0-9]{10}$/;
      const regEmail = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
      console.log(value, regPhone.test(value), regEmail.test(value));
      if (regPhone.test(value) || regEmail.test(value)) {
        callback(); // 校验通过
      } else {
@@ -315,7 +312,6 @@
      this.$nextTick(() => {
        var width = this.$refs.Rtop.$el.clientWidth;
        this.Rtop1 = width + 50;
        console.log("Element width:", width);
      });
    },
    // 忘记密码
@@ -325,13 +321,10 @@
        verifyCode: this.resetDataPass.verifyCode, //验证码
        newPassword: encryptAES(this.resetDataPass.newPass), //新密码
      };
      console.log(Obj);
      this.$refs[formName].validate(async (valid) => {
        if (valid) {
          await getRestPassword(Obj).then((res) => {
            console.log(res, "接口");
            if (res.success) {
              console.log("忘记密码的接口拿到数据了");
              uni.navigateTo({
                url: "/pages/Login/Login",
              });