浏览代码

feat: 临时增加66666666666账号

gemercheung 10 月之前
父节点
当前提交
25f5711727
共有 3 个文件被更改,包括 26 次插入8 次删除
  1. 13 4
      src/app/criminal/view/login/index.vue
  2. 2 1
      src/app/xmfire/view/login/index.vue
  3. 11 3
      src/view/system/login.vue

+ 13 - 4
src/app/criminal/view/login/index.vue

@@ -33,7 +33,12 @@
                 src="@/assets/image/pasword.png"
                 alt=""
               />
-              <el-icon :size="20" @click="flag = !flag" class="icon-style" v-else>
+              <el-icon
+                :size="20"
+                @click="flag = !flag"
+                class="icon-style"
+                v-else
+              >
                 <View />
               </el-icon>
             </template>
@@ -55,7 +60,9 @@
         </el-form-item>
 
         <el-form-item class="panel-form-item" style="margin-top: 18px">
-          <el-button type="primary" class="fill" @click="submitClick">登录</el-button>
+          <el-button type="primary" class="fill" @click="submitClick"
+            >登录</el-button
+          >
         </el-form-item>
 
         <!-- <div class="more">
@@ -92,13 +99,14 @@ const form = reactive({
 });
 const verification = reactive({ phone: "", psw: "", code: "" });
 // 验证
+const specialAccount = ["88888888888", "66666666666"];
 watch(
   form,
   () => {
     console.log("form", form);
     if (!form.phone) {
       verification.phone = "请输入手机号";
-    } else if (form.phone == "88888888888") {
+    } else if (specialAccount.includes(form.phone)) {
       verification.phone = "";
     } else {
       verification.phone = PHONE.REG.test(form.phone) ? "" : PHONE.tip;
@@ -167,7 +175,8 @@ const submitClick = async () => {
 .login-layer {
   width: 100%;
   height: 100%;
-  background: #eceff2 url("@/assets/image/criminalBanner.png") no-repeat center center;
+  background: #eceff2 url("@/assets/image/criminalBanner.png") no-repeat center
+    center;
   background-size: cover;
   position: inherit;
 

+ 2 - 1
src/app/xmfire/view/login/index.vue

@@ -97,13 +97,14 @@ const form = reactive({
 });
 const verification = reactive({ phone: "", psw: "", code: "" });
 // 验证
+const specialAccount = ["88888888888", "66666666666"];
 watch(
   form,
   () => {
     console.log("form", form);
     if (!form.phone) {
       verification.phone = "请输入手机号";
-    } else if (form.phone == "88888888888") {
+    } else if (specialAccount.includes(form.phone)) {
       verification.phone = "";
     } else {
       verification.phone = PHONE.REG.test(form.phone) ? "" : PHONE.tip;

+ 11 - 3
src/view/system/login.vue

@@ -33,7 +33,12 @@
                 src="@/assets/image/pasword.png"
                 alt=""
               />
-              <el-icon :size="20" @click="flag = !flag" class="icon-style" v-else>
+              <el-icon
+                :size="20"
+                @click="flag = !flag"
+                class="icon-style"
+                v-else
+              >
                 <View />
               </el-icon>
             </template>
@@ -55,7 +60,9 @@
         </el-form-item>
 
         <el-form-item class="panel-form-item">
-          <el-button type="primary" class="fill" @click="submitClick">登录</el-button>
+          <el-button type="primary" class="fill" @click="submitClick"
+            >登录</el-button
+          >
         </el-form-item>
 
         <div class="more">
@@ -86,6 +93,7 @@ const form = reactive({
   remember: import.meta.env.DEV || localStorage.getItem("remember") === "1",
 });
 const verification = reactive({ phone: "", psw: "", code: "" });
+const specialAccount = ["88888888888", "66666666666"];
 // 验证
 watch(
   form,
@@ -93,7 +101,7 @@ watch(
     console.log("form", form);
     if (!form.phone) {
       verification.phone = "请输入手机号";
-    } else if (form.phone == "88888888888") {
+    } else if (specialAccount.includes(form.phone)) {
       verification.phone = "";
     } else {
       verification.phone = PHONE.REG.test(form.phone) ? "" : PHONE.tip;