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