YM
2024-05-27 0edf94722a0dcc338567fec7df76b2e0acd39b92
src/components/loginAndRegister/loginAndRegister.vue
@@ -1,9 +1,9 @@
<template>
   <view>
      <el-card :style="{width: width + 'px'}">
         <view class="" style="display: flex; justify-content: space-between;">
         <view  style="display: flex; justify-content: space-between;">
            <h2 style="color: #244a7b;padding-bottom: 20rpx;">{{title}}</h2>
            <view class="" v-if="BackLoginTrue" style="cursor: pointer;font-size: 20rpx;color: #244a7b;">
            <view  v-if="BackLoginTrue" style="cursor: pointer;font-size: 20rpx;color: #244a7b;">
               {{BackLogin}}
            </view>
         </view>
@@ -20,14 +20,14 @@
                  style="margin-top: 30rpx; font-weight:900;font-size: 30rpx; width: 100%;background-color: #244a7b;color: #fff;padding: 30rpx;"
                  size="medium" @click="Login">登录</el-button>
            </el-form-item>
            <view class=""
            <view
               style="font-size: 18rpx;color: #9E9E9E;text-align: center;line-height: 1;margin-bottom: 20rpx;">
               用户注册即代表同意《服务条款》和《用户隐私保护和个人信息条款》</view>
            <!-- 登录时 忘记密码/快速注册   -->
            <view class="" v-if="loginTrue" style="display: flex;font-size: 20rpx;" :style="{color:color}">
               <view class="" style="display: inline-block;cursor: pointer;" @click="forgetPass">忘记密码</view>
               <view class="" style="display: inline-block;margin: 0 20rpx;"> | </view>
               <view class="" style="display: inline-block;cursor: pointer;" @click="quickRegister">快速注册</view>
            <view  v-if="loginTrue" style="display: flex;font-size: 20rpx;" :style="{color:color}">
               <view  style="display: inline-block;cursor: pointer;" @click="forgetPass">忘记密码</view>
               <view  style="display: inline-block;margin: 0 20rpx;"> | </view>
               <view  style="display: inline-block;cursor: pointer;" @click="quickRegister">快速注册</view>
            </view>
         </el-form>
      </el-card>
@@ -140,7 +140,6 @@
                     message: '请输入' + item.lable,
                     trigger: ['blur', 'change']
                  }, )
                  console.log(dynamicRules[item.id]);
                  // 所有不是的走
               } else {
                  dynamicRules[item.id].push({
@@ -150,7 +149,6 @@
                  });
               }
            });
            console.log(dynamicRules);
            return dynamicRules;
         },
      },
@@ -162,7 +160,6 @@
               obj[item.name] = item.val
               return obj
            }, {})
            console.log(result);
            this.$emit('Login', result)
         },
         // 忘记密码