|
@@ -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;
|
|
|
|